/* IndexMed — one-app build. Tokens match the live portal (navy ink, indigo accent). */
:root {
  --canvas: #f5f7fb; --card: #ffffff; --card-2: #f8fafc; --line: #e2e8f0; --line-2: #eef2f7;
  --ink: #27365b; --ink-2: #3b4a6b; --muted: #687799; --faint: #98a4bd;
  --accent: #5a4ad6; --accent-2: #4a3cc0; --accent-weak: #f1f0ff; --accent-ink: #3c2fa6;
  --ok: #15803d; --ok-weak: #ecfdf3; --warn: #b45309; --warn-weak: #fff7e6; --danger: #e11d48; --danger-weak: #fff1f2;
  --teal: #0f766e; --teal-weak: #ecfeff; --amber: #92400e; --amber-weak: #fef3c7; --slate: #475569; --slate-weak: #f1f5f9;
  --side: linear-gradient(170deg, #303d78 0%, #212c61 45%, #182140 100%);
  --side-glow: radial-gradient(ellipse at 50% -10%, rgba(141,134,248,.35), transparent 60%);
  --radius: 10px; --radius-lg: 14px; --shadow: 0 1px 2px rgba(39,54,91,.06), 0 8px 24px -12px rgba(39,54,91,.12);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --canvas: #0f1424; --card: #161c30; --card-2: #1b2238; --line: #28304a; --line-2: #222a42;
  --ink: #e6eaf5; --ink-2: #c9d1e6; --muted: #98a4bd; --faint: #6b7794;
  --accent: #8d86f8; --accent-2: #a39dfb; --accent-weak: #251f4d; --accent-ink: #cfcbff;
  --ok: #4ade80; --ok-weak: #0f2a1c; --warn: #fbbf24; --warn-weak: #2d2208; --danger: #fb7185; --danger-weak: #2f1218;
  --teal: #5eead4; --teal-weak: #0b2a2a; --amber: #fcd34d; --amber-weak: #2b2008; --slate: #cbd5e1; --slate-weak: #1f2740;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
}}
:root[data-theme="dark"] {
  --canvas: #0f1424; --card: #161c30; --card-2: #1b2238; --line: #28304a; --line-2: #222a42;
  --ink: #e6eaf5; --ink-2: #c9d1e6; --muted: #98a4bd; --faint: #6b7794;
  --accent: #8d86f8; --accent-2: #a39dfb; --accent-weak: #251f4d; --accent-ink: #cfcbff;
  --ok: #4ade80; --ok-weak: #0f2a1c; --warn: #fbbf24; --warn-weak: #2d2208; --danger: #fb7185; --danger-weak: #2f1218;
  --teal: #5eead4; --teal-weak: #0b2a2a; --amber: #fcd34d; --amber-weak: #2b2008; --slate: #cbd5e1; --slate-weak: #1f2740;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .spacer { flex: 1; } .right { margin-left: auto; }
.stack > * + * { margin-top: 14px; }

/* ── buttons & inputs ───────────────────────────────────────────────────── */
button, .btn { font: inherit; font-weight: 500; font-size: 13.5px; padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; transition: background .12s, border-color .12s; }
button:hover, .btn:hover { background: var(--card-2); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } button.primary:hover { background: var(--accent-2); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); } button.ghost:hover { background: var(--card-2); color: var(--ink); }
button.danger { color: var(--danger); } button.danger:hover { background: var(--danger-weak); border-color: var(--danger-weak); }
button.sm, .btn.sm { padding: 5px 9px; font-size: 12.5px; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: var(--card); color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent-weak); border-color: var(--accent); }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 0 0 5px; }
.field { margin-bottom: 14px; } .field .help { font-size: 12px; color: var(--faint); margin-top: 4px; }
.seg { display: inline-flex; background: var(--slate-weak); padding: 3px; border-radius: 9px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ── pills ──────────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--slate-weak); color: var(--slate); }
.pill.doctor { background: var(--accent-weak); color: var(--accent-ink); } .pill.staff { background: var(--teal-weak); color: var(--teal); }
.pill.rep { background: var(--amber-weak); color: var(--amber); } .pill.website, .pill.case_manager { background: var(--slate-weak); color: var(--slate); }
.pill.ok, .pill.active { background: var(--ok-weak); color: var(--ok); } .pill.off { background: var(--slate-weak); color: var(--muted); }
.pill.warn, .pill.platform, .pill.suspended { background: var(--warn-weak); color: var(--warn); } .pill.danger, .pill.closed { background: var(--danger-weak); color: var(--danger); }
.pill.cap { font-family: var(--mono); font-weight: 500; font-size: 11px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); }
.pill.cap.added { background: var(--ok-weak); color: var(--ok); border-color: transparent; } .pill.cap.removed { background: var(--danger-weak); color: var(--danger); border-color: transparent; text-decoration: line-through; }

/* ── app frame ──────────────────────────────────────────────────────────── */
.frame { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side-glow), var(--side); color: #e9ecfa; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; } .side .logo img { height: 26px; }
.side .practice { margin: 0 4px 10px; padding: 10px 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.side .practice b { display: block; font-size: 13.5px; } .side .practice span { font-size: 11.5px; color: rgba(233,236,250,.65); }
.side .practice a { color: #c9c4ff; font-size: 11.5px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: rgba(233,236,250,.78); font-size: 13.5px; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.side nav a svg { width: 16px; height: 16px; opacity: .8; flex: none; }
.side nav .soon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: rgba(233,236,250,.55); font-size: 13.5px; cursor: default; }
.side nav .soon svg { width: 16px; height: 16px; opacity: .55; flex: none; }
.side .logo.mind { color: #fff; } .side .logo.mind b { display: block; font-size: 17px; letter-spacing: -.01em; line-height: 1.1; }
.side .logo.mind small { display: block; font-size: 11px; color: rgba(233,236,250,.6); }
.side .sect { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,236,250,.45); padding: 12px 10px 4px; }
.side .foot { margin-top: auto; padding: 10px 6px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.side .foot .av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.side .foot .who { flex: 1; min-width: 0; } .side .foot .who b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .foot .who span { font-size: 11px; color: rgba(233,236,250,.55); }
.side .foot button { background: transparent; border-color: rgba(255,255,255,.18); color: #e9ecfa; padding: 5px 8px; font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.banner { background: var(--warn-weak); color: var(--warn); border-bottom: 1px solid #f3dfae; padding: 9px 28px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.banner svg { width: 16px; height: 16px; flex: none; }
.page { padding: 26px 28px 70px; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-h h1 { font-size: 22px; } .page-h .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.topbar-m { display: none; }
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; } .side { display: none; } .page { padding: 18px 16px 90px; }
  .topbar-m { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--side); color: #fff; }
  .topbar-m img { height: 22px; } .topbar-m nav { display: flex; gap: 4px; margin-left: auto; } .topbar-m nav a { color: #fff; font-size: 13px; padding: 6px 8px; }
}

/* ── cards, tiles, tables ───────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card .card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card .card-h h2 { font-size: 14.5px; } .card .card-h .cap { margin-left: auto; }
.card .card-b { padding: 16px 18px; } .card .card-f { padding: 10px 18px; border-top: 1px solid var(--line-2); font-size: 13px; }
.card.dashed { border-style: dashed; box-shadow: none; background: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tile { background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; }
.tile b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile.accent { background: var(--accent-weak); border-color: transparent; } .tile.accent b { color: var(--accent-ink); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card-2); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: var(--card-2); }
th:first-child, td:first-child { padding-left: 18px; } th:last-child, td:last-child { padding-right: 18px; }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list li > * { min-width: 0; } .list li .trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li .when { margin-left: auto; white-space: nowrap; flex: none; }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; } .ok { color: var(--ok); font-size: 13px; margin-top: 8px; }
.notice { background: var(--accent-weak); color: var(--accent-ink); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; }
code.link { display: block; word-break: break-all; background: var(--card-2); border: 1px solid var(--line-2); padding: 9px 10px; border-radius: 8px; font-size: 12px; }
details > summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 500; list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; } details[open] > summary::before { content: "▾ "; }
.toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.toggle-grid label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-weight: 400; font-size: 13px; cursor: pointer; padding: 4px 0; }
.member { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.member:last-child { border-bottom: 0; }
.member .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-weak); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.member .name { font-weight: 600; } .member .meta { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.member .caps { grid-column: 2 / -1; padding-top: 6px; }

/* ── auth screens ───────────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .hero { background: var(--side-glow), var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.auth .hero img { height: 30px; align-self: flex-start; }
.auth .hero h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: auto; max-width: 480px; line-height: 1.2; }
.auth .hero p { color: rgba(255,255,255,.7); max-width: 440px; font-size: 14.5px; }
.auth .hero .foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.5); }
.auth .pane { display: grid; place-items: center; padding: 32px; }
.auth .box { width: min(420px, 100%); }
.auth .box h1 { font-size: 22px; margin-bottom: 4px; } .auth .box .sub { color: var(--muted); margin-bottom: 22px; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth .hero { padding: 28px; min-height: 180px; } .auth .hero h2 { font-size: 20px; margin-top: 18px; } }

/* ── assistant drawer ───────────────────────────────────────────────────── */
.asst-fab { position: fixed; right: 22px; bottom: 22px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 11px 16px; box-shadow: 0 10px 24px -8px rgba(90,74,214,.6); font-weight: 600; z-index: 40; }
.asst-fab:hover { background: var(--accent-2); }
.asst { position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100vw); background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 50; box-shadow: -16px 0 40px -20px rgba(0,0,0,.35); }
.asst-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: var(--side-glow), var(--side); color: #fff; }
.asst-head .t b { display: block; font-size: 14px; } .asst-head .t span { font-size: 11.5px; color: rgba(255,255,255,.65); }
.asst-head button { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.asst-feed { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.asst-msg { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px 12px 12px 4px; padding: 10px 13px; white-space: pre-wrap; max-width: 90%; font-size: 13.5px; }
.asst-msg.me { background: var(--accent); color: #fff; border-color: var(--accent); align-self: flex-end; border-radius: 12px 12px 4px 12px; }
.asst-msg.bad { background: var(--danger-weak); color: var(--danger); border-color: transparent; }
.asst-tool { font-size: 11.5px; color: var(--muted); font-family: var(--mono); padding-left: 4px; } .asst-tool.bad { color: var(--danger); }
.asst-card { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--card); border-radius: 10px; padding: 12px 14px; }
.asst-card .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.asst-card code { display: block; margin: 6px 0 2px; white-space: pre-wrap; word-break: break-all; }
.asst-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); background: var(--card); }
.asst-input input { flex: 1; } .asst-hint { padding: 0 16px 10px; font-size: 11.5px; color: var(--faint); }
.asst-sugg { display: flex; flex-wrap: wrap; gap: 6px; } .asst-sugg button { font-size: 12px; padding: 5px 9px; border-radius: 999px; }

/* ── sign in: a dark glass card in a softly lit room (after the HAPPE portal) ── */
.signin { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 32px 16px; color: #fff; background: #020814; overflow: hidden; }
.si-room { position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, #1a2a5a 0%, #0c1633 55%, #020814 100%); }
.si-room i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: si-drift 26s ease-in-out infinite alternate; }
.si-room .a { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(60,195,238,.45), transparent 65%); }
.si-room .b { width: 46vw; height: 46vw; right: -10vw; top: 8vh; background: radial-gradient(circle, rgba(91,132,224,.42), transparent 65%); animation-delay: -9s; }
.si-room .c { width: 60vw; height: 40vw; left: 22vw; bottom: -18vw; background: radial-gradient(circle, rgba(141,134,248,.3), transparent 65%); animation-delay: -16s; }
@keyframes si-drift { to { transform: translate(4vw, 3vh) scale(1.08); } }

.si-brand { display: flex; align-items: center; gap: 10px; }
.si-brand b { display: block; font-size: 16px; letter-spacing: .01em; } .si-brand small { display: block; font-size: 11.5px; color: rgba(255,255,255,.56); }

.si-card { width: min(520px, 100%); padding: 32px 30px 24px; border-radius: 30px;
  background: linear-gradient(165deg, rgba(206,226,246,.16), rgba(206,226,246,.04) 60%), radial-gradient(120% 60% at 100% 0%, rgba(91,132,224,.18), transparent 60%);
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.75), 0 0 60px -24px rgba(60,195,238,.45); }
.si-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.si-head h1 { margin: 0; font-size: 34px; font-weight: 300; letter-spacing: -.015em; line-height: 1.1; color: #fff; }
.si-head p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }
.si-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; color: #061328;
  background: linear-gradient(160deg, #fff, #a6e6fb); box-shadow: 0 10px 24px -10px rgba(0,0,0,.7), 0 0 26px -6px rgba(60,195,238,.6); }

.si-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: 6px;
  background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.si-seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0;
  border: 0; border-radius: 5px; background: transparent; color: rgba(255,255,255,.6); font-weight: 700; font-size: 14px; transition: color .3s; }
.si-seg button:hover { background: transparent; color: #fff; }
.si-seg button[aria-pressed="true"] { color: #061328; }
.si-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 8px); border-radius: 4px; background: linear-gradient(160deg, #fff, #a6e6fb);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), 0 0 18px -4px rgba(60,195,238,.6); transition: transform .4s cubic-bezier(.3,1.3,.5,1); }
.si-seg[data-on="email"] .si-thumb { transform: translateX(calc(100% + 6px)); }

.si-label { display: block; margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.82); }
.si-field { display: flex; align-items: center; margin-bottom: 18px; border-radius: 6px; background: rgba(0,0,0,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: box-shadow .25s, background .25s; }
.si-field:focus-within { background: rgba(0,0,0,.36); box-shadow: inset 0 0 0 1.5px #3cc3ee, 0 0 0 4px rgba(60,195,238,.14), 0 0 24px -6px rgba(60,195,238,.6); }
.si-cc { align-self: stretch; display: grid; place-items: center; padding: 0 14px 0 18px; font-weight: 800; font-size: 16px; color: #a6e6fb; border-right: 1px solid rgba(255,255,255,.12); }
.si-field input { flex: 1; min-width: 0; min-height: 58px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: #fff;
  font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.si-field input:focus { outline: none; border: 0; }
.si-field input::placeholder { color: rgba(255,255,255,.3); font-weight: 600; }
.si-ico { padding-right: 18px; color: rgba(255,255,255,.38); display: grid; }

.si-btn { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 56px; justify-content: center; gap: 10px; border: 0; border-radius: 6px;
  font-size: 16px; font-weight: 700; color: #061328; background: linear-gradient(180deg, #fff, #cfeafb);
  box-shadow: inset 0 1px 0 #fff, 0 0 24px rgba(60,195,238,.35); transition: transform .25s, box-shadow .25s; }
.si-btn:hover { background: linear-gradient(180deg, #fff, #cfeafb); transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 0 32px rgba(60,195,238,.55); }
.si-btn::after { content: ""; position: absolute; inset: -2px auto -2px -40%; z-index: -1; width: 36%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg); animation: si-sheen 4.2s ease-in-out infinite; }
.si-btn svg { transition: transform .3s; } .si-btn:hover svg { transform: translateX(3px); }
.si-btn[disabled] { opacity: .5; cursor: default; transform: none; } .si-btn[disabled]::after { animation: none; }
.si-btn.ghost { min-height: 46px; color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.si-btn.ghost::after { display: none; }
@keyframes si-sheen { 0%, 55% { left: -40%; } 85%, 100% { left: 120%; } }

.si-otp { position: relative; margin-bottom: 18px; }
.si-otp input { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; }
.si-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.si-boxes span { display: grid; place-items: center; height: 62px; border-radius: 6px; font-size: 26px; font-weight: 800; color: #fff; background: rgba(0,0,0,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: box-shadow .2s, background .2s, transform .2s; }
.si-boxes span.full { background: rgba(60,195,238,.12); box-shadow: inset 0 0 0 1px rgba(60,195,238,.5); }
.si-boxes span.on { box-shadow: inset 0 0 0 2px #3cc3ee, 0 0 20px -4px rgba(60,195,238,.7); transform: translateY(-1px); }
.si-boxes span.on:empty::after { content: ""; width: 2px; height: 26px; border-radius: 2px; background: #3cc3ee; animation: si-caret 1s steps(1) infinite; }
@keyframes si-caret { 50% { opacity: 0; } }

.si-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.si-link { padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: #a6e6fb; gap: 5px; }
.si-link:hover { background: none; color: #fff; } .si-link[disabled] { color: rgba(255,255,255,.4); cursor: default; }
.si-err { margin-top: 14px; padding: 10px 14px; border-radius: 6px; font-size: 13.5px; color: #ffd4c9; background: rgba(240,138,112,.12); box-shadow: inset 0 0 0 1px rgba(240,138,112,.35); }
.si-note { margin-top: 14px; padding: 10px 14px; border-radius: 6px; font-size: 13.5px; color: #c9f1ff; background: rgba(60,195,238,.1); box-shadow: inset 0 0 0 1px rgba(60,195,238,.3); }
.si-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.56); }
.si-trust svg { color: #3cc3ee; } .si-trust img { height: 15px; width: auto; }
.si-dev { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.si-tag { margin: 12px 0 0; padding: 9px 12px; border-radius: 6px; font-size: 12.5px; color: rgba(255,255,255,.8); background: rgba(255,210,122,.08); box-shadow: inset 0 0 0 1px rgba(255,210,122,.22); }
.si-tag b { margin-right: 8px; padding: 2px 8px; border-radius: 5px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #2a1d00; background: #ffd27a; }
.si-foot { margin: 0; font-size: 12px; color: rgba(255,255,255,.45); text-align: center; }
@media (max-width: 520px) { .si-card { padding: 24px 18px 20px; border-radius: 22px; } .si-head h1 { font-size: 28px; } .si-boxes { gap: 6px; } .si-boxes span { height: 54px; font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .si-room i, .si-btn::after { animation: none; } .si-thumb { transition: none; } }
