/* ==========================================================================
   UserCrowd - Member Tester Dashboard Stylesheet
   Design system compliant, 100% responsive, high-trust fintech aesthetic
   ========================================================================== */

/* ---------------- Top Member Nav & Status Bar ---------------- */
.dashboard-page {
  background-color: #f1f5f9;
  min-height: 100vh;
}

.member-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tester-nav-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.tester-nav-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.tester-nav-info {
  line-height: 1.2;
}

.tester-nav-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.tester-nav-level {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
}

.nav-balance-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
}

/* ---------------- Dashboard Hero & Stats Row ---------------- */
.dash-header-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--slate-200);
  padding: 2.25rem 0;
}

.dash-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-welcome-text h1 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
  display: block;
  line-height: 1.25;
}

.dash-welcome-text p {
  font-size: 0.95rem;
  color: var(--slate-500);
}

.dash-header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.dash-badge.green {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.dash-badge.blue {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.dash-badge.gold {
  background: var(--gold-light);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ---------------- 4 Summary Stat Cards ---------------- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stat-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stat-card-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card-sub {
  font-size: 0.775rem;
  color: var(--slate-500);
  font-weight: 600;
}

.payout-progress-wrap {
  margin-top: 0.75rem;
}

.payout-progress-bar {
  height: 8px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.payout-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--primary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ---------------- Dashboard Main Content Tabs ---------------- */
.dash-content-section {
  padding: 2.5rem 0 5rem;
}

.dash-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-tabs-list {
  display: flex;
  gap: 1rem;
}

.dash-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-500);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-tab-btn:hover {
  color: var(--slate-900);
}

.dash-tab-btn.active {
  color: var(--primary);
}

.dash-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.tab-count-badge {
  background: var(--slate-200);
  color: var(--slate-700);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.dash-tab-btn.active .tab-count-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* ---------------- Task Feed & Cards ---------------- */
.task-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.task-feed-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--slate-400);
}

.filter-chip.active {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.task-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.task-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.task-card.completed {
  opacity: 0.75;
  background: #f8fafc;
  border-color: var(--slate-200);
}

.task-card.completed:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.task-tier-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.task-tier-tag.tier-1 {
  background: #ecfdf5;
  color: #059669;
}

.task-tier-tag.tier-2 {
  background: #eef2ff;
  color: #4f46e5;
}

.task-tier-tag.tier-3 {
  background: #fef3c7;
  color: #b45309;
}

.task-tier-tag.tier-4 {
  background: #fdf2f8;
  color: #be185d;
}

.task-card-payout {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.task-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.task-card-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.task-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.785rem;
  color: var(--slate-400);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--slate-200);
}

.task-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.task-card-action {
  margin-top: auto;
}

.task-card-action .btn {
  width: 100%;
}

/* ---------------- Cashout Banner ---------------- */
.dash-cashout-banner {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.dash-cashout-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cashout-banner-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cashout-banner-info p {
  color: var(--slate-300);
  font-size: 0.9rem;
  max-width: 550px;
}

.cashout-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------------- Payout History Table ---------------- */
.payout-history-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.dash-table th {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  font-weight: 800;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-200);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.dash-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: middle;
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table tr:hover td {
  background: #f8fafc;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-badge.completed {
  background: var(--primary-light);
  color: var(--primary);
}

.status-badge.processing {
  background: var(--gold-light);
  color: #b45309;
}

/* ---------------- Settings & Demographics Form ---------------- */
.settings-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 800px;
  box-shadow: var(--shadow-sm);
}

.settings-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.settings-card p {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--slate-100);
}

/* ---------------- Interactive Task Runner Modal ---------------- */
.task-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.task-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.task-modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.task-modal-backdrop.active .task-modal-container {
  transform: translateY(0) scale(1);
}

.task-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.task-modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-modal-body {
  padding: 2rem 2.25rem;
  flex-grow: 1;
}

.task-timer-badge {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
}

.task-modal-preview-box {
  background: #0f172a;
  border-radius: 12px;
  padding: 1.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.task-preview-blur {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.5s ease;
}

.click-test-area {
  position: relative;
  cursor: crosshair;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1rem;
  user-select: none;
}

.click-radar-ping {
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.5);
  border: 2px solid #ef4444;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pingAnimation 1.2s infinite;
}

@keyframes pingAnimation {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.prototype-screen {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.task-reward-notification {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.task-reward-notification h2 {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

/* ---------------- Substantive Task Survey & Character Counter Styles ---------------- */
.char-counter-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
}

.char-counter-badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.char-counter-badge.invalid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.char-counter-badge.valid {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.task-stage-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.task-stage-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #64748b;
}

.task-stage-pill.active {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.task-stage-pill.completed {
  background: #ecfdf5;
  color: #059669;
}

.survey-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.survey-label {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
}

.survey-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.survey-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #334155;
  transition: var(--transition);
}

.survey-radio-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.survey-radio-item input[type="radio"] {
  margin-top: 3px;
}

/* ---------------- Unique Task Archetypes Styling ---------------- */
.archetype-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.archetype-tag.five_second {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.archetype-tag.click_heatmap {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.archetype-tag.ab_battle {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.archetype-tag.brand_perception {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.archetype-tag.interactive_prototype {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.archetype-tag.deep_audit {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.ab-battle-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
  position: relative;
}

.ab-battle-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.ab-battle-card.selected {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}

.prototype-phone-frame {
  max-width: 380px;
  margin: 0 auto 1.5rem;
  background: #ffffff;
  border: 3px solid #0f172a;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.phone-speaker-notch {
  width: 90px;
  height: 16px;
  background: #0f172a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin: 0 auto;
}

.phone-screen-body {
  padding: 1.25rem;
  background: #f8fafc;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------------- Auth Modal ---------------- */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.active .auth-modal-box {
  transform: translateY(0) scale(1);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--slate-100);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-600);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Premium Membership & Dynamic Tasks ---------------- */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.task-card.premium-locked {
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
}

.task-card.premium-locked:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.task-brand-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.task-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.785rem;
  font-weight: 700;
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.brand-dot-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
}

.task-id-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 600;
}

.badge-premium-lock {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-premium-unlocked {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Premium Upgrade Callout Banner */
.premium-upgrade-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e293b 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(49, 46, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.premium-upgrade-banner::after {
  content: '👑 PRO';
  position: absolute;
  right: -15px;
  top: -15px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.08);
  pointer-events: none;
}

.premium-banner-left {
  max-width: 620px;
}

.premium-banner-left h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-banner-left p {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.btn-refresh-tasks {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.825rem;
  transition: var(--transition);
}

.btn-refresh-tasks:hover {
  background: var(--slate-50);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-refresh-tasks.spinning svg {
  animation: spinIcon 0.8s linear infinite;
}

@keyframes spinIcon {
  100% { transform: rotate(360deg); }
}

/* Premium Upgrade Modal */
.premium-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.premium-modal-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  padding: 2.25rem 2rem;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.premium-crown-icon {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.premium-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}

.premium-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.premium-feature-card h5 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.premium-feature-card p {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.4;
}

.modal-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ---------------- Responsive Adaptations ---------------- */
@media (max-width: 1024px) {
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dash-stats-grid {
    grid-template-columns: 1fr;
  }
  .dash-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .cashout-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cashout-banner-actions .btn {
    width: 100%;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .task-modal-body {
    padding: 1.5rem 1.25rem;
  }
  .auth-modal-box {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .modal-plan-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Header & Welcome Title on Mobile */
  .dash-header-section {
    padding: 1.5rem 0 !important;
  }
  .dash-welcome-text h1 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }
  .dash-welcome-text p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }
  .dash-header-badges {
    gap: 0.35rem !important;
    margin-top: 0.65rem !important;
  }
  .dash-badge {
    font-size: 0.725rem !important;
    padding: 0.25rem 0.6rem !important;
  }

  /* Stats Cards Compact 2x2 Grid on Mobile */
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .dash-stat-card {
    padding: 0.85rem 0.75rem !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .stat-card-amount {
    font-size: 1.4rem !important;
    margin: 0.35rem 0 0.15rem !important;
  }
  .stat-card-title {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
  }
  .stat-card-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  .stat-card-sub {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  /* Horizontal Swipable Tab Bar & Filter Chips */
  .dash-tabs-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
  }
  .dash-tabs-list {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.35rem !important;
    padding-bottom: 2px !important;
  }
  .dash-tab-btn {
    white-space: nowrap !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.825rem !important;
    flex-shrink: 0 !important;
  }
  .task-filter-chips {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.35rem !important;
    padding-bottom: 4px !important;
  }
  .filter-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.7rem !important;
  }

  /* Task cards on mobile */
  .task-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
  }
  .task-card-title {
    font-size: 1.05rem !important;
  }
}

/* ---------------- Enhanced Interactive Task Mockup & Suggestion Styles ---------------- */
.suggestion-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.65rem;
  margin-bottom: 1.15rem;
}

.suggestion-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.suggestion-chip:hover {
  background: #ecfdf5;
  border-color: #059669;
  border-style: solid;
  color: #065f46;
  transform: translateY(-1px);
}

.suggestion-chip-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Video Player Simulation */
.video-mockup-player {
  background: #020617;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1e293b;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
  position: relative;
}

.video-player-screen {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.video-player-controls {
  background: #0f172a;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.video-progress-track {
  flex: 1;
  height: 6px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* AI Model Candidate Box */
.ai-candidate-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ai-candidate-box.highlight {
  border-color: #4f46e5;
  background: #fdfdfe;
}
