/* Prava Academy — dizayn tizimi: yorug' (standart) va qorong'i rejim.
   Barcha ranglar tokenlarda; komponentlar faqat tokenlardan foydalanadi. */
:root {
  --primary: #1e1b5c;
  --primary-hover: #2c2880;
  --primary-soft: #eeedf9;
  --primary-soft-2: #dedcf3;
  --on-primary: #ffffff;
  --accent: #2f6bff;
  --accent-soft: #eaf1ff;
  --cta: #22c55e;
  --cta-hover: #16a34a;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #e9edf3;
  --border: #e6eaf0;
  --border-strong: #d6dce5;

  --text: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --text-4: #9ca3af;

  --success: #22c55e;
  --success-soft: #e8f8ee;
  --danger: #ef4444;
  --danger-soft: #fdecec;
  --warning: #f59e0b;
  --warning-soft: #fef5e4;
  --orange: #f97316;
  --orange-soft: #fff1e7;
  --premium: #f5a524;
  --premium-soft: #fff6e5;
  --tg: #229ed9;
  --tg-soft: #e6f5fc;

  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --overlay: rgba(17, 24, 39, .45);
  --img-bg: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --primary: #6d68f0;
  --primary-hover: #847ff7;
  --primary-soft: rgba(109, 104, 240, .16);
  --primary-soft-2: rgba(109, 104, 240, .28);
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, .15);

  --bg: #111214;
  --surface: #1c1d21;
  --surface-2: #232429;
  --surface-3: #2c2e34;
  --border: #2a2c31;
  --border-strong: #363941;

  --text: #f3f4f6;
  --text-2: #d1d5db;
  --text-3: #9ca3af;
  --text-4: #6b7280;

  --success-soft: rgba(34, 197, 94, .15);
  --danger-soft: rgba(239, 68, 68, .15);
  --warning-soft: rgba(245, 158, 11, .15);
  --orange-soft: rgba(249, 115, 22, .16);
  --premium-soft: rgba(245, 165, 36, .14);
  --tg-soft: rgba(34, 158, 217, .15);

  --shadow: none;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  --overlay: rgba(0, 0, 0, .6);
  --img-bg: #f8fafc;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s ease, color .25s ease;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal;
  font-size: 22px; line-height: 1; display: inline-block; width: 1em; height: 1em; overflow: hidden;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; user-select: none;
  flex-shrink: 0; font-variation-settings: "FILL" 1, "wght" 500;
}
.ms.outline { font-variation-settings: "FILL" 0, "wght" 400; }

/* ───────────── Karkas ───────────── */
.boot { min-height: 100vh; display: grid; place-items: center; }
.sidebar { display: none; }
.main { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + 34px); }
.main.full { padding-bottom: 32px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-3); font-size: 11px; font-weight: 500; padding: 6px 0; }
.tabbar a .pill-ic { width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s; }
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar a.active .pill-ic { background: var(--primary-soft); }

/* Yuqori menyu (kompyuter) */
.topnav { position: sticky; top: 0; z-index: 45; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topnav .in { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 8px; }
.topnav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--primary); margin-right: 12px; }
html[data-theme="dark"] .topnav .brand { color: var(--text); }
.topnav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav .links { display: none; gap: 2px; }
.topnav .links a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: var(--text-2); }
.topnav .links a:hover { background: var(--surface-2); }
.topnav .links a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.topnav .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pro-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: #b45309; background: var(--premium-soft); border: 1px solid #fcd9a0; }
html[data-theme="dark"] .pro-btn { color: var(--premium); border-color: transparent; }
.pro-btn .ms { font-size: 18px; }

@media (min-width: 980px) {
  .topnav .links { display: flex; }
  .tabbar { display: none; }
  .main { padding: 30px 24px 56px; }
  .main.wide { max-width: 1240px; }
}

/* ───────────── Sarlavhalar ───────────── */
.topbar { display: flex; align-items: center; gap: 6px; margin: -4px 0 16px; min-height: 44px; }
.topbar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { width: 42px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .15s; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-3); }
.page-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.page-head h1 { flex: 1; margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.page-head p { margin: 2px 0 0; color: var(--text-3); font-size: 14px; }
.section-title { font-size: 17px; font-weight: 700; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-cap { font-size: 13px; font-weight: 600; color: var(--text-3); margin: 22px 4px 10px; }

/* ───────────── Kartalar ───────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
html:not([data-theme="dark"]) .card { border-color: transparent; }
.card.soft { background: var(--primary-soft); box-shadow: none; border-color: transparent; }
.card.flat { box-shadow: none; }
.tap { cursor: pointer; text-align: left; width: 100%; display: block; transition: transform .12s ease, box-shadow .2s, background .2s; }
.tap:hover { box-shadow: var(--shadow-lg); }
.tap:active { transform: scale(.985); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.title { font-size: 15.5px; font-weight: 600; color: var(--text); }
.sub { color: var(--text-3); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.muted { color: var(--text-3); }
.faint { color: var(--text-4); }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ibox { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary); }
.ibox.round { border-radius: 50%; }
.ibox.sm { width: 36px; height: 36px; border-radius: 10px; }
.ibox.xs { width: 30px; height: 30px; border-radius: 8px; }
.ibox.lg { width: 56px; height: 56px; border-radius: 16px; }
.ibox.solid { background: var(--primary); color: var(--on-primary); }
.ibox.success { background: var(--success-soft); color: var(--success); }
.ibox.danger { background: var(--danger-soft); color: var(--danger); }
.ibox.warning { background: var(--warning-soft); color: var(--warning); }
.ibox.orange { background: var(--orange-soft); color: var(--orange); }
.ibox.premium { background: var(--premium-soft); color: var(--premium); }
.ibox.tg { background: var(--tg-soft); color: var(--tg); }
.ibox.neutral { background: var(--surface-2); color: var(--text-2); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chip .ms { font-size: 17px; }
.chip.orange { background: var(--orange-soft); color: var(--orange); border-color: transparent; }
.chip.primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chip.success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.chip.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip.premium { background: var(--premium-soft); color: var(--premium); border-color: transparent; }
button.chip:hover { border-color: var(--border-strong); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .4px; background: var(--premium); color: #fff; vertical-align: middle; }

/* Hero (Qo'llanma) */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 20px; min-height: 172px;
  background: var(--primary-soft); display: flex; flex-direction: column;
}
.hero .kicker { color: var(--primary); font-size: 13px; font-weight: 500; }
.hero h2 { margin: 6px 0 0; font-size: 23px; font-weight: 700; line-height: 1.2; max-width: 62%; color: var(--text); }
.hero .go { margin-top: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(47,107,255,.35); }
.hero .art { position: absolute; right: -6px; bottom: -6px; width: 46%; max-width: 220px; pointer-events: none; }
.hero .stat { position: absolute; top: 18px; right: 18px; text-align: right; }

.feature { border-radius: 18px; padding: 16px; min-height: 132px; display: flex; flex-direction: column; background: var(--primary-soft); text-align: left; }
.feature .title { font-size: 15px; line-height: 1.3; }
.feature .ic { margin-top: auto; align-self: flex-start; }
.feature .ic .ms { font-size: 40px; color: var(--primary); }

.list-group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
html:not([data-theme="dark"]) .list-group { border-color: transparent; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; transition: background .15s; }
.list-row + .list-row { border-top: 1px solid var(--border); }
.list-row:hover { background: var(--surface-2); }
.list-row .label { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; }
.list-row .value { color: var(--text-3); font-size: 13.5px; }
.list-row .chev { color: var(--text-4); }
.list-row.danger .label { color: var(--danger); }

/* Kalit-qiymat plitkalari (statistika) */
.stat-tile { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; min-height: 92px; }
html:not([data-theme="dark"]) .stat-tile { border-color: transparent; }
.stat-tile b { display: block; font-size: 22px; font-weight: 700; }
.stat-tile small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 4px; line-height: 1.3; max-width: 75%; }
.stat-tile .ibox { position: absolute; top: 12px; right: 12px; }

/* Ketma-ket kunlar */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; text-align: center; }
.week small { color: var(--text-3); font-size: 12px; }
.week i { width: 30px; height: 30px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--surface-2); color: var(--text-4); }
.week i.on { background: var(--success-soft); color: var(--success); }
.week i.today { outline: 2px solid var(--primary); outline-offset: 1px; }
.week i .ms { font-size: 17px; }

/* ───────────── Tugmalar ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 15.5px;
  background: var(--primary); color: var(--on-primary); transition: background .15s, opacity .15s, transform .1s;
}
.btn:hover:not(:disabled) { background: var(--primary-hover); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 16px; }
.btn.sm { min-height: 40px; font-size: 14px; padding: 0 14px; border-radius: 11px; }
.btn.secondary { background: var(--primary-soft); color: var(--primary); }
.btn.secondary:hover:not(:disabled) { background: var(--primary-soft-2); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover:not(:disabled) { background: #dc2626; }
.btn.success { background: var(--success); color: #fff; }
.btn.premium { background: var(--premium); color: #fff; }
.btn.premium:hover:not(:disabled) { background: #e39412; }
.link-btn { color: var(--primary); font-weight: 600; padding: 6px; border-radius: 8px; }
.link-btn.muted { color: var(--text-3); font-weight: 500; }
.btn-row { display: flex; gap: 12px; }
.btn-row > * { flex: 1; }

/* Almashtirgich (switch) */
.switch { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-3); transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(20px); }

/* ───────────── Formalar ───────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-2); margin: 0 0 6px 2px; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border-strong); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; color: var(--text);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder { color: var(--text-4); }
textarea.input { resize: vertical; min-height: 110px; }
.input.code { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; }
.input-icon { position: relative; }
.input-icon > .ms { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.input-icon .toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }

/* ───────────── Ro'yxatlar / biletlar ───────────── */
.list > * + * { margin-top: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); }
html:not([data-theme="dark"]) .tile { border-color: transparent; }
.pbar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.pbar > i { display: block; height: 100%; background: var(--primary); border-radius: 6px; transition: width .6s ease; }
.pbar.success > i { background: var(--success); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.tag.success { background: var(--success-soft); color: var(--success); }
.tag.warning { background: var(--warning-soft); color: var(--warning); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }

.info-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--text); font-size: 14px; margin-bottom: 14px; }
.info-bar .ms { color: var(--primary); }

.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .ticket-grid { grid-template-columns: repeat(3, 1fr); } }
.ticket { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: left; width: 100%; }
html:not([data-theme="dark"]) .ticket { border-color: transparent; }
.ticket .head { display: flex; gap: 10px; align-items: center; }
.ticket .head .ms { color: var(--text-2); }
.ticket b { font-size: 15px; font-weight: 600; }
.ticket small { display: block; color: var(--text-3); font-size: 12px; }
.ticket .score { margin-top: 14px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.ticket.done .score { color: var(--success); }

/* ───────────── Imtihon ───────────── */
.exam { display: flex; flex-direction: column; min-height: calc(100vh - 40px); }
.qnums { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.qnums::-webkit-scrollbar { display: none; }
.qnums button { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--text-2); background: transparent; border: 1px solid transparent; transition: all .2s; }
.qnums button:hover { background: var(--surface-3); }
.qnums button.cur { background: var(--primary); color: #fff; font-weight: 700; }
.qnums button.ok { background: var(--success-soft); color: var(--success); font-weight: 600; }
.qnums button.bad { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.qnums button.cur.ok, .qnums button.cur.bad { box-shadow: 0 0 0 2px var(--primary); }
.qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.qhead .q-of { flex: 1; font-weight: 600; font-size: 15px; }
.qhead .q-of span { color: var(--text-3); font-weight: 500; }
.timer { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 13px; }
.timer .ms { font-size: 16px; }
.timer.warn { background: var(--danger-soft); color: var(--danger); }
.score-chips { display: flex; gap: 6px; }
.q-image { border-radius: 16px; overflow: hidden; background: var(--img-bg); margin-bottom: 14px; cursor: zoom-in; display: flex; justify-content: center; align-items: center; min-height: 120px; border: 1px solid var(--border); }
.q-image img { width: 100%; max-height: 420px; object-fit: contain; }
.q-image.placeholder { cursor: default; background: var(--surface-2); }
.q-image.placeholder img { object-fit: cover; max-height: 200px; }
.q-card { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 14px; }
html:not([data-theme="dark"]) .q-card { border-color: transparent; }
.q-text { font-size: 16.5px; font-weight: 600; line-height: 1.45; margin: 0; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; margin-bottom: 10px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: background .2s, border-color .2s, transform .1s; line-height: 1.35; font-size: 15px; color: var(--text);
}
html:not([data-theme="dark"]) .opt { border-color: transparent; }
.opt:hover:not(:disabled) { border-color: var(--primary); }
.opt:active:not(:disabled) { transform: scale(.99); }
.opt .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 14px; }
.opt.correct { background: var(--success); border-color: var(--success); color: #fff; }
.opt.correct .num { background: rgba(255,255,255,.25); color: #fff; }
.opt.wrong { background: var(--danger); border-color: var(--danger); color: #fff; }
.opt.wrong .num { background: rgba(255,255,255,.25); color: #fff; }
.opt.hidden-opt { visibility: hidden; }
.opt.muted-opt { opacity: .6; }
.explain { margin-top: 4px; padding: 14px; border-radius: 14px; background: var(--primary-soft); display: flex; gap: 10px; color: var(--text-2); font-size: 14px; line-height: 1.55; white-space: pre-line; }
.explain .ms { color: var(--primary); }
.explain.locked { background: var(--premium-soft); align-items: center; cursor: pointer; width: 100%; text-align: left; color: var(--text); }
.explain.locked .ms { color: var(--premium); }
.exam-foot { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); margin-top: auto; display: flex; gap: 10px; }
.kbd-hint { color: var(--text-4); font-size: 12px; text-align: center; margin: 2px 0 10px; }
@media (hover: none) { .kbd-hint { display: none; } }

.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; text-align: center; font-weight: 700; }
.ring circle { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1); }

/* ───────────── Grafik ───────────── */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 16px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 30px; border-radius: 8px; background: var(--primary-soft-2); min-height: 4px; transition: height .6s ease; }
.chart .bar.has { background: var(--primary); opacity: .55; }
.chart .bar.today { opacity: 1; }
.chart small { color: var(--text-3); font-size: 11.5px; }
.chart .n { color: var(--text-2); font-size: 11.5px; font-weight: 600; min-height: 14px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-left: 12px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ratio { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 3px; }

/* ───────────── O'yinlar ───────────── */
.lifeline { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--primary-soft); color: var(--primary); }
.lifeline:disabled { background: var(--surface-2); color: var(--text-4); text-decoration: line-through; }
.big-num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -1px; }

/* ───────────── Pro / to'lov ───────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 16px; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); text-align: left; transition: border-color .2s, background .2s; }
.plan.sel { border-color: var(--primary); background: var(--primary-soft); }
.plan .price { font-size: 22px; font-weight: 700; }
.bank {
  width: 100%; text-align: left; padding: 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #2f6bff 0%, #1b45c7 100%); box-shadow: 0 10px 24px rgba(47,107,255,.3);
}
.bank .chip-img { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #ffe7a3, #d9a93a); }
.bank .num { font-size: 20px; font-weight: 700; letter-spacing: 2.5px; margin: 22px 0 16px; font-variant-numeric: tabular-nums; }
.bank .lbl { font-size: 10px; letter-spacing: 1px; opacity: .7; }
.bank .copy { background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.segm { display: flex; flex-wrap: wrap; gap: 8px; }
.segm button { padding: 9px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 14px; font-weight: 500; }
.segm button.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: var(--primary-soft); color: var(--text-2); }
.note .ms { font-size: 18px; color: var(--primary); }
.note.premium { background: var(--premium-soft); }
.note.premium .ms { color: var(--premium); }
.note.success { background: var(--success-soft); }
.note.success .ms { color: var(--success); }

.cert {
  width: 320px; max-width: 100%; margin: 0 auto; padding: 30px 26px; border-radius: 24px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #2f6bff 0%, #173aa8 100%); box-shadow: 0 18px 40px rgba(47,107,255,.35);
}

/* ───────────── Overlay ───────────── */
.backdrop { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s ease; }
.backdrop.sheet-mode { align-items: flex-end; padding: 0; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 22px; animation: pop .2s ease; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.modal p { margin: 0; color: var(--text-2); line-height: 1.5; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .22s ease; }
@media (min-width: 600px) { .backdrop.sheet-mode { align-items: center; padding: 16px; } .sheet { border-radius: 24px; } }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 18px; }
.lightbox { background: rgba(0,0,0,.9); cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 92vh; background: #fff; border-radius: 12px; }
#toast-root { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
@media (min-width: 980px) { #toast-root { bottom: 28px; } }
.toast { background: #1f2937; color: #fff; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.45; animation: up .2s ease; white-space: pre-line; }
.toast.success { background: #16a34a; }
.toast.danger { background: #dc2626; }
.toast.warn { background: #d97706; }

.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--primary-soft-2); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.spinner.light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.loading-box { display: grid; place-items: center; padding: 80px 0; }
.empty { text-align: center; padding: 56px 16px; color: var(--text-3); }
.empty .ms { font-size: 52px; color: var(--text-4); display: block; margin: 0 auto 12px; }

.dots { display: flex; justify-content: center; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--border-strong); transition: width .25s, background .25s; }
.dots i.on { width: 22px; background: var(--primary); }
.onb-icon { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 30px; background: var(--primary-soft); color: var(--primary); }
.onb-icon .ms { font-size: 58px; }
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 36px 20px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.logo-big { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 16px; box-shadow: var(--shadow-lg); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-4); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.lang-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.lang-opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.lang-opt .flag { font-size: 26px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b8cff, #2f6bff); flex-shrink: 0; }

.fade-in { animation: rise .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ═══════════════ 2-dizayn: landing, variantlar, imtihon, tariflar ═══════════════ */
.btn.cta { background: var(--cta); color: #fff; box-shadow: 0 10px 24px rgba(34,197,94,.3); }
.btn.cta:hover:not(:disabled) { background: var(--cta-hover); }
.btn.outline-accent { background: var(--surface); color: var(--text); border: 2px solid var(--accent-soft); }
.btn.outline-accent:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); }
.btn.xl { min-height: 60px; padding: 0 30px; font-size: 18px; border-radius: 16px; }
.btn.orange { background: linear-gradient(90deg, #ea7a0c, #ef5b16); color: #fff; box-shadow: 0 10px 24px rgba(239,91,22,.3); }
.btn.orange:hover:not(:disabled) { filter: brightness(1.05); background: linear-gradient(90deg, #ea7a0c, #ef5b16); }

/* Landing */
.landing { display: grid; gap: 28px; align-items: center; padding: 6px 0 10px; }
@media (min-width: 980px) { .landing { grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 36px 0 30px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.landing h1 { margin: 18px 0 14px; font-size: clamp(32px, 6vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -1px; color: var(--primary); }
html[data-theme="dark"] .landing h1 { color: var(--text); }
.landing .lead { font-size: 17px; line-height: 1.6; color: var(--text-3); margin: 0 0 28px; max-width: 620px; }
.landing .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.try-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.try-card .cap { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; letter-spacing: .6px; color: var(--text-3); text-transform: uppercase; }
.try-card .q { font-weight: 600; font-size: 16px; line-height: 1.45; margin: 12px 0 14px; }
.try-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14.5px; transition: border-color .15s, background .15s; }
.try-opt:hover:not(:disabled) { border-color: var(--accent); }
.try-opt kbd { min-width: 30px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); font: 600 11.5px var(--font); color: var(--text-3); }
.try-opt.correct { background: var(--success-soft); border-color: var(--success); }
.try-opt.wrong { background: var(--danger-soft); border-color: var(--danger); }
.try-card .hint { font-size: 13px; color: var(--text-3); margin: 6px 0 12px; }
.feat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: left; width: 100%; transition: box-shadow .2s, transform .12s, border-color .2s; }
.feat:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feat .ibox { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--text); }
.feat .ibox .ms { font-size: 26px; }
.feat .t { flex: 1; font-weight: 600; font-size: 16px; }
.feat .t small { display: block; font-weight: 400; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.pro-tag { position: absolute; top: -10px; right: 12px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 8px; background: #fff7e6; border: 1px solid #fcd34d; color: #b45309; font-size: 11.5px; font-weight: 700; }
html[data-theme="dark"] .pro-tag { background: #3a2a08; border-color: #7a5a14; color: #fbbf24; }
.pro-tag .ms { font-size: 14px; }

/* Variantlar */
.variants { display: grid; gap: 22px; }
@media (min-width: 980px) { .variants { grid-template-columns: 380px 1fr; gap: 32px; align-items: start; } .variants .panel { position: sticky; top: 88px; } }
.seg3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg3 button { padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2); }
.seg3 button.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.big-variant { margin: 14px 0; padding: 26px 16px; border-radius: 16px; background: var(--surface-2); border: 2px solid var(--border-strong); text-align: center; }
.big-variant b { display: block; font-size: 64px; line-height: 1; font-weight: 800; color: var(--primary); }
html[data-theme="dark"] .big-variant b { color: var(--text); }
.big-variant span { display: block; margin-top: 8px; color: var(--text-2); font-weight: 500; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.kv3 div { padding: 14px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.kv3 b { display: block; font-size: 22px; font-weight: 800; }
.kv3 small { color: var(--text-3); font-size: 12.5px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
@media (min-width: 980px) { .vgrid { grid-template-columns: repeat(10, 1fr); } }
.vcell { position: relative; height: 56px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, background .15s, transform .1s; }
.vcell:hover:not(:disabled) { border-color: var(--primary); }
.vcell.sel { border: 2px solid var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.vcell.pass { background: var(--success-soft); border-color: #a7e9c0; color: var(--success); }
.vcell.fail { background: var(--danger-soft); border-color: #f8c4c4; color: var(--danger); }
html[data-theme="dark"] .vcell.pass, html[data-theme="dark"] .vcell.fail { border-color: transparent; }
.vcell.locked { color: var(--text-4); background: var(--surface-2); cursor: pointer; }
.vcell .lk { position: absolute; top: 5px; right: 6px; font-size: 15px; color: var(--text-4); }
.legend-row { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.legend-row span { display: inline-flex; align-items: center; gap: 7px; }
.legend-row i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* Imtihon (2 ustun) */
.ex { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.ex-top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.ex-top .in, .ex-nums .in, .ex-body, .ex-foot .in { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.ex-top .in { height: 62px; display: flex; align-items: center; gap: 10px; }
.ex-top .ttl { font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-top .clock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.ex-top .clock.warn { color: var(--danger); }
.ex-top .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sbtn { height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); }
.sbtn.ok { color: var(--success); border-color: #a7e9c0; background: var(--success-soft); }
.sbtn.no { color: var(--danger); border-color: #f8c4c4; background: var(--danger-soft); }
html[data-theme="dark"] .sbtn.ok, html[data-theme="dark"] .sbtn.no { border-color: transparent; }
.sbtn.icon { width: 38px; padding: 0; justify-content: center; }
.ex-nums { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ex-nums .in { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; justify-content: flex-start; }
@media (min-width: 980px) { .ex-nums .in { justify-content: center; } }
.ex-nums .in::-webkit-scrollbar { display: none; }
.ex-nums button { min-width: 44px; height: 40px; border-radius: 10px; flex-shrink: 0; font-weight: 500; font-size: 15px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.ex-nums button.ok { background: var(--success-soft); border-color: #a7e9c0; color: var(--success); }
.ex-nums button.bad { background: var(--danger-soft); border-color: #f8c4c4; color: var(--danger); }
.ex-nums button.cur { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.ex-body { flex: 1; width: 100%; padding-top: 22px; padding-bottom: 110px; display: grid; gap: 20px; align-content: start; }
@media (min-width: 980px) { .ex-body { grid-template-columns: 1fr 0.82fr; gap: 26px; } .ex-body.noimg { grid-template-columns: minmax(0, 880px); } }
.ex-body .qno { font-size: 17px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; }
.ex-q { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; font-weight: 600; font-size: 16.5px; line-height: 1.5; margin-bottom: 16px; }
.ex-opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; min-height: 74px; margin-bottom: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 15.5px; line-height: 1.45; color: var(--text); transition: border-color .15s, background .2s; }
.ex-opt:hover:not(:disabled) { border-color: var(--primary); }
.ex-opt .rd { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border-strong); display: grid; place-items: center; }
.ex-opt .rd .ms { font-size: 22px; }
.ex-opt.correct { background: var(--success); border-color: var(--success); color: #fff; }
.ex-opt.wrong { background: #f87171; border-color: #f87171; color: #fff; }
.ex-opt.correct .rd, .ex-opt.wrong .rd { border: 0; background: rgba(255,255,255,.25); }
.ex-opt.dim { opacity: .7; }
.ex-img { background: var(--img-bg); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: grid; place-items: center; min-height: 260px; cursor: zoom-in; align-self: start; }
.ex-img img { max-width: 100%; max-height: 460px; object-fit: contain; border-radius: 10px; }
@media (min-width: 980px) { .ex-img { margin-top: 38px; position: sticky; top: 140px; } }
.ex-explain { margin-top: 4px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text-2); line-height: 1.6; white-space: pre-line; font-size: 14.5px; }
.ex-foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.ex-foot .in { height: 74px; display: flex; align-items: center; gap: 10px; }
.ex-foot .btn { min-height: 48px; border-radius: 12px; }
.ex-foot .izoh { background: var(--surface); color: var(--text); border: 1.5px solid var(--primary); }
html[data-theme="dark"] .ex-foot .izoh { border-color: var(--border-strong); }
.ex-foot .izoh.on { background: var(--primary-soft); }
.popover { position: absolute; top: 54px; right: 0; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.popover .list-row { border-radius: 10px; }

/* Tariflar */
.price-wrap { display: grid; gap: 22px; }
@media (min-width: 1100px) { .price-wrap { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.compare { position: relative; display: grid; gap: 14px; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; gap: 26px; } }
.plan-col { border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.plan-col .hd { padding: 18px; text-align: center; font-weight: 600; font-size: 18px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.plan-col ul { list-style: none; margin: 0; padding: 14px 22px 18px; }
.plan-col li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15.5px; }
.plan-col li.no { color: var(--text-4); text-decoration: line-through; }
.plan-col li .ms { font-size: 22px; }
.plan-col.pro { border: 2px solid #f8c471; background: linear-gradient(160deg, #fff8ec 0%, var(--surface) 45%); }
html[data-theme="dark"] .plan-col.pro { border-color: #7a5a14; background: linear-gradient(160deg, #2a210f 0%, var(--surface) 45%); }
.plan-col.pro .hd { color: #d97706; font-weight: 800; border-color: #fde7c2; display: flex; justify-content: center; align-items: center; gap: 8px; }
html[data-theme="dark"] .plan-col.pro .hd { border-color: #3a2f18; }
.vs { display: none; }
@media (min-width: 640px) { .vs { display: grid; position: absolute; left: 50%; top: 86px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-3); z-index: 1; } }
.tariff { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.tariff h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 21px; }
.tplan { position: relative; display: flex; gap: 14px; width: 100%; text-align: left; padding: 18px; margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); transition: border-color .15s, background .15s; }
.tplan.sel { border: 2px solid #f59e0b; background: #fffaf0; }
html[data-theme="dark"] .tplan.sel { background: #2a210f; }
.tplan .rdo { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.tplan.sel .rdo { border: 0; background: #f59e0b; color: #fff; }
.tplan .rdo .ms { font-size: 16px; }
.tplan .nm { font-weight: 700; font-size: 16.5px; }
.tplan .dd { color: var(--text-3); font-size: 13.5px; margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tplan .pr { margin-left: auto; font-weight: 800; font-size: 20px; white-space: nowrap; }
.save { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--success-soft); color: #15803d; font-weight: 600; font-size: 12.5px; }
html[data-theme="dark"] .save { color: var(--success); }
.rec { position: absolute; top: -11px; right: 16px; padding: 2px 10px; border-radius: 8px; background: #d97706; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.paym { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 18px; }
.paym button { position: relative; height: 52px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 700; font-size: 16px; }
.paym button.sel { border: 2px solid #f59e0b; background: #fffaf0; }
html[data-theme="dark"] .paym button.sel { background: #2a210f; }
.paym button .ck { position: absolute; top: 6px; right: 8px; color: #f59e0b; font-size: 20px; }

@media (max-width: 979px) { .ex-img { order: -1; min-height: 0; } }
