:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #5c6878;
  --line: #e1e6ee;
  --primary: #0f3d6e;
  --primary-soft: #e6eef8;
  --accent: #e8860c;
  --accent-soft: #fff3e2;
  --ok: #1a7f4b;
  --ok-soft: #e3f5ea;
  --bad: #c0392b;
  --bad-soft: #fdecea;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 2px 10px rgba(16, 32, 64, .05);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141d; --card: #161e2a; --text: #e6ebf2; --muted: #9aa6b6; --line: #263142;
    --primary: #7db4ef; --primary-soft: #1b2c42; --accent: #f3a443; --accent-soft: #33260f;
    --ok: #4cc283; --ok-soft: #14301f; --bad: #f07b6e; --bad-soft: #3a1b18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e141d; --card: #161e2a; --text: #e6ebf2; --muted: #9aa6b6; --line: #263142;
  --primary: #7db4ef; --primary-soft: #1b2c42; --accent: #f3a443; --accent-soft: #33260f;
  --ok: #4cc283; --ok-soft: #14301f; --bad: #f07b6e; --bad-soft: #3a1b18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Mukta", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
a { color: var(--primary); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .4em; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.02rem; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { border-radius: 9px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 1.15rem; color: var(--primary); }
.brand small { font-size: .78rem; color: var(--muted); }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 24px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0 7px;
  font-size: .78rem; color: var(--muted);
}
.tabbar a span { font-size: 1.2rem; line-height: 1.3; }
.tabbar a.on { color: var(--primary); font-weight: 600; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px;
  background: var(--primary); color: #fff; padding: 9px 16px; font-weight: 600; min-height: 42px;
}
:root[data-theme="dark"] .btn:not(.ghost) { color: #0e141d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost) { color: #0e141d; } }
.btn.ghost { background: var(--primary-soft); color: var(--primary); }
.btn.accent { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 12px;
  font-size: .88rem; color: var(--muted); white-space: nowrap;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
:root[data-theme="dark"] .chip.on { color: #0e141d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { color: #0e141d; } }
.tag { display: inline-block; font-size: .78rem; padding: 1px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }

/* date strip */
.datebar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.datebar .when { flex: 1; text-align: center; font-weight: 600; }
.datebar button { min-width: 42px; }

/* news */
.news h2 { font-size: 1.08rem; margin: 6px 0 4px; }
.news p { margin: 0 0 8px; }
.exam-point { background: var(--accent-soft); border-radius: 10px; padding: 7px 11px; font-size: .93rem; margin-bottom: 8px; }
.news .meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); gap: 8px; }
.news .meta a { white-space: nowrap; }
.star { color: var(--accent); letter-spacing: -2px; }

/* mcq */
.q { font-weight: 600; margin-bottom: 8px; }
.opts { display: grid; gap: 7px; }
.opt {
  text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.opt b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: .8rem; }
.opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.explain { margin-top: 8px; font-size: .92rem; background: var(--primary-soft); border-radius: 10px; padding: 8px 11px; }

/* exams */
.exam-card { display: block; color: var(--text); }
.exam-card h2 { color: var(--primary); margin-bottom: 2px; }
.group-title { font-size: .9rem; color: var(--muted); margin: 16px 2px 6px; font-weight: 600; }
.tabs { display: flex; gap: 4px; background: var(--card); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 12px; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 4px; font-size: .92rem; color: var(--muted); }
.tabs button.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.tablewrap { overflow-x: auto; }

details.subject { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
details.subject > summary { list-style: none; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
details.subject > summary::-webkit-details-marker { display: none; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; background: var(--ok); }
.topic { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--line); }
.topic input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.topic .t { flex: 1; min-width: 0; }
.topic .t small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* notes */
:root {
  --b1: #1f6fd1; --b2: #d9480f; --b3: #2b8a3e; --b4: #9c36b5; --b5: #0c8599; --b6: #c2255c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --b1: #74b0f5; --b2: #ff8f5a; --b3: #69db7c; --b4: #da77f2; --b5: #3bc9db; --b6: #f783ac; }
}
:root[data-theme="dark"] { --b1: #74b0f5; --b2: #ff8f5a; --b3: #69db7c; --b4: #da77f2; --b5: #3bc9db; --b6: #f783ac; }
.notes p { margin: 0 0 8px; }
.notes ul, .notes ol { margin: 4px 0 6px; padding-left: 22px; }
.notes li { margin-bottom: 4px; }
.notes table { margin-top: 6px; }
.notes section { scroll-margin-top: 110px; }
.notes h2 { margin-top: 18px; }
.remember { background: var(--accent-soft); }
.notes-nav { position: sticky; top: 51px; z-index: 4; background: var(--bg); padding: 6px 0 2px; margin-bottom: 6px; }
.notes-nav .chips { padding-bottom: 4px; }
.revtoggle { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.revtoggle input { width: 17px; height: 17px; accent-color: var(--primary); }
.notes.rev .detail { display: none; }
.summary ol { padding-left: 24px; }
.summary li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.summary li:last-child { border-bottom: 0; }

/* memory map: centre node with branches hanging off a trunk line */
.mm-center {
  position: relative; margin: 0 auto; width: fit-content; max-width: 100%; text-align: center;
  background: var(--primary); color: #fff; font-weight: 700; border-radius: 999px; padding: 8px 20px; font-size: 1.05rem;
}
:root[data-theme="dark"] .mm-center { color: #0e141d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mm-center { color: #0e141d; } }
.mm-branches {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--line);
}
.mm-branches::before { content: ""; position: absolute; top: -20px; left: 50%; width: 2px; height: 18px; background: var(--line); }
.mm-branch { border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); border-top: 4px solid var(--c); border-radius: 12px; padding: 8px 10px; background: color-mix(in srgb, var(--c) 6%, var(--card)); }
.mm-label { font-weight: 700; color: var(--c); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.mm-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.mm-items { display: flex; flex-wrap: wrap; gap: 5px; }
.mm-items span { font-size: .85rem; line-height: 1.35; padding: 3px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.disclaimer { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 10px; margin: 10px 0; }

/* test */
.testbar { position: sticky; top: 51px; z-index: 5; display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 12px; margin-bottom: 10px; gap: 8px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }
.timer.low { color: var(--bad); }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
.palette button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; height: 36px; font-size: .82rem; }
.palette button.ans { background: var(--ok-soft); border-color: var(--ok); }
.palette button.cur { outline: 2px solid var(--primary); }
.palette button.right { background: var(--ok-soft); border-color: var(--ok); }
.palette button.wrong { background: var(--bad-soft); border-color: var(--bad); }
.score { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-top: 10px; }
.stats div { background: var(--bg); border-radius: 10px; padding: 6px 2px; font-size: .8rem; color: var(--muted); }
.stats b { display: block; font-size: 1.1rem; color: var(--text); }

/* account, plans, lock */
.acct-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; height: 36px; min-width: 36px; padding: 0 12px; font-size: .88rem; font-weight: 600; color: var(--primary); overflow: hidden; display: grid; place-items: center; }
.acct-btn.in { padding: 0; width: 36px; }
.acct-btn img { width: 36px; height: 36px; object-fit: cover; }
.pro-link { font-weight: 700; font-size: .9rem; color: var(--accent); white-space: nowrap; }
.avatar { width: 48px; height: 48px; border-radius: 50%; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8, 15, 30, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 18px; } }
.sheet .close { position: absolute; top: 10px; right: 10px; }
.input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg); color: var(--text); font: inherit; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .92rem; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.lock { border: 2px solid var(--accent); position: relative; }
.lock ul { padding-left: 20px; }
.ghost-lines { margin: -4px 0 12px; filter: blur(3px); opacity: .5; }
.ghost-lines i { display: block; height: 10px; border-radius: 6px; background: var(--muted); margin: 8px 0; }
.ghost-lines i:nth-child(2) { width: 85%; } .ghost-lines i:nth-child(3) { width: 92%; } .ghost-lines i:nth-child(4) { width: 60%; }
.plan-btns { display: grid; gap: 8px; margin: 10px 0; }
.plan .price { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 2px 0 6px; }
.plan.pro { border: 2px solid var(--accent); }
.plan ul { padding-left: 20px; }
.legal-links { margin-top: 10px; font-size: .8rem; text-align: center; }
.legal h3 { margin-top: 14px; }

/* descriptive practice + AI evaluation */
.passage { background: var(--bg); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: .95rem; white-space: pre-wrap; }
.answer-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.answer-box > summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.answer-box textarea { width: 100%; margin-top: 8px; resize: vertical; line-height: 1.6; }
.photo { display: block; text-align: center; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px; margin: 8px 0; cursor: pointer; color: var(--muted); font-size: .92rem; }
.photo-preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 8px; border-radius: 8px; }
.eval { margin-top: 12px; background: var(--primary-soft); border-radius: 12px; padding: 12px; }
.eval h4 { margin: 12px 0 2px; font-size: .95rem; }
.eval h4.ok { color: var(--ok); } .eval h4.warn { color: var(--accent); } .eval h4.bad { color: var(--bad); }
.eval ul { margin: 2px 0; padding-left: 20px; font-size: .93rem; }
.eval .model { background: var(--card); border-radius: 8px; padding: 8px 10px; font-size: .93rem; margin: 4px 0; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* home dashboard */
.hello { display: flex; justify-content: space-between; align-items: flex-end; margin: 4px 0 12px; gap: 8px; }
.hero { background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.countdown { display: flex; gap: 16px; align-items: center; background: var(--primary); color: #fff; }
:root[data-theme="dark"] .countdown { color: #0e141d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .countdown { color: #0e141d; } }
.countdown .big { font-size: 2.4rem; font-weight: 700; line-height: 1; text-align: center; }
.countdown .bar { background: rgba(255, 255, 255, .3); }
.sec { font-size: 1.02rem; margin: 18px 2px 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; color: var(--text); display: flex; flex-direction: column; gap: 2px; min-height: 104px; }
.tile span { font-size: 1.5rem; }
.tile small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.tile.warn { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.continue { color: var(--text); margin-top: 12px; border-left: 4px solid var(--accent); }
.pro-cta { display: flex; flex-direction: column; gap: 6px; color: var(--text); border: 2px solid var(--accent); margin-top: 14px; }
.pro-cta .btn { align-self: flex-start; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.quick a { background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); color: var(--text); font-size: .92rem; }
.target-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.target-grid .chip { font-size: .92rem; padding: 6px 12px; }

/* updates, bookmarks, reports */
.upd h3 { margin: 6px 0 4px; font-size: 1.02rem; }
.upd p { margin: 0 0 6px; }
.upd .row { gap: 10px; }
.ok { color: var(--ok); font-weight: 600; } .bad { color: var(--bad); font-weight: 600; }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: .8rem; padding: 4px 2px; }
.linkbtn:hover { color: var(--bad); }
.star-btn { flex: none; width: 34px; height: 34px; font-size: 1.15rem; color: var(--muted); line-height: 1; }
.star-btn.on { color: var(--accent); border-color: var(--accent); }
.reasons { display: grid; gap: 6px; margin: 10px 0; font-size: .92rem; }
.reasons input { accent-color: var(--primary); }
.revise-cta { color: var(--text); border-left: 4px solid var(--accent); font-size: .92rem; }
.src { margin: -8px 4px 12px; font-size: .78rem; }
.cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 2px solid var(--accent); }
.ca-list li { margin: 6px 0; }

/* application links */
.apply-btn { margin: 10px 0 4px; font-size: 1.02rem; }
.open-ad { border-left: 4px solid var(--accent); }
.flash { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px;
  box-shadow: 0 0 0 0 rgba(232, 134, 12, .5); animation: glow 2.4s ease-in-out infinite; display: grid; gap: 10px; }
.flash-item { display: flex; gap: 10px; align-items: center; }
.flash-title { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: blink 1.2s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(232, 134, 12, .18); } }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .flash, .pulse { animation: none; } }
.admin-form { display: grid; gap: 8px; margin-top: 8px; }
.admin-form .row { flex-wrap: nowrap; }
select.input { appearance: auto; }

/* doubt solver */
.ask-fab { position: fixed; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 9; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 10px 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); display: flex; gap: 6px; align-items: center; }
.ask-fab span { font-size: .9rem; }
.ask-fab[hidden] { display: none; }
#chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 130px; }
.bubble { border-radius: 16px; padding: 10px 14px; max-width: 92%; line-height: 1.6; }
.bubble p { margin: 0 0 6px; } .bubble ul { margin: 4px 0 6px; padding-left: 20px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .bubble.me { color: #0e141d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble.me { color: #0e141d; } }
.bubble.ai { align-self: flex-start; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.bubble .kp { background: var(--accent-soft); border-radius: 10px; padding: 6px 10px; margin: 6px 0; font-size: .92rem; }
.bubble .row { margin: 6px 0; gap: 6px; }
.src-note { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 4px; }
.chips.follow { flex-wrap: wrap; margin-top: -4px; }
.askbar { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 8; background: var(--card);
  border-top: 1px solid var(--line); padding: 8px 12px; max-width: 760px; margin: 0 auto; }
.askbar textarea { flex: 1; resize: none; min-height: 42px; }
.askbar .icon-btn { width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; flex: none; }
.ask-prev { max-height: 90px; border-radius: 8px; margin-bottom: 6px; }

/* eligibility */
.checks { display: grid; gap: 6px; }
.checks input, .elig input { accent-color: var(--primary); }
.elig > summary { list-style: none; display: flex; justify-content: space-between; cursor: pointer; }
.elig > summary::-webkit-details-marker { display: none; }
.elig.ok { border-left: 4px solid var(--ok); } .elig.warn { border-left: 4px solid var(--accent); } .elig.bad { border-left: 4px solid var(--bad); opacity: .85; }
.elig .post { margin-top: 8px; } .elig ul { margin: 4px 0; padding-left: 18px; }
label.small { display: block; }
label.small .input { width: 100%; margin-top: 3px; }

/* WhatsApp OTP login */
.wa-login { display: grid; gap: 8px; margin: 8px 0; }
.wa-login #waStep1, .wa-login #waStep2 { display: grid; gap: 8px; }
.wa-login [hidden] { display: none !important; }
.wa-login .cc { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; }
.wa-login .input { width: 100%; }
.wa-login .otp { font-size: 1.4rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.btn.wa { background: #1fa855; color: #fff; }
:root[data-theme="dark"] .btn.wa { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.wa { color: #fff; } }
#waMsg.bad { color: var(--bad); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 10px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.empty { text-align: center; padding: 30px 12px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.back { display: inline-block; margin-bottom: 8px; font-size: .92rem; }
footer.site { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 18px; }
