/* qurango.online: one stylesheet for every page. Colours match the app (src/theme/tokens.ts). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-700.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 800 900; font-display: swap; src: url(/assets/fonts/inter-800.woff2) format('woff2'); }

:root {
  --p: #6D3FE0; --p-dark: #5A2FC4; --p-soft: #8661EC; --tint: #EFE8FE;
  --night: #15023F; --night-2: #2D2160;
  --mint: #5EE0B8; --mint-soft: #A0EBD4; --mint-tint: #E3F9F1; --green: #0B7A5A; --green-dark: #0B4F3B;
  --ink: #14112A; --body: #433D5A; --mute: #625C78; --faint: #8A84A3;
  --line: #E7E1F7; --bg: #F7F5FF; --white: #FFFFFF;
  --red: #B42318; --red-tint: #FDECEA; --amber: #8A5A00; --amber-tint: #FFF4D6;
  --r: 22px;
  --shadow: 0 18px 40px rgba(20, 17, 42, .14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
html[lang="bn"] body { font-family: Inter, "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif; }
img { max-width: 100%; }
a { color: var(--p); }
a:hover { color: var(--p-dark); }
h1, h2, h3 { line-height: 1.15; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
       background: var(--p); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--p-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.soft { background: var(--tint); color: var(--p-dark); }
.btn.soft:hover { background: #E3D8FD; color: var(--p-dark); }
.btn.line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.line:hover { border-color: var(--p-soft); color: var(--ink); }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn.danger:hover { background: var(--red-tint); color: var(--red); }
.btn.danger.fill { background: var(--red); color: #fff; }
.btn.mint { background: var(--mint); color: var(--night); font-weight: 800; }
.btn.mint:hover { background: var(--mint-soft); color: var(--night); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--p); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav.solid { background: #fff; }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--ink); }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.links a { color: var(--body); text-decoration: none; }
.links a:hover, .links a[aria-current] { color: var(--p); }
.links a[aria-current] { font-weight: 700; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; }
.lang button { border: 0; background: none; padding: 5px 10px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--mute); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--p); color: #fff; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px; border-radius: 22px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); text-decoration: none; }
.acct-btn:hover { border-color: var(--p-soft); color: var(--ink); }
.acct-btn.icon { width: 44px; padding: 0; justify-content: center; }
.acct-btn .name { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; flex-shrink: 0; }
.avatar.lg { width: 68px; height: 68px; font-size: 28px; }
.menu { position: absolute; right: 0; top: 52px; width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; z-index: 30; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow-wrap: anywhere; }
.menu .who b { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: 15px; }
.menu a:hover, .menu button:hover { background: var(--bg); color: var(--ink); }
.menu .out { color: var(--red); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 6px; }

/* Landing */
.hero { background: var(--night); color: #fff; overflow: hidden; }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.chip { display: inline-block; font-size: 14px; font-weight: 600; color: var(--mint-soft); border: 1px solid rgba(160, 235, 212, .4); border-radius: 999px; padding: 6px 14px; margin: 0 0 18px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 800; }
.hero .lead { margin: 22px 0 0; font-size: 20px; line-height: 1.55; color: #D9D0F5; max-width: 540px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.stores a { display: block; line-height: 0; border-radius: 9px; }
.stores img { height: 54px; width: auto; }
.stores a.soon { cursor: default; }
.hero .note { margin: 16px 0 0; font-size: 14px; color: #B9AFD8; }
.phone-zone { flex: 0 1 380px; display: flex; justify-content: center; position: relative; margin: 0 auto; }
.phone-zone::before { content: ""; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%;
                      background: radial-gradient(circle, rgba(109, 63, 224, .55) 0%, rgba(109, 63, 224, .18) 45%, rgba(21, 2, 63, 0) 70%); }
.phone { position: relative; width: 324px; max-width: 86vw; padding: 12px; background: #0B0418; border-radius: 56px; box-shadow: 0 0 0 2px #3A2C6E, 0 40px 80px rgba(0, 0, 0, .45); }
.phone .screen { position: relative; border-radius: 44px; overflow: hidden; background: var(--bg); line-height: 0; }
.phone .screen img { display: block; width: 100%; height: auto; }
.phone .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 14px; background: #0B0418; }

.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; text-align: center; }
.stats b { display: block; font-size: 34px; font-weight: 800; color: var(--p); }
.stats span { color: var(--mute); font-size: 15px; }

.sec { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { margin: 0; font-weight: 700; color: var(--p); font-size: 15px; }
.sec h2 { margin: 8px 0 0; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.8px; }
.sec .intro { margin: 14px 0 0; color: var(--body); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.feature .ic.g { background: var(--mint-tint); }
.feature h3 { margin: 18px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--body); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { width: 40px; height: 40px; border-radius: 20px; background: var(--p); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0; font-size: 19px; }
.step p { margin: 0; color: var(--body); }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan.best { border: 2.5px solid var(--p); }
.plan h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.plan .price { margin: 0; font-size: 38px; font-weight: 800; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--mute); }
.plan p { margin: 0; color: var(--mute); }
.plan .btn { margin-top: auto; }
.tag { font-size: 12px; font-weight: 700; color: var(--green); background: var(--mint-tint); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.free { margin-top: 20px; background: var(--mint-tint); border-radius: var(--r); padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--green-dark); }
.free div { flex: 1 1 420px; min-width: 0; }
.free h3 { margin: 0; font-size: 19px; }
.free p { margin: 6px 0 0; }
.free .btn { background: var(--green); }
.dark { background: var(--night); color: #fff; }
.dark .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.dark .copy { flex: 1 1 460px; min-width: 0; }
.dark .eyebrow { color: var(--mint-soft); }
.dark h2 { margin: 8px 0 0; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.8px; }
.dark p { color: #D9D0F5; font-size: 18px; }
.badges { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.badges div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.badges span { font-size: 13px; color: #B9AFD8; }
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--body); }

footer.site { background: #fff; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; color: var(--mute); font-size: 14px; }
footer.site a { color: var(--mute); }
footer.site .brand { font-size: 16px; }
footer.site .brand img { width: 24px; height: 24px; border-radius: 7px; }
footer.site .end { margin-left: auto; }

/* App pages (sign in, Premium, Sponsor, account) */
.page { padding-top: 40px; padding-bottom: 80px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.6px; }
.page-head p { margin: 8px 0 0; color: var(--body); font-size: 17px; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; align-items: flex-start; }
.col-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 420px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h2 { margin: 0 0 14px; font-size: 20px; }
.card h2.tight { margin-bottom: 4px; }
.status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.status .ic { width: 44px; height: 44px; border-radius: 22px; background: var(--mint-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.status .ic.off { background: var(--tint); }
.status p { margin: 0; }
.status p + p { color: var(--mute); font-size: 14px; margin-top: 2px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; cursor: pointer; color: var(--ink);
       border: 1.5px solid var(--line); background: #fff; text-align: left; }
.opt:hover { border-color: var(--p-soft); }
.opt[aria-checked="true"] { border: 2.5px solid var(--p); background: var(--tint); padding: 15px 17px; }
.opt .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt .t b { display: flex; align-items: center; gap: 8px; font-size: 17px; flex-wrap: wrap; }
.opt .t span { font-size: 14px; color: var(--mute); }
.opt .pr { font-weight: 800; font-size: 20px; color: var(--p); white-space: nowrap; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.checks small { display: block; color: var(--mute); font-size: 14px; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.rules li::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--p); margin-top: 9px; flex-shrink: 0; }

.pay { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.pay h2 { margin: 0; font-size: 20px; }
.amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 16px; padding: 14px 18px; }
.amount span { color: var(--body); }
.amount b { font-size: 30px; font-weight: 800; color: var(--p); }
.qr { width: 100%; height: auto; max-width: 400px; align-self: center; border-radius: 18px; }
.pay ol { margin: 0; padding-left: 20px; color: var(--body); line-height: 1.7; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { font: inherit; font-weight: 400; font-size: 16px; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(109, 63, 224, .15); }
.field .hint { font-weight: 400; color: var(--mute); }
.err { margin: 0; color: var(--red); font-size: 14px; }
.okmsg { margin: 0; color: var(--green); font-size: 14px; font-weight: 600; }
.done { background: var(--mint-tint); border: 1px solid var(--mint); border-radius: 18px; padding: 18px 20px; }
.done h3 { margin: 0 0 4px; font-size: 18px; color: var(--green-dark); }
.done p { margin: 0; color: var(--green-dark); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.pill.pending { color: var(--amber); background: var(--amber-tint); }
.pill.approved { color: var(--green); background: var(--mint-tint); }
.pill.rejected, .pill.refunded { color: var(--red); background: var(--red-tint); }
.pill.store { color: var(--body); background: #F0EDF8; }
.order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.order small { color: var(--mute); font-size: 13px; }

.intro-band { background: var(--night); color: #fff; }
.intro-band .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.intro-band h1 { margin: 0; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.8px; }
.intro-band p { margin: 10px 0 0; color: #D9D0F5; font-size: 18px; max-width: 560px; }
.nums { display: flex; gap: 14px; }
.nums div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 16px 22px; min-width: 150px; }
.nums b { display: block; font-size: 32px; font-weight: 800; color: var(--mint); }
.nums span { color: #D9D0F5; font-size: 14px; }
.badge-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tiers { display: flex; gap: 6px; }
.tier { width: 34px; height: 34px; border-radius: 17px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; }
.tier.on { background: var(--mint-tint); border-color: var(--mint); }
.badge-pill { font-size: 12px; font-weight: 700; color: var(--green); background: var(--mint-tint); border: 1px solid var(--mint); border-radius: 999px; padding: 3px 10px 3px 6px; display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0; vertical-align: middle; }

/* Sign in */
.auth-page { min-height: calc(100vh - 73px); display: flex; align-items: flex-start; justify-content: center; padding: 56px 20px 80px;
             background: radial-gradient(circle at 50% 0%, rgba(109, 63, 224, .16), rgba(247, 245, 255, 0) 60%); }
.auth { width: 100%; max-width: 460px; background: #fff; border-radius: 28px; padding: 32px; box-shadow: 0 30px 80px rgba(21, 2, 63, .12); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.auth-head { display: flex; align-items: center; gap: 14px; }
.auth-head img { width: 48px; height: 48px; border-radius: 14px; }
.auth-head h1 { margin: 0; font-size: 24px; letter-spacing: -.3px; }
.auth-head p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); cursor: pointer; width: 100%; }
.google:hover { border-color: var(--p-soft); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--bg); padding: 4px; border-radius: 14px; }
.seg button { height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--mute); font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--p); font-weight: 700; box-shadow: 0 1px 3px rgba(21, 2, 63, .12); }
.code-input { letter-spacing: 8px; font-size: 22px !important; text-align: center; font-weight: 700 !important; }

/* Account */
.acct-layout { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.side { flex: 0 0 220px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.side a { padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--body); font-weight: 500; }
.side a:hover { background: #fff; color: var(--ink); }
.side a.on { color: var(--p); background: var(--tint); font-weight: 700; }
.help { margin-top: 18px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.help b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.acct-main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile .who { flex: 1 1 280px; min-width: 0; }
.profile h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.profile p { margin: 4px 0 0; color: var(--mute); overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tile.prem { background: var(--p); color: #fff; border-color: var(--p); }
.tile .k { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--mute); }
.tile.prem .k { color: #E5DCFF; }
.tile .v { font-size: 22px; font-weight: 800; }
.tile .d { font-size: 14px; color: var(--mute); }
.tile.prem .d { color: #E5DCFF; }
.tile .act { margin-top: auto; padding-top: 8px; }
.tile.prem .act a { display: inline-block; background: #fff; color: var(--p); text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 10px; }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; }
.tabs button { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 9px; border: 0; cursor: pointer; background: transparent; color: var(--mute); }
.tabs button[aria-selected="true"], .tabs button[aria-checked="true"] { background: #fff; color: var(--p); box-shadow: 0 1px 3px rgba(20, 17, 42, .1); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.head-row p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.bill { margin-top: 18px; }
.bill .r { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) 90px 120px 84px; gap: 12px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--line); }
.bill .h { border-top: 0; padding-top: 0; padding-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--faint); }
.bill .r small { display: block; font-size: 13px; color: var(--mute); }
.bill .trx { font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }
.bill .amt { text-align: right; font-weight: 700; }
.bill .empty { padding: 24px 12px; color: var(--mute); border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-of-type { margin-top: 12px; }
.row > div { flex: 1 1 280px; min-width: 0; }
.row p { margin: 0; }
.row p + p { margin-top: 2px; font-size: 14px; color: var(--mute); }
.switch { width: 44px; height: 26px; border-radius: 13px; background: #D9D3EA; position: relative; border: 0; cursor: pointer; flex-shrink: 0; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--p); }
.switch[aria-checked="true"]::after { left: 21px; }
.danger-card { border-color: #F3C9C4; }
.inline-form { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 8px; }
.inline-form .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Dialog (receipt, confirm) */
dialog { border: 0; padding: 0; border-radius: 24px; box-shadow: 0 30px 70px rgba(20, 17, 42, .3); width: min(480px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(20, 17, 42, .45); }
.dlg { padding: 28px; }
.dlg-top { display: flex; align-items: center; justify-content: space-between; }
.x { width: 36px; height: 36px; border-radius: 18px; border: 0; background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.receipt dl { margin: 20px 0 0; display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; font-size: 14px; }
.receipt dt { color: var(--mute); }
.receipt dd { margin: 0; overflow-wrap: anywhere; }
.receipt .big { margin: 2px 0 0; font-size: 34px; font-weight: 800; color: var(--p); }
.receipt .foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--faint); }
.dlg .btns { display: flex; gap: 10px; margin-top: 18px; }
.dlg .btns .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: var(--shadow); }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; }
.doc .updated { color: var(--mute); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 19px; margin: 30px 0 8px; }
.doc p { margin: 0 0 12px; color: #2A2640; }
.doc .box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 20px; }

/* Admin */
.admin .list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.admin .ord { display: grid; gap: 6px; }
.admin .ord .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.admin .ord .price { color: var(--p); font-weight: 800; font-size: 18px; }
.admin .ord .btns { display: flex; gap: 10px; margin-top: 6px; }
.admin .bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 20px; }
.admin .bar input { font: inherit; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); min-width: 240px; }
.count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: var(--tint); color: var(--p); font-size: 12px; line-height: 20px; text-align: center; }

@media (max-width: 980px) {
  .grid3, .tiles { grid-template-columns: minmax(0, 1fr); }
  .bill .h { display: none; }
  .bill .r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "item amt" "meta status" "pay act"; row-gap: 6px; }
  .bill .c-date { grid-area: meta; font-size: 13px; color: var(--mute); }
  .bill .c-item { grid-area: item; } .bill .amt { grid-area: amt; }
  .bill .c-pay { grid-area: pay; font-size: 13px; } .bill .c-st { grid-area: status; justify-self: end; } .bill .c-act { grid-area: act; justify-self: end; }
  .side { position: static; flex: 1 1 100%; flex-direction: row; overflow-x: auto; }
  .side .help { display: none; }
  .side a { white-space: nowrap; }
  .pay { position: static; }
  /* Phones and tablets: pay right after choosing, the rest below. */
  .cols { flex-direction: column; align-items: stretch; gap: 20px; }
  .col-main { display: contents; }
  .col-main > * { order: 4; }
  .col-main > .o1 { order: 1; } .col-main > .o2 { order: 2; }
  .col-side { order: 3; flex-basis: auto; }
}
@media (max-width: 760px) {
  .nav-in { flex-wrap: wrap; gap: 10px 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .links { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .nav-end { margin-left: auto; }
  .nav-end .getapp { display: none; }
  .acct-btn .name { display: none; }
  .acct-btn { padding: 0 8px 0 4px; }
  .hero-in { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding-top: 64px; padding-bottom: 64px; }
  .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .badges div { padding: 14px 8px; font-size: 14px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .nums div { min-width: 0; flex: 1; }
  .auth { padding: 24px; }
  footer.site .end { margin-left: 0; }
  .card { padding: 20px; }
  .pay { padding: 22px; }
  .qr { max-width: 280px; }
}
@media print {
  body * { visibility: hidden; }
  dialog[open], dialog[open] * { visibility: visible; }
  dialog[open] { position: absolute; inset: 0 auto auto 0; box-shadow: none; width: 100%; }
  dialog .x, dialog .btns { display: none; }
}
.row > .tabs, .row > .switch, .row > .btn, .row > .pill { flex: 0 0 auto; }
