/* Layout idea: bright game store on white. Colourful hero carousel and product art carry the energy;
   page chrome stays white and light grey. Brand colours: violet (NetmarPlus), hot pink (deals), arcade yellow (CTAs), mint. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f3fc;
  --surface: #ffffff;
  --surface-2: #f1eefb;
  --line: #e6e1f5;
  --text: #1a1238;
  --muted: #6b6390;
  --violet: #6a2cff;
  --violet-deep: #4a17c4;
  --np: #12c9a8;
  --np-deep: #077a6d;
  --pink: #d4145f;
  --yellow: #ffd23f;
  --yellow-ink: #2a1a00;
  --night: #1a0f4a;
  --font-display: "Bungee", "Rubik", "Arial Black", sans-serif;
  --font-body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26,18,56,.06), 0 8px 24px -12px rgba(26,18,56,.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.2rem, 2.1vw, 1.6rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; z-index: 99; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.linklike { background: none; border: 0; padding: 0; color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
[data-icon], .art { display: block; }
[data-icon] svg, .art svg { display: block; width: 100%; height: auto; }

.demo-bar { background: #efe9ff; color: var(--violet-deep); text-align: center; padding: 8px 16px; font-size: .9rem; }

/* Ticker */
.ticker { background: var(--night); color: #fff; overflow: hidden; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { padding: 7px 22px; white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.ticker span::after { content: ""; width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 46px; height: 46px; }
.wordmark { font: 400 1.45rem var(--font-display); letter-spacing: .01em; color: var(--night); text-transform: uppercase; }
.wordmark b { font-weight: 400; color: var(--violet); }
.wordmark.big { font-size: 2.1rem; }
.wordmark small { font: 700 .95rem var(--font-body); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.search { flex: 1; max-width: 620px; position: relative; }
.search::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; border: 2.5px solid var(--muted); border-radius: 50%; transform: translateY(-60%); }
.search::after { content: ""; position: absolute; left: 29px; top: 58%; width: 7px; height: 2.5px; background: var(--muted); transform: rotate(45deg); border-radius: 2px; }
.search input { padding-left: 44px; border-radius: 999px; background: var(--bg-2); border-color: transparent; }
input { width: 100%; background: var(--surface); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; }
input:focus { border-color: var(--violet); outline: none; background: #fff; }
.top-actions { margin-left: auto; display: flex; gap: 10px; }
.wallet-btn { display: flex; align-items: center; gap: 8px; background: var(--night); color: #fff; border: 0; border-radius: 999px; padding: 6px 18px 6px 8px; font: 700 .95rem var(--font-body); cursor: pointer; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px -8px rgba(106,44,255,.7); }
.wallet-btn img { width: 30px; height: 30px; }
.wallet-btn:hover { background: var(--violet-deep); }
.catnav { border-top: 1px solid var(--line); }
.catnav-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 20px; }
.catnav a { padding: 6px 14px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; white-space: nowrap; border-radius: 999px; }
.catnav a:hover { color: var(--text); background: var(--bg-2); }
.catnav a.hot { color: #fff; background: var(--pink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 20px; font: 800 .98rem var(--font-body); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: transform .08s, box-shadow .08s, filter .15s; }
.btn.primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 5px 0 #d19a00, 0 10px 24px -10px rgba(209,154,0,.8); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.primary:active { transform: translateY(4px); box-shadow: 0 1px 0 #d19a00; }
.btn.primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { color: var(--text); background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.slide .btn.ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn.wide { width: 100%; }

/* Hero carousel */
.banners { display: grid; grid-template-columns: 2.1fr 1fr; gap: 16px; padding-top: 20px; }
.carousel { position: relative; border-radius: 26px; overflow: hidden; min-height: 400px; color: #fff; transition: background .6s;
  background: radial-gradient(420px 300px at 80% 40%, rgba(79,245,210,.3), transparent 70%), radial-gradient(500px 360px at 100% 100%, rgba(255,46,136,.5), transparent 70%), linear-gradient(135deg, #2a1677, #4b1fa8 55%, #7a2bd6); }
.carousel[data-theme="keys"] { background: radial-gradient(420px 300px at 78% 45%, rgba(255,210,63,.55), transparent 70%), linear-gradient(135deg, #b8360f, #ff6a1a 55%, #ffb21f); }
.carousel[data-theme="gems"] { background: radial-gradient(420px 300px at 78% 45%, rgba(199,255,243,.55), transparent 70%), linear-gradient(135deg, #064d6b, #0e8fa3 55%, #2fd6b8); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 18px; padding: 40px 38px 58px; opacity: 0; transform: translateX(30px); transition: opacity .5s, transform .5s; pointer-events: none; }
.slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.banner-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow-ink); background: var(--yellow); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; }
.eyebrow.pink { background: var(--pink); color: #fff; }
.eyebrow.mint { background: #c9fff1; color: #064d4a; }
.eb-ic { width: 16px; }
.lead { font-size: 1.05rem; max-width: 52ch; margin: 14px 0 24px; color: var(--muted); }
.slide .lead { color: rgba(255,255,255,.88); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-card { transform: rotate(-6deg); filter: drop-shadow(0 26px 40px rgba(20,6,60,.5)); }
.big-ic { aspect-ratio: 1; max-width: 330px; display: grid; place-items: center; }
.hero-ic { width: 78%; z-index: 1; filter: drop-shadow(0 22px 30px rgba(0,0,0,.35)); animation: bob 5s ease-in-out infinite; }
.burst { position: absolute; inset: 4%; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.22) 0 10deg, transparent 10deg 20deg); animation: spin 30s linear infinite; mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.sale-sticker { position: absolute; right: 4%; bottom: 10%; z-index: 2; background: var(--pink); color: #fff; font: 400 1.6rem var(--font-display); padding: 10px 16px; border-radius: 16px; transform: rotate(-10deg); box-shadow: 0 6px 0 #a3104f; text-transform: uppercase; }
.float { position: absolute; z-index: 2; animation: bob 4s ease-in-out infinite; }
.float.f1 { width: 22%; left: -8%; top: -10%; animation-delay: -1s; }
.float.f2 { width: 16%; right: -4%; top: -14%; animation-delay: -2s; }
.float.f3 { width: 18%; right: 2%; bottom: -16%; animation-delay: -3s; }
.float.f4 { width: 11%; left: 6%; bottom: -12%; }
.big-ic .float.f1 { left: 0; top: 4%; } .big-ic .float.f2 { right: 4%; top: 2%; } .big-ic .float.f3 { right: 6%; bottom: 4%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.car-nav { position: absolute; left: 38px; bottom: 18px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.car-arrow { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.car-arrow:hover { background: rgba(255,255,255,.35); }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s; }
.dot[aria-current="true"] { width: 28px; background: #fff; }

.side-banners { display: grid; gap: 16px; }
.banner { border-radius: 24px; overflow: hidden; position: relative; }
.banner.side { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 22px; text-decoration: none; min-height: 190px; color: #fff;
  background: linear-gradient(135deg, var(--c1) 20%, var(--c2) 140%); transition: transform .15s, box-shadow .15s; }
.banner.side:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px var(--c1); }
.banner.side strong { font: 400 1.35rem var(--font-display); position: relative; z-index: 1; text-transform: uppercase; }
.banner.side span:last-child { color: rgba(255,255,255,.9); position: relative; z-index: 1; }
.banner.side [data-icon] { position: absolute; right: 2%; top: 8%; width: 40%; max-width: 150px; transform: rotate(12deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); }
.tag { position: absolute; top: 16px; left: 18px; background: var(--pink); color: #fff; font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 8px; transform: rotate(-4deg); z-index: 1; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.cat { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-3px); border-color: var(--cc); box-shadow: 0 16px 30px -16px var(--cc); }
.cat .ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000)); }
.cat .ic svg { width: 36px; height: 36px; }
.cat strong { display: block; font-weight: 800; }
.cat span { color: var(--muted); font-size: .85rem; }

/* USP strip */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.usp div { display: flex; gap: 12px; align-items: center; background: var(--bg-2); border-radius: 14px; padding: 12px 14px; }
.usp [data-icon] { flex: none; width: 34px; }
.usp strong { display: block; font-size: .92rem; }
.usp div > span:last-child > span { color: var(--muted); font-size: .8rem; }

/* Shelves */
.shelf { padding-top: 40px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shelf-head h2 { display: flex; align-items: center; gap: 10px; color: var(--night); }
.shelf-head h2::before { content: ""; width: 10px; height: 26px; border-radius: 4px; background: linear-gradient(var(--yellow), var(--pink)); }
.shelf-tools { display: flex; align-items: center; gap: 8px; }
.scroll-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.scroll-btn:hover { border-color: var(--violet); color: var(--violet); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.row > * { scroll-snap-align: start; }
.row.grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); overflow: visible; }
.card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0; transition: transform .15s, box-shadow .15s; min-width: 0; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 34px -18px color-mix(in srgb, var(--c2) 80%, #000); }
.tile { aspect-ratio: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; overflow: hidden;
  background: radial-gradient(75% 65% at 68% 32%, color-mix(in srgb, #fff 25%, var(--c2)), transparent 72%), linear-gradient(160deg, color-mix(in srgb, var(--c2) 70%, var(--c1)), var(--c1) 85%); }
.tile::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 14px); }
.tile .art { position: absolute; right: 8%; top: 9%; width: 62%; filter: drop-shadow(0 12px 16px rgba(0,0,0,.4)); transition: transform .25s; }
.card:hover .tile .art { transform: scale(1.08) rotate(-6deg); }
.tile .plat { position: relative; align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.tile .tname { position: relative; font: 800 1.02rem/1.2 var(--font-body); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.tile .off { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--pink); color: #fff; font-weight: 800; font-size: .82rem; padding: 3px 9px; border-radius: 8px; transform: rotate(-6deg); box-shadow: 0 4px 0 #a3104f; }
.buy-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; text-align: center; background: var(--yellow); color: var(--yellow-ink); font-weight: 800; font-size: .9rem; padding: 9px; border-radius: 12px; box-shadow: 0 4px 0 #d19a00; transform: translateY(150%); transition: transform .2s; }
.card:hover .buy-hint, .card:focus-visible .buy-hint { transform: none; }
.tile.big { aspect-ratio: 2.2 / 1; border-radius: 14px; margin-bottom: 14px; }
.tile.big .art { width: 34%; right: 6%; top: 10%; }
.card-body { padding: 12px 14px 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-body h3 { font: 700 .95rem/1.3 var(--font-body); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.region { color: #fff; background: var(--np-deep); }
.pill.out { color: #fff; background: #c2185b; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-top: auto; font-variant-numeric: tabular-nums; }
.price-line strong { font: 800 1.25rem var(--font-body); color: var(--violet); }
.old { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.card.soldout { filter: grayscale(.8); opacity: .65; }

/* Deal spotlight */
.spot { display: grid; grid-template-columns: 1fr 1.3fr; border-radius: 26px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.spot-art { position: relative; min-height: 280px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, #fff 30%, var(--c2)), transparent 75%), linear-gradient(160deg, color-mix(in srgb, var(--c2) 70%, var(--c1)), var(--c1)); }
.spot-art::before { content: ""; position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.12) 0 8deg, transparent 8deg 16deg); animation: spin 40s linear infinite; }
.spot-art .art { width: 46%; position: relative; filter: drop-shadow(0 20px 26px rgba(0,0,0,.4)); animation: bob 5s ease-in-out infinite; }
.spot-off { position: absolute; top: 20px; left: 20px; background: var(--pink); color: #fff; font: 400 1.6rem var(--font-display); padding: 8px 14px; border-radius: 14px; transform: rotate(-8deg); box-shadow: 0 5px 0 #a3104f; text-transform: uppercase; }
.spot-info { padding: 32px; display: grid; gap: 12px; align-content: center; justify-items: start; }
.spot-info .eyebrow { margin: 0; }
.spot-info h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--night); }
.spot-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.spot-price strong { font: 800 2.2rem var(--font-body); color: var(--violet); font-variant-numeric: tabular-nums; }
.save { background: #dcfff5; color: #06604f; font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.plat-chip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.plat-chip:hover { transform: translateY(-3px); border-color: var(--c2); }
.plat-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 400 1rem var(--font-display); background: linear-gradient(135deg, var(--c2), var(--c1)); text-transform: uppercase; }
.plat-chip strong { display: block; font-size: .95rem; }
.plat-chip span span { color: var(--muted); font-size: .8rem; }

/* NetmarPlus section */
.netplus { margin-top: 56px; padding: 56px 0; background: linear-gradient(180deg, #f3eeff, #fff); }
.np-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.np-brand { display: flex; align-items: center; gap: 12px; }
.np-brand img { width: 72px; height: 72px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--violet); color: #fff; display: grid; place-items: center; font: 400 1rem var(--font-display); box-shadow: 0 4px 0 var(--violet-deep); text-transform: uppercase; }
.steps p { margin: 2px 0 0; color: var(--muted); }
.np-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.np-values .gift-card { box-shadow: 0 16px 30px -16px rgba(74,23,196,.6); }
.np-values .gift-card:nth-child(odd) { transform: rotate(-2deg); }
.np-values .gift-card:nth-child(even) { transform: rotate(2deg); }

/* Partner promo */
.promo { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px; border-radius: 26px; padding: 36px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(400px 260px at 85% 50%, rgba(255,210,63,.35), transparent 70%), linear-gradient(120deg, #ff2e88, #8a3bff); }
.promo h2 { color: #fff; }
.promo .lead { color: rgba(255,255,255,.9); }
.promo .small { margin: 10px 0 0; color: rgba(255,255,255,.8); }
.promo-art { position: relative; height: 200px; }
.promo-art [data-icon] { position: absolute; filter: drop-shadow(0 14px 18px rgba(0,0,0,.3)); animation: bob 5s ease-in-out infinite; }
.pa1 { width: 46%; left: 6%; top: 18%; }
.pa2 { width: 40%; right: 6%; top: 0; animation-delay: -2s !important; }
.pa3 { width: 22%; right: 26%; bottom: 0; animation-delay: -3s !important; }

/* FAQ */
.faq { padding-top: 44px; padding-bottom: 56px; max-width: 860px; margin-left: max(20px, calc((100% - 1260px) / 2 + 20px)); }
.faq h2 { margin-bottom: 14px; color: var(--night); }
details { background: var(--bg-2); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid transparent; }
details[open] { border-color: var(--violet); background: #fff; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 65ch; }

/* Footer */
.footer { background: var(--night); color: #fff; padding: 44px 0 0; }
.footer .wordmark { color: #fff; }
.footer .wordmark b { color: var(--yellow); }
.footer .muted { color: #b4a9e3; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.f-brand { display: grid; gap: 12px; align-content: start; }
.f-brand p { margin: 0; max-width: 36ch; }
.pay-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: .85rem; justify-self: start; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav h3 { font: 400 .9rem var(--font-display); color: var(--yellow); margin-bottom: 4px; text-transform: uppercase; }
.footer nav a { color: #d7d0f5; text-decoration: none; font-size: .92rem; }
.footer nav a:hover { color: #fff; }
.f-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; padding-bottom: 24px; font-size: .82rem; }

/* Dialogs */
.dlg { background: #fff; color: var(--text); border: 0; box-shadow: 0 30px 80px -20px rgba(26,18,56,.45); border-radius: 22px; padding: 0; width: min(460px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(26,18,56,.45); backdrop-filter: blur(3px); }
.dlg-in { padding: 22px; position: relative; display: grid; gap: 10px; }
.dlg-in label { font-weight: 700; font-size: .9rem; }
.dlg-in h3 { font: 400 1.25rem var(--font-display); color: var(--night); text-transform: uppercase; }
.close { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; z-index: 3; }
#productDlg .close { right: 30px; top: 28px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.dlg-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.dlg-price strong { font: 800 1.9rem var(--font-body); color: var(--violet); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .88rem; margin: 0; min-height: 1.2em; }
.note.err { color: #d0105a; }
.note.ok { color: var(--np-deep); }
.code-box { background: #f0fffb; border: 2px dashed var(--np); border-radius: 14px; padding: 12px; display: grid; gap: 6px; }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row code { flex: 1; font: 700 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--np-deep); word-break: break-all; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(26,18,56,.45); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 40; box-shadow: -20px 0 50px -20px rgba(26,18,56,.4); }
.drawer-in { height: 100%; display: flex; flex-direction: column; }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head h2 { color: var(--night); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: grid; gap: 18px; align-content: start; }
.topup { display: grid; gap: 10px; }
.btn-ic { width: 22px; }
.redeem { display: grid; gap: 8px; justify-items: stretch; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 2px solid var(--violet); }
.redeem .linklike { justify-self: start; }
.redeem label { font-weight: 700; }
.redeem input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.orders-title { font-size: 1rem; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orders li { background: var(--bg-2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.orders .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.orders .top span:last-child { font-variant-numeric: tabular-nums; color: var(--violet); }
.orders code { color: var(--np-deep); font: 700 .92rem ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }

/* NetmarPlus gift card (artwork + live text) */
.gift-card { position: relative; aspect-ratio: 856 / 540; border-radius: 6.5% / 10.3%; overflow: hidden; container-type: inline-size; color: #fff; }
.gc-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gc-top { position: absolute; left: 6%; top: 7%; display: flex; align-items: center; gap: 2cqw; }
.gc-top img { width: 13cqw; height: auto; }
.gift-card .wordmark { font-size: 6.4cqw; color: #fff; }
.gift-card .wordmark b { color: var(--yellow); }
.gift-card .wordmark small { font-size: 3.6cqw; color: #e9ddff; }
.gc-bottom { position: absolute; left: 7%; right: 7%; bottom: 8%; display: flex; justify-content: space-between; align-items: flex-end; color: #efe6ff; }
.gc-bottom span { font-weight: 800; letter-spacing: .22em; font-size: 3.2cqw; }
.gc-bottom strong { font: 400 9cqw/1 var(--font-display); color: #fff; text-shadow: 0 3px 0 rgba(20,10,58,.7); text-transform: uppercase; }
.gift-card.small .gc-bottom strong { font-size: 11cqw; }
.wallet-card .gc-bottom span { letter-spacing: 0; font-size: 4.2cqw; font-weight: 600; }
.wallet-card .gc-bottom strong { font-size: 10cqw; font-variant-numeric: tabular-nums; }

/* Simple content pages */
.page { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.page h1 { font-size: 2rem; margin-bottom: 14px; color: var(--night); }
.page p, .page li { color: var(--muted); }

.shelf, .netplus, .faq { scroll-margin-top: 140px; }

@media (max-width: 980px) {
  .banners { grid-template-columns: 1fr; }
  .side-banners { grid-template-columns: 1fr 1fr; }
  .slide { grid-template-columns: 1fr; padding: 28px 24px 64px; }
  .hero-art { max-width: 300px; margin-top: 10px; }
  .big-ic { max-width: 220px; }
  .car-nav { left: 24px; }
  .cats, .usp { grid-template-columns: 1fr 1fr; }
  .np-in, .spot, .promo { grid-template-columns: 1fr; }
  .spot-art { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .side-banners { grid-template-columns: 1fr; }
  .row { grid-auto-columns: 46%; }
  .cat { padding: 12px; gap: 10px; }
  .cat .ic { width: 44px; height: 44px; }
  .usp { grid-template-columns: 1fr; }
  .spot-info, .promo { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Language & currency */
.locale { display: flex; gap: 6px; }
.locale select { appearance: none; -webkit-appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6390' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line); border-radius: 999px; padding: 9px 28px 9px 12px; font: 600 .85rem var(--font-body); color: var(--text); cursor: pointer; }
.locale select:hover { border-color: var(--violet); }
.price-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); background: var(--bg-2); border-radius: 10px; padding: 8px 12px; }

/* Consent checkboxes */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; font-weight: 500 !important; line-height: 1.45; background: var(--bg-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--violet); }
.consent a, .tiny a { color: var(--violet); }
.reg-only { display: grid; gap: 8px; }
.tiny { font-size: .78rem; margin: 0; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; }
.cookie-in { width: min(980px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px -15px rgba(26,18,56,.45); border: 1px solid var(--line); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.cookie h3 { font: 400 1.05rem var(--font-display); color: var(--night); margin-bottom: 4px; text-transform: uppercase; }
.cookie p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie a { color: var(--violet); font-weight: 700; }
.ck-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ck-actions .btn { padding: 10px 14px; font-size: .9rem; }
.ck-prefs { display: grid; gap: 8px; margin-top: 12px; }
.ck-row { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }
.ck-row input { width: 18px; height: 18px; accent-color: var(--violet); flex: none; margin-top: 2px; }
.ck-row strong { display: block; font-size: .9rem; }
.ck-row span span { font-size: .82rem; color: var(--muted); }

/* Wallet extras */
.wd-box { display: grid; gap: 8px; margin-top: 4px; }
.wd-box label { display: grid; gap: 6px; }
.orders .linklike { justify-self: start; }
.data-box { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; border: 0; margin: 0; }
.data-box[open] { background: var(--bg-2); border: 0; }
.data-actions { display: grid; gap: 12px; margin-top: 10px; }
.data-actions > .btn { justify-self: start; }
.delete-form { display: grid; gap: 6px; }
.btn.danger { color: #c2185b; }
.btn.danger:hover { box-shadow: inset 0 0 0 2px #c2185b; }

/* Legal pages */
.legal-head { background: linear-gradient(135deg, #2a1677, #6a2cff 60%, #ff2e88); color: #fff; padding: 40px 0 34px; }
.legal-head h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.legal-head p { margin: 10px 0 0; color: rgba(255,255,255,.88); max-width: 70ch; }
.legal-head .crumbs { font-size: .85rem; margin: 0 0 10px; }
.legal-head .crumbs a { color: #fff; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.legal-meta span { background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.legal-body { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--bg-2); border-radius: 16px; padding: 16px; max-height: calc(100vh - 110px); overflow: auto; }
.toc h2 { font: 400 .85rem var(--font-display); color: var(--night); margin-bottom: 8px; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--violet); }
.doc { max-width: 78ch; }
.doc section { padding-top: 6px; scroll-margin-top: 100px; }
.doc h2 { font: 700 1.3rem var(--font-body); color: var(--night); margin: 30px 0 10px; letter-spacing: 0; }
.doc h3 { font-size: 1.02rem; margin: 18px 0 6px; color: var(--night); }
.doc p, .doc li { color: #3a3360; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { color: var(--violet); }
.doc .callout { background: #f3eeff; border-left: 4px solid var(--violet); padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.doc .callout.warn { background: #fff6dc; border-color: #d19a00; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-2); color: var(--night); }
.doc .tbl { overflow-x: auto; }
.doc .caps { text-transform: uppercase; font-size: .92rem; }
mark.ph { background: #fff2b3; color: #5a4300; padding: 0 4px; border-radius: 4px; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 32px 20px 64px; }
.legal-card { display: grid; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; background: #fff; transition: transform .15s, border-color .15s; }
.legal-card:hover { transform: translateY(-3px); border-color: var(--violet); }
.legal-card strong { color: var(--night); font-size: 1.02rem; }
.legal-card span { color: var(--muted); font-size: .88rem; }
.lang-note { background: var(--bg-2); border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .cookie-in { grid-template-columns: 1fr; }
  .ck-actions { justify-content: stretch; }
  .ck-actions .btn { flex: 1; }
}
@media (max-width: 600px) { .locale select { padding: 8px 24px 8px 10px; font-size: .8rem; } }
@media (max-width: 600px) {
  .top-actions { display: contents; }
  .wallet-btn { margin-left: auto; }
  .locale { order: 4; width: 100%; }
  .locale select { flex: 1; }
}

/* Hamburger + side menu */
.topbar-in { gap: 14px; }
.menu-btn { width: 46px; height: 46px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--night); transition: transform .2s, opacity .2s; }
.menu-btn:hover { border-color: var(--violet); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
#menuScrim { z-index: 44; }
.menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 92vw); background: #fff; z-index: 45; box-shadow: 20px 0 50px -20px rgba(26,18,56,.4); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .22s ease; }
.menu.open { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.menu-head .logo img { width: 40px; height: 40px; }
.menu-head .close { position: static; }
.menu-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; display: grid; gap: 12px; align-content: start; }
.menu-body .search { max-width: none; }
.menu-locale { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-locale label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.menu-locale select { appearance: none; -webkit-appearance: none; width: 100%; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6390' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 30px 10px 12px; font: 600 .92rem var(--font-body); color: var(--text); cursor: pointer; }
.menu-locale select:focus { border-color: var(--violet); outline: none; }
.menu-title { font: 400 .8rem var(--font-display); color: var(--muted); letter-spacing: .04em; margin: 10px 0 0; text-transform: uppercase; }
.menu-cats { display: grid; gap: 6px; }
.menu-cats a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--text); }
.menu-cats a:hover { background: var(--bg-2); }
.menu-cats .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000)); flex: none; }
.menu-cats .ic svg { width: 24px; height: 24px; }
.menu-cats .cnt { margin-left: auto; font-size: .78rem; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 2px 9px; }
.menu-links { display: grid; }
.menu-links a { padding: 10px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--text); }
.menu-links a:hover { background: var(--bg-2); color: var(--violet); }
.menu-links.small-links a { font-size: .9rem; font-weight: 500; color: var(--muted); padding: 7px 10px; }

/* About */
.about { padding-top: 48px; }
.about-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; background: var(--bg-2); border-radius: 26px; padding: 36px; }
.about h2 { color: var(--night); margin-bottom: 10px; }
.about p { color: #3a3360; max-width: 62ch; margin: 0 0 10px; }
.about .eyebrow { margin-bottom: 12px; }
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-facts li { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.about-facts [data-icon] { width: 40px; flex: none; }
.about-facts strong { display: block; }
.about-facts li > span:last-child > span { color: var(--muted); font-size: .88rem; }
.about, .shelf, .netplus, .faq { scroll-margin-top: 110px; }
@media (max-width: 900px) { .about-in { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 600px) { .menu-btn { width: 42px; height: 42px; } .logo img { width: 40px; height: 40px; } .wordmark { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .menu { transition: none; } }
.menu-body > .search { order: 0; flex-basis: auto; }

/* Product images (licensed images uploaded by the store owner) */
.tile .pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile:has(.pimg)::before { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.65)); opacity: 1; }

/* Wide product dialog */
.dlg.wide { width: min(980px, calc(100% - 24px)); max-height: 92vh; }
.dlg.wide .dlg-in { padding: 22px; }
.pd-grid { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: start; }
.pd-buy { display: grid; gap: 10px; position: sticky; top: 0; }
.pd-info { display: grid; gap: 18px; }
.pd-info section { display: grid; gap: 8px; }
.pd-info h4 { margin: 0; font: 400 .9rem var(--font-display); color: var(--night); letter-spacing: .02em; text-transform: uppercase; }
.pd-info p { margin: 0; color: #3a3360; line-height: 1.6; }
.where-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.where-chips li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.where-chips li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--np); margin-right: 8px; vertical-align: 1px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: s; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #f6f3ff, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.step-art { position: relative; flex: none; width: 58px; height: 58px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; padding: 6px; }
.step-art svg { width: 100%; height: auto; }
.step-art b { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: #fff; font: 400 .75rem var(--font-display); display: grid; place-items: center; box-shadow: 0 3px 0 var(--violet-deep); text-transform: uppercase; }
.step-txt { display: grid; gap: 6px; font-size: .9rem; line-height: 1.45; color: var(--text); }
.step-txt small { font-weight: 800; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.step-txt .path { display: inline-block; background: var(--night); color: #fff; border-radius: 8px; padding: 6px 8px; font: 600 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.codefmt { display: grid; gap: 2px; }
.codefmt small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.codefmt code { background: #fff; border: 2px dashed var(--violet); border-radius: 8px; padding: 6px 8px; font: 700 .85rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--violet-deep); letter-spacing: .04em; word-break: break-all; }
.pd-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #3a3360; font-size: .9rem; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } .pd-buy { position: static; } }
@media (max-width: 520px) { .how-steps { grid-template-columns: 1fr; } }

/* News cards (home + news page) */
.home-news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.home-news-side { display: grid; gap: 12px; }
.home-news-side .ncard { flex-direction: row; }
.home-news-side .ncover { width: 38%; aspect-ratio: auto; min-height: 120px; flex: none; }
.home-news-side .ncard-body p { display: none; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.ncard:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -18px rgba(74,23,196,.45); }
.ncard-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.ncard h3 { font: 700 1.02rem/1.3 var(--font-body); color: var(--night); }
.ncard.lead h3 { font-size: 1.3rem; }
.ncard p { margin: 0; color: var(--muted); font-size: .9rem; }
.nread { color: var(--violet); font-weight: 800; font-size: .85rem; }
.nmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.ncat { font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--violet); }
.ncat.c-industry-news { background: #0e7490; }
.ncat.c-promotion{background:#e0441f;color:#fff}
.ncat.c-guide { background: #077a6d; }
.ncat.c-announcement { background: var(--pink); }
.npin { font-weight: 800; color: #8a5a00; background: #fff2b3; padding: 2px 8px; border-radius: 999px; }
.ncover { position: relative; aspect-ratio: 16 / 8; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(60% 70% at 70% 40%, color-mix(in srgb, #fff 25%, var(--c2, #ff4fa0)), transparent 70%), linear-gradient(135deg, var(--c1, #2a1677), color-mix(in srgb, var(--c2, #ff4fa0) 70%, var(--c1, #2a1677))); }
.ncover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ncover.big { aspect-ratio: 16 / 7; border-radius: 22px; }
.ncover-burst { position: absolute; inset: -30%; background: repeating-conic-gradient(rgba(255,255,255,.12) 0 9deg, transparent 9deg 18deg); }
.ncover-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1.2px, transparent 1.4px); background-size: 18px 18px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); }
.ncover-ic { position: relative; width: 34%; max-width: 180px; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); transform: rotate(-8deg); }
.ncover-ic svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .home-news { grid-template-columns: 1fr; } }

/* News page */
.news-head { background: linear-gradient(135deg, #0e2a6b, #6a2cff 55%, #d4145f); }
.news-page { padding-top: 26px; padding-bottom: 64px; }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 700 .88rem var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 12px; }
.mini-select { appearance: none; -webkit-appearance: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font: 600 .85rem var(--font-body); color: var(--text); }
.article { max-width: 780px; display: grid; gap: 14px; }
.article h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--night); }
.article .back { justify-self: start; }
.article-lead { font-size: 1.12rem; color: #3a3360; margin: 0; }
.article-body p, .article-body li { color: #3a3360; line-height: 1.75; font-size: 1.02rem; }
.article-body h3 { margin: 18px 0 4px; color: var(--night); font-size: 1.15rem; }
.article-body ul { padding-left: 22px; }
.article-sources { background: var(--bg-2); border-radius: 14px; padding: 12px 16px; }
.article-sources h3 { margin: 0 0 4px; font-size: .95rem; }
.article-sources ul { margin: 0; padding-left: 18px; }
.article-sources a { color: var(--violet); }
.article .btn { justify-self: start; }
#productDlg .close { right: 10px; top: 8px; color: var(--night); text-shadow: none; background: var(--bg-2); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; }
#productDlg .pd-info { padding-right: 34px; }
@media (max-width: 860px) { #productDlg .pd-info { padding-right: 0; } }

/* ---------- Mobile polish: categories, platforms, cards, images, product sheet ---------- */
.card-body h3, .cat strong, .plat-chip strong { overflow-wrap: break-word; hyphens: manual; }
.cat > span:last-child, .plat-chip > span:last-child { min-width: 0; }
.tile .pimg, .ncard img, .banner img { display: block; }
.dlg-in p:empty { display: none; }
@media (max-width: 760px) {
  /* platform list becomes a two-row swipe strip instead of a 20-row list */
  .platforms { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(140px, 42%);
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 4px 12px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
  .platforms::-webkit-scrollbar, .row::-webkit-scrollbar { display: none; }
  .plat-chip { scroll-snap-align: start; padding: 10px; gap: 10px; }
  .plat-badge { width: 38px; height: 38px; font-size: .8rem; }
}
@media (max-width: 600px) {
  /* category tiles: icon on top, text below, no cramped wrapping */
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .cat .ic { width: 42px; height: 42px; border-radius: 12px; }
  .cat .ic svg { width: 28px; height: 28px; }
  .cat strong { font-size: .92rem; line-height: 1.2; }
  .cat span { font-size: .78rem; }
  /* side campaign boxes side by side */
  .side-banners { grid-template-columns: 1fr 1fr; gap: 10px; }
  .banner.side { min-height: 150px; padding: 14px; border-radius: 18px; }
  .banner.side strong { font-size: 1.02rem; line-height: 1.15; }
  .banner.side span:last-child { font-size: .76rem; line-height: 1.3; }
  .banner.side .tag { font-size: .68rem; }
  .banner.side [data-icon] { width: 46%; right: 4%; top: 6%; }
  /* trust badges in two columns, stacked content */
  .usp { grid-template-columns: 1fr 1fr; gap: 10px; }
  .usp div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .usp [data-icon] { width: 28px; }
  .usp strong { font-size: .86rem; }
  /* product shelves: exactly two cards with a small peek of the next one */
  .row { grid-auto-columns: calc(47% - 6px); gap: 12px; padding: 4px 2px 14px; }
  .row.grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 10px; }
  .tile .art { width: 56%; right: 6%; top: 8%; }
  .card .tile .tname { display: none; }           /* name is already shown under the image */
  .tile .plat { font-size: .62rem; padding: 2px 6px; margin-bottom: 0; }
  .tile .off { font-size: .74rem; padding: 2px 7px; top: 8px; left: 8px; }
  .card-body { padding: 10px 11px 12px; gap: 6px; }
  .card-body h3 { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .meta { gap: 4px; }
  .card .meta .pill { font-size: .66rem; padding: 2px 7px; }
  .price-line { flex-wrap: wrap; gap: 2px 6px; }
  .price-line strong { font-size: 1.05rem; }
  .price-line .old { font-size: .78rem; }
  .shelf-head h2 { font-size: 1.15rem; }
  .shelf-tools .muted { display: none; }
  /* product window becomes a full-screen sheet */
  .dlg.wide { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dlg.wide .dlg-in { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  #productDlg .close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; box-shadow: 0 4px 14px rgba(26,18,56,.25); background: #fff; }
  .tile.big { aspect-ratio: 16 / 9; }
  .tile.big .art { width: 40%; }
  .pd-grid { gap: 18px; }
  .how-steps li { padding: 10px; gap: 10px; }
  .step-art { width: 44px; height: 44px; border-radius: 12px; padding: 5px; }
  .step-txt { font-size: .86rem; }
  .step-txt code, .how-steps pre, .how-steps .path { font-size: .74rem; overflow-wrap: anywhere; white-space: normal; }
  .where-chips li { font-size: .78rem; padding: 5px 10px; }
}
@media (max-width: 370px) {
  .row { grid-auto-columns: calc(50% - 6px); }
  .cat strong, .usp strong { font-size: .82rem; }
  .banner.side strong { font-size: .92rem; }
}

/* ---------- Product groups: logo card → amounts ---------- */
.tile .amt-count { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255,255,255,.92); color: var(--night); font-weight: 800; font-size: .72rem; padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.amt-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.amt-chip { font-size: .74rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--night); font-variant-numeric: tabular-nums; }
.amt-chip.more { background: var(--violet); border-color: var(--violet); color: #fff; }
.card.fam .price-line strong { font-size: 1.05rem; }

.fam-dlg { width: min(860px, calc(100% - 24px)); max-height: 92vh; }
.fam-dlg .dlg-in { gap: 18px; }
.fam-head { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding-right: 40px; }
.fam-logo .tile { border-radius: 18px; aspect-ratio: 1 / 1; }
.fam-logo .buy-hint { display: none; }
.fam-title h3 { font: 400 1.5rem/1.2 var(--font-display); color: var(--night); margin: 2px 0 6px; text-transform: uppercase; }
.fam-title .eyebrow { margin: 0; background: none; padding: 0; border-radius: 0; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.amt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.amt-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.amt-card:hover, .amt-card:focus-visible { transform: translateY(-4px); border-color: var(--c2); box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--c2) 80%, #000); }
.amt-card.soldout { filter: grayscale(.8); opacity: .65; }
.amt-logo { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 12px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--c2) 70%, #fff) 0, transparent 45%), linear-gradient(135deg, var(--c1), var(--c2)); }
.amt-logo::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 14px); }
.amt-logo .art { position: absolute; right: 6%; top: 8%; width: 48%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.amt-logo .plat { position: relative; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.4); padding: 2px 7px; border-radius: 6px; }
.amt-val { position: relative; font: 400 clamp(1.2rem, 4.2vw, 1.75rem)/1.05 var(--font-display); color: #fff; text-shadow: 0 3px 12px rgba(0,0,0,.55); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-transform: uppercase; }
.amt-logo .off { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--pink); color: #fff; font-weight: 800; font-size: .76rem; padding: 2px 8px; border-radius: 8px; transform: rotate(-6deg); }
.amt-info { display: grid; gap: 6px; padding: 10px 12px 12px; }
.amt-info .price-line strong { font-size: 1.1rem; }
.tile.big .amt-val { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 4px; }

.amt-switch { display: grid; gap: 6px; }
.amt-switch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.amt-opt { font: 800 .85rem var(--font-body); padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--night); cursor: pointer; font-variant-numeric: tabular-nums; }
.amt-opt small { font-weight: 700; color: var(--muted); font-size: .68rem; }
.amt-opt.on { border-color: var(--violet); background: var(--violet); color: #fff; box-shadow: 0 3px 0 var(--violet-deep); }
.amt-opt.on small { color: rgba(255,255,255,.85); }
.amt-opt.out:not(.on) { opacity: .55; text-decoration: line-through; }

@media (max-width: 600px) {
  .fam-dlg { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .fam-dlg .dlg-in { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .fam-dlg .close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(26,18,56,.25); color: var(--night); }
  .fam-head { grid-template-columns: 96px 1fr; gap: 12px; padding-right: 36px; }
  .fam-logo .tile { border-radius: 14px; }
  .fam-logo .tile .tname, .fam-logo .tile .amt-count, .fam-logo .tile .off { display: none; }
  .fam-title h3 { font-size: 1.15rem; }
  .amt-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .amt-logo { padding: 10px; }
  .amt-info { padding: 8px 10px 10px; }
  .amt-info .pill { font-size: .66rem; padding: 2px 7px; }
  .tile .amt-count { font-size: .64rem; padding: 2px 7px; top: 8px; right: 8px; }
  .amt-chip { font-size: .68rem; padding: 2px 6px; }
  .amt-val { font-size: 1.5rem; }
  .plat-chip strong { font-size: .84rem; }
  .plat-chip span span { font-size: .72rem; }
}

/* Company information block (legal pages, footer) */
.co-block { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0; }
.co-block .co { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 16px 58px; }
.co-block .co-n { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 10px; background: var(--violet); color: #fff; display: grid; place-items: center; font: 400 .9rem var(--font-display); text-transform: uppercase; }
.co-block h3 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.co-block p { margin: 0; line-height: 1.55; font-size: .92rem; overflow-wrap: anywhere; }
.co-block .co-note { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.f-companies { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: .8rem; color: #b8b0dc; line-height: 1.5; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; }
.f-companies strong { color: #fff; font-weight: 700; }
.f-companies .n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--violet); color: #fff; font-size: .7rem; margin-right: 6px; }
@media (max-width: 700px) { .co-block, .f-companies { grid-template-columns: 1fr; } }

/* ---------- Registration: account type, country, phone ---------- */
#authDlg.reg { width: min(560px, calc(100% - 24px)); }
.reg-grid { display: grid; gap: 10px; }
.acct-type { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-type legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.acct-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.acct-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acct-opt [data-icon] { width: 34px; flex: none; }
.acct-opt strong { display: block; font-size: .95rem; }
.acct-opt small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.acct-opt:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent); background: #faf8ff; }
.acct-opt:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label { display: block; margin-bottom: 4px; }
.reg-steps { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; margin: 4px 0 0; }

/* ---------- Verification dialog ---------- */
.onb-dlg { width: min(720px, calc(100% - 24px)); max-height: 92vh; }
.onb-dlg .dlg-in { gap: 14px; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.onb-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--muted); text-align: center; position: relative; }
.onb-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.onb-steps li:first-child::before { display: none; }
.onb-steps li.done::before, .onb-steps li.on::before { background: var(--violet); }
.onb-steps b { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--muted); font-size: .85rem; }
.onb-steps li.on { color: var(--violet); } .onb-steps li.on b { border-color: var(--violet); color: var(--violet); }
.onb-steps li.done b { background: var(--violet); border-color: var(--violet); color: #fff; }
.onb-code { display: grid; gap: 8px; }
.onb-code input#onbCode { font: 800 1.4rem/1 var(--font-body); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.onb-links { display: flex; gap: 16px; flex-wrap: wrap; }
.onb-debug { background: #fff7d6; border: 1px dashed #c48a00; color: #6b4b00; border-radius: 10px; padding: 8px 10px; font-weight: 700; margin: 0; }
.onb-docs { display: grid; gap: 10px; }
.onb-docs h4 { margin: 8px 0 0; font: 400 .95rem var(--font-display); color: var(--night); text-transform: uppercase; }
.onb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb-fields .full { grid-column: 1 / -1; }
.onb-fields label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.onb-fields input, .onb-fields select { width: 100%; }
.onb-fields .invalid { border-color: #c2185b !important; box-shadow: 0 0 0 3px rgba(194,24,91,.15); }
.onb-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-files li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; }
.onb-files li .ic { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.onb-files li.ok { border-style: solid; border-color: color-mix(in srgb, var(--np-deep) 45%, var(--line)); background: #f3fbf9; }
.onb-files li.ok .ic { background: var(--np-deep); border-color: var(--np-deep); color: #fff; }
.onb-files li.bad { border-color: #c2185b; background: #fff5f8; }
.onb-files li.busy { opacity: .7; }
.onb-files .lbl { display: grid; gap: 2px; min-width: 0; }
.onb-files .lbl strong { font-size: .88rem; }
.onb-files .lbl small { color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
.onb-files .lbl .st { color: var(--np-deep); font-weight: 700; }
.onb-files li.bad .st { color: #c2185b; }
.onb-files .up { cursor: pointer; }
.onb-note { border-left: 4px solid #c48a00; background: #fff8e6; padding: 10px 12px; border-radius: 10px; }
.onb-note.bad { border-color: #c2185b; background: #fff2f6; }
.onb-note p { margin: 4px 0 0; }
.onb-done { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 20px 10px; }
.onb-done > span { width: 76px; display: block; }
.onb-done h4 { margin: 0; font: 400 1.2rem var(--font-display); color: var(--night); text-transform: uppercase; }
.onb-done p { margin: 0; color: var(--muted); max-width: 440px; }

/* ---------- Wallet: verification card and bank transfer ---------- */
.verify-card { border-radius: 16px; padding: 14px; background: linear-gradient(135deg, #f4efff, #fff); border: 1px solid #ddd2ff; display: grid; gap: 8px; }
.verify-card.bad { background: linear-gradient(135deg, #fff1f5, #fff); border-color: #f3c2d3; }
.verify-card p { margin: 0; font-size: .9rem; color: #3a3360; }
.vbar { height: 8px; border-radius: 999px; background: #e6e0fa; overflow: hidden; }
.vbar i { display: block; height: 100%; min-width: 8%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: inherit; }
.bank-box details { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; }
.bank-box summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; list-style: none; }
.bank-box summary::-webkit-details-marker { display: none; }
.bank-box summary span { width: 26px; display: block; }
.bank-box details[open] summary { margin-bottom: 8px; }
.bank-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 8px 0; font-size: .86rem; }
.bank-dl dt { color: var(--muted); font-weight: 700; }
.bank-dl dd { margin: 0; overflow-wrap: anywhere; }
.bank-dl .iban { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bank-dl code { font-weight: 800; color: var(--night); background: var(--bg-2); padding: 3px 6px; border-radius: 6px; }
.bank-prices { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; font-size: .84rem; white-space: pre-line; }
.bank-prices p { margin: 4px 0 0; }
.bank-form { display: grid; gap: 6px; margin-top: 8px; }
.bank-form h4, .bank-box h4 { margin: 10px 0 2px; font-size: .9rem; }
.bank-form label { font-weight: 700; font-size: .82rem; }
.bank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
.bank-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); }
.bank-list li small { grid-column: 1 / -1; color: #c2185b; }
.bank-code { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.bank-code code { font-weight: 800; background: #fff; border: 1px dashed var(--violet); padding: 4px 8px; border-radius: 8px; color: var(--night); letter-spacing: .03em; }
.bank-code small, .bank-list li .bank-code small { color: var(--muted); grid-column: auto; flex-basis: 100%; }
.bank-list li.approved b { color: var(--np-deep); } .bank-list li.rejected b { color: #c2185b; } .bank-list li.pending b { color: #9a6b00; }
@media (max-width: 600px) {
  .onb-dlg, #authDlg.reg { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .onb-dlg .dlg-in, #authDlg.reg .dlg-in { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .onb-dlg .close, #authDlg.reg .close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(26,18,56,.25); color: var(--night); }
  .onb-fields, .two { grid-template-columns: 1fr; }
  .acct-opt { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .onb-files li { grid-template-columns: 24px 1fr; }
  .onb-files .up { grid-column: 2; justify-self: start; }
  .onb-steps span { font-size: .66rem; }
}
/* form selects match inputs */
.dlg-in select, .onb-fields select { width: 100%; background: var(--surface); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; appearance: auto; }
.dlg-in select:focus { border-color: var(--violet); outline: none; background: #fff; }
.reg-grid label, #regPhoneWrap label { font-weight: 700; font-size: .9rem; }
.drawer .bank-dl { grid-template-columns: 1fr; gap: 2px; }
.drawer .bank-dl dd { margin-bottom: 8px; }
/* Registration wizard pages */
#authDlg.p1 .p2-only, #authDlg.p2 .p1-only { display: none !important; }
#authDlg .onb-steps { margin: 2px 0 6px; }
.reg-nav { display: flex; }
.reg-nav [hidden] { display: none; }
.onb-lead { margin: 0; font-weight: 700; color: var(--night); }
.onb-code { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.onb-code h4 { margin: 0; font: 400 .95rem var(--font-display); color: var(--night); text-transform: uppercase; }
.onb-code p { margin: 0; }
.onb-code.done { background: #f3fbf9; border-color: color-mix(in srgb, var(--np-deep) 40%, var(--line)); }
.onb-code.done h4 { color: var(--np-deep); }
.onb-code input.otp { font: 800 1.35rem/1 var(--font-body); letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.selfie-guide { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; background: #f8f5ff; border: 1px solid #e3dbff; border-radius: 14px; padding: 10px 12px; }
.selfie-guide svg { width: 120px; height: auto; display: block; }
.selfie-guide p { margin: 0; font-size: .86rem; color: #3a3360; }
@media (max-width: 600px) { .selfie-guide { grid-template-columns: 90px 1fr; } .selfie-guide svg { width: 90px; } }

/* ---------- Header: menu + compact search · logo + sign-in ---------- */
.topbar-in { display: flex; align-items: center; gap: 14px; height: 76px; flex-wrap: nowrap !important; }
.top-search { flex: 1 1 auto; max-width: 520px; min-width: 0; position: relative; display: flex; align-items: center; }
.top-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--violet); pointer-events: none; }
.top-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 999px; border: 2px solid transparent; background: var(--bg-2); font-weight: 600; transition: border-color .15s, background .15s, box-shadow .15s; }
.top-search input:focus { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 15%, transparent); }
.brand-pm { margin-left: auto; display: inline-flex; align-items: center; flex: none; text-decoration: none; transition: transform .2s; }
.brand-pm img { height: 62px; width: auto; display: block; }
.brand-pm:hover { transform: rotate(-2deg) scale(1.03); }
.topbar .top-actions { flex: none; display: flex; align-items: center; gap: 10px; margin: 0; }
.topbar .wallet-btn { margin-left: 0; }
.menu-head .brand-pm { margin-left: 0; } .menu-head .brand-pm img { height: 44px; }
.topbar-in > .brand-pm:first-child { margin-left: 0; margin-right: auto; }
.f-logo { display: inline-block; padding: 10px 14px; margin: -6px 0 6px -14px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(106,44,255,.35), transparent 60%); }
.f-logo img { height: 74px; width: auto; display: block; }
@media (max-width: 760px) {
  .topbar-in { height: 64px; gap: 8px; padding-top: 0 !important; padding-bottom: 0 !important; }
  .brand-pm img { height: 38px; }
  .top-search input { height: 40px; padding-left: 36px; font-size: .9rem; }
  .top-search svg { left: 11px; width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .topbar-in { gap: 6px; }
  .menu-btn { width: 40px !important; height: 40px !important; flex: none; }
  .brand-pm img { height: 33px; }
  .topbar .wallet-btn { padding: 5px; gap: 0; }
  .topbar .wallet-btn #walletLabel { display: none; }
  .topbar .wallet-btn img { width: 28px; height: 28px; }
  .top-search input::placeholder { font-size: .82rem; }
}
@media (max-width: 350px) { .brand-pm img { height: 28px; } }

/* ---------- Header v3: menu · logo (left) · search · sign-in button ---------- */
.topbar .brand-pm { margin-left: 0; }
.topbar .top-search { margin-left: 6px; }
.topbar .top-actions { margin-left: auto; }
.brand-pm img { height: 46px; }
.signin-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 .95rem var(--font-body); color: #fff; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #5b2bff 0%, #a62cff 55%, #ff2e88 100%); box-shadow: 0 8px 20px -8px rgba(166,44,255,.75), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, box-shadow .15s, filter .15s; }
.signin-btn:hover { transform: translateY(-1px); filter: saturate(1.15); box-shadow: 0 12px 24px -8px rgba(166,44,255,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.signin-btn:active { transform: translateY(1px); }
.signin-btn:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.signin-btn.in { background: #fff; color: var(--night); box-shadow: inset 0 0 0 2px #e3dbff, 0 6px 16px -10px rgba(106,44,255,.6); }
.signin-btn.in .bal { color: var(--violet); }
.signin-btn.in .acc { color: var(--muted); font-weight: 700; font-size: .8rem; }
@media (max-width: 760px) { .brand-pm img { height: 36px; } .signin-btn { height: 40px; padding: 0 14px; font-size: .86rem; } }
@media (max-width: 480px) {
  .brand-pm img { height: 30px; }
  .signin-btn { height: 38px; padding: 0 12px; font-size: .8rem; }
  .signin-btn.in .acc { display: none; }
}
@media (max-width: 360px) { .brand-pm img { height: 26px; } .signin-btn { padding: 0 10px; } }

/* ---------- Flags, currency coins, market bar ---------- */
.flag { display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(20,10,58,.14); background: #fff; }
.flag svg, .flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
.flag.lg { width: 34px; height: 23px; border-radius: 5px; }
.flag-code { background: linear-gradient(135deg, #ece7ff, #fff); color: var(--night); font: 800 .58rem/16px var(--font-body); text-align: center; letter-spacing: .04em; }
.flag.lg.flag-code { line-height: 23px; font-size: .72rem; }
.flag-globe { box-shadow: none; background: none; border-radius: 50%; width: 16px; height: 16px; }
.coin { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%), linear-gradient(135deg, var(--k1), var(--k2));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 3px 0 color-mix(in srgb, var(--k1) 70%, #000); font: 800 .82rem/1 var(--font-body); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.coin b { font-weight: 800; max-width: 26px; overflow: hidden; white-space: nowrap; font-size: .82rem; }
.pill.rflag { display: inline-flex; align-items: center; gap: 5px; }
.pill.rflag .flag { width: 15px; height: 10px; border-radius: 2px; vertical-align: 0; }
.pill.rflag .flag-globe { width: 11px; height: 11px; }
.pill.rflag .flag-code { font-size: .4rem; line-height: 10px; }
.market-bar { background: linear-gradient(90deg, #f6f2ff, #fff 60%); border-bottom: 1px solid var(--line); }
.mb-in { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mb-where, .mb-cur { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 5px 12px 5px 8px; cursor: pointer; font: inherit; color: inherit; text-align: left; transition: border-color .15s, box-shadow .15s; }
.mb-where:hover, .mb-cur:hover { border-color: var(--violet); box-shadow: 0 4px 12px -6px rgba(106,44,255,.5); }
.mb-where span, .mb-cur span { display: grid; line-height: 1.15; }
.mb-where small, .mb-cur small { font-size: .68rem; color: var(--muted); font-weight: 700; }
.mb-where b, .mb-cur b { font-size: .9rem; color: var(--night); }
.mb-all { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--night); cursor: pointer; }
.mb-all input { width: 17px; height: 17px; accent-color: var(--violet); }
.mb-note { margin-left: auto; font-size: .78rem; color: var(--muted); }
.mk-dlg { width: min(820px, calc(100% - 24px)); max-height: 92vh; }
.mk-body { display: grid; gap: 18px; }
.mk-body h4 { margin: 0 0 6px; font: 400 .95rem var(--font-display); color: var(--night); text-transform: uppercase; }
.mk-body input[type=search] { margin-bottom: 8px; }
.mk-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
.mk-c, .mk-k { display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 10px; cursor: pointer; font: inherit; color: var(--night); text-align: left; }
.mk-c > span:not(.flag) { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-c small { color: var(--muted); font-weight: 700; font-size: .7rem; }
.mk-c.on, .mk-k.on { border-color: var(--violet); background: #f6f2ff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 15%, transparent); }
.mk-c:disabled { opacity: .55; cursor: default; }
.mk-c[hidden] { display: none; }
.mk-curs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mk-k span { display: grid; line-height: 1.2; } .mk-k small { color: var(--muted); font-size: .72rem; }
.region-warn { border: 1.5px solid #f0c36d; background: #fffaf0; border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.region-warn p { margin: 0; font-weight: 700; font-size: .88rem; color: #6b4b00; display: flex; gap: 8px; align-items: center; }
@media (max-width: 600px) {
  .mb-in { gap: 8px; }
  .mb-where, .mb-cur { padding: 4px 10px 4px 6px; gap: 8px; }
  .mb-where b, .mb-cur b { font-size: .82rem; }
  .flag.lg { width: 28px; height: 19px; }
  .coin { width: 26px; height: 26px; font-size: .74rem; }
  .mb-note { display: none; }
  .mb-all { font-size: .78rem; }
  .mk-dlg { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .mk-dlg .close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(26,18,56,.25); color: var(--night); }
  .mk-countries { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: 44vh; }
  .mk-curs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mk-k { min-width: 0; } .mk-k span { min-width: 0; } .mk-k small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.coin.s2 b { font-size: .68rem; letter-spacing: -.02em; } .coin.s3 b { font-size: .56rem; letter-spacing: -.03em; }
.amt-opt { display: inline-flex; align-items: center; gap: 6px; } .amt-opt .flag { width: 18px; height: 12px; border-radius: 2px; } .amt-opt .flag-globe { width: 13px; height: 13px; }

/* ---------- Category pages ---------- */
.cat-hide { display: none !important; }
.cat-page { padding-top: 18px; padding-bottom: 40px; display: grid; gap: 22px; }
.crumbs-store { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.crumbs-store a { color: var(--violet); font-weight: 700; text-decoration: none; }
.crumbs-store b { color: var(--night); }
.cp-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, rgba(255,255,255,.25), transparent 50%), linear-gradient(135deg, color-mix(in srgb, var(--cc) 85%, #000), var(--cc)); box-shadow: 0 18px 40px -24px var(--cc); }
.cp-head .ic { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.cp-head .ic svg { width: 50px; height: 50px; }
.cp-head h1 { margin: 0; font: 400 clamp(1.4rem, 3.4vw, 2.1rem)/1.1 var(--font-display); text-transform: uppercase; }
.cp-head p { margin: 6px 0 0; opacity: .9; }
.cp-head .btn.ghost { background: rgba(255,255,255,.95); }
.cp-subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cp-subs::-webkit-scrollbar { display: none; }
.cp-sub { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--night); font-weight: 800; font-size: .9rem; text-decoration: none; transition: border-color .15s; }
.cp-sub span { font-size: .72rem; background: var(--bg-2); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.cp-sub:hover { border-color: var(--violet); }
.cp-sub[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-deep); }
.cp-sub[aria-selected="true"] span { background: rgba(255,255,255,.22); color: #fff; }
.cp-sec { display: grid; gap: 12px; }
.cp-sec .shelf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cp-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.cp-sort select { width: auto; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: inherit; color: var(--night); }
.shelf-link { color: inherit; text-decoration: none; } .shelf-link:hover { color: var(--violet); }
@media (max-width: 600px) {
  .cp-head { grid-template-columns: auto 1fr; padding: 16px; gap: 12px; }
  .cp-head .ic { width: 54px; height: 54px; border-radius: 16px; } .cp-head .ic svg { width: 38px; height: 38px; }
  .cp-head .btn { grid-column: 1 / -1; justify-self: start; }
  .cp-sec .shelf-head { flex-wrap: wrap; }
}

/* ---------- Menu: country · language · currency ---------- */
.menu-region { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #f6f2ff, #fff); border: 1px solid #e6defd; }
.menu-region .menu-title { margin: 0 0 2px; }
.mr-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--night); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mr-row:hover, .mr-row:focus-within { border-color: var(--violet); box-shadow: 0 4px 12px -8px rgba(106,44,255,.6); }
.mr-txt { display: grid; min-width: 0; line-height: 1.2; }
.mr-txt small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.mr-txt b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-go { color: var(--violet); font-size: 1.3rem; font-weight: 800; }
.mr-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font: 800 .78rem var(--font-body); }
.mr-sel { grid-template-columns: auto 1fr; cursor: default; }
.mr-sel select { border: 0; background: transparent; padding: 0; font: 700 .92rem var(--font-body); color: var(--night); width: 100%; cursor: pointer; appearance: auto; }
.mr-all { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--night); padding: 2px 4px; cursor: pointer; }
.mr-all input { width: 17px; height: 17px; accent-color: var(--violet); }
.mr-note { margin: 0; font-size: .76rem; color: var(--muted); padding: 0 4px; }

/* ---------- Online top-up ---------- */
.tp { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid #e3dbff; background: linear-gradient(135deg, #faf8ff, #fff); }
.tp h4 { margin: 0; font: 400 .95rem var(--font-display); color: var(--night); text-transform: uppercase; }
.tp-note { margin: 0; font-size: .82rem; color: var(--muted); }
.tp-amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tp-a { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--night); }
.tp-a b { font-size: 1rem; } .tp-a small { font-size: .7rem; color: var(--muted); }
.tp-a.on { border-color: var(--violet); background: #f3edff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 15%, transparent); }
.tp-custom { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tp-ms { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-m { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .76rem; font-weight: 700; color: var(--night); }
.tp-m svg { width: 24px; height: 17px; display: block; }
.tp-result { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); font-weight: 700; }
.tp-result.ok { background: #e3f7f2; color: #066b5f; } .tp-result.warn { background: #fff2d6; color: #8a5a00; }
@media (max-width: 480px) { .tp-amts { grid-template-columns: 1fr 1fr; } }

/* ---------- Menu: one compact country · language · currency button ---------- */
.menu-title { font: 800 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.menu-region { padding: 0; border: 0; background: none; }
.mr-one { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--night); text-align: left; }
.mr-one:hover, .mr-one:focus-visible { border-color: var(--violet); }
.mr-one .flag.lg { width: 28px; height: 20px; border-radius: 4px; }
.mr-one-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.mr-one-txt b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-one-txt small { font-size: .74rem; color: var(--muted); font-weight: 700; }
.mr-one .coin { width: 24px; height: 24px; font-size: .7rem; }
.mr-one .mr-go { color: var(--violet); font-size: 1.2rem; font-weight: 800; }
.mk-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-l { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 700 .85rem var(--font-body); color: var(--night); cursor: pointer; }
.mk-l.on { border-color: var(--violet); background: #f3edff; color: var(--violet); }
.mk-allsec { border-top: 1px solid var(--line); padding-top: 10px; }

.mk-body, .mk-body section { min-width: 0; }
.mk-c, .mk-k { min-width: 0; }
.mk-c .flag, .mk-k .coin { flex: none; }

/* ---------- Menu: country · language · currency – simple stacked dropdown ---------- */
.mr-one { transition: border-color .2s, box-shadow .2s, border-radius .2s; }
.mr-one[aria-expanded="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 14%, transparent); }
.mr-chev { width: 20px; height: 20px; flex: none; color: var(--violet); transition: transform .25s; }
.mr-one[aria-expanded="true"] .mr-chev, .mr-row2.on .mr-chev { transform: rotate(180deg); }
.mr-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .25s ease, margin .3s; margin-top: 0; }
.mr-panel > * { min-height: 0; }
.mr-panel.open { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 16px; background: #f8f6ff; border: 1px solid var(--line); animation: mr-in .25s ease; }
@keyframes mr-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mr-row2 { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: #fff; font: inherit; color: var(--night); text-align: left; cursor: pointer; box-shadow: 0 1px 0 var(--line); }
.mr-row2:hover, .mr-row2.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--violet); }
.mr-ic2 { flex: none; width: 30px; display: grid; place-items: center; }
.mr-ic2 .flag { width: 26px; height: 18px; }
.mr-ic2 .coin { width: 26px; height: 26px; font-size: .7rem; }
.mr-l { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.mr-l small { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mr-l b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 7px; background: var(--night); color: #fff; font: 800 .68rem var(--font-body); letter-spacing: .04em; }
.mr-list { display: grid; gap: 6px; padding: 4px 2px 6px; animation: mr-in .22s ease; }
.mr-q { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.mr-q:focus { outline: none; border-color: var(--violet); }
.mr-items { display: flex; flex-direction: column; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mr-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #f1eefa; background: none; font: inherit; font-size: .9rem; color: var(--night); text-align: left; cursor: pointer; }
.mr-it:last-child { border-bottom: 0; }
.mr-it[hidden] { display: none; }
.mr-it:hover { background: #f8f6ff; }
.mr-it.on { background: #f1ebff; font-weight: 800; }
.mr-it.on::after { content: "✓"; margin-left: auto; color: var(--violet); font-weight: 800; }
.mr-it span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-it[data-k="auto"] span { white-space: normal; line-height: 1.3; }
.mr-it small { color: var(--muted); font-weight: 700; font-size: .72rem; }
.mr-it.on small { display: none; }
.mr-it .flag { width: 24px; height: 16px; flex: none; }
.mr-it .coin { width: 24px; height: 24px; font-size: .62rem; flex: none; }
.mr-it:disabled { opacity: .55; cursor: default; }
.mr-hint { margin: 0; font-size: .78rem; color: var(--muted); padding: 2px 4px; }
.mr-all2 { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 10px 10px 6px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.mr-all2 input { width: 18px; height: 18px; accent-color: var(--violet); grid-row: span 2; }
.mr-all2 small { color: var(--muted); font-weight: 600; font-size: .75rem; }
@media (prefers-reduced-motion: reduce) { .mr-panel, .mr-panel.open, .mr-list, .mr-chev { animation: none; transition: none; } }

/* Product images are square (prepared in the admin image editor) and fill the card box exactly.
   Wide tiles (product dialog) show the whole square on a blurred copy of itself. */
.tile .pimg { object-fit: cover; object-position: center; }
.tile.big .pimg { object-fit: contain; z-index: 0; }
.tile.big .pimg-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) saturate(1.2); transform: scale(1.05); z-index: 0; }
.tile.big:has(.pimg) > :not(img) { z-index: 1; }

/* Pages never scroll sideways on phones. */
html, body { overflow-x: clip; }

/* ---------- NetmarPlus Gift Card rules ---------- */
.np-rules { margin-top: 14px; background: #fff8e1; border: 1.5px solid #ffd666; border-radius: 14px; padding: 12px 14px; color: #3a2a00; text-align: left; }
.np-rules strong { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #2a1677; }
.np-rules strong > span[aria-hidden] { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ffb21f; color: #2a1677; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.np-rules ul { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 4px; font-size: .86rem; line-height: 1.45; }
.np-rules a { font-size: .8rem; font-weight: 700; color: #6a2cff; }
.netplus .np-rules { background: rgba(255, 255, 255, .92); }
.np-rules .npr-place { display: block; margin: 2px 0 0 30px; font-size: .75rem; font-weight: 700; color: #7a5a00; }

/* ---------- news & announcement covers: modern topic art ---------- */
.ncover.v2 { background: radial-gradient(120% 95% at 12% 8%, var(--c1), transparent 62%), radial-gradient(95% 95% at 92% 92%, var(--c2), transparent 60%), #120c2c; isolation: isolate; }
.nc-grid { position: absolute; left: -25%; right: -25%; bottom: -6%; height: 58%; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 34px 34px;
  transform: perspective(260px) rotateX(58deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); mask-image: linear-gradient(to top, #000 20%, transparent); }
.nc-glow { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); filter: blur(42px); opacity: .55; z-index: -1; }
.nc-glass { position: relative; width: 30%; max-width: 190px; aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center; transform: rotate(-7deg);
  background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 22px 40px -12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nc-glass svg { width: 74%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.nc-orb { position: absolute; width: 13%; max-width: 74px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); opacity: .95; }
.nc-orb svg { width: 100%; height: auto; display: block; }
.nc-orb.o1 { left: 9%; top: 12%; transform: rotate(-14deg); }
.nc-orb.o2 { right: 9%; bottom: 14%; transform: rotate(12deg); width: 11%; }
.nc-orb.o3 { right: 16%; top: 10%; width: 7%; opacity: .7; filter: blur(.6px); }
.nc-tag { position: absolute; left: 12px; bottom: 10px; font: 800 .62rem/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 8px; border-radius: 999px; }
.ncover.big .nc-tag { font-size: .72rem; left: 18px; bottom: 16px; }
.home-news-side .ncover .nc-tag, .home-news-side .ncover .nc-orb.o3 { display: none; }
