/* SKY EDUCARE SOFTWARE: shared styles. Direction: a classroom chalkboard at night (indigo ink, chalk white, marigold) with a quiet light/dark body. */
:root {
  --bg: #F2F5FB;
  --surface: #FFFFFF;
  --surface-2: #E9EFFA;
  --ink: #0F1A3C;
  --muted: #4F5D88;
  --line: #D8E0F0;
  --brand: #1D5FE0;
  --brand-ink: #FFFFFF;
  --accent: #FFB400;
  --accent-ink: #2B1C00;
  --night: #0B1130;
  --night-2: #141C47;
  --chalk: #F1F4FF;
  --chalk-dim: #A9B4E0;
  --ok: #137A50;
  --danger: #BE2D38;
  --note: #FFF3D1;
  --note-ink: #4A3600;
  --font-display: "Bricolage Grotesque", "Hind", system-ui, sans-serif;
  --font-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --font-chalk: "Kalam", "Hind", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080D24; --surface: #111A40; --surface-2: #18235A; --ink: #EAF0FF; --muted: #9BA9D6;
    --line: #25326B; --brand: #6EA0FF; --brand-ink: #061034; --ok: #5ED7A2; --danger: #FF8A92;
    --note: #3A2F0E; --note-ink: #FFE7A3; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080D24; --surface: #111A40; --surface-2: #18235A; --ink: #EAF0FF; --muted: #9BA9D6;
  --line: #25326B; --brand: #6EA0FF; --brand-ink: #061034; --ok: #5ED7A2; --danger: #FF8A92;
  --note: #3A2F0E; --note-ink: #FFE7A3; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
#site-header, #site-footer { display: contents; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--brand); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 88px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 680px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }

/* Night bands: chalkboard indigo with a small dot grid, a nod to bandhani cloth */
.night { background: var(--night); color: var(--chalk); position: relative; isolation: isolate; overflow: clip; }
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(241,244,255,.11) 1.6px, transparent 1.9px), radial-gradient(rgba(241,244,255,.11) 1.6px, transparent 1.9px);
  background-size: 28px 28px, 28px 28px; background-position: 0 0, 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
}
.night .eyebrow { color: var(--chalk-dim); }
.night .section-head p { color: var(--chalk-dim); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--font-body); padding: 14px 22px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.big { padding: 17px 28px; font-size: 18px; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.ghost-light { background: transparent; color: var(--chalk); border-color: rgba(241,244,255,.35); }
.btn.ghost-light:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: .02em; display: block; line-height: 1.05; }
.brand small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); display: block; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 800px) { .nav { width: 100%; margin-left: 0; gap: 20px; padding-bottom: 4px; } .nav .hide-sm { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: 40px 80px; }
.hero::after { content: ""; position: absolute; right: -6%; top: 6%; width: 52%; aspect-ratio: 1; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255,180,0,.20), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--chalk-dim); border: 1px solid rgba(241,244,255,.22); border-radius: 999px; padding: 7px 14px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(42px, 5.4vw, 68px); font-weight: 800; margin-top: 18px; letter-spacing: -0.03em; }
.chalk-u { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M0 5q7-6 14 0t14 0' fill='none' stroke='%23FFB400' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom / 28px 10px; padding-bottom: .16em; }
.hero .lead { margin-top: 18px; font-size: 19px; color: var(--chalk-dim); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--chalk-dim); font-size: 15px; }
.hero-facts li { display: flex; gap: 9px; align-items: center; }
.hero-facts li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); flex: none; }
.art { width: 100%; height: auto; display: block; overflow: visible; }
.art text { font-family: var(--font-chalk); }
.art .ch { fill: none; stroke: var(--chalk); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.15s ease-out var(--d, 0s) forwards; }
.art .ch.gold { stroke: var(--accent); }
.art .ch.blue { stroke: #6EA0FF; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .art .ch { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } .btn { transition: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-block: 44px 60px; } }

/* Trust strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 26px 24px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.strip-grid > div:first-child { border-left: 0; padding-left: 0; }
.strip-grid b { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--brand); }
.strip-grid span { color: var(--muted); font-size: 16px; line-height: 1.4; }
@media (max-width: 860px) { .strip-grid { grid-template-columns: 1fr 1fr; } .strip-grid > div { padding: 18px 14px; border-top: 1px solid var(--line); } .strip-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; } .strip-grid > div:nth-child(-n+2) { border-top: 0; } }

/* Product */
.product { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.product > * { min-width: 0; }
.product-info { padding: 40px; display: grid; gap: 18px; align-content: start; background: var(--night); color: var(--chalk); position: relative; isolation: isolate; }
.product-info::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(241,244,255,.10) 1.6px, transparent 1.9px); background-size: 24px 24px; }
.product-info h3 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.product-info p { color: var(--chalk-dim); }
.badge { display: inline-block; width: fit-content; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px dashed var(--chalk-dim); border-radius: 6px; color: var(--chalk-dim); }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.buy-pane { padding: 40px; display: grid; gap: 24px; align-content: start; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg button { font: 600 16px/1.2 var(--font-body); color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 14px 8px; cursor: pointer; display: grid; justify-items: center; gap: 8px; }
.seg button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg button[aria-selected="true"] { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.soon-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
#product-list { display: grid; gap: 22px; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { font: inherit; text-align: left; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.choice b { font-family: var(--font-display); font-size: 17px; }
.choice small { color: var(--muted); font-size: 14px; }
.choice[aria-pressed="true"] { border-color: var(--brand); background: var(--surface); box-shadow: inset 0 0 0 1px var(--brand); }
.sw-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 3px 0; }
.sw-line b { font-weight: 600; }
.dl-icon svg { width: 38px; height: 38px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.own-head { display: flex; gap: 14px; align-items: center; }
.own-head h3 { font-size: 22px; }
.req { font-family: var(--font-mono); font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.req span { color: var(--muted); font-size: 12.5px; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.amt { font-family: var(--font-display); font-size: clamp(42px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-row small { color: var(--muted); font-size: 15px; }
.tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; background: var(--accent); color: var(--accent-ink); padding: 4px 9px; border-radius: 6px; font-weight: 500; }
.soon { margin-top: 22px; border: 2px dashed var(--line); border-radius: 18px; padding: 24px 28px; color: var(--muted); display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.soon b { color: var(--ink); font-family: var(--font-display); font-size: 20px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product-info, .buy-pane { padding: 28px 20px; } }

/* How it works */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: "Step " counter(s); font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--chalk-dim); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Buy / QR */
.buy-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.buy-grid > * { min-width: 0; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 20px; justify-items: center; }
.qr-box { width: min(100%, 320px); aspect-ratio: 1; background: #fff; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-empty { text-align: center; padding: 22px; color: #55618A; font-size: 15px; border: 2px dashed #C6CFE6; border-radius: 12px; margin: 16px; }
.qr-meta { display: grid; gap: 6px; justify-items: center; text-align: center; }
.qr-meta b { font-family: var(--font-display); font-size: 20px; }
.upi-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.copy { font: 600 13px/1 var(--font-body); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--brand); color: var(--brand); }
.pay-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; counter-reset: p; }
.pay-steps li { counter-increment: p; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.pay-steps li::before { content: counter(p); width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.pay-steps b { font-family: var(--font-display); }
.note-box { background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr; } }

/* Cards, trust */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.trust-grid > * { min-width: 0; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.promises li { display: grid; gap: 2px; }
.promises b { font-family: var(--font-display); font-size: 20px; }
.promises span { color: var(--muted); }
.office { display: grid; gap: 18px; align-content: start; }
.office h3 { font-size: 24px; }
.row { display: grid; gap: 4px; }
.row .val { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* Policies, FAQ */
.stack { display: grid; gap: 12px; max-width: 860px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--brand); font-weight: 500; flex: none; }
details[open] summary::after { content: "\2212"; }
.body { padding: 0 22px 20px; display: grid; gap: 10px; color: var(--muted); max-width: 72ch; }
.body b { color: var(--ink); }
.body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-grid > * { min-width: 0; }
.night .card { background: var(--night-2); border-color: rgba(241,244,255,.14); color: var(--chalk); }
.night .label { color: var(--chalk-dim); }
.night .copy { background: transparent; color: var(--chalk); border-color: rgba(241,244,255,.3); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.site-footer { background: var(--night); color: var(--chalk-dim); padding-block: 38px; font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot b { color: var(--chalk); font-family: var(--font-display); font-size: 18px; }
.foot a { color: var(--chalk-dim); }
@media (max-width: 760px) { .band { padding-block: 56px; } }

/* Forms (portal, admin) */
.page { padding-block: 48px 80px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.portal-grid > * { min-width: 0; }
.portal-intro { display: grid; gap: 16px; padding-top: 12px; }
.portal-intro h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.portal-intro p { color: var(--muted); font-size: 18px; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { font: 600 16px/1 var(--font-body); padding: 12px 16px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.count { display: inline-block; min-width: 22px; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; text-align: center; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.field small, .hint { color: var(--muted); font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="url"], input[type="search"] { font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
input:focus { border-color: var(--brand); outline: none; }
.input-group { display: flex; align-items: stretch; }
.input-group .pre { display: grid; place-items: center; padding: 0 14px; background: var(--surface-2); border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; font-family: var(--font-mono); font-size: 15px; }
.input-group input { border-radius: 0 12px 12px 0; }
.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; background: var(--bg); }
.checks input { width: 18px; height: 18px; accent-color: var(--brand); }
.err { color: var(--danger); font-size: 15px; font-weight: 500; }
.ok-text { color: var(--ok); font-weight: 600; }
.demo-banner { background: var(--note); color: var(--note-ink); border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: center; font-size: 15px; }
.demo-banner code { font-family: var(--font-mono); font-weight: 700; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.welcome .pill { justify-self: start; }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.wait { color: var(--note-ink); background: var(--note); border-color: transparent; }
.pill.bad { color: var(--danger); border-color: var(--danger); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; justify-items: start; background: var(--bg); min-width: 0; }
.dl-card svg { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-card b { font-family: var(--font-display); font-size: 20px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.welcome { display: grid; gap: 10px; }
.welcome h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.stack-lg { display: grid; gap: 24px; max-width: 900px; }
.userbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.userbar span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* Admin */
.req-list { display: grid; gap: 14px; }
.req-card { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.req-card > * { min-width: 0; }
.req-card h3 { font-size: 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 15px; margin-top: 6px; }
.meta b { color: var(--ink); font-weight: 600; }
.req-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .req-card { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input { max-width: 340px; }
.empty { border: 2px dashed var(--line); border-radius: 16px; padding: 36px 24px; text-align: center; color: var(--muted); }
.qr-preview { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; overflow: hidden; color: #55618A; font-size: 14px; text-align: center; padding: 8px; }
.qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.set-grid > * { min-width: 0; }
@media (max-width: 900px) { .set-grid { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; background: var(--night); color: var(--chalk); padding: 13px 20px; border-radius: 12px; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--danger); color: #fff; }

/* pricing page */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-grid > * { min-width: 0; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 18px; align-content: start; }
.soon-card { border-style: dashed; background: transparent; }
.ticks.plain li::before { background: var(--brand); }
.price-card .btn { width: 100%; }
.act-card { border-left: 4px solid var(--accent); }
.dev-id { font-family: var(--font-mono); font-size: 13px; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: inline-block; max-width: 100%; }

/* admin: products */
textarea { font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; resize: vertical; }
textarea:focus, select:focus { border-color: var(--brand); outline: none; }
select { font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.prod-row { margin-bottom: 12px; }
.prod-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.p-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.img-preview { min-height: 60px; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; padding: 10px; color: var(--muted); font-size: 14px; }
.img-preview img { max-width: 100%; max-height: 220px; border-radius: 10px; }
.p-img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(241,244,255,.18); }
.p-img-sm { width: 100%; max-height: 190px; object-fit: cover; border-radius: 14px; }

.qr-help { display: grid; gap: 8px; justify-items: center; text-align: center; border-top: 1px dashed var(--line); padding-top: 16px; width: 100%; }
.qr-help .tel { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--brand); text-decoration: none; padding: 6px 14px; border: 2px solid var(--line); border-radius: 12px; }
.qr-help .tel:hover { border-color: var(--brand); }
.qr-help small { color: var(--muted); }
.nav-ct { white-space: nowrap; }
@media (max-width: 380px) { .nav { gap: 8px; } .nav a:not(.btn) { display: none; } }
.nav .btn { white-space: nowrap; } @media (max-width: 800px) { .nav { gap: 12px; } .nav .btn.small { padding-inline: 14px; } }

/* Header after login: Dashboard + Profile */
.nav-auth { display: inline-flex; gap: 10px; align-items: center; }
.prof-wrap { position: relative; display: inline-block; }
.prof-btn { display: inline-flex; align-items: center; gap: 8px; }
.prof-btn .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }
.prof-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(10,20,50,.18); padding: 8px; z-index: 60; display: grid; gap: 2px; }
.prof-menu[hidden] { display: none; }
.prof-menu a, .prof-menu button { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; }
.prof-menu a:hover, .prof-menu button:hover { background: rgba(60,90,200,.08); }
.prof-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.prof-who small { color: var(--muted); }
.prof-who b { word-break: break-all; }
@media (max-width: 800px) { .nav-auth { margin-left: auto; } .prof-menu { right: 0; } }

/* Payment QR: shows the whole picture, any shape, tap to enlarge */
.qr-box.qr-flex, .qr-box { aspect-ratio: auto; width: min(100%, 340px); min-height: 0; padding: 10px; }
.qr-box .qr-img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; image-rendering: pixelated; cursor: zoom-in; display: block; }
.qr-box img:not(.qr-img) { height: auto; }
.qr-tap { display: block; text-align: center; color: var(--muted); margin-top: 6px; font-size: 13px; }
.qr-box { display: block; text-align: center; }
.qr-box .qr-empty { margin: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,28,.88); display: grid; place-items: center; gap: 14px; padding: 18px; align-content: center; cursor: zoom-out; }
.lightbox img { max-width: min(96vw, 560px); max-height: 82vh; background: #fff; padding: 10px; border-radius: 14px; image-rendering: pixelated; }
.upi-open { width: 100%; justify-content: center; text-align: center; }
.dev-line { margin-top: 6px; color: var(--muted); }
.dev-line.ok-line { color: #1a7f4b; font-weight: 600; }
