/* ============================================================
   AI Universal Translator - light premium theme
   White canvas, brand navy text, blue primary, gold + cyan accents.
   Loaded AFTER the inline styles in index.html, so it overrides them.
   ============================================================ */
:root {
  --navy: #001843;
  --navy-2: #002866;
  --blue: #1457D9;
  --blue-2: #2F7BFF;
  --gold: #FDC500;
  --cyan: #A2F4FD;

  --primary: var(--navy);
  --bg: #F7FAFF;
  --secondary: #EEF3FF;                 /* input / chip background */
  --surface-glass: #FFFFFF;
  --border-glass: rgba(20, 87, 217, .14);
  --text: #0B1B3F;
  --text-muted: #5B6B8C;
  --highlight: #1457D9;                 /* was cyan text on dark: now brand blue */
  --accent: #9A6F00;                    /* gold, dark enough to read as text on white */
  --shadow-sm: 0 2px 8px rgba(0, 40, 102, .06);
  --shadow-md: 0 10px 30px rgba(0, 40, 102, .09);
  --shadow-lg: 0 24px 60px rgba(0, 40, 102, .14);
  --radius: 20px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body::before {                           /* soft premium wash, strongest at the top */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(47, 123, 255, .16), transparent 70%),
    radial-gradient(700px 380px at -5% 12%, rgba(162, 244, 253, .30), transparent 70%),
    radial-gradient(600px 300px at 60% 105%, rgba(253, 197, 0, .10), transparent 70%);
}
.ambient-glow-1, .ambient-glow-2 { display: none; }
::selection { background: rgba(47, 123, 255, .22); }

/* ---------- Header ---------- */
header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(20, 87, 217, .10);
  box-shadow: 0 1px 0 rgba(255,255,255,.8), var(--shadow-sm);
}
.logo-mirror {
  background: linear-gradient(145deg, var(--blue-2), var(--navy-2));
  border: none; color: #fff;
  box-shadow: 0 6px 16px rgba(20, 87, 217, .35);
}
.logo-text { color: var(--navy); }
.logo-text span { color: var(--blue); }
.nav-link {
  color: var(--text-muted); padding: 7px 12px; border-radius: 999px; font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-link:hover { color: var(--blue); background: rgba(47, 123, 255, .08); }
.nav-link.active { color: var(--blue); background: rgba(47, 123, 255, .12); }
#nav-admin { color: var(--accent) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; padding: 9px 16px; font-weight: 700; font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn-outline {
  background: #fff; color: var(--blue);
  border: 1px solid rgba(20, 87, 217, .22); box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: #F2F7FF; border-color: var(--blue); }
.btn-accent {
  background: linear-gradient(135deg, var(--blue-2), var(--blue) 55%, var(--navy-2));
  color: #fff; border: none;
  box-shadow: 0 8px 20px rgba(20, 87, 217, .30);
}
.btn-accent:hover { background: linear-gradient(135deg, #4a8bff, #1a63ee 55%, #0a3a8f); box-shadow: 0 10px 24px rgba(20, 87, 217, .38); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(253, 197, 0, .35); }
.badge-credits {
  background: #FFF7D6; color: #7A5900; border: 1px solid rgba(253, 197, 0, .6);
}

/* ---------- Cards ---------- */
.glass-card {
  background: #fff; border: 1px solid rgba(20, 87, 217, .10);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.view-bar { background: linear-gradient(180deg, var(--bg) 60%, rgba(247, 250, 255, 0)); }
.view-close, .modal-x { background: #fff; color: var(--text-muted); border: 1px solid var(--border-glass); box-shadow: var(--shadow-sm); }

/* ---------- Translator ---------- */
.trans-box { background: #fff; border: 1px solid rgba(20, 87, 217, .14); border-radius: 18px; box-shadow: var(--shadow-sm); }
.trans-box:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 123, 255, .12); }
.trans-header { background: #F5F8FF; border-bottom: 1px solid rgba(20, 87, 217, .08); }
.trans-footer { background: #FAFCFF; border-top: 1px solid rgba(20, 87, 217, .08); color: var(--text-muted); }
.trans-textarea { color: var(--text); font-family: inherit; }
.trans-textarea::placeholder { color: #9AA8C4; }
.lang-select, #dash-extra input, #dash-extra select, #dash-extra textarea,
#login-modal input, #register-modal input, #forgot-modal input, #reset-modal input, #delete-modal input,
#history-search-input {
  background: #fff !important; color: var(--text) !important;
  border: 1px solid rgba(20, 87, 217, .18) !important; border-radius: 12px !important;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-2) !important; box-shadow: 0 0 0 4px rgba(47, 123, 255, .12); }
.swap-btn {
  background: #fff; color: var(--blue); border: 1px solid rgba(20, 87, 217, .22);
  box-shadow: var(--shadow-md);
}
.swap-btn:hover { box-shadow: 0 10px 24px rgba(20, 87, 217, .25); }

/* floating mirror launcher */
.in-app-mirror {
  background: #fff; color: var(--blue); border: 2px solid rgba(47, 123, 255, .55);
  box-shadow: 0 10px 28px rgba(20, 87, 217, .30);
}

/* ---------- Tables ---------- */
.data-table th, .data-table td, #dash-extra th, #dash-extra td { border-bottom: 1px solid rgba(20, 87, 217, .09); }
.data-table th { color: var(--text-muted); }
.data-table tr:hover td { background: #F5F8FF; }

/* ---------- Modals = clean full-screen sign-in pages ---------- */
.modal-backdrop {
  background:
    radial-gradient(520px 360px at 100% 0, rgba(47, 123, 255, .20), transparent 70%),
    radial-gradient(520px 360px at 0 100%, rgba(162, 244, 253, .45), transparent 70%),
    #F7FAFF;
  backdrop-filter: none;
}
.modal-card {
  background: #fff; border: 1px solid rgba(20, 87, 217, .10);
  border-radius: 28px; padding: 32px 28px; max-width: 420px;
  box-shadow: var(--shadow-lg); color: var(--text);
}
.modal-card h3 { color: var(--navy) !important; font-size: 24px; text-align: center; letter-spacing: -.3px; }
.modal-card p { text-align: center; }
.auth-logo {
  width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--blue-2), var(--navy-2)); color: #fff;
  box-shadow: 0 14px 30px rgba(20, 87, 217, .35);
}
.auth-sub { color: var(--text-muted); font-size: 13px; text-align: center; margin: -8px 0 18px; }
.field { position: relative; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7F90B3; pointer-events: none; }
.field input { width: 100%; padding: 13px 14px 13px 44px !important; font-size: 15px; }
.auth-primary { width: 100%; justify-content: center; padding: 14px; font-size: 16px; border-radius: 16px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-alt a { color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #8D9BB9; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(20, 87, 217, .14); }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; margin: 24px 0 48px; }
.hero-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(20, 87, 217, .14); color: var(--blue); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -1.5px; margin: 18px 0 16px; color: var(--navy); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-2), var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.hero-trust b { color: var(--navy); font-size: 20px; display: block; letter-spacing: -.5px; }

.phone-mock {
  background: #fff; border-radius: 34px; padding: 18px; max-width: 360px; margin: 0 auto; position: relative;
  border: 1px solid rgba(20, 87, 217, .10); box-shadow: var(--shadow-lg);
}
.phone-mock::before { content: ""; position: absolute; inset: -26px -20px auto auto; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 197, 0, .30), transparent 70%); z-index: -1; }
.pm-langs { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pm-lang { flex: 1; background: #F2F6FF; border-radius: 14px; padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--navy); }
.pm-lang small { display: block; color: var(--text-muted); font-weight: 500; font-size: 11px; }
.pm-swap { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border-glass); display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow-sm); }
.pm-box { border-radius: 18px; border: 1px solid rgba(20, 87, 217, .12); padding: 14px; margin-bottom: 10px; }
.pm-box small { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.pm-box div { font-size: 18px; font-weight: 700; margin-top: 4px; color: var(--navy); line-height: 1.4; }
.pm-box.out { background: linear-gradient(180deg, #F5F9FF, #fff); }
.pm-box.out div { color: var(--blue); }
.pm-mic { width: 64px; height: 64px; border-radius: 50%; margin: 14px auto 2px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--navy-2)); box-shadow: 0 0 0 8px rgba(47, 123, 255, .12), 0 12px 24px rgba(20, 87, 217, .35); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.quick { background: #fff; border: 1px solid rgba(20, 87, 217, .10); border-radius: 22px; padding: 20px 14px; text-align: center; cursor: pointer; box-shadow: var(--shadow-md); transition: transform .18s, box-shadow .18s; }
.quick:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--blue-2), var(--blue)); box-shadow: 0 10px 20px rgba(20, 87, 217, .28); }
.quick:nth-child(2) .ic { background: linear-gradient(145deg, #22C3D6, #0E8FB0); box-shadow: 0 10px 20px rgba(14, 143, 176, .28); }
.quick:nth-child(3) .ic { background: linear-gradient(145deg, #FFD83A, #E8A900); box-shadow: 0 10px 20px rgba(232, 169, 0, .3); color: var(--navy); }
.quick:nth-child(4) .ic { background: linear-gradient(145deg, #3D5BD9, var(--navy-2)); }
.quick b { display: block; color: var(--navy); font-size: 15px; }
.quick span { font-size: 12px; color: var(--text-muted); }
.section-title { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; margin: 0 0 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feat { padding: 22px; }
.feat .ic2 { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #EAF1FF; color: var(--blue); margin-bottom: 14px; }
.feat h3 { color: var(--navy) !important; font-size: 17px; margin-bottom: 6px !important; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid rgba(20, 87, 217, .12); border-radius: 24px; padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); position: relative; transition: transform .18s, box-shadow .18s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 18px; color: var(--navy); }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--navy); margin: 10px 0 2px; }
.plan .price small { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan .desc { font-size: 13px; color: var(--text-muted); margin: 6px 0 16px; line-height: 1.5; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; margin-bottom: 24px; color: var(--text); }
.plan li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 9px; border-radius: 50%; background: #E3F7EA; color: #17884A; font-size: 11px; font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; padding: 12px; border-radius: 14px; }
.plan.popular { background: linear-gradient(180deg, #0A2A6B, var(--navy)); border-color: transparent; color: #fff; box-shadow: 0 24px 50px rgba(0, 24, 67, .35); transform: translateY(-6px); }
.plan.popular h3, .plan.popular .price { color: #fff; }
.plan.popular .price small, .plan.popular .desc { color: #B8C7E6; }
.plan.popular ul { color: #EAF0FF; }
.plan.popular li::before { background: rgba(253, 197, 0, .2); color: var(--gold); }
.plan.popular .btn-accent { background: var(--gold); color: var(--navy); box-shadow: 0 10px 22px rgba(253, 197, 0, .35); }
.pop-badge { position: absolute; top: -13px; right: 20px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 11px; padding: 5px 12px; border-radius: 999px; letter-spacing: .4px; box-shadow: 0 6px 14px rgba(253, 197, 0, .4); }

/* ---------- Voice ---------- */
#voice-mic {
  width: 112px !important; height: 112px !important; border: none; color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--navy-2));
  box-shadow: 0 0 0 10px rgba(47, 123, 255, .10), 0 0 0 22px rgba(47, 123, 255, .06), 0 18px 36px rgba(20, 87, 217, .38);
  transition: box-shadow .2s, transform .2s;
}
#voice-mic:hover { transform: scale(1.04); }

/* ---------- Footer / misc ---------- */
footer, body > div[style*="text-align:center"] a { color: var(--blue) !important; }
#dash-extra h3 { color: var(--navy); }
#my-plan-card { background: linear-gradient(135deg, #fff, #F3F8FF); }

/* ---------- Mobile bottom bar ---------- */
.bottom-nav { display: none; }
@media (max-width: 1024px) {
  #nav-links { display: none !important; }
  header { flex-wrap: nowrap; padding: 10px 14px; }
  .auth-section .btn { padding: 8px 12px; font-size: 12px; }
  #auth-user .btn { display: none; }
  main { padding: 18px 14px 120px; }
  .view-bar { top: 58px; }
  .hero { grid-template-columns: 1fr; gap: 28px; margin-top: 8px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .plan.popular { transform: none; }
  .in-app-mirror { bottom: 96px; right: 16px; width: 48px; height: 48px; }
  .bottom-nav {
    display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1500; height: 66px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px);
    border-radius: 26px; border: 1px solid rgba(20, 87, 217, .10);
    box-shadow: 0 14px 40px rgba(0, 40, 102, .22);
  }
  .bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: #8D9BB9; font-size: 10.5px; font-weight: 700; cursor: pointer; background: none; border: none; font-family: inherit; }
  .bn-item.active { color: var(--blue); }
  .bn-item.active svg { filter: drop-shadow(0 4px 6px rgba(20, 87, 217, .3)); }
  .bn-fab { position: relative; height: 100%; display: flex; justify-content: center; }
  .bn-fab button { position: absolute; top: -26px; width: 66px; height: 66px; border-radius: 50%; border: 5px solid #F7FAFF; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--blue-2), var(--navy-2)); box-shadow: 0 12px 26px rgba(20, 87, 217, .45); display: grid; place-items: center; }
}
@media (max-width: 420px) {
  .logo-text { font-size: 15px; }
  .modal-card { padding: 26px 20px; }
}
[dir="rtl"] .field svg { left: auto; right: 14px; }
[dir="rtl"] .field input { padding: 13px 44px 13px 14px !important; }

/* header: never wrap labels */
.btn, .nav-link, .badge-credits { white-space: nowrap; }
header { gap: 14px; }
nav { gap: 2px; }
.nav-link { padding: 7px 10px; font-size: 13.5px; }
@media (max-width: 1180px) { .nav-link { padding: 7px 8px; font-size: 13px; } }

@media (max-width: 520px) {
  header { padding: 8px 10px; gap: 8px; }
  #auth-buttons .btn-outline { display: none; }
  .auth-section { gap: 6px; margin-left: auto; }
  header select { max-width: 78px; font-size: 12px; padding: 6px 4px; }
  .logo-text { font-size: 14px; line-height: 1.1; }
  .logo-mirror { width: 32px; height: 32px; }
}

@media (max-width: 520px) {
  .logo-text { display: none; }
  header { overflow: hidden; }
  body > div[style*="text-align:center"] { padding-bottom: 110px !important; line-height: 2; overflow-wrap: anywhere; }
  #voice-mic { width: 96px !important; height: 96px !important; }
}
html, body { max-width: 100%; overflow-x: hidden; }
#voice-mic { display: inline-grid; place-items: center; }
#voice-mic.rec, #voice-mic[style*="EF4444"] { box-shadow: 0 0 0 10px rgba(239, 68, 68, .14), 0 0 0 22px rgba(239, 68, 68, .08), 0 18px 36px rgba(239, 68, 68, .4); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
@media (max-width: 1024px) { .in-app-mirror { display: none; } }
.modal-card h3 { margin: 0 0 6px !important; line-height: 1.2; }
.auth-sub { margin: 0 0 20px !important; }

/* =====================================================================
   Premium pass: multi-colour mesh gradients, soft shadows, app-style home and voice
   ===================================================================== */
:root {
  --mesh: radial-gradient(circle at 90% 12%, rgba(162, 244, 253, .65), transparent 38%),
          linear-gradient(135deg, #2F7BFF, #1457D9 55%, #002866);
  --mesh-navy: radial-gradient(circle at 96% 0%, rgba(34, 195, 214, .65), transparent 46%),
          radial-gradient(circle at 0% 100%, rgba(253, 197, 0, .4), transparent 46%),
          radial-gradient(circle at 5% 0%, rgba(47, 123, 255, .5), transparent 46%),
          linear-gradient(160deg, #0B2E78, #001843);
  --shadow-card: 0 10px 28px rgba(20, 87, 217, .13), 0 2px 6px rgba(0, 40, 102, .06);
}
.btn-accent, .logo-mirror, .auth-logo, .pm-mic, #voice-mic, .bn-fab button, .quick .ic { background: var(--mesh) !important; }
.btn-accent { box-shadow: 0 10px 24px rgba(20, 87, 217, .38) !important; }
.plan.popular { background: var(--mesh-navy) !important; }
.plan.popular .btn-accent { background: var(--gold) !important; }
.glass-card, .plan, .quick, .trans-box { box-shadow: var(--shadow-card); }

/* desktop landing hero becomes one big mesh-gradient card */
.hero.desk-only { background: var(--mesh); border-radius: 34px; padding: 44px; box-shadow: 0 30px 70px rgba(20, 87, 217, .32); color: #fff; }
.hero.desk-only h1, .hero.desk-only h1 em { color: #fff; background: none; -webkit-text-fill-color: #fff; }
.hero.desk-only p.lead, .hero.desk-only .hero-trust, .hero.desk-only .hero-trust b { color: #E4EEFF; }
.hero.desk-only .hero-pill { background: rgba(255, 255, 255, .92); }
.hero.desk-only .btn-accent { background: #fff !important; color: var(--blue); box-shadow: 0 10px 24px rgba(0, 24, 67, .3) !important; }
.hero.desk-only .btn-outline { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }

/* app-style home (phones and tablets) */
.app-home { display: none; }
@media (max-width: 1024px) {
  .desk-only { display: none !important; }
  .app-home { display: block; max-width: 560px; margin: 0 auto; }
  .ah-top { margin: 4px 2px 18px; } .ah-top small { display: block; color: var(--text-muted); font-size: 12.5px; } .ah-top b { font-size: 22px; color: var(--navy); letter-spacing: -.3px; }
  .ah-hero { border-radius: 30px; padding: 20px; color: #fff; background: var(--mesh); box-shadow: 0 18px 38px rgba(20, 87, 217, .38); margin-bottom: 26px; }
  .ah-row { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
  .ah-ring { position: relative; width: 84px; height: 84px; flex: none; } .ah-ring svg { width: 84px; height: 84px; display: block; } .ah-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; }
  .ah-row small { display: block; color: #DCE8FF; font-size: 12px; } .ah-row strong { display: block; font-size: 25px; line-height: 1.2; letter-spacing: -.5px; }
  .ah-start { width: 100%; height: 54px; border: 0; border-radius: 18px; background: #fff; color: var(--blue); font: 800 15px inherit; font-family: inherit; box-shadow: 0 10px 22px rgba(0, 24, 67, .28); cursor: pointer; }
  .ah-sec { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 14px; } .ah-sec b { font-size: 18px; color: var(--navy); } .ah-sec a { color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
  .ah-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
  .ah-tile { position: relative; background: #fff; border: 1px solid rgba(20, 87, 217, .09); border-radius: 22px; padding: 14px 4px 12px; text-align: center; box-shadow: var(--shadow-card); cursor: pointer; font-size: 11.5px; font-weight: 800; color: var(--navy); }
  .ah-tile .ic { width: 46px; height: 46px; border-radius: 15px; margin: 0 auto 8px; display: grid; place-items: center; color: #fff; }
  .ah-tile .c1 { background: linear-gradient(145deg, #2F7BFF, #1457D9); box-shadow: 0 8px 16px rgba(20, 87, 217, .3); }
  .ah-tile .c2 { background: linear-gradient(145deg, #22C3D6, #0E8FB0); box-shadow: 0 8px 16px rgba(14, 143, 176, .3); }
  .ah-tile .c3 { background: linear-gradient(145deg, #FFD83A, #E8A900); color: var(--navy); box-shadow: 0 8px 16px rgba(232, 169, 0, .32); }
  .ah-tile .c4 { background: linear-gradient(145deg, #3D5BD9, #002866); box-shadow: 0 8px 16px rgba(0, 40, 102, .3); }
  .ah-tile .c5 { background: linear-gradient(145deg, #34C98A, #17884A); box-shadow: 0 8px 16px rgba(23, 136, 74, .3); }
  .ah-tile .c6 { background: linear-gradient(145deg, #FF7A9E, #D93A66); box-shadow: 0 8px 16px rgba(217, 58, 102, .3); }
  .ah-tile em { position: absolute; top: -6px; right: 6px; background: #EF4444; color: #fff; font-style: normal; font-size: 9px; padding: 2px 7px; border-radius: 9px; }
  .ah-card { background: #fff; border: 1px solid rgba(20, 87, 217, .09); border-radius: 22px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow-card); }
  .ah-card small { color: var(--text-muted); font-size: 11.5px; } .ah-card b { display: block; margin: 4px 0 2px; color: var(--text); } .ah-card span { color: var(--blue); font-weight: 800; }
  .ah-none { color: var(--text-muted); font-size: 13px; padding: 0 4px 14px; }
  .ah-voice { background: #fff; border: 1px solid rgba(20, 87, 217, .09); border-radius: 28px; padding: 22px 16px 18px; text-align: center; box-shadow: var(--shadow-card); cursor: pointer; margin-bottom: 20px; }
  .ah-voice small { color: var(--text-muted); font-size: 13px; }
}

/* mic with halo (home voice card and voice screen) */
.halo { position: relative; width: 150px; height: 150px; margin: 0 auto 8px; display: grid; place-items: center; }
.halo i { position: absolute; border-radius: 50%; background: rgba(47, 123, 255, .1); } .halo .r1 { width: 150px; height: 150px; } .halo .r2 { width: 116px; height: 116px; background: rgba(47, 123, 255, .15); }
.halo .mic, .halo #voice-mic { position: relative; width: 84px !important; height: 84px !important; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; box-shadow: 0 16px 30px rgba(20, 87, 217, .45) !important; background: var(--mesh); }
.halo #voice-mic { cursor: pointer; }
@keyframes micpulse { 50% { transform: scale(1.06); } }

/* voice screen (design C) */
#view-voice { max-width: 560px; margin: 0 auto; }
.vc-langs { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.vc-lang { flex: 1; min-width: 0; background: #fff; border: 1px solid rgba(20, 87, 217, .09); border-radius: 20px; padding: 10px 14px; box-shadow: var(--shadow-card); }
.vc-lang small { display: block; color: var(--text-muted); font-size: 10.5px; font-weight: 700; } .vc-lang b { font-size: 15px; color: var(--navy); display: block; padding-top: 6px; }
.vc-lang select { width: 100%; border: 0 !important; padding: 4px 0 !important; box-shadow: none !important; font-weight: 800; color: var(--navy) !important; background: transparent !important; }
.vc-swap { align-self: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border-glass); display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow-card); flex: none; }
.vc-modes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; } .vc-modes label { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.vc-say { padding: 16px 18px; margin-bottom: 16px; } .vc-say small { color: var(--text-muted); font-weight: 700; font-size: 12px; } .vc-say p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin: 6px 0 10px; } .vc-auto { font-size: 13px; display: flex; gap: 8px; align-items: center; }
#voice-log .glass-card { background: linear-gradient(180deg, #F3F8FF, #fff); border-radius: 22px; margin-bottom: 14px; }
.vc-mic { text-align: center; margin: 10px 0 18px; } #voice-status { font-size: 13px; color: var(--text-muted); min-height: 20px; }
.vc-strip { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid rgba(20, 87, 217, .09); border-radius: 22px; padding: 12px 16px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.vc-strip .bolt { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #FFD83A, #E8A900); color: var(--navy); flex: none; } .vc-strip b { flex: 1; font-size: 13.5px; color: var(--navy); } .vc-strip a { color: var(--blue); font-weight: 800; font-size: 13px; cursor: pointer; }

.ah-trbig { padding: 22px 16px 18px !important; } .ah-trbig b { display: block; color: var(--navy); font-size: 16px; margin: 10px 0 2px; }
.ah-trbig .bigic { width: 88px; height: 88px; border-radius: 28px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: var(--mesh); box-shadow: 0 16px 30px rgba(20, 87, 217, .42); }

.ah-mirrorbig b { display: block; color: var(--navy); font-size: 16px; margin: 4px 0 2px; }
