/* ============================================================
   DonkeyCracks — design system (dark glass, violet glow)
   ============================================================ */
:root {
  --bg: #0c0d21; --bg2: #13153a; --bg3: #1b1e4a;
  --surface: rgba(255, 255, 255, .045); --surface2: rgba(255, 255, 255, .075); --surface3: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --text: #f2f3ff; --muted: #a0a5cc; --dim: #6d729c;
  --p1: #8b5cf6; --p2: #d946ef; --p3: #f472b6;
  --grad: linear-gradient(135deg, var(--p1), var(--p2) 62%, var(--p3));
  --glow: 0 10px 30px -8px color-mix(in srgb, var(--p2) 55%, transparent);
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --info: #60a5fa;
  --r: 22px; --r-sm: 14px; --r-xs: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
[data-accent="blue"] { --p1: #3b82f6; --p2: #06b6d4; --p3: #67e8f9; }
[data-accent="green"] { --p1: #10b981; --p2: #22c55e; --p3: #a3e635; }
[data-accent="sunset"] { --p1: #f97316; --p2: #ef4444; --p3: #ec4899; }
[data-accent="gold"] { --p1: #f59e0b; --p2: #eab308; --p3: #fde68a; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.5; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(620px 420px at 8% -5%, color-mix(in srgb, var(--p1) 32%, transparent), transparent 70%),
    radial-gradient(520px 420px at 105% 15%, color-mix(in srgb, var(--p2) 22%, transparent), transparent 70%),
    radial-gradient(700px 520px at 50% 110%, rgba(59, 130, 246, .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0e1030 100%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' fill='none' stroke='%237c6cff' stroke-opacity='.18' stroke-width='14'%3E%3Cpath d='M-50 220c140-160 300 80 220 180S20 470 140 560s300-40 330 90'/%3E%3Cpath d='M960 120c-160 40-120 220-260 250s-200-120-300-20' /%3E%3C/svg%3E") no-repeat right -120px top 60px / 900px;
}
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0 0 .4em; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0 0 .7em; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--text); }
::selection { background: color-mix(in srgb, var(--p2) 45%, transparent); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 9px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 17px; height: 17px; } .ic.lg { width: 28px; height: 28px; } .ic.xl { width: 40px; height: 40px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.bold { font-weight: 700; } .center { text-align: center; } .right { text-align: right; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; } .row.top { align-items: flex-start; } .col { display: flex; flex-direction: column; }
.gap { gap: 10px; } .gap-s { gap: 6px; } .gap-l { gap: 16px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 24px; } .mb { margin-bottom: 14px; } .mb-s { margin-bottom: 8px; }
.hide { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- glass & cards ---------- */
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.pad-l { padding: 22px; }
.card.hover { transition: transform .2s, border-color .2s, background .2s; }
.card.hover:hover { transform: translateY(-2px); border-color: var(--line2); background: var(--surface2); }
.navy { background: linear-gradient(160deg, #1d2050, #14163a); border: 1px solid var(--line); border-radius: var(--r); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: transform .15s, filter .2s, background .2s, box-shadow .2s; white-space: nowrap; user-select: none; background: var(--surface2); color: var(--text); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line2); }
.btn.ghost:hover { background: var(--surface); }
.btn.soft { background: color-mix(in srgb, var(--p1) 18%, transparent); color: color-mix(in srgb, var(--p1) 30%, #fff); }
.btn.white { background: #fff; color: #14152b; }
.btn.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.btn.danger { background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); }
.btn.wa { background: #1faa59; color: #fff; }
.btn.tg { background: #2a9fd8; color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 13px; } .btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon { padding: 9px; border-radius: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line); cursor: pointer; position: relative; color: var(--text); }
.icon-btn:hover { background: var(--surface2); }
.dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 9px; background: var(--p3); box-shadow: 0 0 0 3px var(--bg); }

/* ---------- chips & badges ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer; color: var(--muted); transition: .2s; }
.chip.on, .chip:hover { color: #fff; border-color: transparent; background: var(--grad); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.badge.info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.badge.grad { background: var(--grad); color: #fff; }

/* ---------- forms ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fld > span { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.fld small { color: var(--dim); font-size: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=search], input[type=date], input[type=datetime-local], input[type=password], select, textarea {
  width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; outline: none; transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--p2) 70%, transparent); background: rgba(255, 255, 255, .08); }
select option { background: var(--bg2); }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: none; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface3); transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--grad); }
.switch input:checked + i::after { transform: translateX(19px); }

/* ---------- header ---------- */
.app-header { position: sticky; top: 0; z-index: 40; padding: 10px 16px; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.app-header.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); overflow: hidden; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-mark svg { width: 24px; height: 24px; }
.logo-mark.big svg { width: 44px; height: 44px; }
.top-links { display: none; gap: 4px; margin-left: 18px; }
.top-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 14px; }
.top-links a.on, .top-links a:hover { color: #fff; background: var(--surface2); }
.header-search { display: none; flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.header-search input { padding-left: 42px; border-radius: 999px; }
.header-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.avatar { width: 42px; height: 42px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 74px; height: 74px; border-radius: 24px; font-size: 26px; }

/* ---------- page ---------- */
main#view { max-width: 1180px; margin: 0 auto; padding: 8px 16px calc(120px + var(--safe-b)); min-height: 70vh; }
.page-enter { animation: pageIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-title { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.page-title h1 { margin: 0; font-size: 22px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.section-head a { color: var(--muted); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--p1) 14%, transparent); border: 1px solid color-mix(in srgb, var(--p1) 30%, transparent); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }

/* ---------- gradients for tiles ---------- */
.g1 { background: linear-gradient(135deg, #7c3aed, #c026d3 60%, #f472b6); }
.g2 { background: linear-gradient(135deg, #2563eb, #7c3aed 70%); }
.g3 { background: linear-gradient(135deg, #059669, #10b981 50%, #22d3ee); }
.g4 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.g5 { background: linear-gradient(135deg, #f97316, #ef4444 60%, #db2777); }
.g6 { background: linear-gradient(135deg, #db2777, #9333ea); }

/* ---------- banners ---------- */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; position: relative; min-height: 168px; border-radius: var(--r); padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.banner::before { content: ''; position: absolute; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .14); z-index: -1; }
.banner::after { content: ''; position: absolute; width: 140px; height: 140px; right: 60px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, .12); z-index: -1; }
.banner h3 { font-size: 22px; margin-bottom: 4px; max-width: 80%; }
.banner p { margin: 0 0 12px; opacity: .9; max-width: 80%; }
.banner .btn { align-self: flex-start; }
.banner-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.banner-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--surface3); transition: .3s; }
.banner-dots i.on { width: 22px; background: var(--grad); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; transition: .2s; }
.cat-tile:hover { background: var(--surface2); transform: translateY(-2px); }
.cat-tile .cic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.cat-big { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); }
.cat-big .cic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; flex: none; }

/* ---------- product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.p-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.p-scroll::-webkit-scrollbar { display: none; }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--line2); }
.thumb { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; color: rgba(255, 255, 255, .92); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ic { width: 44px; height: 44px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.thumb::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 16px solid rgba(255, 255, 255, .12); right: -50px; top: -50px; }
.thumb .tl { position: absolute; left: 10px; top: 10px; z-index: 1; }
.thumb .tr { position: absolute; right: 10px; top: 10px; z-index: 1; }
.pcard .pbody { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .ptitle { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price .now { font-weight: 800; font-size: 16px; font-family: var(--head); }
.price .mrp { color: var(--dim); text-decoration: line-through; font-size: 13px; }
.price .off { color: var(--ok); font-size: 12px; font-weight: 700; }
.price.big .now { font-size: 26px; }
.free-tag { color: var(--ok); font-weight: 800; }
.pill-price { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; }
.oos { position: absolute; inset: 0; background: rgba(10, 11, 30, .55); display: grid; place-items: center; z-index: 2; font-weight: 800; letter-spacing: .05em; }

/* app rows */
.app-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.app-icon { width: 58px; height: 58px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; color: #fff; flex: none; position: relative; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.lg { width: 84px; height: 84px; border-radius: 24px; }
.progress { height: 6px; border-radius: 9px; background: var(--surface3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }

/* ---------- product page ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: start; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.p-layout { display: grid; gap: 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li .ic { color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps > div { display: flex; gap: 12px; align-items: flex-start; }
.steps > div::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.info-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.info-tiles > div { padding: 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.info-tiles b { display: block; font-size: 14px; margin-top: 4px; }
.info-tiles span { font-size: 11.5px; color: var(--muted); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + var(--safe-b)); display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.buy-bar .btn { flex: 1; }
body.has-buybar .bottom-nav { display: none; }
.notes-box { padding: 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 9%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.notes-box b { color: var(--warn); }
.prose p { margin: 0 0 .6em; } .prose ol, .prose ul { margin: .2em 0 .8em; padding-left: 1.3em; } .prose li { margin: .25em 0; }
.prose a { color: var(--p3); text-decoration: underline; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.lesson .num { width: 32px; height: 32px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.dl-row .osic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface2); flex: none; }

/* ---------- checkout ---------- */
.upi-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upi-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; font-weight: 700; transition: .2s; }
.upi-app:hover { background: var(--surface2); transform: translateY(-2px); }
.upi-app .uic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; overflow: hidden; }
.upi-app .uic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qr-box { display: grid; place-items: center; padding: 16px; border-radius: var(--r); background: #fff; width: fit-content; margin: 0 auto; }
.qr-box img { width: 220px; height: 220px; object-fit: contain; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; }
.sum-row.total { font-weight: 800; font-size: 17px; border-top: 1px dashed var(--line2); margin-top: 6px; padding-top: 12px; }
.stepper-h { display: flex; gap: 6px; margin-bottom: 16px; }
.stepper-h i { flex: 1; height: 5px; border-radius: 9px; background: var(--surface3); }
.stepper-h i.on { background: var(--grad); }

/* ---------- key/value access details ---------- */
.kv { display: grid; gap: 8px; }
.kv-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.kv-row .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.kv-row .v { font-weight: 700; word-break: break-all; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 14px; }
.countdown { display: flex; gap: 8px; }
.countdown > div { flex: 1; text-align: center; padding: 10px 4px; border-radius: var(--r-sm); background: var(--surface2); }
.countdown b { display: block; font-size: 22px; font-family: var(--head); }
.countdown span { font-size: 11px; color: var(--muted); }

/* ---------- lists ---------- */
.list { display: grid; gap: 10px; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: .2s; }
.li:hover { background: var(--surface2); }
.li .lic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface2); flex: none; color: color-mix(in srgb, var(--p1) 40%, #fff); }
.li.unread { border-color: color-mix(in srgb, var(--p2) 45%, transparent); }
.menu-list { display: grid; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: linear-gradient(160deg, #1d2050, #161842); border: 1px solid var(--line); font-weight: 700; cursor: pointer; transition: .2s; }
.menu-item:hover { transform: translateX(3px); }
.menu-item .ic:first-child { color: color-mix(in srgb, var(--p1) 45%, #fff); }
.menu-item .ic:last-child { margin-left: auto; color: var(--dim); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .eic { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 24px; background: var(--surface2); display: grid; place-items: center; color: color-mix(in srgb, var(--p1) 50%, #fff); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--grad); color: #fff; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 90px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .meta { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.bubble img { border-radius: 12px; margin-top: 6px; max-height: 260px; }
.chat-input { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 45; }
.chat-input textarea { min-height: 46px; max-height: 140px; border-radius: 22px; padding: 12px 16px; }
body.has-chat .bottom-nav { display: none; }

/* ---------- bottom nav ---------- */
.bottom-nav { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 50; height: 68px; border-radius: 24px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(22, 24, 58, .82); border: 1px solid var(--line2); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: var(--shadow); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--dim); padding: 8px 0; position: relative; transition: color .2s; }
.bottom-nav a .ic { width: 23px; height: 23px; transition: transform .25s; }
.bottom-nav a.on { color: #fff; }
.bottom-nav a.on .ic { transform: translateY(-2px); color: color-mix(in srgb, var(--p2) 45%, #fff); }
.bottom-nav a.on::after { content: ''; position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 5px; background: var(--grad); }
.bottom-nav .fab { width: 60px; height: 60px; margin: -34px auto 0; border-radius: 22px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: var(--glow), 0 0 0 6px var(--bg); transition: transform .2s; }
.bottom-nav .fab:active { transform: scale(.94); }
.bottom-nav .fab .ic { width: 28px; height: 28px; }
.bottom-nav .badge-n { position: absolute; top: 3px; left: 54%; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--p3); color: #fff; font-size: 10px; display: grid; place-items: center; }

/* ---------- sheets & toasts ---------- */
.sheet-ov { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 18, .6); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.sheet-ov.in { opacity: 1; }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 12px 20px calc(22px + var(--safe-b)); transform: translateY(40px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); background: linear-gradient(170deg, #1d2052, #13153a) !important; }
.sheet.wide { max-width: 760px; }
.sheet-ov.in .sheet { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--surface3); margin: 0 auto 14px; }
#toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #23265e; border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(-10px); transition: .3s; }
.toast.in { opacity: 1; transform: none; }
.toast.ok .ic { color: var(--ok); } .toast.error .ic { color: var(--bad); } .toast.info .ic { color: var(--info); }

/* ---------- skeleton / loader ---------- */
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface3); border-top-color: var(--p2); animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
#splash { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); transition: opacity .4s; }
#splash.out { opacity: 0; pointer-events: none; }
#splash .logo-mark { width: 74px; height: 74px; border-radius: 24px; animation: pulse 1.4s ease-in-out infinite; }
#splash .logo-mark svg { width: 44px; height: 44px; }
@keyframes pulse { 50% { transform: scale(1.07); } }

/* ---------- misc ---------- */
.hero-hello { padding: 4px 2px 0; }
.hero-hello h1 { font-size: 24px; margin-bottom: 2px; }
.stat-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-mini > div { padding: 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.stat-mini b { display: block; font-size: 20px; font-family: var(--head); }
.stat-mini span { font-size: 12px; color: var(--muted); }
.comm-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.comm-card .cic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex: none; }
.comm-card .cic.tg { background: linear-gradient(135deg, #2a9fd8, #1b7fc0); }
.comm-card .cic.wa { background: linear-gradient(135deg, #25c26a, #128c4a); }
.ad-box { border-radius: var(--r); overflow: hidden; border: 1px dashed var(--line2); background: var(--surface); position: relative; }
.ad-box .ad-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); z-index: 2; }
.ad-box img { width: 100%; max-height: 240px; object-fit: cover; }
.ad-ph { padding: 26px; text-align: center; }
.ring { position: relative; width: 120px; height: 120px; margin: 6px auto; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-family: var(--head); }
.demo-flag { position: fixed; right: 12px; top: 70px; z-index: 60; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 22%, var(--bg)); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.footer { max-width: 1180px; margin: 0 auto; padding: 30px 16px 140px; color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.footer a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (min-width: 600px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .p-scroll { grid-auto-columns: 30%; }
  .cat-grid { grid-template-columns: repeat(7, 1fr); }
  .banners { grid-auto-columns: 70%; }
  .sheet-ov { align-items: center; }
  .sheet { border-radius: 28px; transform: scale(.96); }
  .upi-apps { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) {
  body { font-size: 15.5px; }
  .top-links { display: flex; }
  .header-search { display: block; }
  .bottom-nav { display: none; }
  main#view { padding-bottom: 60px; }
  .footer { padding-bottom: 40px; }
  .p-grid { grid-template-columns: repeat(4, 1fr); }
  .p-scroll { grid-auto-columns: 23%; }
  .banners { grid-auto-columns: 48%; }
  .banner { min-height: 210px; }
  .p-layout { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .buy-bar { position: static; padding: 0; background: none; border: 0; backdrop-filter: none; margin-top: 16px; }
  .chat-input { position: sticky; bottom: 0; border-radius: 22px; border: 1px solid var(--line); }
  .m-only { display: none !important; }
  .app-header { padding: 12px 28px; }
}
@media (max-width: 899px) { .d-only { display: none !important; } }
@media (max-width: 380px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } .info-tiles { grid-template-columns: repeat(2, 1fr); } }
