@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-subtle: #F8F9FA;
  --surface: #FFFFFF;
  
  --primary-yellow: #FED053;
  --primary-yellow-dark: #F5B81B;
  --primary-yellow-light: #FFFBEB;
  --primary-yellow-border: #FDE68A;
  
  --accent-orange: #F95738;
  --accent-amber: #D97706;
  --success: #10B981;
  --success-light: #ECFDF5;
  --success-border: #A7F3D0;
  --info: #3B82F6;
  --info-light: #EFF6FF;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  
  --text-main: #111827;
  --text-sub: #4B5563;
  --text-muted: #9CA3AF;
  
  --border: #E5E7EB;
  --border-subtle: #F3F4F6;
  
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-button: 0 3px 10px rgba(245, 184, 27, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-subtle);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-main);
}

.wrap {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ==========================================================================
   TOP MOBILE YELLOW HEADER (REFER & EARN + FAQs)
   ========================================================================== */
.mobile-top-bar {
  display: none !important;
}

/* Partner Detail Back Navigation */
.pd-top-nav {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.btn-pd-back {
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.btn-pd-back:hover,
.btn-pd-back:active {
  background: var(--surface-subtle);
  transform: translateY(-1px);
}

.pd-back-arrow {
  font-size: 16px;
  line-height: 1;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-back {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-header-back:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.08);
}

.header-page-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.faq-header-pill {
  background: #FFFFFF;
  border-radius: 999px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.faq-header-pill:active {
  transform: scale(0.95);
  background: #F9FAFB;
}

.faq-header-pill .faq-q-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   USER PROFILE SUMMARY CARD (MUKESH KUMAR MISHRA)
   ========================================================================== */
.user-profile-wrapper {
  padding: 14px 16px 8px;
}

.user-profile-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-profile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FED766 0%, #F59E0B 100%);
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.user-text-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-name-role-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.user-display-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  max-width: 100%;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.role-pill.captain {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.role-pill.rider {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.stage-card.completed {
  border-color: #10B981;
  background: #F0FDF4;
}

.stage-card.active {
  border-color: var(--primary-yellow-dark);
  background: #FFFBEB;
  box-shadow: 0 4px 14px rgba(254, 208, 83, 0.2);
}

.stage-card.muted {
  opacity: 0.75;
}

.stage-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.stage-flame-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-yellow-light);
  border: 1px solid var(--primary-yellow-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stage-card.completed .stage-flame-icon {
  background: #DCFCE7;
  border-color: #86EFAC;
}

.stage-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.stage-info p {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.45;
}

.stage-info b {
  color: var(--text-main);
  font-weight: 700;
}

.stage-coin-box {
  background: #FFF8E7;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  min-width: 68px;
  flex-shrink: 0;
}

.stage-coin-box .coin-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-amber);
  line-height: 1;
}

.stage-coin-box .coin-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.step-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.step-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.step-node.completed .step-icon-wrapper {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.step-node.active .step-icon-wrapper {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow-dark);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(254, 208, 83, 0.6);
}

.step-node.muted .step-icon-wrapper {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--text-muted);
}

.step-content {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}

.step-content h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.3;
}

.step-node.completed .step-content h4 { color: var(--text-main); }
.step-node.active .step-content h4 { color: var(--accent-amber); }
.step-node.muted .step-content h4 { color: var(--text-muted); }

.step-date {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 1px;
}

/* User Referral Code Bottom Strip */
.user-ref-code-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 10px;
}

.ref-strip-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ref-strip-label, .ref-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
}

.user-ref-code-row {
  font-size: 11.5px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-ref-code-row .code-text,
.ref-strip-left .code-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #DC2626;
  letter-spacing: 0.03em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
}

.btn-inline-copy {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 3px 8px;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-inline-copy:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.btn-inline-copy:active {
  background: #E2E8F0;
  transform: scale(0.96);
}

.copy-icon-svg {
  display: inline-block;
  flex-shrink: 0;
}

.user-balance-pill {
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF9C3 100%);
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.user-balance-pill:active {
  transform: scale(0.97);
  background: #FEF08A;
}

.balance-inner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.balance-coin-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #DC2626;
  line-height: 1.2;
}

.balance-coin-row .flame-icon {
  font-size: 15px;
}

.balance-sub-label {
  font-size: 10.5px;
  color: var(--text-sub);
  font-weight: 500;
  margin-top: 1px;
}

.balance-chevron {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   MAIN 4-TAB NAVIGATION (Overview, Partners, Milestones, Redemption)
   ========================================================================== */
.tabs-nav-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs-nav-bar::-webkit-scrollbar {
  display: none;
}

.tab-nav-item {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-nav-item .tab-icon {
  font-size: 13px;
  line-height: 1;
}

.tab-nav-item.active {
  color: var(--accent-orange);
  font-weight: 700;
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2.5px;
  background: var(--accent-orange);
  border-radius: 3px 3px 0 0;
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 12px;
  }
  .tab-nav-item {
    padding: 10px 4px 8px;
    font-size: 11.5px;
    gap: 3px;
  }
  .tab-nav-item .tab-icon {
    font-size: 12px;
  }
  .user-profile-wrapper {
    padding: 10px 12px 6px;
  }
}

@media (max-width: 350px) {
  .wrap {
    padding: 0 8px;
  }
  .tab-nav-item {
    font-size: 10.5px;
    padding: 8px 2px 7px;
    gap: 2px;
  }
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SHARED CARD STYLES
   ========================================================================== */
.card-section {
  padding: 10px 16px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.content-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.card-header-icon {
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}

/* ==========================================================================
   TAB 1: OVERVIEW STYLES (Image 2)
   ========================================================================== */
/* 1. At a Glance 4-Metric Grid */
.at-a-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 6px;
}

.metric-icon-circle.green { background: #DCFCE7; color: #16A34A; }
.metric-icon-circle.blue { background: #DBEAFE; color: #2563EB; }
.metric-icon-circle.orange { background: #FFEDD5; color: #EA580C; }
.metric-icon-circle.purple { background: #F3E8FF; color: #9333EA; }

.metric-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-label {
  font-size: 10.5px;
  color: var(--text-sub);
  margin-top: 2px;
  line-height: 1.2;
}

/* 2. Your Coins Breakdown (Donut Chart + Legend) */
.breakdown-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.donut-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-val {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.donut-center-label {
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 500;
}

.donut-legend-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-sub);
  font-weight: 500;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.spark { background: #10B981; }
.legend-dot.ignite { background: #F59E0B; }
.legend-dot.blaze { background: #3B82F6; }
.legend-dot.legacy { background: #D1D5DB; }

.legend-coins {
  font-weight: 600;
  color: var(--text-main);
}

.validity-pill-box {
  background: var(--bg-subtle);
  border-radius: 999px;
  padding: 6px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 500;
}

/* 3. Earnings Summary */
.earnings-summary-row,
.earnings-summary-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px 14px;
}

.earning-stat-icon,
.earning-wallet-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid #D1FAE5;
}

.earnings-stats-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.earning-stat-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.earning-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 16px;
  flex-shrink: 0;
}

.earning-stat-label {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
  white-space: nowrap;
}

.earning-stat-val {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #16A34A;
  line-height: 1.25;
  white-space: nowrap;
}

.earnings-footer-link {
  border-top: 1px solid var(--border-subtle);
  padding-top: 11px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.earnings-footer-link:active {
  opacity: 0.7;
}

.earnings-footer-link .footer-link-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.earnings-footer-link .footer-link-arrow {
  font-size: 16px;
  color: #9CA3AF;
  line-height: 1;
}

/* 4. Top Performing Partners */
.view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
  cursor: pointer;
  text-decoration: none;
}

.partner-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.partner-preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.partner-preview-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.partner-initial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.partner-initial-avatar.yellow { background: #FEF3C7; color: #B45309; }
.partner-initial-avatar.purple { background: #EDE9FE; color: #6D28D9; }
.partner-initial-avatar.green { background: #DCFCE7; color: #15803D; }
.partner-initial-avatar.blue { background: #DBEAFE; color: #1D4ED8; }
.partner-initial-avatar.pink { background: #FCE7F3; color: #BE185D; }
.partner-initial-avatar.red { background: #FEE2E2; color: #B91C1C; }

.partner-preview-info {
  flex: 1;
  min-width: 0;
}

.partner-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.partner-name-row .p-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-progress-bar-wrap {
  width: 90%;
  max-width: 140px;
}

.partner-progress-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
}

.progress-fill.orange { background: #F59E0B; }
.progress-fill.green { background: #10B981; }
.progress-fill.grey { background: #D1D5DB; }

.partner-preview-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}

.preview-coins-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.preview-coins-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #16A34A;
  line-height: 1.1;
}

.preview-coins-label {
  font-size: 10px;
  color: var(--text-sub);
}

.preview-chevron {
  color: var(--text-muted);
  font-size: 15px;
}

/* 5. Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-action-card {
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.quick-action-card:active {
  transform: scale(0.96);
}

.quick-action-card.share { background: #FFF7ED; border-color: #FFEDD5; }
.quick-action-card.whatsapp { background: #EFF6FF; border-color: #DBEAFE; }
.quick-action-card.milestones { background: #F0FDF4; border-color: #DCFCE7; }
.quick-action-card.history { background: #FAF5FF; border-color: #F3E8FF; }

.quick-action-icon {
  font-size: 18px;
  margin-bottom: 5px;
}

.quick-action-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

/* Bottom Refer More Banner */
.refer-more-banner {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.refer-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.refer-banner-icon {
  color: #D97706;
  font-size: 15px;
  margin-top: 2px;
}

.refer-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.refer-banner-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 1px;
}

.refer-banner-graphic {
  font-size: 26px;
  line-height: 1;
}

/* ==========================================================================
   TAB 2: PARTNERS STYLES (Image 5)
   ========================================================================== */
.partners-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.partners-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.partners-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-action {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-icon-action:active {
  background: var(--border-subtle);
}

.search-input-wrap {
  display: none;
  margin-bottom: 10px;
}

.search-input-wrap.active {
  display: flex;
  gap: 6px;
}

.search-partner-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  outline: none;
}

.search-partner-input:focus {
  border-color: var(--accent-orange);
}

/* Filter Chips Row */
.filter-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.filter-chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip-card.active {
  border-color: #3B82F6;
  background: #F0F7FF;
  box-shadow: 0 0 0 1px #3B82F6;
}

.chip-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
}

.chip-icon {
  font-size: 11px;
}

.chip-count {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

/* Partner Full List Cards */
.partner-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-card-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.partner-card-row:active {
  transform: scale(0.98);
}

.partner-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.partner-card-info {
  flex: 1;
  min-width: 0;
}

.partner-card-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.partner-card-title-line .p-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-stage-progress-line {
  margin-bottom: 4px;
}

.stage-status-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #D97706;
  margin-bottom: 3px;
}

.stage-status-title.completed { color: #16A34A; }
.stage-status-title.locked { color: var(--text-muted); }

.partner-meta-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.3;
}

.partner-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.partner-card-coins-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.partner-card-coins-val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.partner-card-coins-val.has-coins {
  color: var(--text-main);
}

.partner-card-coins-lbl {
  font-size: 10px;
  color: #16A34A;
  font-weight: 600;
}

/* How It Works Banner */
.how-it-works-banner-link {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: none;
}

.how-it-works-banner-link .left-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.how-it-works-banner-link .left-content b {
  color: var(--text-main);
}

/* Bottom Invite More Sticky Bar */
.bottom-invite-sticky-card {
  background: #FFFDF5;
  border: 1px solid #FEF3C7;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.invite-sticky-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.invite-sticky-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.invite-sticky-text p {
  font-size: 11px;
  color: var(--text-sub);
  margin: 0;
}

.invite-sticky-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.btn-primary-yellow-share {
  background: var(--primary-yellow);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(254, 208, 83, 0.4);
}

.btn-primary-yellow-share:active {
  transform: scale(0.96);
}

.sticky-code-pill {
  font-size: 10.5px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   TAB 3: MILESTONES STYLES (Image 4)
   ========================================================================== */
.milestones-intro-box {
  margin-bottom: 16px;
}

.milestones-intro-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.milestones-intro-box p {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
}

.milestone-stepper-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* Stepper Connector Line */
.stepper-track-line {
  position: absolute;
  top: 24px;
  bottom: 40px;
  left: 17px;
  width: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.milestone-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.step-node-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.step-node-icon.completed {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.step-node-icon.in-progress {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #D97706;
}

.step-node-icon.locked {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #9CA3AF;
}

.milestone-step-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.m-card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.m-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.m-status-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
}

.m-status-tag.completed { background: #DCFCE7; color: #16A34A; }
.m-status-tag.in-progress { background: #FEF3C7; color: #D97706; }
.m-status-tag.locked { background: #F3F4F6; color: #6B7280; }

.m-coins-col {
  text-align: right;
}

.m-coins-val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #16A34A;
}

.m-coins-val.grey { color: var(--text-muted); }

.m-coins-date {
  font-size: 10px;
  color: var(--text-sub);
}

.m-trigger-details {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 10px;
  line-height: 1.4;
}

.m-trigger-details b {
  color: var(--text-main);
}

.m-card-notice-bar {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Blaze Speed Bonus Boxes */
.blaze-bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.bonus-box-pill {
  background: #FFFDF5;
  border: 1px solid #FEF3C7;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  font-size: 11px;
}

.bonus-box-pill .b-lbl { color: var(--text-sub); margin-bottom: 1px; }
.bonus-box-pill .b-val { font-weight: 700; color: #D97706; }
.bonus-box-pill.blue { background: #EFF6FF; border-color: #DBEAFE; }
.bonus-box-pill.blue .b-val { color: #2563EB; }

/* Legacy Criteria Box */
.legacy-criteria-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--text-sub);
}

.criteria-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

/* Important Notice Card */
.important-notice-card {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.important-notice-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 8px;
}

.important-notice-list {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: #1E3A8A;
  line-height: 1.5;
}

.milestones-footer-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 16px;
}

/* ==========================================================================
   TAB 4: REDEMPTION STYLES
   ========================================================================== */
.redemption-balance-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}

.redeem-balance-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #D97706;
  line-height: 1.1;
  margin-bottom: 2px;
}

.redeem-balance-inr {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.redeem-balance-desc {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.4;
}

.redeem-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.redeem-option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: default;
  transition: var(--transition-fast);
}

.redeem-option-card:active {
  background: var(--surface);
}

.redeem-option-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.redeem-opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.redeem-opt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.redeem-opt-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.45;
}

.btn-redeem-action {
  background: var(--primary-yellow);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   PARTNER DETAIL VIEW (Images 1 & 3)
   ========================================================================== */
#partner-detail-view {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

#partner-detail-view.active {
  display: block;
}

/* Partner Detail Header Card */
.partner-detail-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.p-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-header-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FED766;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.p-header-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.p-header-meta {
  font-size: 11.5px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-header-stage-pill {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #D97706;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Horizontal Reward Stepper */
.reward-progress-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 14px;
  position: relative;
}

.stepper-stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 22%;
  position: relative;
  z-index: 2;
}

.h-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 6px;
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
}

.h-node-icon.completed { background: #10B981; border-color: #10B981; color: #FFFFFF; }
.h-node-icon.in-progress { background: #FEF3C7; border-color: #F59E0B; color: #D97706; }
.h-node-icon.locked { background: #F3F4F6; border-color: #D1D5DB; color: #9CA3AF; }

.h-stage-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.h-stage-coins {
  font-size: 11px;
  font-weight: 600;
  color: #10B981;
  margin-top: 1px;
}

.h-stage-coins.orange { color: #D97706; }
.h-stage-coins.grey { color: var(--text-muted); }

.h-stage-status {
  font-size: 9.5px;
  color: var(--text-sub);
  margin-top: 2px;
  line-height: 1.2;
}

.h-stepper-line {
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.h-stepper-line-fill {
  height: 100%;
  background: #10B981;
  border-radius: 2px;
}

/* Stepper Callout Banner */
.stepper-callout-banner {
  background: #FFFDF5;
  border: 1px solid #FEF3C7;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.callout-text-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.callout-sub {
  font-size: 10.5px;
  color: var(--text-sub);
}

.callout-badge {
  background: #FFFFFF;
  border: 1px solid #FDE68A;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #D97706;
  white-space: nowrap;
}

/* Partner Activity List */
.partner-activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}

.activity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.activity-check-icon.completed { background: #ECFDF5; color: #10B981; border: 1.5px solid #10B981; }
.activity-check-icon.in-progress { background: #FEF3C7; color: #D97706; border: 1.5px solid #F59E0B; }
.activity-check-icon.locked { background: #F3F4F6; color: #9CA3AF; border: 1.5px solid #D1D5DB; }

.activity-desc-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-tag-pill {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #EFF6FF;
  color: #2563EB;
}

.activity-date {
  font-size: 10.5px;
  color: var(--text-sub);
}

.activity-right-earned {
  text-align: right;
  flex-shrink: 0;
}

.activity-stage-name {
  font-size: 10.5px;
  color: var(--text-sub);
}

.activity-coins-tag {
  font-size: 12px;
  font-weight: 700;
  color: #16A34A;
}

.activity-coins-tag.orange { color: #D97706; }
.activity-coins-tag.grey { color: var(--text-muted); }

/* Partner Summary 4-Box Grid */
.partner-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.p-summary-box {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-summary-box.orange-tint { background: #FFFDF5; border-color: #FEF3C7; }

.p-sum-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.p-sum-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.p-sum-val.orange { color: #D97706; }

.p-sum-lbl {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 2px;
  line-height: 1.2;
}

.partner-summary-footer-note {
  background: #FFFBEB;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* About Partner Profile Rows */
.about-details-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.about-row-item .lbl {
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-row-item .val {
  font-weight: 600;
  color: var(--text-main);
}

.about-row-item .val.active-status {
  color: #16A34A;
}

/* Remind Partner Action Card */
.remind-partner-banner {
  background: #FFFDF5;
  border: 1px solid #FEF3C7;
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.remind-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remind-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.remind-sub {
  font-size: 11px;
  color: var(--text-sub);
}

.partner-compliance-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-sub);
  padding: 4px 6px;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(17, 24, 39, 0.94);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- SECTION 4: PROGRAM INFO / RULES & FAQs ---------- */
.rules-section {
  padding: 24px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.rules-section h2 {
  font-size: 19px;
  margin-bottom: 14px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-sub);
}

details.faq-item[open] summary::after { content: "–"; }

details.faq-item .inner {
  padding: 0 16px 14px;
  color: var(--text-sub);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 12px;
}

/* ---------- BOTTOM STICKY ACTION BAR ---------- */
.sticky-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 99;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

.sticky-action-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.code-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-amber);
}

.toast-msg {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-main);
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1100;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  padding: 20px 0 14px;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

/* Dedicated FAQ Top Header Bar (Independent of Referral Profile Bar) */
.faq-top-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-top-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-header-title h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.faq-header-title span {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
  display: block;
}

.faq-brand-pill {
  background: var(--primary-yellow-light);
  border: 1px solid var(--primary-yellow-border);
  color: var(--accent-amber);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.faq-hero-header {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}

.faq-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-yellow-light);
  border: 1px solid var(--primary-yellow-border);
  color: var(--accent-amber);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.faq-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.faq-hero-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 16px;
  line-height: 1.45;
}

/* Search Bar Component */
.faq-search-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.faq-search-input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 42px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.faq-search-input:focus {
  border-color: var(--primary-yellow-dark);
  box-shadow: 0 0 0 3px rgba(245, 184, 27, 0.25);
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  display: none;
}

/* Category Selector Nav Pills */
.faq-nav-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.faq-nav-pills::-webkit-scrollbar { display: none; }

.faq-pill-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-pill-item:hover, .faq-pill-item.active {
  background: var(--primary-yellow-light);
  border-color: var(--primary-yellow-dark);
  color: var(--text-main);
  font-weight: 700;
}

/* FAQ Accordion List */
.faq-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.faq-card-item:hover {
  border-color: var(--primary-yellow-border);
  box-shadow: var(--shadow-card);
}

.faq-card-item.open {
  border-color: var(--primary-yellow-dark);
  box-shadow: 0 4px 16px rgba(245, 184, 27, 0.15);
}

.faq-card-header {
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-question-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.faq-num-badge {
  background: var(--primary-yellow-light);
  border: 1px solid var(--primary-yellow-border);
  color: var(--accent-amber);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-card-item.open .faq-num-badge {
  background: var(--primary-yellow);
  color: var(--text-main);
}

.faq-question-text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-card-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--primary-yellow-light);
  color: var(--accent-amber);
  border-color: var(--primary-yellow-border);
}

.faq-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: #FAFAFA;
  border-top: 1px solid transparent;
}

.faq-card-item.open .faq-card-body {
  max-height: 600px;
  transition: max-height 0.3s ease-in-out;
  border-top-color: var(--border);
}

.faq-answer-content {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.55;
}

.faq-answer-content b {
  color: var(--text-main);
}

.faq-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.faq-feedback-btns {
  display: flex;
  gap: 6px;
}

.btn-feedback {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-feedback:hover, .btn-feedback.voted {
  background: var(--primary-yellow-light);
  border-color: var(--primary-yellow-dark);
  color: var(--text-main);
}

/* Empty search state */
.faq-empty-state {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: none;
}

.faq-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.faq-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.faq-empty-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
}

/* Support Help Card Banner */
.support-cta-card {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  color: #FFFFFF;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.support-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.support-cta-desc {
  font-size: 12.5px;
  color: #9CA3AF;
  margin: 0;
}

.btn-support-cta {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-yellow-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-button);
}

.btn-support-cta:active {
  transform: scale(0.96);
}

