/* ============================================================
   Amanah Vault — Design system
   Midnight & Gold · Islamic geometric accents
   ============================================================ */
:root, [data-theme="dark"] {
  --bg: #070D1A; --bg2: #0A1322; --surface: rgba(17, 27, 46, .78); --surface-solid: #101A2C; --surface2: #15223A; --surface3: #1B2B47;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .12);
  --text: #EDF1F8; --text2: #C5CEDD; --muted: #8C98AE; --faint: #5F6B83;
  --gold: #D9B566; --gold-hi: #F6DE9C; --gold-lo: #9C7A2E; --gold-ink: #1A1206;
  --gold-soft: rgba(217, 181, 102, .12); --gold-line: rgba(217, 181, 102, .32);
  --ok: #34D399; --warn: #FBBF24; --danger: #F87171; --info: #60A5FA;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, .6);
  --pat: .11; --lapis: #0F2C66; --lapis-hi: #2459B5; --glow1: rgba(217, 181, 102, .13); --glow2: rgba(45, 212, 191, .07);
  --input: rgba(5, 10, 20, .55);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F5F1E8; --bg2: #EDE7DA; --surface: rgba(255, 255, 255, .86); --surface-solid: #FFFFFF; --surface2: #F8F5EE; --surface3: #F0EBDF;
  --line: rgba(30, 30, 40, .08); --line2: rgba(30, 30, 40, .14);
  --text: #141B2B; --text2: #2F3A4F; --muted: #5E6779; --faint: #8D95A5;
  --gold: #A9822E; --gold-hi: #C9A24B; --gold-lo: #7A5C1C; --gold-ink: #FFFDF6;
  --gold-soft: rgba(169, 130, 46, .1); --gold-line: rgba(169, 130, 46, .35);
  --ok: #059669; --warn: #B45309; --danger: #DC2626; --info: #2563EB;
  --shadow: 0 30px 70px -35px rgba(60, 45, 15, .35), 0 1px 0 rgba(255, 255, 255, .8) inset;
  --shadow-sm: 0 10px 26px -16px rgba(60, 45, 15, .35);
  --pat: .16; --lapis: #1D4FA8; --lapis-hi: #3B6FD0; --glow1: rgba(201, 162, 75, .18); --glow2: rgba(20, 184, 166, .08);
  --input: #FFFFFF;
  color-scheme: light;
}
html { --font: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
html[lang="bn"] { --font: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[lang="ar"] { --font: 'Noto Kufi Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; min-height: 100dvh;
  line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--pat);
  background-image: var(--guil, none); background-size: 360px 120px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 70% 5%, #000 15%, transparent 78%);
          mask-image: radial-gradient(ellipse 95% 85% at 70% 5%, #000 15%, transparent 78%);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(700px 480px at 88% -8%, var(--glow1), transparent 70%), radial-gradient(600px 500px at -8% 108%, var(--glow2), transparent 70%);
}
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--gold-soft); color: var(--text); }
.ico { width: 20px; height: 20px; flex: none; }
.ico.sm { width: 15px; height: 15px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.w100 { width: 100%; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad { padding: 4px 20px 12px; }
.center { text-align: center; }
@media (max-width: 900px) { .only-d { display: none !important; } }
@media (min-width: 901px) { .only-m { display: none !important; } }

/* ---------- logo ---------- */
.logo { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 16px rgba(217, 181, 102, .25)); }
.logo.sm { width: 32px; height: 32px; } .logo.md { width: 40px; height: 40px; } .logo.lg { width: 64px; height: 64px; } .logo.xl { width: 76px; height: 76px; }
.logo.ghost { width: 96px; height: 96px; opacity: .22; filter: grayscale(.3); }

/* ---------- buttons ---------- */
.btn {
  --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  position: relative; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn.sm { --h: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.sm .ico { width: 17px; height: 17px; }
.btn-lg { --h: 52px; font-size: 16px; border-radius: 14px; }
.btn-gold {
  color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  box-shadow: 0 10px 30px -10px rgba(217, 181, 102, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
[data-theme="light"] .btn-gold { color: #FFFDF6; background: linear-gradient(135deg, #C9A24B, #A9822E 50%, #7A5C1C); }
.btn-gold:hover:not(:disabled) { box-shadow: 0 14px 34px -10px rgba(217, 181, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-soft { background: var(--surface2); border: 1px solid var(--line2); color: var(--text); }
.btn-soft:hover:not(:disabled) { border-color: var(--gold-line); background: var(--surface3); }
.btn-ghost { color: var(--text2); border: 1px solid transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); border-color: var(--line); }
.btn-danger { background: rgba(248, 113, 113, .12); color: var(--danger); border: 1px solid rgba(248, 113, 113, .35); }
.btn-danger:hover:not(:disabled) { background: rgba(248, 113, 113, .2); }
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor;
  border-color: var(--gold-ink) var(--gold-ink) transparent transparent; animation: spin .7s linear infinite;
}
.btn-soft.busy::after, .btn-ghost.busy::after, .btn-danger.busy::after { border-color: var(--gold) var(--gold) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-icon {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--text2);
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; flex: none;
}
.btn-icon:hover:not(:disabled) { background: var(--surface2); border-color: var(--line); color: var(--text); text-decoration: none; }
.btn-icon.sm { width: 34px; height: 34px; border-radius: 9px; }
.btn-icon.sm .ico { width: 17px; height: 17px; }
.btn-icon.gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }
.btn-icon.danger:hover:not(:disabled) { color: var(--danger); background: rgba(248, 113, 113, .1); }
.btn-icon.fav { color: var(--gold); }
.btn-icon.fav .ico { fill: var(--gold); }
.link { color: var(--gold); font-weight: 600; font-size: 14px; padding: 6px 2px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link.sm { font-size: 13px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > label, .fld > span { font-size: 13px; font-weight: 600; color: var(--text2); letter-spacing: .01em; }
.fld em { color: var(--gold); font-style: normal; }
.inp {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; background: var(--input); border: 1px solid var(--line2);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s; font-size: 15px;
}
textarea.inp { resize: vertical; line-height: 1.6; min-height: 90px; }
select.inp { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23D9B566' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
[dir="rtl"] select.inp, [dir="rtl"] .sel { background-position: left 14px center; }
.inp:hover { border-color: var(--gold-line); }
.inp:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.inp::placeholder { color: var(--faint); }
.inp[type="date"] { color-scheme: inherit; }
.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-wrap .inp { padding-inline-end: 48px; }
.inp-wrap:has(.inp-btn + .inp-btn) .inp { padding-inline-end: 88px; }
.inp-btn { position: absolute; inset-inline-end: 4px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.inp-btn:has(+ .inp-btn) { inset-inline-end: 44px; }
.inp-btn:hover { color: var(--text); background: var(--surface2); }
.inp-btn.gold { color: var(--gold); }
.hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sel {
  height: 38px; padding: 0 34px 0 12px; border-radius: 10px; background: var(--input); border: 1px solid var(--line2); outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none; font-size: 13.5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23D9B566' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
[dir="rtl"] .sel { padding: 0 12px 0 34px; }
.sel.sm { height: 34px; font-size: 13px; }
.sel:focus { border-color: var(--gold); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text2); user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2); background: var(--input); display: grid; place-items: center; flex: none; transition: .2s; cursor: pointer; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--gold-ink); border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
[dir="rtl"] .check input:checked::after { transform: rotate(45deg) translate(-1px, -1px); border-inline-end: 2px solid var(--gold-ink); border-inline-start: 0; }
.check.sm { font-size: 12.5px; gap: 6px; white-space: nowrap; }
.check.sm input { width: 17px; height: 17px; }
.check > span { display: inline-flex; align-items: center; gap: 4px; }
.err { display: none; color: var(--danger); font-size: 13.5px; font-weight: 500; padding: 10px 12px; border-radius: 10px; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .25); }
.err.on { display: block; animation: pop .25s ease; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--text2); padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.note .ico { width: 18px; height: 18px; color: var(--info); margin-top: 1px; }
.note.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .25); }
.note.warn .ico { color: var(--warn); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface3); border: 1px solid var(--line2); transition: .25s; }
.switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .25s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + i { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: var(--gold); }
.switch input:checked + i::after { inset-inline-start: 23px; background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--input); border: 1px solid var(--line2); flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.seg.mini button { padding: 5px 10px; font-size: 12.5px; }
.range { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 99px; background: var(--surface3); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border: 3px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(217, 181, 102, .5); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--gold); cursor: pointer; }

/* strength meter */
.meter { display: flex; align-items: center; gap: 12px; margin-top: -6px; }
.meter.sm { margin-top: 2px; }
.meter-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.meter-bar i { height: 5px; border-radius: 99px; background: var(--surface3); transition: background .3s; }
.meter-lbl { font-size: 12px; font-weight: 600; min-width: 84px; text-align: end; color: var(--muted); }
.meter.s0 .meter-bar i:nth-child(-n+1) { background: var(--danger); } .meter.s0 .meter-lbl { color: var(--danger); }
.meter.s1 .meter-bar i:nth-child(-n+1) { background: #FB923C; } .meter.s1 .meter-lbl { color: #FB923C; }
.meter.s2 .meter-bar i:nth-child(-n+2) { background: var(--warn); } .meter.s2 .meter-lbl { color: var(--warn); }
.meter.s3 .meter-bar i:nth-child(-n+3) { background: #4ADE80; } .meter.s3 .meter-lbl { color: #4ADE80; }
.meter.s4 .meter-bar i { background: linear-gradient(90deg, #34D399, var(--gold)); } .meter.s4 .meter-lbl { color: var(--ok); }
[data-theme="light"] .meter.s3 .meter-lbl { color: #16A34A; }
.str { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-inline-start: 8px; letter-spacing: .02em; }
.str.s0, .str.s1 { background: rgba(248, 113, 113, .12); color: var(--danger); }
.str.s2 { background: rgba(251, 191, 36, .12); color: var(--warn); }
.str.s3, .str.s4 { background: rgba(52, 211, 153, .12); color: var(--ok); }

/* halo icon */
.halo { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 4px; color: var(--gold);
  background: radial-gradient(circle at 30% 20%, var(--gold-soft), transparent 70%), var(--surface2); border: 1px solid var(--gold-line); box-shadow: 0 12px 30px -12px rgba(217, 181, 102, .4); }
.halo .ico { width: 28px; height: 28px; }
.halo.sm { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.halo.sm .ico { width: 20px; height: 20px; }
.halo.danger { color: var(--danger); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); box-shadow: none; }
.halo.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); box-shadow: none; }
.halo.soft { width: 56px; height: 56px; box-shadow: none; border-color: var(--line2); color: var(--muted); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-show { position: relative; overflow: hidden; border-inline-end: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(217, 181, 102, .08), transparent 40%), var(--bg2); }
@keyframes rot { to { transform: rotate(360deg); } }
.auth-show-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(32px, 6vw, 88px); gap: 26px; max-width: 680px; }
.brand-lg { display: flex; align-items: center; gap: 16px; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.01em; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .brand-name { background: linear-gradient(135deg, #8A6620, #C9A24B); -webkit-background-clip: text; background-clip: text; }
.brand-tag { color: var(--muted); font-size: 14px; }
.auth-h { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
html[lang="bn"] .auth-h, html[lang="ar"] .auth-h { line-height: 1.4; letter-spacing: 0; }
.auth-p { color: var(--text2); font-size: 16.5px; max-width: 520px; }
.feat { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.feat li { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.feat-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.feat b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.feat span { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; }
.auth-foot { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; margin-top: 8px; }
.auth-foot .ico { width: 16px; height: 16px; color: var(--gold); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 76px 24px 40px; position: relative; }
.auth-tools { position: absolute; top: 20px; inset-inline-end: 20px; display: flex; gap: 8px; align-items: center; }
.auth-card {
  width: 100%; max-width: 440px; padding: 34px 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line2);
  box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 20px;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1);
}
.auth-card > .link { align-self: center; }
.auth-card-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.auth-card-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.auth-card-head .muted { font-size: 14.5px; max-width: 340px; }
.auth-mfoot { margin-top: 22px; font-size: 12.5px; color: var(--faint); }
.steps { display: flex; align-items: center; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 99px; background: var(--surface3); }
.steps i.on { background: linear-gradient(90deg, var(--gold-hi), var(--gold)); }
.steps span { font-size: 12px; color: var(--muted); margin-inline-start: 8px; white-space: nowrap; }
.lang-pick { display: grid; gap: 10px; }
.lang-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--input); text-align: start; transition: .2s; }
.lang-opt b { font-size: 16px; } .lang-opt span { color: var(--muted); font-size: 13px; flex: 1; }
.lang-opt .tick { opacity: 0; color: var(--gold); transition: .2s; }
.lang-opt:hover { border-color: var(--gold-line); }
.lang-opt.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-soft); }
.lang-opt.on .tick { opacity: 1; }
.rk { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--input); border: 1px dashed var(--gold-line); }
.rk-code { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 16px; font-weight: 600; color: var(--gold); text-align: center; user-select: all; }
.rk-code span { padding: 7px 0; border-radius: 8px; background: var(--gold-soft); }
.rk-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rk-inp { text-transform: uppercase; text-align: center; font-size: 14px; letter-spacing: .06em; }
.trust { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.trust .ico { width: 15px; height: 15px; color: var(--ok); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.fatal { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px; }
.fatal p { color: var(--muted); max-width: 420px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px;
  background: linear-gradient(180deg, rgba(217, 181, 102, .045), transparent 30%), var(--bg2); border-inline-end: 1px solid var(--line); z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side-brand b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.side-brand span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-inline-end: 2px; margin-inline-end: -4px; scrollbar-width: thin; }
.nav { display: flex; align-items: center; gap: 11px; padding: 6px 10px; border-radius: 11px; color: var(--text2); font-size: 14px; font-weight: 500; text-align: start; transition: background .2s, color .2s; position: relative; }
.nav:hover { background: var(--surface2); color: var(--text); }
.nav.on { background: var(--gold-soft); color: var(--text); font-weight: 600; }
.nav.on::before { content: ''; position: absolute; inset-inline-start: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: var(--gold); }
[dir="rtl"] .nav.on::before { border-radius: 4px 0 0 4px; }
.nav-ico { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.nav.on .nav-ico { color: var(--gold); }
.nav-ico .ico { width: 19px; height: 19px; }
.dot-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); flex: none; }
.dot-ico .ico { width: 16px; height: 16px; }
.nav-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-c { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface2); padding: 1px 8px; border-radius: 99px; min-width: 26px; text-align: center; }
.nav.on .nav-c { color: var(--gold); background: var(--surface-solid); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; padding: 12px 12px 4px; }
html[lang="bn"] .nav-label, html[lang="ar"] .nav-label { letter-spacing: .02em; font-size: 12px; }
.side-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sec-mini { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); text-align: start; }
.sec-mini:hover { border-color: var(--gold-line); }
.sec-mini b { display: block; font-size: 13px; } .sec-mini span { font-size: 12px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line);
}
.search { flex: 1; min-width: 0; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 13px; background: var(--input); border: 1px solid var(--line2); transition: .2s; margin-inline-end: auto; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search .ico { color: var(--muted); width: 19px; height: 19px; }
.search input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; font-size: 14.5px; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); background: var(--surface2); }
.view { flex: 1; min-width: 0; }
.scrim { display: none; }

/* ---------- pages ---------- */
.page { padding: 28px; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.page.narrow { max-width: 820px; }
.page-h h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.page-h p { margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 10px; }
.panel-h h3 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; }
.panel-h h3 .ico { color: var(--gold); width: 18px; height: 18px; }
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 36px; border-radius: 28px;
  background: linear-gradient(120deg, rgba(217, 181, 102, .16), rgba(217, 181, 102, .03) 45%, transparent 70%), var(--surface);
  border: 1px solid var(--gold-line); box-shadow: var(--shadow);
}

.hero-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--gold); }
.eyebrow .ico { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
html[lang="bn"] .hero h1, html[lang="ar"] .hero h1 { line-height: 1.45; letter-spacing: 0; }
.hero-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ring-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.ring-lbl { font-size: 13px; font-weight: 700; margin-top: 8px; }
.ring-sub { font-size: 12px; color: var(--muted); }
.ring { --s: 132px; width: var(--s); height: var(--s); position: relative; display: grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface3); stroke-width: 9; }
.ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ring.good .ring-fg { stroke: var(--ok); } .ring.mid .ring-fg { stroke: var(--warn); } .ring.low .ring-fg { stroke: var(--danger); }
.ring.good b { color: var(--ok); } .ring.mid b { color: var(--warn); } .ring.low b { color: var(--danger); }
.ring b { font-size: calc(var(--s) * .27); font-weight: 800; letter-spacing: -.02em; position: relative; }
.ring[style*="44px"] .ring-bg, .ring[style*="44px"] .ring-fg { stroke-width: 12; }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(96, 165, 250, .07); border: 1px solid rgba(96, 165, 250, .25); }
.banner > .ico { color: var(--info); }
.banner div { flex: 1; min-width: 0; } .banner b { display: block; font-size: 14px; } .banner span { font-size: 12.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { --k: var(--gold); display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: start; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--k), transparent); opacity: .6; }
.stat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--k) 40%, transparent); box-shadow: var(--shadow-sm); }
.stat.k-danger { --k: var(--danger); } .stat.k-warn { --k: var(--warn); } .stat.k-ok { --k: var(--ok); }
.stat-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 13%, transparent); flex: none; }
.stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat div { flex: 1; min-width: 0; } .stat div span { font-size: 12.5px; color: var(--muted); display: block; }
.stat-go { color: var(--faint); width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rows { display: flex; flex-direction: column; padding: 4px 8px 10px; }
.row { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 14px; text-align: start; transition: background .15s; width: 100%; position: relative; }
.row:hover { background: var(--surface2); }
.row.on { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-t span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-m { display: flex; align-items: center; gap: 6px; flex: none; }
.row-m .fav { color: var(--gold); fill: var(--gold); }
.tbadge { --c: var(--gold); width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--c);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.tbadge b { font-size: 17px; font-weight: 800; }
.tbadge .ico { width: 20px; height: 20px; }
.tbadge.lg { width: 64px; height: 64px; border-radius: 19px; }
.tbadge.lg b { font-size: 26px; } .tbadge.lg .ico { width: 30px; height: 30px; }
.tbadge.sm { width: 30px; height: 30px; border-radius: 9px; } .tbadge.sm .ico { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.badge .ico { width: 12px; height: 12px; }
.b-expired { background: rgba(248, 113, 113, .13); color: var(--danger); }
.b-soon { background: rgba(251, 191, 36, .13); color: var(--warn); }
.b-upcoming { background: rgba(96, 165, 250, .12); color: var(--info); }
.b-ok { background: rgba(52, 211, 153, .12); color: var(--ok); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 34px 20px; color: var(--muted); font-size: 14px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 6px 20px 20px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 18px; text-align: start; background: var(--surface2); border: 1px solid var(--line); transition: .2s; }
.cat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.cat-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 8px; }
.cat b { font-size: 14px; } .cat span { font-size: 12px; color: var(--muted); }

/* ---------- list / detail ---------- */
.split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); height: calc(100vh - 73px); height: calc(100dvh - 73px); }
.lpane { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--bg2) 55%, transparent); }
.lpane-h { display: flex; align-items: center; gap: 10px; padding: 20px 18px 12px; }
.lpane-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 10px; }
.tags.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tags.scroll-x::-webkit-scrollbar { display: none; }
.chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--text2); white-space: nowrap; transition: .2s; }
.chip:hover { border-color: var(--gold-line); }
.chip.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.rows.list { flex: 1; overflow-y: auto; padding: 4px 10px 24px; scrollbar-width: thin; }
.dpane { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.dempty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 40px; }
.dempty h3 { font-size: 18px; }
.det { max-width: 760px; margin: 0 auto; padding: 20px 32px 48px; display: flex; flex-direction: column; gap: 18px; animation: pop .25s ease; }
.det-top { display: flex; align-items: center; gap: 4px; }
.det-head { display: flex; align-items: center; gap: 18px; }
.det-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; word-break: break-word; }
.det-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.fields { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.frow { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
[dir="rtl"] .frow { padding: 14px 20px 14px 16px; }
.frow:last-child { border-bottom: 0; }
.frow:hover { background: var(--surface2); }
.frow.tall { align-items: flex-start; }
.frow-main { flex: 1; min-width: 0; }
.frow-l { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; margin-bottom: 3px; }
.frow-v { font-size: 15px; word-break: break-word; }
.frow-v .dots { letter-spacing: .18em; color: var(--text2); }
.frow-a { display: flex; gap: 2px; flex: none; opacity: .75; transition: opacity .2s; }
.frow:hover .frow-a { opacity: 1; }
.pre { white-space: pre-wrap; word-break: break-word; line-height: 1.65; }
pre.pre { padding: 16px; font-size: 13px; max-height: 60vh; overflow: auto; }
.sec-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text2); margin-top: 4px; }
.sec-t .ico { width: 17px; height: 17px; color: var(--gold); }
.files { display: flex; flex-direction: column; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.file-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); flex: none; }
.file-t { flex: 1; min-width: 0; } .file-t b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-t span { font-size: 12px; color: var(--muted); }
.det .tags { padding: 0; }
.det-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.det-meta .ico { color: var(--ok); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3, 6, 14, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
[data-theme="light"] .modal-bg { background: rgba(40, 32, 15, .28); }
.modal-bg.in { opacity: 1; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; border-radius: 24px; background: var(--surface-solid); border: 1px solid var(--line2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.modal-bg.in .modal { transform: none; }
.modal.small { max-width: 440px; } .modal.wide { max-width: 720px; }
.modal > .mform { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.m-head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); flex: none; }
[dir="rtl"] .m-head { padding: 20px 24px 16px 20px; }
.m-head h3 { font-size: 18px; font-weight: 800; }
.m-body { padding: 22px 24px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.m-body.center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 6px; flex: none; }
.m-body.center h3 { font-size: 20px; font-weight: 800; }
.m-body.center + .m-body { padding-top: 14px; }
.m-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface2); flex: none; flex-wrap: wrap; }
.enc-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-inline-end: auto; }
.enc-note .ico { color: var(--ok); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid > .fld:has(textarea), .fgrid > .fld:has(.meter) { grid-column: 1 / -1; }
.month-pick { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line2); background: var(--input); cursor: pointer; transition: .2s; font-weight: 400 !important; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-soft); }
.drop > .ico { color: var(--gold); width: 26px; height: 26px; }
.drop b { display: block; font-size: 14px; color: var(--text); } .drop span { font-size: 12px; color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px; border-radius: 18px; text-align: start; background: var(--surface2); border: 1px solid var(--line); transition: .2s; }
.type-opt:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-2px); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c) 70%, transparent); }
.type-opt b { font-size: 14px; } .type-opt span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.icon-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.ip { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--input); border: 1px solid var(--line2); color: var(--muted); transition: .15s; }
.ip:hover { color: var(--text); border-color: var(--gold-line); }
.ip.on { color: var(--c); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.color-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.cp { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--line2); transition: .15s; }
.cp.on { box-shadow: 0 0 0 2px var(--c); transform: scale(1.1); }
.ct-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ct-f { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.ct-f .check { grid-column: auto; }
.ct-f:not(:has(.check)) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.viewer { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; background: var(--bg2); }
.viewer img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.viewer iframe { width: 100%; height: 70vh; border: 0; background: #fff; }
.viewer pre { width: 100%; align-self: start; }

/* ---------- generator ---------- */
.gen { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.gen-out { padding: 26px 22px; border-radius: 18px; background: var(--input); border: 1px solid var(--gold-line); text-align: center; position: relative; overflow: hidden; }
.gen-out::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 120px at 50% 0, var(--gold-soft), transparent); pointer-events: none; }
.gen-out code { position: relative; font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; word-break: break-all; line-height: 1.5; letter-spacing: .04em; }
.gen-out i { font-style: normal; } .gen-out i.d { color: var(--info); } .gen-out i.s { color: var(--gold); }
.gen-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gen-bar .meter { margin: 0; flex: 1; min-width: 200px; }
.gen-act { display: flex; gap: 8px; }
.gen-len { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: -6px; }
.gen-len b { color: var(--gold); font-size: 18px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); cursor: pointer; }
.opt b { display: block; font-size: 14px; font-weight: 600; } .opt small { font-size: 12px; color: var(--muted); }
.tips ul { list-style: none; padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.tips li, .assure li { display: flex; gap: 10px; font-size: 14px; color: var(--text2); align-items: flex-start; }
.tips li .ico, .assure li .ico { color: var(--ok); margin-top: 3px; }

/* ---------- settings ---------- */
.set-body { padding: 0 0 8px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; border-top: 1px solid var(--line); }
.set-body > .srow:first-child { border-top: 0; }
.set-body > p + .srow { border-top: 0; }
.srow-l { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srow-l b { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.srow-l span { font-size: 12.5px; color: var(--muted); }
.srow-c { display: flex; align-items: center; gap: 6px; flex: none; }
.about { display: flex; align-items: center; gap: 16px; padding: 4px 20px 14px; }
.about b { display: block; font-size: 17px; } .about span { display: block; font-size: 13px; color: var(--muted); }
.assure { list-style: none; padding: 4px 20px 14px; display: flex; flex-direction: column; gap: 8px; }
.set.danger { border-color: rgba(248, 113, 113, .25); }
.set.danger .panel-h h3 .ico { color: var(--danger); }

/* ---------- toast ---------- */
#toast-root { position: fixed; bottom: 24px; inset-inline: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line2); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(12px) scale(.97); transition: .3s cubic-bezier(.2, .8, .2, 1); max-width: 480px; }
.toast.in { opacity: 1; transform: none; }
.toast .ico { width: 18px; height: 18px; }
.toast.t-ok .ico { color: var(--ok); } .toast.t-err .ico { color: var(--danger); } .toast.t-info .ico { color: var(--info); }
.toast.t-err { border-color: rgba(248, 113, 113, .35); }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-dot { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--surface3); border-top-color: var(--gold); animation: spin .8s linear infinite; }

/* ---------- print ---------- */
#print-area { display: none; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  body::before, body::after, #app, #modal-root, #toast-root { display: none !important; }
  #print-area { display: block; }
  .kit { font-family: var(--font); padding: 40px; text-align: center; color: #111; }
  .kit .logo { width: 72px; height: 72px; filter: none; }
  .kit h1 { font-size: 26px; margin: 12px 0 2px; } .kit h2 { font-size: 16px; color: #555; font-weight: 600; }
  .kit-key { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .08em; margin: 28px auto; padding: 20px; border: 2px dashed #A9822E; border-radius: 14px; max-width: 640px; }
  .kit ul { text-align: start; max-width: 520px; margin: 20px auto; line-height: 1.9; }
  .kit-foot { margin-top: 30px; color: #777; font-size: 13px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; }
  .auth-show { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 14.5px; }
  .shell { grid-template-columns: 1fr; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 290px; max-width: 86vw; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); }
  [dir="rtl"] .side { transform: translateX(102%); }
  .drawer-open .side { transform: none; }
  .drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(3, 6, 14, .5); backdrop-filter: blur(3px); }
  .top { padding: 10px 14px; gap: 6px; padding-top: max(10px, env(safe-area-inset-top)); }
  .brand-sm { display: flex; }
  .search { height: 42px; }
  .page { padding: 18px 14px; gap: 14px; }
  .hero { flex-direction: column-reverse; align-items: stretch; text-align: center; padding: 24px 20px; gap: 14px; border-radius: 24px; }
  .hero .eyebrow, .hero-act { justify-content: center; }
  .hero-act .btn { flex: 1; }
  .hero .ring { --s: 112px !important; }
  .stats { gap: 10px; }
  .stat { padding: 14px; gap: 10px; border-radius: 18px; }
  .stat-ico { width: 38px; height: 38px; } .stat b { font-size: 20px; } .stat-go { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); padding: 6px 14px 16px; gap: 10px; }
  .split { display: block; height: auto; }
  .lpane { border: 0; background: none; }
  .rows.list { overflow: visible; padding: 4px 6px 24px; }
  .split .dpane { display: none; }
  .split.show-detail .lpane { display: none; }
  .split.show-detail .dpane { display: block; }
  .det { padding: 10px 14px 32px; }
  .det-head h2 { font-size: 21px; }
  .tbadge.lg { width: 54px; height: 54px; }
  .frow { padding: 12px 10px 12px 14px; } [dir="rtl"] .frow { padding: 12px 14px 12px 10px; }
  .frow-a { opacity: 1; }
  .bnav { position: fixed; bottom: 0; inset-inline: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg2) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .bnav > button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .bnav > button.on { color: var(--gold); }
  .bnav .ico { width: 22px; height: 22px; }
  .bnav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fab { width: 54px; height: 54px; border-radius: 18px; margin: -26px auto 2px; display: grid !important; place-items: center; color: var(--gold-ink) !important;
    background: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); box-shadow: 0 12px 28px -8px rgba(217, 181, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
  [data-theme="light"] .fab { color: #fff !important; }
  .fab .ico { width: 26px; height: 26px; }
  .modal-bg { padding: 0; place-items: end stretch; }
  .modal, .modal.small, .modal.wide { max-width: none; border-radius: 24px 24px 0 0; max-height: 94vh; max-height: 94dvh; transform: translateY(40px); }
  .modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line2); margin: 10px auto -4px; flex: none; }
  .m-head { padding: 14px 16px 12px 20px; } .m-body { padding: 18px 20px; } .m-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .m-foot .btn { flex: 1; }
  .enc-note { width: 100%; justify-content: center; margin: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .icon-pick { grid-template-columns: repeat(6, 1fr); }
  .ct-f, .ct-f:not(:has(.check)) { grid-template-columns: 1fr auto; }
  .ct-f select { grid-column: 1; }
  .opts { grid-template-columns: 1fr; }
  .srow { flex-wrap: wrap; padding: 14px 16px; }
  .gen { padding: 18px; }
  .gen-act { width: 100%; } .gen-act .btn { flex: 1; }
  .auth-main { padding: 70px 14px 28px; justify-content: flex-start; }
  .auth-card { padding: 26px 20px; border-radius: 24px; }
  .auth-tools { top: 14px; inset-inline-end: 14px; }
  .rk-code { font-size: 14px; gap: 6px; }
  #toast-root { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1024px) and (min-width: 901px) { .only-m-logo { display: block; } }
@media (min-width: 1025px) { .only-m-logo { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============================================================
   v2 — Banknote-grade ornament layer (guilloche · microtext · lapis)
   ============================================================ */
.logo.emblem { filter: drop-shadow(0 6px 16px rgba(217, 181, 102, .28)); }
.logo.ghost.emblem { opacity: .28; filter: none; }
.rosette { display: block; width: 100%; height: 100%; color: var(--gold); }
.auth-rosette { position: absolute; width: 780px; height: 780px; inset-inline-end: -250px; bottom: -260px; opacity: .32; animation: rot 180s linear infinite; pointer-events: none; }
.auth-rosette::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 30%, var(--bg2) 75%); }
.auth-show { background: radial-gradient(600px 420px at 100% 100%, rgba(36, 89, 181, .18), transparent 70%), linear-gradient(160deg, rgba(217, 181, 102, .08), transparent 40%), var(--bg2); }
.hero-rosette { position: absolute; width: 520px; height: 520px; inset-inline-end: -150px; top: calc(50% - 260px); opacity: .22; pointer-events: none; animation: rot 240s linear infinite; }
[dir="rtl"] .hero-rosette { animation-direction: reverse; }
.hero { background: radial-gradient(420px 300px at 100% 50%, rgba(36, 89, 181, .22), transparent 70%), linear-gradient(120deg, rgba(217, 181, 102, .15), rgba(217, 181, 102, .03) 45%, transparent 70%), var(--surface); }
.hero::before, .auth-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent, #F6DE9C 18%, #7FE0D0 38%, #9F8CF0 55%, #F0A8C8 72%, #F6DE9C 86%, transparent); opacity: .8; }
.auth-card { position: relative; }
.micro { position: relative; overflow: hidden; white-space: nowrap; height: 10px; line-height: 10px; font-family: var(--mono); font-size: 6.4px; letter-spacing: .14em; color: var(--gold); opacity: .55; user-select: none; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.micro::before, .micro::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.micro::before { top: 0; } .micro::after { bottom: 0; }
.micro span { display: inline-block; padding-inline-start: 4px; }
.micro.wide { margin: -4px 0; }
.side-brand + .micro { margin: -2px 6px 6px; }
.auth-card .micro { margin-top: 2px; }
.serial { display: inline-block !important; margin-top: 3px; font-family: var(--mono); font-size: 10.5px !important; font-weight: 600; letter-spacing: .08em !important; padding: 2px 8px; border-radius: 6px;
  color: var(--gold) !important; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.side-brand { border-bottom: 0; margin-bottom: 0; padding-bottom: 10px; }
.ring-beads { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-dasharray: .01 5.2; stroke-linecap: round; opacity: .6; }
.panel, .stat, .fields, .cat, .type-opt, .feat li {
  border: 1px solid transparent !important;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, var(--gold-line), var(--line) 30%, var(--line) 70%, var(--gold-line)) border-box !important;
}
.stat:hover, .cat:hover, .type-opt:hover { background: linear-gradient(var(--surface2), var(--surface2)) padding-box, linear-gradient(135deg, var(--gold), var(--line) 35%, var(--line) 65%, var(--gold)) border-box !important; }
.set.danger { background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, linear-gradient(135deg, rgba(248, 113, 113, .45), var(--line) 35%, var(--line) 65%, rgba(248, 113, 113, .45)) border-box !important; }
.btn-gold { background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 4px), linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); }
[data-theme="light"] .btn-gold { background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 4px), linear-gradient(135deg, #C9A24B, #A9822E 50%, #7A5C1C); }
.halo { background: radial-gradient(circle at 30% 20%, rgba(36, 89, 181, .35), transparent 70%), var(--surface2); }
.tbadge.lg { box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--c) 6%, transparent), 0 10px 24px -12px color-mix(in srgb, var(--c) 60%, transparent); }
.side { background: radial-gradient(300px 260px at 0 0, rgba(36, 89, 181, .14), transparent 70%), linear-gradient(180deg, rgba(217, 181, 102, .045), transparent 30%), var(--bg2); }
@media (max-width: 900px) { .hero-rosette { width: 420px; height: 420px; inset-inline-end: calc(50% - 210px); top: -60px; opacity: .16; } }
.feat .feat-ico { display: grid; color: var(--gold); line-height: 1; }
.feat .feat-ico .ico { width: 20px; height: 20px; }

/* ---------- Quranic slogan (Amiri Quran, SIL OFL) ---------- */
@font-face { font-family: 'AV Quran'; src: url('fonts/amiri-quran-ayah.woff') format('woff'); font-display: swap; }
.ayah { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ayah-txt { margin: 0; font-family: 'AV Quran', 'Amiri Quran', 'Amiri', serif; font-size: 46px; line-height: 1.85; font-weight: 400; direction: rtl; quotes: none;
  background: linear-gradient(180deg, #FFF3CC 10%, #E8C77E 45%, #B98E3A 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(217, 181, 102, .25)); padding: 0 4px; }
[data-theme="light"] .ayah-txt { background: linear-gradient(180deg, #B98E3A 10%, #8A6620 60%, #5E430F 95%); -webkit-background-clip: text; background-clip: text; filter: none; }
.ayah-orn { width: 180px; color: var(--gold); opacity: .7; margin: 4px 0 6px; }
.ayah-orn svg { display: block; width: 100%; height: auto; }
.ayah-tr { font-size: 15px; font-style: italic; color: var(--text2); }
html[lang="bn"] .ayah-tr { font-style: normal; }
.ayah-ref { font-size: 11.5px; letter-spacing: .1em; color: var(--gold); opacity: .8; text-transform: uppercase; margin-top: 2px; }
html[lang="bn"] .ayah-ref, html[lang="ar"] .ayah-ref { letter-spacing: .02em; font-size: 12.5px; }
.auth-show-in > .ayah { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--gold-line); align-self: stretch; }
.ayah.compact { display: none; align-items: center; text-align: center; margin-bottom: 18px; }
.ayah.compact .ayah-txt { font-size: 34px; }
.ayah.compact .ayah-orn { width: 140px; }
.ayah.set { align-items: center; text-align: center; padding: 6px 20px 14px; margin: 0 20px 12px; border-bottom: 1px solid var(--line); }
.ayah.set .ayah-txt { font-size: 36px; }
@media (max-width: 1024px) { .ayah.compact { display: flex; } }
@media (max-width: 480px) { .ayah.compact .ayah-txt { font-size: 28px; } .ayah.compact { margin-bottom: 14px; } }

/* ============================================================
   v4 — Inheritance protection · Osiyatnama · Heir page
   ============================================================ */
.banner.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .3); }
.banner.warn > .ico { color: var(--warn); }
.inh-status { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.inh-status::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--st, var(--line2)); }
.inh-status.s-active { --st: linear-gradient(90deg, #34D399, var(--gold)); }
.inh-status.s-warning { --st: var(--warn); } .inh-status.s-urgent { --st: var(--danger); } .inh-status.s-released { --st: var(--danger); }
.inh-status.s-paused { --st: var(--info); }
.inh-st-main { display: flex; align-items: center; gap: 16px; }
.inh-st-main .halo { margin: 0; flex: none; }
.inh-st-main h2 { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.inh-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface3); color: var(--muted); letter-spacing: .03em; }
.s-active .inh-pill { background: rgba(52, 211, 153, .14); color: var(--ok); }
.s-warning .inh-pill { background: rgba(251, 191, 36, .14); color: var(--warn); }
.s-urgent .inh-pill, .s-released .inh-pill { background: rgba(248, 113, 113, .14); color: var(--danger); }
.s-paused .inh-pill { background: rgba(96, 165, 250, .14); color: var(--info); }
.s-urgent .halo { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); transform: scale(1.04); } }
.inh-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inh-dates > div { padding: 12px 14px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inh-dates span { font-size: 11.5px; color: var(--muted); }
.inh-dates b { font-size: 13.5px; font-weight: 600; }
.inh-dates b.gold { color: var(--gold); }
.inh-sync { display: flex; align-items: center; gap: 6px; }
.inh-sync .ico { color: var(--ok); }
.inh-steps { list-style: none; padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.inh-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); }
.inh-steps li:not(:last-child)::after { content: ''; position: absolute; top: 34px; inset-inline-end: -12px; width: 12px; height: 2px; background: var(--gold-line); }
.inh-steps li:last-child { border-color: rgba(248, 113, 113, .3); }
.inh-n { position: absolute; top: 10px; inset-inline-end: 12px; font-size: 11px; font-weight: 800; color: var(--faint); }
.inh-i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.inh-steps li:last-child .inh-i { color: var(--danger); background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); }
.inh-steps b { font-size: 14px; } .inh-steps span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.inh-form { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.inh-form .opt { cursor: pointer; }
.heirs { display: flex; flex-direction: column; gap: 10px; padding: 4px 20px 20px; }
.heir { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); }
.heir .grow { display: flex; flex-direction: column; gap: 3px; }
.heir .grow > b { font-size: 15px; }
.heir .pill { width: fit-content; }
.heir-types { display: flex; align-items: center; gap: 5px; color: var(--text2); }
.heir-types .ico { color: var(--gold); }
.htypes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; transition: opacity .2s; }
.htypes.off { opacity: .45; pointer-events: none; }
.htypes .check > span { gap: 8px; }
/* heir page */
.heir-page { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding: 80px 16px 40px; position: relative; }
.heir-page > .auth-tools { position: absolute; }
.heir-wrap { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.heir-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ayah.compact.show { display: flex; margin-bottom: 0; }
.heir-wrap > .auth-card { max-width: 480px; }
.heir-data { width: 100%; display: flex; flex-direction: column; gap: 22px; }
.heir-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.heir-intro h2 { font-size: 26px; font-weight: 800; }
.heir-intro .note { text-align: start; max-width: 560px; }
.heir-group { display: flex; flex-direction: column; gap: 12px; }
.heir-item { padding: 18px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, linear-gradient(135deg, var(--gold-line), var(--line) 30%, var(--line) 70%, var(--gold-line)) border-box; border: 1px solid transparent; }
.heir-item.will { background: radial-gradient(500px 200px at 100% 0, rgba(217, 181, 102, .14), transparent 70%) padding-box, linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, linear-gradient(135deg, var(--gold), var(--gold-line)) border-box; }
.heir-item .det-head h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
@media print {
  .heir-kit { max-width: 720px; margin: 0 auto; }
  .kit-ayah { font-family: 'AV Quran', 'Amiri Quran', serif; font-size: 30px; color: #8A6620; margin: 10px 0 4px; direction: rtl; }
  .kit-to { font-weight: 700; font-size: 17px; margin-top: 18px; }
  .kit-date { color: #666; font-size: 13px; }
  .kit-pre { text-align: start; white-space: pre-wrap; font-family: var(--font); font-size: 12.5px; line-height: 1.7; }
  .heir-kit ol { text-align: start; max-width: 520px; margin: 18px auto; line-height: 1.9; }
}
@media (max-width: 900px) {
  .inh-dates { grid-template-columns: 1fr; }
  .inh-steps { grid-template-columns: 1fr 1fr; }
  .inh-steps li:not(:last-child)::after { display: none; }
  .htypes { grid-template-columns: 1fr; }
  .heir { flex-wrap: wrap; }
  .inh-acts .btn { flex: 1; }
}

.inh-steps li > div { display: flex; flex-direction: column; gap: 4px; }
.heir .pill { align-self: flex-start; white-space: nowrap; }

.micro b.ar { font-weight: 400; letter-spacing: 0; font-family: 'Noto Kufi Arabic', serif; }

/* ================= v6 · accounts & sync ================= */
.choice { display: grid; gap: 12px; }
.choice-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--input); text-align: start; transition: border-color .2s, box-shadow .2s, transform .2s; }
.choice-opt > div { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choice-opt b { font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice-opt span:not(.halo) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.choice-opt > .ico { color: var(--muted); flex: none; }
.choice-opt:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.choice-opt.rec { border-color: var(--gold); background: linear-gradient(120deg, var(--gold-soft), transparent 70%), var(--input); box-shadow: 0 0 0 3px var(--gold-soft); }
.choice-opt.rec > .ico { color: var(--gold); }
.choice-opt.local:hover { border-color: rgba(248, 113, 113, .45); }
.choice-opt .warn-txt { color: var(--danger) !important; font-weight: 500; }
.pill { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; color: #1A1206; background: linear-gradient(135deg, #F7E2A5, #D9B566); }
.halo.danger { color: var(--danger); background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); }
.note.danger-note { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); color: var(--text); }
.note.danger-note .ico { color: var(--danger); }
.pad-note { margin: 14px 18px 4px; }
.acct-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.acct-chip .ico { width: 17px; height: 17px; }
.acct-chip.local { color: var(--warn); background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.code-inp { text-align: center; font-size: 26px !important; letter-spacing: .45em; font-weight: 700; padding-inline-start: .45em; }
.fld { position: relative; }
.fld-st { display: block; font-size: 12.5px; font-weight: 600; min-height: 0; margin-top: 2px; }
.fld-st.good { color: var(--ok); } .fld-st.bad { color: var(--danger); }
.link-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.sync-btn { position: relative; }
.sync-btn.s-ok { color: var(--ok); }
.sync-btn.s-busy { color: var(--gold); } .sync-btn.s-busy .ico { animation: syncPulse 1.1s ease-in-out infinite; }
.sync-btn.s-off { color: var(--muted); }
.sync-btn.s-err, .sync-btn.s-auth { color: var(--danger); }
.sync-btn.s-auth::after { content: ''; position: absolute; top: 7px; inset-inline-end: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
@keyframes syncPulse { 50% { opacity: .35; transform: translateY(-1px); } }
.banner.warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); }
.banner.warn > .ico { color: var(--warn); }
.local-banner { margin-bottom: 14px; }
@media (max-width: 600px) { .local-banner { flex-wrap: wrap; } .local-banner .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .sync-btn.s-busy .ico { animation: none; } }
