/* ============================================================
   INVESTRA — Aurora Glass
   Structure: Kukabot-style app · Color: Syabaab purple/magenta
   Background: mechanical bull
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --bg: #12081f;
  --deep: #1a0b2e;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-dark: rgba(24, 12, 44, 0.62);
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(80, 40, 140, 0.12);
  --violet: #7c3aed;
  --violet2: #6d28d9;
  --magenta: #d946ef;
  --pink: #f472b6;
  --cyan: #67e8f9;
  --accent: #c026d3;
  --accent2: #a855f7;
  --text: #1e1233;
  --text-inv: #f5eaff;
  --muted: #6b5b80;
  --muted-inv: #c4b5d6;
  --green: #10b981;
  --orange: #f59e0b;
  --shadow: 0 16px 40px rgba(76, 29, 149, 0.16);
  --radius: 22px;
  --radius-sm: 16px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --gold: var(--accent);
  --gold-soft: var(--magenta);
  --surface: var(--panel);
  --surface2: #fff;
  --border: var(--line-dark);
  --ok: var(--green);
  --err: #fb7185;
  --white: var(--text);
  --cream: var(--text);
  --max: 480px;
  --nav: 86px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { min-height: 100%; background: #12081f; }

body {
  min-height: 100%;
  padding-bottom: 96px;
  color: var(--text);
  font: 500 13px/1.5 var(--font);
  background:
    linear-gradient(180deg, rgba(18, 8, 31, 0.55) 0%, rgba(248, 244, 255, 0.92) 220px, #f4effb 100%),
    url('../images/hero-bull.jpg') center 8% / cover no-repeat fixed;
  overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; }
button, input, select { font: inherit; }

.app, .app-main, .shell, .page, .wrap, .page-shell {
  width: min(100%, 480px) !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 12px 14px 24px !important;
  position: relative;
  z-index: 1;
  min-height: auto !important;
}

/* ---- Top ---- */
.top, .app-top {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  margin-bottom: 12px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  height: auto !important;
}
.mark, .app-top .mark {
  width: 40px !important; height: 40px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #a855f7, #db2777) !important;
  color: #fff !important;
  display: grid !important; place-items: center !important;
  font: 800 13px var(--display) !important;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4) !important;
  border: none !important;
}
.hello { flex: 1; min-width: 0; }
.hello small { display: block; color: var(--muted-inv); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hello strong, .app-top .title { display: block; font: 700 16px var(--display); color: #fff; }
.top-actions, .app-top .actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  width: 36px !important; height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  display: grid !important; place-items: center !important;
  cursor: pointer !important;
}

/* ---- Cards ---- */
.card, .app-section, .panel, .wallet-card, .plan-card, .stat-card {
  background: var(--panel) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
}

.hero-banner {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 148px;
  margin-bottom: 14px;
  background:
    linear-gradient(115deg, rgba(88, 28, 135, 0.82), rgba(190, 24, 93, 0.55)),
    url('../images/hero-bull.jpg') center 30% / cover no-repeat;
  color: #fff;
  padding: 18px 16px;
  box-shadow: 0 16px 36px rgba(88, 28, 135, 0.35);
}
.hero-banner h2 { font: 800 18px var(--display); line-height: 1.25; margin-bottom: 6px; }
.hero-banner p { font-size: 11px; color: rgba(255,255,255,.85); max-width: 70%; }

.notice {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.notice .tag {
  background: linear-gradient(90deg, #ec4899, #f97316);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .06em;
}
.notice span { font-size: 12px; color: var(--muted); }

.section-title {
  font: 800 15px var(--display);
  color: #2a1848;
  margin: 6px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: "";
  width: 4px; height: 16px; border-radius: 4px;
  background: linear-gradient(180deg, #a855f7, #ec4899);
}

/* Quick services */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  margin-bottom: 18px;
}
.qs {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; color: #3b2a55;
  font-size: 11px; font-weight: 600; text-align: center;
}
.qs .bubble {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.22);
}
.qs:nth-child(1) .bubble { background: linear-gradient(145deg, #7c3aed, #6366f1); }
.qs:nth-child(2) .bubble { background: linear-gradient(145deg, #ec4899, #f43f5e); }
.qs:nth-child(3) .bubble { background: linear-gradient(145deg, #10b981, #14b8a6); }
.qs:nth-child(4) .bubble { background: linear-gradient(145deg, #f59e0b, #f97316); }
.qs:nth-child(5) .bubble { background: linear-gradient(145deg, #6366f1, #3b82f6); }
.qs:nth-child(6) .bubble { background: linear-gradient(145deg, #a855f7, #8b5cf6); }
.qs:nth-child(7) .bubble { background: linear-gradient(145deg, #f472b6, #fb7185); }
.qs:nth-child(8) .bubble { background: linear-gradient(145deg, #f59e0b, #eab308); }

/* Product cards */
.prod {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  align-items: center;
}
.prod img, .prod .thumb {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover;
  background: linear-gradient(145deg, #ede9fe, #fce7f3);
  display: grid; place-items: center; font-size: 28px;
}
.prod h3 { font: 700 14px var(--display); margin-bottom: 6px; }
.prod .meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: #f6f3fb; border-radius: 12px; padding: 8px 6px; margin-bottom: 8px;
}
.prod .meta b { display: block; font-size: 12px; color: #2a1848; }
.prod .meta small { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.prod .row { display: flex; align-items: center; justify-content: space-between; }
.badge-hot {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}

/* VIP card */
.vip-hero {
  background: linear-gradient(120deg, #7c3aed, #38bdf8);
  color: #fff; border-radius: 22px; padding: 18px; margin-bottom: 14px;
}
.vip-hero h2 { font: 800 22px var(--display); }
.stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat-box, .stats-2 .stat-box {
  background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center;
  box-shadow: var(--shadow); border: none;
}
.stat-box .k { font-size: 10px; color: var(--muted); }
.stat-box .v { font: 800 15px var(--display); color: #2a1848; margin-top: 4px; }

.tier {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.tier .lock, .tier .ok {
  margin-left: auto; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.tier .ok { background: #d1fae5; color: #047857; }
.tier .lock { background: #f3f4f6; color: #6b7280; }

/* Forms */
.app-label, label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.toggle-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tog-btn, .amt-btn, .preset-btn, .amount-chip {
  border: 1px solid #e9dff7; background: #f7f3fc; color: #2a1848;
  border-radius: 14px; padding: 12px 8px; font-weight: 700; cursor: pointer; text-align: center;
}
.tog-btn.active, .amt-btn.active, .preset-btn.active, .amount-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
}
.amount-grid, .amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"], select, .form-control {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  border: 1px solid #e9dff7; background: #fff; color: #1e1233; outline: none;
}
input:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.form-group, .field, .app-field { margin-bottom: 14px; }

.btn, .btn-main, .btn-primary, .btn-gold {
  display: flex !important; width: 100% !important;
  align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border: none; border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #db2777) !important;
  color: #fff !important; font: 700 15px var(--display) !important;
  cursor: pointer; box-shadow: 0 10px 24px rgba(168, 85, 247, .35) !important;
}

.hint, .note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }
.alert { padding: 12px; border-radius: 14px; margin-bottom: 12px; font-size: 13px; }
.alert-error { background: #fff1f2; color: #be123c; }
.alert-success { background: #ecfdf5; color: #047857; }

.balance-block { text-align: center; }
.balance-block .amt { font: 800 36px var(--display); color: #2a1848; }
.preview-amt { text-align: center; font: 800 28px var(--display); color: #2a1848; margin: 12px 0; }
.ngn-box { display: none; padding: 12px; border-radius: 14px; background: #f5f0ff; margin-bottom: 12px; }
.ngn-box .val { font: 800 20px var(--display); color: #7c3aed; }

/* Bottom dock — Kukabot style */
.bottom, .bottom-nav, nav.bottom-nav {
  position: fixed !important;
  left: 10px !important; right: 10px !important; bottom: 10px !important;
  width: auto !important; max-width: 460px !important;
  margin: 0 auto !important;
  transform: none !important;
  z-index: 1000 !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 40px rgba(76, 29, 149, 0.18) !important;
  backdrop-filter: blur(16px) !important;
}
.bottom-nav .nav-item, nav.bottom-nav a {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  gap: 3px !important; min-height: 48px !important;
  color: #9ca3af !important; font-size: 10px !important; font-weight: 600 !important;
  background: transparent !important; border: none !important; border-radius: 16px !important;
  text-decoration: none !important;
}
.bottom-nav .nav-item i { font-size: 18px !important; color: inherit !important; }
.bottom-nav .nav-item.active {
  color: #7c3aed !important;
}
.bottom-nav .nav-item.active i {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #7c3aed, #db2777);
  color: #fff !important;
}

.bp-floaters, .hero-glow, .western-bar, .float-controls { display: none !important; }

/* Auth — Syabaab glass */
.auth-page {
  min-height: 100dvh; padding: 0 !important; max-width: none !important; width: 100% !important;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(160deg, rgba(36, 8, 70, 0.62), rgba(88, 16, 90, 0.55)),
    url('../images/hero-bull.jpg') center 30% / cover no-repeat fixed !important;
}
.auth-form-side { background: transparent !important; min-height: auto; padding: 28px 18px; width: 100%; display: flex; justify-content: center; }
.auth-form-box {
  width: 100%; max-width: 380px;
  background: rgba(20, 10, 40, 0.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  padding: 28px 22px 24px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  color: #fff;
}
.auth-form-box h1, .auth-form-box .name { color: #fff; font: 700 22px var(--display); text-align: center; }
.auth-form-box .sub, .auth-form-box .tag { color: #d8b4fe; text-align: center; margin-bottom: 18px; }
.auth-form-box label { color: #e9d5ff; }
.auth-form-box input {
  background: rgba(8, 4, 20, 0.55);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; border-radius: 999px;
}
.auth-form-box input::placeholder { color: #a78bfa; }
.auth-visual { display: none !important; }
.avatar-ring {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  background: linear-gradient(145deg, #a855f7, #db2777);
  display: grid; place-items: center; color: #fff; font-size: 26px;
}

/* ---- Theme + notifications ---- */
.theme-fab, .notif-fab { position: relative; }

.notif-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #db2777; color: #fff;
  font-size: 9px; font-weight: 800; display: grid; place-items: center;
}

.notif-panel {
  display: none;
  position: fixed; z-index: 1200;
  top: 58px; left: 12px; right: 12px;
  max-width: 460px; margin: 0 auto;
  max-height: 70vh; overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(76,29,149,.25);
  padding: 8px;
}
.notif-panel.open { display: block; }
.notif-panel h3 {
  font: 700 14px var(--display);
  padding: 10px 12px 8px;
  color: #2a1848;
}
.note-item {
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 6px;
  background: #f7f3fc;
}
.note-item.unread { background: #f3e8ff; border: 1px solid #e9d5ff; }
.note-item strong { display: block; font-size: 13px; margin-bottom: 3px; color: #2a1848; }
.note-item p { font-size: 12px; color: #6b5b80; margin: 0; }
.note-item time { display: block; font-size: 10px; color: #9ca3af; margin-top: 6px; }
.note-empty { padding: 24px 12px; text-align: center; color: #9ca3af; font-size: 13px; }

/* Dark mode */
html[data-theme="dark"] body {
  color: #f3e8ff;
  background:
    linear-gradient(180deg, rgba(12,6,24,.72) 0%, rgba(18,8,32,.92) 100%),
    url('../images/hero-bull.jpg') center 8% / cover no-repeat fixed !important;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .app-section,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-box,
html[data-theme="dark"] .tier,
html[data-theme="dark"] .prod,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .notif-panel {
  background: rgba(28, 16, 48, 0.88) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #f3e8ff !important;
}
html[data-theme="dark"] .hello strong,
html[data-theme="dark"] .app-top .title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .balance-block .amt,
html[data-theme="dark"] .preview-amt,
html[data-theme="dark"] .prod h3,
html[data-theme="dark"] .stat-box .v,
html[data-theme="dark"] .notif-panel h3,
html[data-theme="dark"] .note-item strong {
  color: #f8f4ff !important;
}
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .stat-box .k,
html[data-theme="dark"] .note-item p {
  color: #c4b5d6 !important;
}
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] nav.bottom-nav {
  background: rgba(22, 12, 40, 0.96) !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .bottom-nav .nav-item { color: #9ca3af !important; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .tog-btn,
html[data-theme="dark"] .amt-btn,
html[data-theme="dark"] .preset-btn {
  background: rgba(12,6,24,.6) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #f3e8ff !important;
}
html[data-theme="dark"] .prod .meta,
html[data-theme="dark"] .note-item { background: rgba(255,255,255,.06) !important; }
html[data-theme="dark"] .note-item.unread { background: rgba(168,85,247,.18) !important; }

/* Invest cards — purple not red */
.plan-card, .plan-card.featured {
  background: #fff !important;
  border: 1px solid #eadff8 !important;
  color: #2a1848 !important;
}
.plan-badge, .inv-badge, .vip-badge {
  background: linear-gradient(145deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  border: none !important;
}
.plan-photo {
  width: 72px; height: 72px; border-radius: 14px;
  object-fit: cover; flex-shrink: 0;
  background: #f3e8ff;
}
.buy-btn, .claim-btn {
  background: linear-gradient(90deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  border: none !important;
}
.buy-btn:disabled, .claim-btn:disabled {
  background: #e9e2f3 !important;
  color: #9ca3af !important;
}
.chip, .tag {
  background: #f3e8ff !important;
  color: #6d28d9 !important;
}
.bar i { background: linear-gradient(90deg, #7c3aed, #db2777) !important; }

/* Dark mode — readable text everywhere */
html[data-theme="dark"] body,
html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] small,
html[data-theme="dark"] label,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong,
html[data-theme="dark"] .k,
html[data-theme="dark"] .v,
html[data-theme="dark"] .lbl,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .note,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .page-title h1,
html[data-theme="dark"] .hello strong,
html[data-theme="dark"] .stat-box .k,
html[data-theme="dark"] .stat-box .v,
html[data-theme="dark"] .tier,
html[data-theme="dark"] .tier strong,
html[data-theme="dark"] .prod,
html[data-theme="dark"] .prod h3,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .plan-card h3,
html[data-theme="dark"] .vip-info,
html[data-theme="dark"] .vip-info strong,
html[data-theme="dark"] .vip-info span,
html[data-theme="dark"] .member,
html[data-theme="dark"] .member strong,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .section-head h2 {
  color: #f4ecff !important;
}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .k,
html[data-theme="dark"] .stat-box .k,
html[data-theme="dark"] .vip-info span,
html[data-theme="dark"] .tier div,
html[data-theme="dark"] .hint {
  color: #d6c7ea !important;
}
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .app-section {
  background: rgba(32, 18, 56, 0.92) !important;
}
html[data-theme="dark"] a { color: #e9d5ff !important; }

html { background: #f4effb !important; }
html[data-theme="light"] body {
  color: #1e1233 !important;
  background:
    linear-gradient(180deg, rgba(244,239,251,0.78) 0%, rgba(244,239,251,0.94) 240px, #f4effb 100%),
    url('../images/hero-bull.jpg') center 8% / cover no-repeat fixed !important;
}
html[data-theme="light"] .card,
html[data-theme="light"] .app-section,
html[data-theme="light"] .panel,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .stat-box,
html[data-theme="light"] .notice,
html[data-theme="light"] .tier,
html[data-theme="light"] .prod,
html[data-theme="light"] .bal-pill,
html[data-theme="light"] .notif-panel {
  background: #ffffff !important;
  color: #1e1233 !important;
  border-color: #eadff8 !important;
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] strong,
html[data-theme="light"] .page-title,
html[data-theme="light"] .section-title,
html[data-theme="light"] .hello strong,
html[data-theme="light"] .amt,
html[data-theme="light"] .v,
html[data-theme="light"] .plan-card h3 {
  color: #1e1233 !important;
}
html[data-theme="light"] .muted,
html[data-theme="light"] .k,
html[data-theme="light"] .lead,
html[data-theme="light"] .hint,
html[data-theme="light"] .hello small {
  color: #6b5b80 !important;
}
html[data-theme="light"] .bottom-nav,
html[data-theme="light"] nav.bottom-nav {
  background: rgba(255,255,255,.96) !important;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] .form-control {
  background: #fff !important;
  color: #1e1233 !important;
  border-color: #e9dff7 !important;
}

.lang-wrap { position: relative; }
.lang-menu {
  display: none;
  position: absolute;
  top: 44px; right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #eadff8;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(76,29,149,.18);
  padding: 6px;
  z-index: 80;
}
.lang-wrap.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: transparent;
  border-radius: 10px; color: #2a1848; font-weight: 600; cursor: pointer;
}
.lang-menu button.active, .lang-menu button:hover { background: #f3e8ff; color: #6d28d9; }
html[data-theme="dark"] .lang-menu { background: #201238; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .lang-menu button { color: #f4ecff; }
html[data-theme="dark"] .lang-menu button.active { background: rgba(168,85,247,.25); color: #f5d0fe; }
.plan-photo { width: 86px !important; height: 86px !important; border-radius: 16px; object-fit: cover; background: #f3e8ff; }
.hello strong, .app-top .title { color: #2a1848 !important; }
html[data-theme="dark"] .hello strong, html[data-theme="dark"] .app-top .title { color: #f8f4ff !important; }
.lang-menu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: #2a1848; font-weight: 600; text-decoration: none;
}
.lang-menu a.active, .lang-menu a:hover { background: #f3e8ff; color: #6d28d9; }
html[data-theme="dark"] .lang-menu a { color: #f4ecff; }
html[data-theme="dark"] .lang-menu a.active { background: rgba(168,85,247,.25); color: #f5d0fe; }
.icon-btn { color: #2a1848 !important; background: #fff !important; border-color: #eadff8 !important; }
html[data-theme="dark"] .icon-btn { color: #fff !important; background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.25) !important; }

.bal-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.bal-head .lbl { font-size:11px; color:#6b5b80; text-transform:uppercase; font-weight:800; letter-spacing:.08em; }
.fx-switch { position:relative; }
.fx-switch summary {
  list-style:none; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  padding:7px 12px; border-radius:999px;
  background:linear-gradient(135deg,#7c3aed,#db2777);
  color:#fff; font-weight:800; font-size:12px;
  box-shadow:0 8px 20px rgba(124,58,237,.28);
}
.fx-switch summary::-webkit-details-marker { display:none; }
.fx-switch summary i { font-size:10px; opacity:.85; }
.fx-flag { font-size:14px; line-height:1; }
.fx-menu {
  position:absolute; right:0; top:calc(100% + 8px); z-index:30;
  width:min(320px, calc(100vw - 48px));
  background:#fff; border:1px solid #eadff8; border-radius:18px;
  box-shadow:0 22px 50px rgba(76,29,149,.22);
  padding:8px; max-height:320px; overflow:auto;
}
.fx-menu-title { font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#6b5b80; padding:8px 10px 6px; }
.fx-opt {
  display:flex; align-items:center; gap:10px;
  padding:10px; border-radius:12px; text-decoration:none; color:#2a1848;
}
.fx-opt:hover, .fx-opt.on { background:#f3e8ff; }
.fx-meta { flex:1; min-width:0; }
.fx-meta strong { display:block; font-size:13px; }
.fx-meta small { color:#6b5b80; font-size:11px; }
.fx-amt { font-size:12px; font-weight:800; color:#6d28d9; }
.fx-sub { margin-top:4px; font-size:12px; color:#6b5b80; }
html[data-theme="dark"] .fx-menu { background:#201238; border-color:rgba(255,255,255,.1); }
html[data-theme="dark"] .fx-opt { color:#f4ecff; }
html[data-theme="dark"] .fx-opt.on, html[data-theme="dark"] .fx-opt:hover { background:rgba(168,85,247,.2); }
html[data-theme="dark"] .fx-amt { color:#f5d0fe; }
html[data-theme="dark"] .fx-sub, html[data-theme="dark"] .fx-meta small, html[data-theme="dark"] .bal-head .lbl { color:#d6c7ea; }

.lang-form { margin:0; }
.lang-form select {
  height:36px; border-radius:999px; padding:0 12px;
  border:1px solid #eadff8; background:#fff; color:#2a1848;
  font-weight:700; font-size:12px; max-width:128px;
}
html[data-theme="dark"] .lang-form select {
  background:rgba(32,18,56,.92); color:#f4ecff; border-color:rgba(255,255,255,.16);
}
