/* ============================================================
   MilhasApp — Design System
   Tema: Dark Luxury / Premium Travel
   ============================================================ */

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --bg-deep:        #0A0A14;
  --bg-card:        #111120;
  --bg-elevated:    #181830;
  --bg-glass:       rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.07);

  --accent:         #F5A623;
  --accent-dim:     rgba(245,166,35,0.15);
  --accent-glow:    0 0 24px rgba(245,166,35,0.35);
  --accent2:        #FF6B6B;
  --accent3:        #4ECDC4;

  --text-primary:   #F0EEE8;
  --text-secondary: #9490A0;
  --text-muted:     #5A5770;

  --border:         rgba(255,255,255,0.07);
  --border-accent:  rgba(245,166,35,0.3);

  --success:        #22C55E;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #60A5FA;

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    999px;

  --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-float:   0 24px 64px rgba(0,0,0,0.6);

  --nav-h:          64px;
  --bottomnav-h:    72px;

  --font-display:   'Sora', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(78,205,196,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--text-secondary); font-size: 0.95rem; }

.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--text-muted); font-size: 0.85rem; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.font-display { font-family: var(--font-display); }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.app-shell {
  position: relative;
  min-height: 100dvh;
  padding-bottom: calc(var(--bottomnav-h) + 16px);
  z-index: 1;
}

.page-header {
  padding: 20px 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,20,0.85);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-content { padding: 20px 20px 0; }

.container { max-width: 480px; margin: 0 auto; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: rgba(255,255,255,0.12); }

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.card-accent {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-card) 100%);
  border-color: var(--border-accent);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:active::after { opacity: 0.08; }

.btn-primary {
  background: var(--accent);
  color: #0A0A14;
}
.btn-primary:hover { box-shadow: var(--accent-glow); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: var(--bg-glass-hover); }

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-glass); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-md); }

/* Loading state */
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading .btn-text { visibility: hidden; }
.btn.loading::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── INPUTS ───────────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.input-field {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input-icon-wrapper { position: relative; }
.input-icon-wrapper .input-field { padding-left: 46px; }
.input-icon-wrapper .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; pointer-events: none; }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress { height: 6px; background: var(--bg-elevated); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), #FFD700);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-bar.animated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

/* ── BADGE ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-accent  { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(245,166,35,0.2); }
.badge-success { background: rgba(34,197,94,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-info    { background: rgba(96,165,250,0.12); color: var(--info); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-muted); }

/* ── AVATAR ───────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 2px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm  { width: 36px; height: 36px; font-size: 0.8rem; }
.avatar-md  { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg  { width: 72px; height: 72px; font-size: 1.4rem; }

/* ── BOTTOM NAVIGATION ────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: rgba(17,17,32,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  color: var(--text-muted);
  min-width: 56px;
  position: relative;
}
.nav-item:hover { color: var(--text-secondary); background: var(--bg-glass); }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-icon { color: var(--accent); }

.nav-icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-badge {
  position: absolute;
  top: 4px; right: 8px;
  min-width: 18px; height: 18px;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-deep);
}

/* ── MILES CARD ───────────────────────────────────────────── */
.miles-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}
.miles-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.miles-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.miles-card .program-icon {
  font-size: 2rem;
  position: absolute;
  right: 16px; top: 16px;
  opacity: 0.6;
}
.miles-card .points-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: white;
}
.miles-card .program-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
.miles-card .expiry-info {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.miles-card.expiry-warning .expiry-info { color: #FFE066; }
.miles-card.expiry-expired .expiry-info { color: #FF8080; }

/* ── GOAL CARD ────────────────────────────────────────────── */
.goal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.goal-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.goal-card .goal-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}
.goal-card .goal-body { background: var(--bg-card); padding: 16px; }
.goal-card .goal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.goal-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* ── NEWS CARD ────────────────────────────────────────────── */
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-2px); }
.news-card .news-image { width: 100%; height: 180px; object-fit: cover; }
.news-card.news-featured .news-image { height: 220px; }
.news-card .news-body { padding: 16px; background: var(--bg-card); flex: 1; }
.news-card .news-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.news-card.horizontal { flex-direction: row; }
.news-card.horizontal .news-image { width: 100px; height: 100px; flex-shrink: 0; }
.news-card.horizontal .news-body { padding: 12px; }

/* ── NOTIFICATION ITEM ────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.notif-item:hover { border-color: rgba(255,255,255,0.1); background: var(--bg-glass-hover); }
.notif-item.unread { border-color: var(--border-accent); background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, var(--bg-card) 100%); }
.notif-item .notif-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.notif-item .notif-title { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.notif-item .notif-body  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.notif-item .notif-time  { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }
.notif-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* ── STATS STRIP ──────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.section-link { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* ── TABS ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--bg-elevated); padding: 4px; border-radius: var(--radius-full); }
.tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.tab.active { background: var(--accent); color: #0A0A14; }
.tab:not(.active):hover { color: var(--text-primary); }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
}
.modal-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }

/* ── TOAST ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 320px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: all;
  font-size: 0.88rem;
  font-weight: 500;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.warning { border-color: rgba(245,158,11,0.3); }
.toast.out     { animation: toastOut 0.25s forwards; }

/* ── CHIP ─────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.chip:hover, .chip.active { background: var(--accent-dim); border-color: var(--border-accent); color: var(--accent); }

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.divider-label {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
  margin: 20px 0;
}
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.empty-desc  { font-size: 0.88rem; color: var(--text-muted); max-width: 240px; }

/* ── SKELETON ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-glass-hover) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── XP / LEVEL BAR ───────────────────────────────────────── */
.level-bar { display: flex; align-items: center; gap: 10px; }
.level-icon {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border: 1.5px solid var(--border-accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── SCROLL CONTAINER ─────────────────────────────────────── */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadeIn     { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes shimmer    { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes pulse-ring { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.08);opacity:0.8} }
@keyframes toastIn    { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }
@keyframes toastOut   { to{opacity:0;transform:translateX(20px)} }
@keyframes countUp    { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }
@keyframes slideUp    { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes pop        { 0%{transform:scale(0.8);opacity:0} 70%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }

/* Staggered entrance */
.stagger > * { opacity:0; animation: slideUp 0.5s forwards; }
.stagger > *:nth-child(1) { animation-delay:0.05s }
.stagger > *:nth-child(2) { animation-delay:0.1s }
.stagger > *:nth-child(3) { animation-delay:0.15s }
.stagger > *:nth-child(4) { animation-delay:0.2s }
.stagger > *:nth-child(5) { animation-delay:0.25s }
.stagger > *:nth-child(6) { animation-delay:0.3s }

/* ── LOGIN PAGE ───────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg-deep);
}
.auth-hero {
  position: relative;
  height: 40vh;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px 24px;
}
.auth-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1040 50%, #0a1628 100%);
}
.auth-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-deep));
}
.auth-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 35% 80%, var(--accent) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 10%, rgba(255,255,255,0.5) 0%, transparent 100%);
}
.auth-plane {
  font-size: 3.5rem;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.6));
  animation: pulse-ring 3s ease-in-out infinite;
}
.auth-tagline {
  position: relative; z-index: 2;
  font-family: var(--font-display);
}
.auth-tagline h1 { font-size: 1.8rem; font-weight: 800; }
.auth-tagline p  { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.auth-form-area {
  flex: 1;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── PROFILE ──────────────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-stat {
  background: var(--bg-card);
  padding: 16px;
  text-align: center;
}

/* ── VIDEO BADGE ──────────────────────────────────────────── */
.video-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  display: flex; align-items: center; gap: 4px;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
}
.play-btn {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ── FAB ──────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 20px);
  right: 20px;
  width: 52px; height: 52px;
  background: var(--accent);
  color: #0A0A14;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--accent-glow);
  z-index: 150;
  transition: var(--transition);
}
.fab:hover { transform: scale(1.1) rotate(10deg); }
.fab:active { transform: scale(0.95); }

/* ── UTILITY ──────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── PWA INSTALL BANNER ───────────────────────────────────── */
.install-banner {
  margin: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.install-banner .install-icon { font-size: 1.5rem; }
.install-banner .install-text { flex: 1; font-size: 0.82rem; }
.install-banner .install-text strong { font-family: var(--font-display); font-size: 0.88rem; display: block; margin-bottom: 2px; }
