/* ============================================================
   MOMSH 2026 — Design System v2
   Inspired by Similac (trust blue) + Enfa (nurturing purple)
   Fonts: Be Vietnam Pro (body) + Cormorant Garamond (headings)
   Palette: #0072CE (Similac blue) · #6B3FA0 (Enfa purple) · #F5A623 (gold)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  /* Similac blue family */
  --blue:        #0072CE;
  --blue-dark:   #005BAA;
  --blue-deep:   #003B8E;
  --blue-light:  #E6F3FC;
  --blue-soft:   #C8E6F9;

  /* Enfa purple family */
  --purple:      #7B3FA0;
  --purple-dark: #5E2A80;
  --purple-light:#F2EAF8;
  --purple-soft: #D9C2EC;

  /* Warm accent (gold/honey — baby-brand warmth) */
  --gold:        #F5A623;
  --gold-dark:   #E08C0A;
  --gold-light:  #FEF3DC;

  /* Neutrals */
  --cream:       #F7F9FE;
  --white:       #FFFFFF;
  --ink:         #1A2B4A;
  --ink-light:   #3D5278;
  --ink-muted:   #7A8FAD;
  --border:      #DDE8F5;
  --border-soft: #EEF3FB;

  /* Semantic aliases for existing components */
  --rose:        #0072CE;
  --rose-dark:   #005BAA;
  --rose-light:  #E6F3FC;
  --peach:       #F5A623;
  --amber:       #F5A623;
  --mint:        #26BDB0;
  --plum:        #7B3FA0;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,114,206,.10);
  --shadow-md:  0 6px 24px rgba(0,114,206,.16);
  --shadow-lg:  0 16px 48px rgba(0,114,206,.20);

  /* Radii */
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xl:  28px;

  /* Layout */
  --nav-h:      66px;
  --header-h:   58px;

  /* Fonts */
  --font-body:  'Be Vietnam Pro', system-ui, sans-serif;
  --font-head:  'Cormorant Garamond', Georgia, serif;

  /* Gradients — Similac→Enfa inspired */
  --grad-hero:  linear-gradient(135deg, #003B8E 0%, #0072CE 45%, #7B3FA0 100%);
  --grad-card:  linear-gradient(135deg, #E6F3FC 0%, #F2EAF8 100%);
  --grad-gold:  linear-gradient(135deg, #F5A623, #E08C0A);
  --grad-blue:  linear-gradient(135deg, #0072CE, #005BAA);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea, button { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.3px; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--ink-light); margin-bottom: .5rem; }
.text-muted  { color: var(--ink-muted); font-size: .85rem; }
.text-rose   { color: var(--blue); }
.text-plum   { color: var(--purple); }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 520px; margin: 0 auto; padding: 0 16px; }
.page-wrap  { padding-top: calc(var(--header-h) + 8px); padding-bottom: calc(var(--nav-h) + 16px); min-height: 100dvh; }
.section    { padding: 20px 0; }

/* ── Mobile Header ──────────────────────────────────────── */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 12px rgba(0,114,206,.08);
}
.app-header .logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: -.5px;
}
.app-header .logo span { color: var(--purple); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-light); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark); font-size: 1.1rem; transition: .2s;
}
.icon-btn:hover { background: var(--blue); color: var(--white); }
.badge-dot { position: relative; }
.badge-dot::after {
  content: ''; position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--white);
}

/* ── Bottom Nav ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,114,206,.08);
}
.nav-items { display: flex; width: 100%; }
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; padding: 8px 0;
  color: var(--ink-muted); font-size: .68rem; font-weight: 600;
  cursor: pointer; border: none; background: none;
  transition: color .2s; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-item .nav-icon { font-size: 1.3rem; transition: transform .2s; }
.nav-item.active { color: var(--blue-dark); }
.nav-item.active .nav-icon { transform: translateY(-2px); }
.nav-item.center-nav { position: relative; }
.nav-item.center-nav .nav-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
  box-shadow: 0 4px 16px rgba(0,91,170,.40);
  margin-top: -20px;
  transition: transform .2s, box-shadow .2s;
}
.nav-item.center-nav:hover .nav-icon-wrap,
.nav-item.center-nav.active .nav-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0,91,170,.55);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card + .card { margin-top: 12px; }
.card-hero {
  background: var(--grad-hero);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.card-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.card-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -30px;
  width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: none; transition: .2s; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .2px;
}
.btn-primary {
  background: var(--grad-hero);
  color: white;
  box-shadow: 0 4px 16px rgba(0,91,170,.30);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,91,170,.45); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue-dark);
}
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost { background: var(--blue-light); color: var(--blue-dark); }
.btn-gold {
  background: var(--grad-gold);
  color: white;
  box-shadow: 0 4px 14px rgba(245,166,35,.35);
}
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.form-control {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,114,206,.12);
}
.form-control::placeholder { color: var(--ink-muted); }
.form-hint  { font-size: .8rem; color: var(--ink-muted); margin-top: 4px; }
.form-error { font-size: .82rem; color: #C62828; margin-top: 4px; font-weight: 600; }

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #EF5350; }
.alert-info    { background: var(--blue-light); color: var(--blue-deep); border-left: 4px solid var(--blue); }
.alert-warn    { background: var(--gold-light); color: #8B5E00; border-left: 4px solid var(--gold); }

/* ── Points / Stats ─────────────────────────────────────── */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 12px 0;
}
.stat-box {
  background: rgba(255,255,255,.22); border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center; backdrop-filter: blur(4px);
}
.stat-box .stat-val { font-size: 1.4rem; font-weight: 800; line-height: 1; font-family: var(--font-head); }
.stat-box .stat-lbl { font-size: .68rem; opacity: .85; margin-top: 3px; }
.points-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.2);
  border-radius: 20px; padding: 4px 12px;
  font-weight: 700; font-size: .9rem;
}

/* ── Task Card ───────────────────────────────────────────── */
.task-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.task-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; overflow: hidden;
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-info  { flex: 1; min-width: 0; }
.task-title { font-weight: 700; font-size: .95rem; line-height: 1.3; margin-bottom: 4px; color: var(--ink); }
.task-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.task-tag {
  font-size: .72rem; font-weight: 600; padding: 3px 8px;
  border-radius: 20px; white-space: nowrap;
}
.tag-photo   { background: var(--blue-light); color: var(--blue-dark); }
.tag-survey  { background: var(--purple-light); color: var(--purple-dark); }
.tag-video   { background: #E0F7FA; color: #00695C; }
.tag-invite  { background: #E8F5E9; color: #2E7D32; }
.task-points { font-weight: 800; font-size: 1rem; color: var(--blue-dark); white-space: nowrap; }
.task-done-badge {
  position: absolute; top: 10px; right: 10px;
  background: #4CAF50; color: white;
  font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}

/* ── Profile ─────────────────────────────────────────────── */
.profile-hero {
  background: var(--grad-hero);
  padding: 28px 20px 50px;
  color: white; text-align: center; position: relative;
}
.avatar-wrap {
  width: 88px; height: 88px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.5);
  overflow: hidden; margin: 0 auto 12px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; font-family: var(--font-head); letter-spacing: .2px; }
.profile-location { font-size: .85rem; opacity: .85; }
.profile-cards-wrap {
  margin-top: -32px; padding: 0 16px; position: relative; z-index: 10;
}

/* ── Wallet / Transactions ───────────────────────────────── */
.tx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.tx-icon.credit  { background: #E8F5E9; }
.tx-icon.debit   { background: #FFEBEE; }
.tx-info  { flex: 1; }
.tx-title { font-weight: 600; font-size: .92rem; }
.tx-date  { font-size: .78rem; color: var(--ink-muted); }
.tx-amount { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.tx-amount.credit { color: #2E7D32; }
.tx-amount.debit  { color: #C62828; }

/* ── Gift Card ───────────────────────────────────────────── */
.gift-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); margin-bottom: 12px;
  transition: transform .2s;
}
.gift-card:hover { transform: translateY(-2px); }
.gift-img {
  height: 140px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; overflow: hidden;
}
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-body  { padding: 14px; }
.gift-name  { font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.gift-cost  { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.points-cost { font-weight: 800; font-size: 1rem; color: var(--blue-dark); }
.gifts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Landing Page ────────────────────────────────────────── */
.landing-hero {
  min-height: 100dvh;
  background: var(--grad-hero);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px;
  color: white; position: relative; overflow: hidden;
}
.landing-hero::before {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%; top: -120px; right: -100px;
  background: rgba(255,255,255,.06);
}
.landing-hero::after {
  content: ''; position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%; bottom: -100px; left: -80px;
  background: rgba(255,255,255,.05);
}
/* Extra orb — adds depth like Similac.vn */
.landing-hero .orb {
  position: absolute; width: 200px; height: 200px;
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(245,166,35,.18) 0%, transparent 70%);
  z-index: 1;
}
.hero-logo {
  font-family: var(--font-head);
  font-size: 3.4rem; font-weight: 600;
  letter-spacing: -1.5px; margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.2);
  position: relative; z-index: 2;
  font-style: italic;
}
.hero-logo span { color: var(--gold); font-style: normal; }
.hero-tagline {
  font-size: 1.15rem; font-weight: 600; margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,.12);
  position: relative; z-index: 2;
  font-family: var(--font-body);
  letter-spacing: .2px;
}
.hero-sub {
  font-size: .9rem; opacity: .88;
  width: 100%; max-width: 300px;
  line-height: 1.7;
  text-align: center;
  margin: 10px auto 0;
  position: relative; z-index: 2;
  font-family: var(--font-body);
  font-weight: 400;
}
.hero-btns {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 280px;
  margin-left: auto; margin-right: auto;
  position: relative; z-index: 2;
}
.btn-white {
  background: white; color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  font-weight: 700;
}
.btn-white:hover { background: var(--blue-light); }
.btn-trans {
  background: rgba(255,255,255,.15);
  color: white;
  border: 2px solid rgba(255,255,255,.45);
}
.btn-trans:hover { background: rgba(255,255,255,.25); }

.feature-section { padding: 48px 20px; background: var(--white); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.feature-text h3 { font-size: 1rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.feature-text p  { font-size: .88rem; margin: 0; }

.steps-section {
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blue-light) 100%);
}
.step-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; background: var(--grad-hero);
  color: white; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-info h3 { font-size: 1rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.step-info p  { font-size: .88rem; margin: 0; }

/* ── Section Title ───────────────────────────────────────── */
.section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body);
}
.section-title a { font-size: .82rem; font-weight: 600; color: var(--blue-dark); }

/* ── Referral ────────────────────────────────────────────── */
.referral-box {
  background: var(--grad-hero); border-radius: var(--radius);
  padding: 18px; color: white; text-align: center;
}
.ref-code {
  background: rgba(255,255,255,.22); border-radius: 10px;
  padding: 10px 16px; font-size: 1.4rem; font-weight: 800;
  letter-spacing: 3px; margin: 12px 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head);
}

/* ── Admin ───────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--ink);
  padding: 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
  transition: transform .3s;
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; }
}
.sidebar-logo {
  padding: 20px 20px 16px;
  font-family: var(--font-head); font-size: 1.4rem; font-style: italic;
  color: var(--gold); border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo span { color: white; font-style: normal; }
.sidebar-nav { padding: 12px 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: rgba(255,255,255,.65);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  text-decoration: none; transition: .15s;
}
.sidebar-item:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar-item.active { color: var(--gold); background: rgba(245,166,35,.12); }
.sidebar-group-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.3);
  padding: 14px 20px 4px;
}
.admin-main {
  flex: 1; margin-left: 240px;
  padding: 24px 24px 40px;
  background: var(--cream);
  min-height: 100vh;
}
@media (max-width: 768px) { .admin-main { margin-left: 0; } }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.admin-topbar h1 { font-size: 1.5rem; color: var(--ink); font-family: var(--font-body); font-weight: 800; }
.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
}
.stat-card.green { border-top-color: #4CAF50; }
.stat-card.blue  { border-top-color: var(--purple); }
.stat-card.amber { border-top-color: var(--gold); }
.stat-card .val { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; font-family: var(--font-head); }
.stat-card .lbl { font-size: .78rem; color: var(--ink-muted); margin-top: 4px; font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.data-table th { background: var(--blue-light); color: var(--blue-deep); font-weight: 700; font-size: .82rem; padding: 12px 14px; text-align: left; }
.data-table td { padding: 11px 14px; font-size: .88rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--blue-light); }
.pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: .72rem; font-weight: 700;
}
.pill-green  { background: #E8F5E9; color: #2E7D32; }
.pill-red    { background: #FFEBEE; color: #C62828; }
.pill-amber  { background: var(--gold-light); color: #7A4F00; }
.pill-blue   { background: var(--blue-light); color: var(--blue-deep); }
.pill-purple { background: var(--purple-light); color: var(--purple-dark); }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 9px 18px; font-size: .88rem; font-weight: 600;
  border: none; background: none; cursor: pointer; white-space: nowrap;
  color: var(--ink-muted); border-bottom: 2px solid transparent;
  transition: .15s;
}
.tab-btn.active { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-muted); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--ink-light); margin-bottom: 8px; }

/* ── Q&A / Accordion ─────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 14px 0; font-weight: 600; font-size: .92rem;
  background: none; border: none; cursor: pointer; text-align: left;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '﹀'; font-size: .8rem; transition: transform .2s; color: var(--blue); }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { font-size: .88rem; color: var(--ink-light); padding-bottom: 14px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── Utility ─────────────────────────────────────────────── */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; } .text-center { text-align: center; } .d-none { display: none; }
.loading-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--blue-light);
  border-top-color: var(--blue-dark);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: white;
  padding: 10px 20px; border-radius: 24px;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  z-index: 300; white-space: nowrap;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity:0; bottom: calc(var(--nav-h) + 0px); } }

/* ── Register / Auth Page ────────────────────────────────── */
.auth-page { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-header {
  background: var(--grad-hero); padding: 36px 20px 28px;
  text-align: center; color: white;
}
.auth-header .logo {
  font-family: var(--font-head); font-size: 2.2rem;
  font-style: italic; color: white; margin-bottom: 6px;
}
.auth-header .logo span { color: var(--gold); font-style: normal; }
.auth-body { flex: 1; padding: 24px 16px 40px; max-width: 480px; width: 100%; margin: 0 auto; }

/* ── Progress bar ────────────────────────────────────────── */
.progress-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad-hero); border-radius: 4px; transition: width .4s ease; }

/* ── Public pages (terms/privacy) ────────────────────────── */
.public-page-wrap {
  max-width: 800px; margin: 0 auto;
  padding: 40px 20px 80px;
}
.public-page-wrap h1, .public-page-wrap h2, .public-page-wrap h3 {
  color: var(--ink); margin-bottom: 12px; margin-top: 24px;
}
.public-page-wrap p { color: var(--ink-light); line-height: 1.8; margin-bottom: 12px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 380px) {
  :root { font-size: 14px; }
  .gifts-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 24px; }
}
