/* ScriptBazar — dark 3D theme */
:root {
  --bg: #0B0D14;
  --bg-2: #0F121B;
  --surface: #141824;
  --surface-2: #1B2030;
  --surface-3: #232838;
  --line: #232838;
  --line-2: #2E3650;
  --line-3: #3D4766;
  --text: #F2F4FA;
  --text-2: #C9CDDB;
  --muted: #A3AAC0;
  --dim: #8890A8;
  --accent: #7C5CFF;
  --accent-dark: #4A30C4;
  --accent-soft: #B3A3FF;
  --accent-text: color-mix(in srgb, var(--accent-soft) 55%, #fff);
  --sel-bg: color-mix(in srgb, var(--accent) 17%, var(--surface));
  --on-accent: #fff;
  --header-bg: rgba(11,13,20,.92);
  --footer-bg: #090B11;
  --field-bg: #121520;
  --hover-bg: #161A26;
  --menu-bg: #161927;
  --btn-edge: #07080D;
  --shadow-strong: rgba(0,0,0,.85);
  --shadow-soft: rgba(0,0,0,.5);
  --cyan: #22D3EE;
  --cyan-dark: #0E8FA3;
  --amber: #FFB020;
  --amber-dark: #C27C00;
  --green: #22C55E;
  --green-text: #6EE7A0;
  --amber-text: #FFC857;
  --red-text: #FF8A80;
  --pink: #F472B6;
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Sora', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); }
a:hover { color: var(--accent-text); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.icon { flex: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-dark), 0 14px 28px -10px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); color: var(--on-accent); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); box-shadow: 0 3px 0 var(--btn-edge), inset 0 1px 0 rgba(255,255,255,.05); }
.btn-ghost:hover { background: #222839; color: #fff; border-color: var(--line-3); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn-danger { background: var(--surface-2); color: var(--red-text); border-color: rgba(255,107,107,.4); box-shadow: 0 3px 0 var(--btn-edge); }
.btn-danger:hover { background: rgba(255,107,107,.12); color: #FFB3AD; }
.btn-light { background: #fff; color: var(--bg); box-shadow: 0 4px 0 #A9A0D9, 0 14px 28px -12px rgba(0,0,0,.6); }
.btn-light:hover { background: #EEEAFF; color: var(--bg); }
.btn-light:active { transform: translateY(3px); box-shadow: 0 1px 0 #A9A0D9; }
.btn-cyan { background: var(--cyan); color: #05242B; box-shadow: 0 4px 0 var(--cyan-dark), 0 14px 28px -12px rgba(34,211,238,.6); }
.btn-cyan:hover { background: #4FE0F5; color: #05242B; }
.btn-cyan:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cyan-dark); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-soft); font-weight: 600; cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--surface-2); position: relative; z-index: 10; }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-height: 44px; }
.brand:hover { color: #fff; }
.brand-cube { width: 34px; height: 34px; perspective: 200px; display: flex; }
.brand-cube span { position: relative; width: 34px; height: 34px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-32deg); }
.brand-cube i { position: absolute; inset: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.brand-cube i:first-child { background: var(--accent); transform: translateZ(9px); color: var(--on-accent); }
.brand-cube i:last-child { background: var(--accent-dark); transform: translateZ(-9px); }
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name b { color: var(--accent-soft); font-weight: 700; }
.search { flex: 1 1 260px; position: relative; display: flex; align-items: center; min-width: 0; }
.search .icon { position: absolute; left: 14px; color: var(--dim); }
.search input { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); color: var(--text); font-size: 15px; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.search input::placeholder { color: #6F7790; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.navbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.navbtn:hover { color: #fff; background: var(--hover-bg); }
.navbtn.on { color: #fff; background: var(--surface-2); border-color: var(--line-2); }
.nav-form { display: inline; margin: 0; }
.dot-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #1A1200; font-size: 12px; font-weight: 700; }
.dot-badge.violet { background: var(--accent); color: var(--on-accent); }
.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; padding-bottom: 14px; scrollbar-width: thin; }
.cat { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg); color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: all .15s ease; }
.cat:hover { color: #fff; border-color: var(--line-3); }
.cat.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-dark), 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent); }

.banner { background: rgba(255,176,32,.12); border-bottom: 1px solid rgba(255,176,32,.35); color: var(--amber-text); font-size: 14px; }
.banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }

main.page { flex: 1 0 auto; padding-top: 36px; padding-bottom: 80px; }
.page-stack { display: flex; flex-direction: column; gap: 44px; }
.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

/* ---------- Flash ---------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; margin-bottom: 24px; border: 1px solid; }
.flash.success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: var(--green-text); }
.flash.error { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.4); color: var(--red-text); }
.flash.info { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text); }

/* ---------- Panels & badges ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.8); }
.pad { padding: 24px; }
.pad-sm { padding: 18px; }
.badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.badge.green { background: rgba(34,197,94,.14); color: var(--green-text); border-color: rgba(34,197,94,.4); }
.badge.amber { background: rgba(255,176,32,.14); color: var(--amber-text); border-color: rgba(255,176,32,.4); }
.badge.red { background: rgba(255,107,107,.14); color: var(--red-text); border-color: rgba(255,107,107,.4); }
.badge.grey { background: var(--surface-2); color: var(--muted); border-color: var(--line-2); }
.badge.violet { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); text-decoration: none; }
.pill strong { color: var(--text); }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.eyebrow .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.empty { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.star-on { fill: var(--amber); }
.star-off { fill: var(--line-2); }

/* ---------- Hero with 3D scene ---------- */
.hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 48px 44px; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse at 78% 40%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 55%), radial-gradient(ellipse at 95% 90%, rgba(34,211,238,.18), transparent 50%), #10131C; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px -40px rgba(0,0,0,.9); }
.hero-copy { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero p { max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-mono { font-family: var(--mono); padding: 6px 12px; border-radius: 8px; background: var(--hover-bg); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hero-visual { flex: 1 1 420px; min-width: 0; height: 460px; display: flex; align-items: center; justify-content: center; perspective: 1800px; }
.scene-fit { transform-style: preserve-3d; }
.scene { position: relative; width: 380px; height: 300px; transform-style: preserve-3d; transform: rotateX(26deg) rotateY(-30deg) rotateZ(6deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: rotateX(26deg) rotateY(-30deg) rotateZ(6deg) translateY(0); } 50% { transform: rotateX(24deg) rotateY(-26deg) rotateZ(5deg) translateY(-12px); } }
.scene > * { position: absolute; }
.s-floor { inset: 0; border-radius: 24px; border: 1px solid var(--line-2); background-color: #121623; background-image: linear-gradient(#1E2333 1px, transparent 1px), linear-gradient(90deg, #1E2333 1px, transparent 1px); background-size: 24px 24px; box-shadow: 0 60px 90px -20px rgba(0,0,0,.85); }
.s-window { left: 22px; top: 26px; width: 250px; height: 172px; display: flex; flex-direction: column; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; transform: translateZ(40px); box-shadow: 0 24px 40px -12px rgba(0,0,0,.8); }
.s-window .tiles { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
.s-window .tiles i { border-radius: 8px; }
.s-stats { right: 20px; top: 128px; width: 168px; height: 132px; display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 14px; background: #1F2538; border: 1px solid var(--line-3); transform: translateZ(95px); box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); }
.s-stats b { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green-text); }
.s-stats b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 5px; }
.bars i { flex: 1; border-radius: 3px; background: var(--accent); }
.s-phone { right: -14px; top: -40px; width: 92px; height: 178px; display: flex; flex-direction: column; border: 5px solid #05060A; border-radius: 20px; background: var(--surface-2); overflow: hidden; transform: translateZ(150px); box-shadow: 0 40px 60px -16px rgba(0,0,0,.9); }
.s-key { left: 6px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--accent); color: #fff; font-family: var(--mono); font-size: 13px; transform: translateZ(185px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent), 0 24px 40px -10px rgba(0,0,0,.9); }
.s-key .icon { color: var(--amber); }
.s-coin { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 600; box-shadow: 0 20px 30px -8px rgba(0,0,0,.8); }
.s-coin.usdt { left: -26px; top: -18px; width: 58px; height: 58px; background: var(--cyan); color: #05242B; border: 3px solid var(--cyan-dark); transform: translateZ(210px); }
.s-coin.btc { left: 150px; top: -34px; width: 46px; height: 46px; background: var(--amber); color: #1A1200; border: 3px solid var(--amber-dark); transform: translateZ(170px); }
.s-toast { right: 58px; bottom: -22px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: #fff; color: var(--bg); font-size: 12px; font-weight: 700; transform: translateZ(230px); box-shadow: 0 24px 40px -10px rgba(0,0,0,.9); white-space: nowrap; }
.s-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.step-num { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; font-family: var(--display); font-size: 18px; font-weight: 800; }
.step-num.violet { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-dark); }
.step-num.cyan { background: var(--cyan); color: #05242B; box-shadow: 0 5px 0 var(--cyan-dark); }
.step-num.amber { background: var(--amber); color: #1A1200; box-shadow: 0 5px 0 var(--amber-dark); }
.step-num.pink { background: var(--pink); color: #3A0A22; box-shadow: 0 5px 0 #B4236A; }
.step-card b { display: block; font-size: 16px; margin-bottom: 4px; }
.step-card span { font-size: 14px; color: var(--muted); }

/* ---------- Spinning cube ---------- */
.cube-wrap { flex: none; display: flex; align-items: center; justify-content: center; width: 180px; height: 180px; perspective: 700px; }
.cube { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; animation: spin 16s linear infinite; }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; font-family: var(--mono); font-size: 28px; font-weight: 600; color: #fff; }
.f1 { transform: translateZ(60px); background: color-mix(in srgb, var(--accent) 92%, transparent); }
.f2 { transform: rotateY(180deg) translateZ(60px); background: rgba(34,211,238,.85); color: #05242B; }
.f3 { transform: rotateY(90deg) translateZ(60px); background: color-mix(in srgb, var(--accent) 88%, #000); }
.f4 { transform: rotateY(-90deg) translateZ(60px); background: rgba(20,160,190,.9); }
.f5 { transform: rotateX(90deg) translateZ(60px); background: color-mix(in srgb, var(--accent-soft) 92%, transparent); }
.f6 { transform: rotateX(-90deg) translateZ(60px); background: color-mix(in srgb, var(--accent-dark) 60%, #000); }
.sell-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 44px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: radial-gradient(ellipse at 15% 50%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), var(--surface); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.08); }
.sell-band h2 { font-size: 32px; }
.sell-band p { color: var(--text-2); margin-top: 10px; max-width: 560px; }

@media (prefers-reduced-motion: reduce) { .scene, .cube { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 560px) { .scene-fit { transform: scale(.72); } .hero { padding: 32px 22px; } .hero-visual { height: 380px; } .sell-band { padding: 28px 22px; } }

/* ---------- Product cards ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.section-head h2 { font-size: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.pcard { display: flex; flex-direction: column; min-width: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pcard:hover { color: var(--text); transform: translateY(-6px); border-color: var(--line-3); box-shadow: 0 30px 50px -24px rgba(0,0,0,.9), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.pcard-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; perspective: 900px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 55% 40%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 62%), var(--bg-2); }
.pcard-stage::after { content: ""; position: absolute; bottom: 22px; left: 22%; width: 56%; height: 18px; border-radius: 50%; background: rgba(0,0,0,.75); filter: blur(10px); z-index: 0; }
.tilt { position: relative; z-index: 1; transform-style: preserve-3d; transform: rotateX(20deg) rotateY(-24deg) rotateZ(4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .tilt { transform: rotateX(8deg) rotateY(-10deg) rotateZ(1deg) translateY(-6px) scale(1.04); }
.tilt .ver { position: absolute; right: -22px; top: -16px; padding: 5px 9px; border-radius: 8px; background: #fff; color: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 600; transform: translateZ(50px); box-shadow: 0 12px 20px -6px rgba(0,0,0,.8); }
.popular-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: var(--amber); color: #1A1200; font-size: 12px; font-weight: 700; box-shadow: 0 0 16px rgba(255,176,32,.45); }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.pcard-cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pc); }
.pcard-name { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.pcard-tag { font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-tag { padding: 4px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--display); font-size: 18px; font-weight: 700; }

/* Mock screens (used when a product has no screenshots yet) */
.mock-win { display: flex; flex-direction: column; width: 196px; height: 128px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 20px 30px -10px rgba(0,0,0,.8); }
.mock-bar { display: flex; gap: 4px; padding: 6px 8px; background: #232A3D; }
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: #FF6B6B; }
.mock-bar i:nth-child(2) { background: var(--amber); }
.mock-bar i:nth-child(3) { background: var(--green); }
.mock-body { display: flex; flex: 1; }
.mock-side { width: 24%; background: var(--pc); }
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.mock-line { height: 6px; width: 55%; border-radius: 3px; background: var(--line-3); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-tiles i { height: 20px; border-radius: 4px; background: color-mix(in srgb, var(--pc) 30%, #1B2030); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding: 5px; border-radius: 4px; background: var(--surface); }
.mock-chart i { flex: 1; border-radius: 2px; background: var(--pc); }
.mock-phones { display: flex; align-items: flex-end; gap: 14px; transform-style: preserve-3d; }
.mock-phone { display: flex; flex-direction: column; width: 74px; height: 146px; border: 4px solid #05060A; border-radius: 18px; background: var(--surface-2); overflow: hidden; box-shadow: 0 20px 30px -10px rgba(0,0,0,.85); }
.mock-phone + .mock-phone { width: 66px; height: 124px; transform: translateZ(40px); }
.mock-phone .head { height: 40px; background: var(--pc); }
.mock-phone .body { display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.mock-phone .body i { height: 24px; border-radius: 5px; background: color-mix(in srgb, var(--pc) 30%, #1B2030); }
.mock-phone .body i:last-child { height: 14px; background: var(--pc); }
.shot-frame { display: flex; flex-direction: column; width: 200px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 20px 30px -10px rgba(0,0,0,.8); }
.shot-frame img { width: 100%; height: 118px; object-fit: cover; object-position: top; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a { text-decoration: none; }
.product-head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.product-head .tagline { font-size: 18px; color: var(--muted); margin-top: 10px; }
.product-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.product-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.product-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bigstage { position: relative; display: flex; align-items: center; justify-content: center; height: 460px; perspective: 1600px; overflow: hidden; background: radial-gradient(circle at 55% 45%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 60%), var(--bg-2); border-radius: var(--radius) var(--radius) 0 0; }
.bigstage::after { content: ""; position: absolute; bottom: 40px; left: 18%; width: 64%; height: 30px; border-radius: 50%; background: rgba(0,0,0,.8); filter: blur(16px); }
.bigtilt { position: relative; z-index: 1; width: 86%; max-width: 720px; transform-style: preserve-3d; transform: rotateX(16deg) rotateY(-20deg) rotateZ(2deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bigstage:hover .bigtilt { transform: rotateX(6deg) rotateY(-8deg); }
.bigframe { display: flex; flex-direction: column; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 60px -20px rgba(0,0,0,.9); }
.bigframe .mock-bar { padding: 10px 12px; align-items: center; }
.bigframe .mock-bar i { width: 9px; height: 9px; }
.bigframe .url { flex: 1; max-width: 300px; margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--surface); font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bigframe img { width: 100%; max-height: 330px; object-fit: cover; object-position: top; }
.bigframe .mock-big { height: 330px; display: flex; }
.bigframe .mock-big .mock-side { width: 22%; }
.bigframe .mock-big .mock-main { gap: 14px; padding: 18px; }
.bigframe .mock-big .mock-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bigframe .mock-big .mock-tiles i { height: 46px; }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 20px 34px -10px rgba(0,0,0,.9); }
.float-chip.ver { right: -16px; top: -22px; background: #fff; color: var(--bg); font-family: var(--mono); transform: translateZ(90px); }
.float-chip.demo { left: -20px; bottom: 26px; background: var(--bg-2); border: 1px solid var(--pc); color: #fff; transform: translateZ(120px); }
.float-chip.demo i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.thumb { width: 96px; height: 60px; padding: 0; border: 2px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb.on { border-color: var(--accent); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.prose { font-size: 16px; line-height: 1.75; color: var(--text-2); white-space: pre-line; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; font-size: 15px; }
.tick { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(34,197,94,.15); color: var(--green-text); }
.stack-chip { font-family: var(--mono); padding: 8px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; box-shadow: 0 3px 0 var(--btn-edge); }
.timeline { margin: 0; padding: 0 0 0 8px; list-style: none; display: flex; flex-direction: column; gap: 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 18px; margin-left: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--pc); }
.timeline .v { min-width: 64px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--pc); }
.timeline .d { min-width: 100px; font-size: 13px; color: var(--dim); }
.timeline .n { flex: 1 1 240px; font-size: 15px; color: var(--text-2); white-space: pre-line; }
.buy-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-color: var(--line-2); }
.lic { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface-2); transition: all .15s ease; }
.lic:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--accent); }
.lic input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.lic-top { display: flex; justify-content: space-between; gap: 8px; }
.lic-name { font-size: 15px; font-weight: 600; }
.lic-price { font-family: var(--display); font-size: 18px; font-weight: 700; }
.lic-note { font-size: 13px; color: var(--muted); }
.includes { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--text-2); }
.includes li { display: flex; gap: 10px; align-items: center; }
.includes .icon { color: var(--green-text); }
.owned-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 12px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: var(--green-text); font-size: 14px; }
.owned-note a { color: var(--green-text); }
.seller-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--pc, var(--accent)); color: var(--bg); font-family: var(--display); font-size: 16px; font-weight: 800; box-shadow: 0 4px 0 rgba(0,0,0,.5); }
.avatar.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; background: var(--surface-3); color: var(--text); box-shadow: none; }

/* Reviews */
.review-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.rating-box { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.rating-big { font-family: var(--display); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.dist { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.dist .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.dist .bar i { display: block; height: 100%; border-radius: 999px; background: var(--amber); }
.review-form-box { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.star-input label svg path { fill: var(--line-3); transition: fill .1s ease; }
.star-input label:hover, .star-input input:focus-visible + label { background: var(--surface-2); }
.star-input input:checked ~ label svg path, .star-input label:hover svg path, .star-input label:hover ~ label svg path { fill: var(--amber); }
.review { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field .hint { font-size: 13px; font-weight: 400; color: var(--dim); }
.field .err { font-size: 13px; font-weight: 500; color: var(--red-text); }
.input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--text); font-size: 15px; font-weight: 400; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.input::placeholder { color: #6F7790; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: auto; }
input[type=file].input { padding: 9px 10px; }
input[type=color].input { padding: 4px; height: 46px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > * { min-width: 0; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.auth-card h1 { font-size: 30px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Checkout */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pay { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface-2); transition: all .15s ease; }
.pay:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--accent); }
.pay:focus-within { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.pay-icon.crypto { background: var(--amber); color: #1A1200; box-shadow: 0 4px 0 var(--amber-dark); }
.pay-icon.card { background: var(--cyan); color: #05242B; box-shadow: 0 4px 0 var(--cyan-dark); }
.pay b { display: block; font-size: 15px; }
.pay span { font-size: 13px; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { font-weight: 700; font-size: 18px; padding-top: 6px; }
.cube-mini { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 22%, #141824); border: 1px solid var(--line-2); perspective: 200px; }
.cube-mini i { width: 26px; height: 26px; border-radius: 7px; background: var(--pc); transform: rotateX(25deg) rotateY(-25deg); box-shadow: 4px 6px 0 rgba(0,0,0,.45); }

/* Status steps */
.status-card { width: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; padding: 40px; background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,.16), transparent 60%), var(--surface); }
.status-card.waiting { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--surface); }
.status-icon { display: flex; width: 72px; height: 72px; perspective: 300px; }
.status-icon span { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 22px; transform: rotateX(18deg) rotateY(-18deg); }
.status-icon.ok span { background: var(--green); color: #04210F; box-shadow: 6px 8px 0 #15803D; }
.status-icon.wait span { background: var(--accent); color: var(--on-accent); box-shadow: 6px 8px 0 var(--accent-dark); }
.status-icon.bad span { background: #FF6B6B; color: #2A0606; box-shadow: 6px 8px 0 #B33A3A; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .dot { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 14px; background: var(--surface-3); color: var(--muted); }
.steps li.done .dot { background: var(--green); color: #04210F; box-shadow: 0 0 0 6px rgba(34,197,94,.15); }
.steps li.current .dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
.steps b { display: block; padding-top: 6px; }
.steps span { font-size: 14px; color: var(--muted); }

/* Downloads */
.alert-box { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(255,176,32,.4); background: radial-gradient(ellipse at 0% 0%, rgba(255,176,32,.16), transparent 60%), var(--surface); }
.alert-box h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 16px; color: var(--amber-text); letter-spacing: 0; }
.order-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.key-box { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; background: var(--bg-2); border: 1px dashed var(--accent); border-radius: 14px; box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.key-box .icon { color: var(--amber); }
.key-box .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.key-box .key { flex: 1; min-width: 160px; font-family: var(--mono); font-size: 15px; color: #fff; overflow-wrap: anywhere; }
.update-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 13px 15px; border-radius: 14px; background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.4); color: #F2E3C0; font-size: 14px; }
.update-box strong { color: var(--amber-text); }

/* Seller / stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-top: 3px solid var(--accent); }
.stat span { font-size: 14px; color: var(--muted); }
.stat b { font-family: var(--display); font-size: 32px; font-weight: 800; }
.stat.cyan { border-top-color: var(--cyan); }
.stat.amber { border-top-color: var(--amber); }
.stat.pink { border-top-color: var(--pink); }
.stat.green { border-top-color: var(--green); }
.stat.violet { border-top-color: var(--accent); }
.list-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 18px; }
.page-title { display: flex; flex-direction: column; gap: 6px; }
.page-title h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.page-title p { color: var(--muted); font-size: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 13px 16px; text-align: left; font-weight: 600; color: var(--dim); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions form { display: inline-block; margin: 2px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.input-sm { min-height: 40px; padding: 6px 10px; font-size: 14px; }

/* Switch */
.switch { position: relative; flex: none; width: 52px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--dim); box-shadow: 0 2px 4px rgba(0,0,0,.5); transition: all .2s ease; }
.switch.on, input:checked + .switch { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--accent) 70%, transparent); }
.switch.on::after, input:checked + .switch::after { left: 25px; background: #fff; }
.toggle { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--surface-2); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .grow b { display: block; font-size: 15px; }
.toggle-row .grow span { font-size: 14px; color: var(--muted); }

/* ---------- Admin layout ---------- */
.admin-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sidenav { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; }
.sidenav .label { padding: 8px 12px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.side { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.side:hover { background: var(--surface-2); color: #fff; }
.side.on { background: var(--sel-bg); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-sep { height: 1px; margin: 8px 0; background: var(--line); }
.admin-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.admin-main h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #1A1200; font-size: 12px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.fchip:hover { color: #fff; }
.fchip.on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.copy-field { display: flex; gap: 8px; align-items: center; }
.copy-field code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.gw-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.gw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- Footer & toast ---------- */
.site-footer { border-top: 1px solid var(--surface-2); background: var(--footer-bg); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--dim); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--accent); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent), 0 20px 40px rgba(0,0,0,.6); }
.toast .icon { color: var(--green-text); }

.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.error-card { max-width: 520px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 28px; }
.error-code { font-family: var(--display); font-size: 64px; font-weight: 800; color: var(--accent-soft); line-height: 1; }

@media (max-width: 760px) {
  .sidenav { flex-direction: row; flex-wrap: wrap; }
  .sidenav .label, .side-sep { width: 100%; }
  .page-title h1, .admin-main h1 { font-size: 30px; }
  .pad { padding: 18px; }
  .auth-card, .status-card { padding: 24px; }
}

/* ---------- Screenshot uploads ---------- */
.dropzone { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 16px 18px; border: 1.5px dashed var(--line-3); border-radius: 14px; background: var(--bg-2); color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, input:focus-visible + .dropzone, .dropzone:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.dropzone > span { display: flex; flex-direction: column; gap: 2px; }
.dropzone .icon { color: var(--accent-soft); }
.shot-grid { display: grid; gap: 12px; }
.shot-grid:empty { display: none; }
.shot-grid.desktop { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.shot-grid.mobile { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.shot-item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shot-item img, .shot-item .ph { width: 100%; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.shot-grid.desktop .shot-item img, .shot-grid.desktop .shot-item .ph { aspect-ratio: 16 / 10; }
.shot-grid.mobile .shot-item img, .shot-grid.mobile .shot-item .ph { aspect-ratio: 9 / 16; }
.shot-item .note { font-size: 12px; color: var(--dim); }
.shot-item .note.warn { color: var(--amber-text); }

/* ---------- Mobile gallery on the product page ---------- */
.phone-row { display: flex; gap: 28px; overflow-x: auto; padding: 30px 8px 40px; perspective: 1400px; scroll-snap-type: x mandatory; }
.phone { flex: none; width: 220px; scroll-snap-align: start; border: 8px solid #05060A; border-radius: 34px; overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 60px -24px rgba(0,0,0,.9), 0 0 0 1px var(--line-2); transform: rotateY(-14deg) rotateX(6deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.phone:hover { transform: rotateY(0) rotateX(0) translateY(-6px); }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.gallery-tabs { display: flex; gap: 8px; padding: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }

/* ---------- Admin shell ---------- */
.admin-top { background: var(--footer-bg); border-bottom: 1px solid var(--surface-2); }
.admin-top .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
details.report { font-size: 13px; }
details.report summary { cursor: pointer; color: var(--accent-soft); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
details.report ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.seo-preview { padding: 14px 16px; border-radius: 12px; background: #fff; color: #202124; font-family: Arial, sans-serif; }
.seo-preview .t { color: #1a0dab; font-size: 18px; line-height: 1.3; }
.seo-preview .u { color: #006621; font-size: 13px; }
.seo-preview .d { color: #4d5156; font-size: 13px; line-height: 1.5; }

/* ---------- Seller sales chart ---------- */
.sales-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 10px 4px 0; border-bottom: 1px solid var(--line-2); background-image: linear-gradient(var(--surface-2) 1px, transparent 1px); background-size: 100% 40px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-soft), var(--accent)); box-shadow: 0 0 12px -2px color-mix(in srgb, var(--accent) 60%, transparent); transition: filter .15s ease; }
.bar-col:hover i { filter: brightness(1.25); }
.stat .small { font-size: 12px; }

/* ---------- Admin overview ---------- */
.meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.meter.cyan i { background: linear-gradient(90deg, #12B5CB, #6EE7F7); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }
.health { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--surface-2); }
.health b { display: block; font-size: 14px; }
.health .grow span { font-size: 13px; color: var(--muted); }
.health .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.dot.ok { background: #3DDC84; box-shadow: 0 0 8px rgba(61,220,132,.6); }
.dot.bad { background: #FF5A50; box-shadow: 0 0 8px rgba(255,90,80,.6); }
.dot.info { background: #8A90A6; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-grid.four { grid-template-columns: 1fr; } }
.pay-icon.manual { background: #3DDC84; color: #04210F; box-shadow: 0 4px 0 #1E9A55; }
.pay-icon.test { background: var(--pink, #FF5FA2); color: #2A0216; box-shadow: 0 4px 0 #B8326E; }
.pay-instructions { white-space: pre-line; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.7; }
.test-pay { max-width: 560px; margin: 0 auto; }
.badge.pink { background: rgba(244,114,182,.16); color: #FFC4E1; border-color: rgba(244,114,182,.45); }
/* CAPTCHA */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-box { min-height: 65px; display: flex; justify-content: center; }
/* Social sign-in */
.social-list { display: flex; flex-direction: column; gap: 10px; }
.btn-social { justify-content: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.btn-social:hover { border-color: var(--accent-soft); }
.btn-social .mark { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.mark.google { background: #4C6EF5; } .mark.apple { background: #2B2D36; border: 1px solid #555; } .mark.facebook { background: #3B5BDB; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.mark-lg { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 20px var(--display); color: #fff; }
.mark-lg.google { background: #4C6EF5; box-shadow: 0 4px 0 #2F4BC2; } .mark-lg.apple { background: #2B2D36; box-shadow: 0 4px 0 #111; } .mark-lg.facebook { background: #3B5BDB; box-shadow: 0 4px 0 #23399A; }

/* ---------- Pages, blog ---------- */
.content-wrap { max-width: 860px; margin: 0 auto; width: 100%; }
.pad-lg { padding: clamp(22px, 4vw, 44px); }
.article h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 14px; }
.article-cover { width: 100%; height: auto; border-radius: 16px; margin: 6px 0 22px; border: 1px solid var(--line-2); }
.md { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.md h2 { font-size: 24px; margin: 30px 0 10px; color: var(--text); letter-spacing: -0.02em; }
.md h3 { font-size: 19px; margin: 24px 0 8px; color: var(--text); }
.md h4 { font-size: 16px; margin: 20px 0 6px; color: var(--text); }
.md p { margin: 0 0 14px; }
.md ul, .md ol { margin: 0 0 16px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.md code { font-family: var(--mono, monospace); font-size: 14px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.md pre { background: #0B0C12; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md img { max-width: 100%; height: auto; border-radius: 12px; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 26px 0; }
.md em { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); }
.post-card img, .post-cover-empty { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, transparent), rgba(18,181,203,.15)); display: flex; align-items: center; justify-content: center; color: var(--accent-soft); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.post-title { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); line-height: 1.3; }
.badge.cyan { background: rgba(18,181,203,.15); color: #9BEAF5; border-color: rgba(18,181,203,.45); }
.md-help { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .md-help code { font-size: 12px; }

/* ---------- Cart ---------- */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.cart-thumb { flex: none; width: 120px; height: 75px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cart-price { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
@media (max-width: 560px) { .cart-row { flex-wrap: wrap; } .cart-thumb { width: 84px; height: 54px; } }
.cart-btn { position: relative; }
.cart-btn .dot-badge { position: absolute; top: -4px; right: -6px; }
.pcard-wrap { position: relative; display: flex; }
.pcard-wrap > .pcard { flex: 1; }
.pcard-cart { position: absolute; right: 12px; top: 152px; z-index: 3; }
.pcard-cart button { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,.14); background: rgba(14,15,22,.82); color: var(--text); backdrop-filter: blur(8px); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.pcard-cart button:hover { background: var(--accent); transform: translateY(-1px); }
.pcard-cart button.in-cart { background: rgba(61,220,132,.18); border-color: rgba(61,220,132,.5); color: #B9F6D2; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 100; background: #1B1D2A; border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); transition: all .25s ease; font-size: 14px; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Header extras, footer ---------- */
.announce { background: linear-gradient(90deg, var(--accent-dark), var(--accent) 55%, #12B5CB); color: #fff; font-size: 14px; font-weight: 600; }
.announce .container { display: flex; justify-content: center; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.brand-logo { display: block; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
.site-footer.rich { padding: 54px 0 0; }
.site-footer.rich .container { display: grid; }
.footer-grid { grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(130px, 1fr)); gap: 32px; padding-bottom: 36px; }
.footer-about { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-about p { margin: 0; max-width: 360px; line-height: 1.7; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-contact a { color: var(--text-2); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-row a { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; }
.social-row a:hover { border-color: var(--accent-soft); color: var(--text); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 4px; font-weight: 700; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex !important; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; color: var(--dim); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chips span { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }
.logo-preview { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); margin-bottom: 8px; }

/* ---------- Product videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.video-grid.one { grid-template-columns: 1fr; }
.video-frame { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.video-frame video, .video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 16px; background: #000; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.video-list { display: flex; flex-direction: column; gap: 8px; }
.video-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
[hidden] { display: none !important; }
.site-footer.rich .footer-grid { align-items: start; }
.post-grid { align-items: start; }

/* ---------- Subcategories ---------- */
.cat-drop { position: relative; display: inline-flex; }
.cat .caret { font-size: 10px; margin-left: 6px; opacity: .7; }
.cat-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--menu-bg); border: 1px solid var(--line-2); box-shadow: 0 22px 44px -16px rgba(0,0,0,.75); flex-direction: column; }
.cat-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.cat-menu a { padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.cat-menu a:hover, .cat-menu a:focus-visible { background: var(--surface-2); color: var(--text); }
@media (min-width: 900px) and (hover: hover) {
  .cat-bar { overflow: visible; flex-wrap: wrap; }
  .cat-drop:hover .cat-menu, .cat-drop:focus-within .cat-menu { display: flex; }
}
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 14px; background: var(--field-bg); }
.sub-chips a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sub-chips a:hover { border-color: var(--accent-soft); color: var(--text); }
.sub-row td { background: rgba(255,255,255,.015); }

/* ---------- Seller badges, author page ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sbadge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--bc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 50%, transparent); }
.sbadge svg { color: var(--bc); flex: none; }
.sbadge.sm { font-size: 12px; padding: 3px 9px 3px 6px; gap: 5px; }
.sbadge-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; color: var(--bc); background: color-mix(in srgb, var(--bc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 50%, transparent); }
.author-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: clamp(20px, 3vw, 34px); background: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--field-bg); }
.avatar.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 var(--accent-dark), 0 18px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.author-stats { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 10px 26px; margin: 0; }
.author-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); }
.author-stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.holder-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; } .holder-chip button { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 2px 6px; } .holder-chip button:hover { color: var(--red-text); }
.add-sub td { padding-top: 6px !important; padding-bottom: 14px !important; border-bottom: 1px solid var(--line-2); }
.pay-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 18px; border-radius: 14px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.35); }
.pay-amount strong { font-family: var(--display); font-size: 26px; color: var(--text); letter-spacing: -0.01em; }

/* ---------- v11: offers, coupons, colour themes, day / night mode ---------- */
.sale-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: var(--red-solid, #E5484D); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 0 16px rgba(229,72,77,.45); }
.sale-tag.static { position: static; flex: none; font-size: 15px; padding: 7px 12px; }
.price-tag.sale { display: inline-flex; align-items: baseline; gap: 7px; border-color: rgba(229,72,77,.55); background: rgba(229,72,77,.1); }
.price-tag.sale s, .lic-price s { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--dim); }
.lic-price s { margin-right: 6px; }
.sale-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.45); margin-bottom: 16px; }
.sale-banner b { font-size: 15px; }
.sale-banner .small { color: var(--red-text); font-variant-numeric: tabular-nums; }
.offer-box { border: 1px dashed var(--line-3); border-radius: 16px; padding: 16px 18px 18px; margin: 0; }
.offer-box legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 600; }
.offer-status { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.offer-status.on { background: rgba(34,197,94,.12); color: var(--green-text); }
.coupon-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); font-size: 13px; color: var(--text-2); }
.coupon-hint svg { flex: none; color: var(--accent-soft); }
.coupon-hint span { flex: 1; min-width: 0; }
.coupon-scope summary { cursor: pointer; padding: 6px 0; }
.coupon-scope select[multiple] { min-height: 170px; padding: 6px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-opt { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--sel-bg); }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.theme-swatch { display: flex; height: 38px; border-radius: 10px; overflow: hidden; }
.theme-swatch i:nth-child(1) { flex: 3; background: var(--a); }
.theme-swatch i:nth-child(2) { flex: 1; background: var(--ad); }
.theme-swatch i:nth-child(3) { flex: 1; background: var(--as); }
.theme-name { font-size: 14px; font-weight: 600; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mode-toggle .when-light { display: none; }
html[data-mode="light"] .mode-toggle .when-dark { display: none; }
html[data-mode="light"] .mode-toggle .when-light { display: inline-flex; }
.mode-toggle span { display: inline-flex; }
html.mode-anim, html.mode-anim *, html.mode-anim *::before, html.mode-anim *::after { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

/* Colour themes (Admin › Theme, header & footer) */
html[data-accent="ocean"] { --accent: #2F7BF5; --accent-dark: #1A55B8; --accent-soft: #9CC2FF; }
html[data-accent="emerald"] { --accent: #10A36E; --accent-dark: #0A7550; --accent-soft: #7FE3BC; }
html[data-accent="sunset"] { --accent: #F2602B; --accent-dark: #B8401A; --accent-soft: #FFB394; }
html[data-accent="rose"] { --accent: #E0367E; --accent-dark: #A61F5A; --accent-soft: #FFA3CA; }
html[data-accent="teal"] { --accent: #0E9AAE; --accent-dark: #0A6E7D; --accent-soft: #7EE0EC; }
html[data-accent="crimson"] { --accent: #E5484D; --accent-dark: #B02A2F; --accent-soft: #FFA6A8; }
html[data-accent="gold"] { --accent: #C98A06; --accent-dark: #8C5F00; --accent-soft: #FFD27A; }

/* Day (light) mode */
html[data-mode="light"] {
  color-scheme: light;
  /* The page is a soft grey so white cards, fields and menus stand out clearly. */
  --bg: #E9ECF3;
  --bg-2: #E0E4EE;
  --surface: #FFFFFF;
  --surface-2: #F1F3F8;
  --surface-3: #E3E7F0;
  --line: #D8DDE8;
  --line-2: #C3CADA;
  --line-3: #A5AEC4;
  --text: #121521;
  --text-2: #2F3548;
  --muted: #4F5770;
  --dim: #5E6682;
  --accent-soft: var(--accent-dark);
  --accent-text: var(--accent-dark);
  --green-text: #13773C;
  --red-text: #C02B25;
  --amber-text: #8A5A00;
  --sel-bg: color-mix(in srgb, var(--accent) 11%, #fff);
  --header-bg: rgba(255,255,255,.94);
  --footer-bg: #FFFFFF;
  --field-bg: #FFFFFF;
  --hover-bg: #E9ECF4;
  --menu-bg: #FFFFFF;
  --btn-edge: #B9C0D1;
  --shadow-strong: rgba(30,36,60,.22);
  --shadow-soft: rgba(30,36,60,.14);
}
/* Day mode: deeper theme colours so white text on buttons stays readable. */
html[data-mode="light"][data-accent="violet"] { --accent: #6A48F0; --accent-dark: #4527B8; }
html[data-mode="light"][data-accent="ocean"] { --accent: #1F6FEB; --accent-dark: #164FAA; }
html[data-mode="light"][data-accent="emerald"] { --accent: #0B8457; --accent-dark: #075E3E; }
html[data-mode="light"][data-accent="sunset"] { --accent: #D9480F; --accent-dark: #9E330A; }
html[data-mode="light"][data-accent="rose"] { --accent: #CC2A70; --accent-dark: #951D52; }
html[data-mode="light"][data-accent="teal"] { --accent: #0A7F90; --accent-dark: #075A66; }
html[data-mode="light"][data-accent="crimson"] { --accent: #D93036; --accent-dark: #A01F24; }
html[data-mode="light"][data-accent="gold"] { --accent: #A16C00; --accent-dark: #734D00; }
/* Gold is light: in night mode its buttons use dark text. */
html[data-mode="dark"][data-accent="gold"], html:not([data-mode])[data-accent="gold"] { --on-accent: #1F1600; }
html[data-mode="dark"] { color-scheme: dark; }
html[data-mode="light"] a:hover { color: var(--accent); }
html[data-mode="light"] .brand, html[data-mode="light"] .brand:hover,
html[data-mode="light"] .navbtn:hover, html[data-mode="light"] .navbtn.on,
html[data-mode="light"] .cat:hover, html[data-mode="light"] .side:hover, html[data-mode="light"] .side.on,
html[data-mode="light"] .fchip:hover, html[data-mode="light"] .key-box .key,
html[data-mode="light"] .btn-ghost:hover { color: var(--text); }
html[data-mode="light"] .btn-ghost:hover { background: var(--surface-3); }
html[data-mode="light"] .btn-ghost { box-shadow: 0 3px 0 var(--btn-edge); }
html[data-mode="light"] .panel { box-shadow: 0 1px 2px rgba(30,36,60,.06), 0 18px 40px -28px rgba(30,36,60,.25); }
html[data-mode="light"] .pcard { box-shadow: 0 1px 2px rgba(30,36,60,.06); }
html[data-mode="light"] .pcard:hover { box-shadow: 0 24px 40px -22px rgba(30,36,60,.35), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
html[data-mode="light"] .input, html[data-mode="light"] .search input { background: #fff; box-shadow: inset 0 1px 2px rgba(30,36,60,.08); }
html[data-mode="light"] .hero { background: radial-gradient(ellipse at 78% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), radial-gradient(ellipse at 95% 90%, rgba(34,211,238,.16), transparent 50%), #FFFFFF; box-shadow: 0 30px 60px -40px rgba(30,36,60,.35); }
html[data-mode="light"] .sell-band { box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--accent) 40%, transparent); }
html[data-mode="light"] .s-floor { background-color: #E9ECF4; background-image: linear-gradient(#D9DDE8 1px, transparent 1px), linear-gradient(90deg, #D9DDE8 1px, transparent 1px); box-shadow: 0 50px 80px -30px rgba(30,36,60,.35); }
html[data-mode="light"] .s-stats { background: #fff; }
html[data-mode="light"] .s-key, html[data-mode="light"] .float-chip.demo { background: #fff; color: var(--text); }
html[data-mode="light"] .s-toast, html[data-mode="light"] .tilt .ver, html[data-mode="light"] .float-chip.ver { background: var(--text); color: #fff; }
html[data-mode="light"] .s-window, html[data-mode="light"] .s-phone, html[data-mode="light"] .s-coin, html[data-mode="light"] .mock-win, html[data-mode="light"] .shot-frame,
html[data-mode="light"] .mock-phone, html[data-mode="light"] .bigframe, html[data-mode="light"] .float-chip { box-shadow: 0 18px 30px -14px rgba(30,36,60,.35); }
html[data-mode="light"] .pcard-stage::after, html[data-mode="light"] .bigstage::after { background: rgba(30,36,60,.22); }
html[data-mode="light"] .mock-bar { background: #E4E7F0; }
html[data-mode="light"] .mock-tiles i, html[data-mode="light"] .mock-phone .body i { background: color-mix(in srgb, var(--pc) 28%, #fff); }
html[data-mode="light"] .cube-mini { background: color-mix(in srgb, var(--pc) 22%, #fff); }
html[data-mode="light"] .s-phone, html[data-mode="light"] .mock-phone, html[data-mode="light"] .phone { border-color: #23283A; }
html[data-mode="light"] .pcard-cart button { background: rgba(255,255,255,.9); border-color: var(--line-2); }
html[data-mode="light"] .pcard-cart button:hover { color: #fff; }
html[data-mode="light"] .pcard-cart button.in-cart { color: var(--green-text); }
html[data-mode="light"] .badge.amber, html[data-mode="light"] .update-box strong { color: #8A5A00; }
html[data-mode="light"] .update-box { color: #5C4300; }
html[data-mode="light"] .badge.pink { color: #A8235E; }
html[data-mode="light"] .badge.cyan { color: #0B6E7D; }
html[data-mode="light"] .toast { background: #fff; box-shadow: 0 18px 40px -12px rgba(30,36,60,.3); }
html[data-mode="light"] .cat-menu { box-shadow: 0 22px 44px -16px rgba(30,36,60,.3); }
html[data-mode="light"] .md pre { background: #F1F3F8; }
html[data-mode="light"] .sub-row td { background: rgba(30,36,60,.025); }
html[data-mode="light"] .mark.apple, html[data-mode="light"] .mark-lg.apple { background: #111; }
html[data-mode="light"] .key-box { box-shadow: inset 0 1px 3px rgba(30,36,60,.1), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
html[data-mode="light"] .avatar, html[data-mode="light"] .switch::after { box-shadow: 0 2px 4px rgba(30,36,60,.2); }
html[data-mode="light"] .stack-chip, html[data-mode="light"] .btn-danger { box-shadow: 0 3px 0 var(--btn-edge); }
html[data-mode="light"] .lic:has(input:checked), html[data-mode="light"] .pay:has(input:checked) { background: var(--sel-bg); }
html[data-mode="light"] .author-head { background: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), #fff; }
html[data-mode="light"] .site-footer { color: var(--text-2); }
html[data-mode="light"] .admin-top { background: #fff; }
html[data-mode="light"] img { color-scheme: normal; }

/* ---------- v12: legal & privacy ---------- */
.cookie-bar { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px var(--shadow-strong); }
.cookie-bar[hidden] { display: none !important; }
.cookie-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--text-2); }
.cookie-text b { color: var(--text); font-size: 15px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.link-btn { padding: 0; border: 0; background: none; color: var(--text-2); font-size: 14px; text-align: left; cursor: pointer; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.waiver { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.waiver[hidden] { display: none !important; }
.waiver .check { align-items: flex-start; line-height: 1.5; }
.waiver input { margin-top: 3px; }
.policy-list { margin: 0; padding-left: 46px; display: flex; flex-direction: column; gap: 10px; line-height: 1.55; color: var(--text-2); }
.policy-list li::marker { color: var(--accent-soft); font-weight: 700; }
.check > input { flex: none; }

/* ---------- v13: payment methods by country ---------- */
.region-tbl td { vertical-align: top; }
.region-pick { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.region-pick[hidden], [data-region-all][hidden], .pay[hidden], .pay-group[hidden] { display: none !important; }
.pay-country { display: flex; align-items: center; gap: 6px; }
.country-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field-bg); padding: 4px; }
.country-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.country-opt:hover { background: var(--hover-bg); }
.country-opt:has(input:checked) { background: var(--sel-bg); font-weight: 600; }
.country-opt[hidden] { display: none; }
.country-opt input { flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.country-opt .mono { margin-left: auto; font-size: 11px; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 30px; }
.cchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 11px; border-radius: 999px; background: var(--sel-bg); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: 13px; font-weight: 600; }
.cchip button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.cchip button:hover, .cchip button:focus-visible { background: rgba(255,107,107,.18); color: var(--red-text); }
.picker { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); }
.picker[hidden], [data-picker-open][hidden], [data-clear-all][hidden], [data-chips-empty][hidden] { display: none !important; }

/* ---------- Mobile fixes ---------- */
/* Hidden helper text (.sr-only) inside a scrolling box must stay inside it; otherwise phones think the page is wider than the screen. */
.table-wrap, .cat-bar, .phone-row, .md pre, .country-list, .sub-chips, .filters { position: relative; }

/* Scrolling tables: a soft shadow at the edge shows there is more to swipe to. */
.table-wrap {
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--shadow-soft), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--shadow-soft), transparent) right / 14px 100% no-repeat scroll,
    var(--surface);
  -webkit-overflow-scrolling: touch;
}
.tbl td:first-child, .tbl th:first-child { min-width: 130px; }

/* Header pieces that only show on phones / only on bigger screens */
.header-quick, .mob-only, .menu-btn { display: none; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-btn { position: relative; }
.menu-dot { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.mobile-buy { display: none; }

@media (max-width: 760px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { max-width: 52vw; height: auto !important; max-height: 40px; object-fit: contain; }
  .header-quick { display: flex; align-items: center; gap: 2px; }
  .header-quick .navbtn { padding: 0 10px; }
  .menu-btn { display: inline-flex; }
  .search { grid-column: 1 / -1; flex: none; }
  .search input { min-height: 44px; font-size: 16px; } /* 16px stops iPhones zooming in on focus */
  .desk-only { display: none !important; }
  .mob-only { display: inline; }
  .main-nav { grid-column: 1 / -1; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 40px -18px var(--shadow-strong); }
  .main-nav.open { display: flex; }
  .main-nav .navbtn { justify-content: flex-start; width: 100%; }
  .main-nav .nav-form, .main-nav .nav-form .navbtn { display: block; width: 100%; text-align: left; }
  .main-nav .nav-form .navbtn { display: flex; }
  .main-nav .btn { width: 100%; justify-content: center; margin-top: 4px; }
  .cat-bar { padding-bottom: 10px; }
  .cat { min-height: 38px; padding: 0 14px; font-size: 13px; flex: none; }

  /* Admin: compact top bar, menu as one swipeable row */
  .admin-top .container { flex-wrap: nowrap; gap: 6px; }
  .admin-top .brand-name { font-size: 17px; }
  .admin-top .brand-name .dim { display: none; }
  .admin-top .navbtn { padding: 0 10px; }
  .admin-who .role-chip { padding: 4px 8px; font-size: 10px; }
  .admin-layout { gap: 14px; }
  .sidenav { flex: 1 1 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 6px; border-radius: 14px; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav .label, .side-sep { display: none; }
  .side { flex: none; white-space: nowrap; min-height: 40px; }
  .side.on { box-shadow: inset 0 -3px 0 var(--accent); }
  .admin-main { flex: 1 1 100%; min-width: 0; }

  /* General spacing and type */
  .page-title h1, .admin-main h1 { font-size: 28px; }
  .page-title p { font-size: 15px; }
  .page-stack { gap: 22px; }
  .panel.pad, .pad { padding: 16px; }
  .buy-box { padding: 18px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero p { font-size: 16px; }
  .section-head { flex-wrap: wrap; gap: 4px 12px; }
  .row.spread { flex-wrap: wrap; }
  .inline-form { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .btn-lg { min-height: 50px; }
  input, select, textarea { font-size: 16px; }
  .input-sm { font-size: 14px; }
  .bigstage { height: 300px; }
  .bigstage .bigtilt, .scene-fit { transform-origin: center; }

  /* Product page: price and "Buy now" stay at the bottom */
  .mobile-buy { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -12px 30px -14px var(--shadow-strong); transition: transform .25s ease; }
  .mobile-buy.away { transform: translateY(110%); }
  .mb-price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .mb-price b { font-family: var(--display); font-size: 20px; }
  .mb-price s { font-size: 12px; color: var(--dim); }
  body:has(.mobile-buy) .site-footer { padding-bottom: 80px; }
  body:has(.mobile-buy) .toast, body:has(.mobile-buy) .cookie-bar { bottom: 84px; }

  /* Footer: two link columns side by side */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 26px 18px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Cookie bar and toasts fit small screens */
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .mobile-buy { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--surface); border-top: 1px solid var(--line-2); transition: transform .25s ease; }
  .mobile-buy.away { transform: translateY(110%); }
  .mb-price { flex: 1; display: flex; gap: 8px; align-items: baseline; }
  .mb-price b { font-family: var(--display); font-size: 22px; }
  body:has(.mobile-buy) .site-footer { padding-bottom: 80px; }
}

/* Very small phones (iPhone SE 1st gen, small Androids: 320–359px) */
@media (max-width: 359px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .brand-cube { display: none; }
  .header-quick .navbtn { padding: 0 8px; }
  .page-title h1, .admin-main h1 { font-size: 24px; }
  .panel.pad, .pad { padding: 14px; }
  .scene-fit { transform: scale(.6); }
  .hero { padding: 26px 16px; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .mobile-buy .btn-ghost { display: none; }
}

/* Short landscape phones: keep fixed bars small */
@media (max-height: 480px) and (orientation: landscape) {
  .mobile-buy { padding-top: 6px; padding-bottom: 6px; }
  .cookie-bar { max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 760px) { .admin-who { display: none !important; } }
@media (max-width: 420px) { .scene-fit { transform: scale(.62); } .hero-visual { height: 330px; } }
/* Tablets: admin menu as a swipeable row too, so the page starts right away */
@media (max-width: 1024px) {
  .admin-top .container { flex-wrap: nowrap; gap: 8px; }
  .admin-layout { gap: 16px; }
  .sidenav { flex: 1 1 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 6px; border-radius: 14px; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav .label, .side-sep { display: none; }
  .side { flex: none; white-space: nowrap; min-height: 40px; }
  .side.on { box-shadow: inset 0 -3px 0 var(--accent); }
  .admin-main { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 420px) { .scene-fit { transform: scale(.62) translateX(18px); } }
@media (max-width: 1024px) {
  .admin-top .navbtn, .admin-top .brand-name { white-space: nowrap; }
  .admin-who > .small { display: none; }
}

/* ---------- Category drop-down for phones, tablets and touch screens ---------- */
.cat-mobile { display: none; }
@media (max-width: 899px), (hover: none) {
  .cat-bar { display: none; }
  .cat-mobile { display: block; padding-bottom: 12px; position: relative; z-index: 30; }
  .cat-select { position: relative; }
  .cat-select > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field-bg); cursor: pointer; font-size: 15px; }
  .cat-select > summary::-webkit-details-marker, .cat-group > summary::-webkit-details-marker { display: none; }
  .cat-select-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cat-select .caret, .cat-group .caret { font-size: 11px; opacity: .7; transition: transform .2s ease; }
  .cat-select[open] > summary { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .cat-select[open] > summary .caret, .cat-group[open] > summary .caret { transform: rotate(180deg); }
  .cat-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; gap: 2px; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--menu-bg); box-shadow: 0 24px 50px -16px var(--shadow-strong); }
  .cat-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
  .cat-row > span:first-child { flex: 1; }
  .cat-row:hover, .cat-row:focus-visible { background: var(--hover-bg); }
  .cat-row.on { background: var(--sel-bg); color: var(--accent-soft); font-weight: 700; }
  .cat-subs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--line-2); }
  .cat-sub { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; }
  .cat-sub:hover, .cat-sub:focus-visible { background: var(--hover-bg); color: var(--text); }
  .cat-sub.on { color: var(--accent-soft); font-weight: 700; background: var(--sel-bg); }
}

/* Log in / sign up: email form folded behind "Log in with email" */
.js .email-form.collapsed { display: none; }
.email-toggle { display: none; }
.js .email-toggle { display: inline-flex; }
.auth-card.email-mode .social-list, .auth-card.email-mode .or-line, .auth-card.email-mode .email-toggle { display: none; }
.mark.email { background: var(--accent); }
.mark.email svg { color: #fff; }
.email-back { align-self: center; color: var(--accent-soft); }
.email-back:hover { color: var(--text); }

/* ---------- App-style bottom bar on phones ---------- */
.app-bar, .app-sheet { display: none; }
@media (max-width: 760px) {
  .app-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); box-shadow: 0 -10px 30px -18px var(--shadow-strong); }
  .app-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--dim); font: 600 11px var(--font); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .app-tab .icon { width: 22px; height: 22px; }
  .app-tab.on { color: var(--accent-soft); }
  .app-tab.on .icon, .app-tab.on .app-ico { transform: translateY(-1px); }
  .app-tab:active { background: var(--hover-bg); }
  .app-ico { position: relative; display: inline-flex; }
  .app-ico .dot-badge { position: absolute; top: -7px; right: -12px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
  body:has(.app-bar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

  /* With the app bar, the header only needs logo, day/night and search */
  body:has(.app-bar) .header-quick .cart-btn, body:has(.app-bar) .menu-btn, body:has(.app-bar) .main-nav { display: none !important; }
  body:has(.app-bar) .cat-mobile { display: none; }
  body:has(.app-bar) .mobile-buy { bottom: calc(64px + env(safe-area-inset-bottom)); border-bottom: 1px solid var(--line-2); }
  body:has(.app-bar) .toast, body:has(.app-bar) .cookie-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.app-bar):has(.mobile-buy) .toast, body:has(.app-bar):has(.mobile-buy) .cookie-bar { bottom: calc(140px + env(safe-area-inset-bottom)); }
  body:has(.app-bar) .site-footer { padding-bottom: 0; }

  /* Bottom sheets */
  .app-sheet { position: fixed; inset: 0; z-index: 90; display: block; }
  .app-sheet[hidden] { display: none; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgba(5,6,10,.55); opacity: 0; transition: opacity .2s ease; }
  .sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -24px 60px -20px var(--shadow-strong); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
  .sheet-body::before { content: ""; align-self: center; width: 42px; height: 5px; border-radius: 3px; background: var(--line-3); margin-bottom: 2px; }
  .app-sheet.in .sheet-backdrop { opacity: 1; }
  .app-sheet.in .sheet-body { transform: none; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-size: 19px; }
  .sheet-body .cat-panel { position: static; max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0; background: none; }
  .sheet-links { display: flex; flex-direction: column; gap: 2px; }
  .sheet-links a, .sheet-links button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 500 15px var(--font); text-decoration: none; text-align: left; cursor: pointer; }
  .sheet-links a:hover, .sheet-links button:hover, .sheet-links a:active { background: var(--hover-bg); }
  .sheet-links span:first-of-type { flex: 1; }
  .sheet-links svg { color: var(--accent-soft); }
  .sheet-links form { margin: 0; }
  html.sheet-open { overflow: hidden; }
}
/* Installed as an app (home screen): a little more room at the top for the phone's status bar */
@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); } }

/* ---------- Visitor statistics ---------- */
.visit-chart svg { width: 100%; height: 200px; display: block; }
.vc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.vc-hit { fill: transparent; }
.vc-views { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.vc-visitors { fill: var(--accent); }
.vc-sale { fill: var(--green); }
.visit-chart g:hover .vc-views { fill: color-mix(in srgb, var(--accent) 38%, transparent); }
.vc-legend { display: inline-flex; align-items: center; gap: 6px; }
.vc-k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.vc-k.visitors { background: var(--accent); } .vc-k.views { background: color-mix(in srgb, var(--accent) 30%, transparent); } .vc-k.sale { background: var(--green); border-radius: 50%; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bd-grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.bd-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.bd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bd-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bd-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.visit-strip { flex-wrap: wrap; align-items: center; }
.visit-strip:hover { border-color: var(--accent); }
/* Phones: number cards two per row */
@media (max-width: 760px) {
  .stat-grid, .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .stat { padding: 14px; gap: 4px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13px; }
  .stat .small { font-size: 11px; }
  .visit-chart svg { height: 160px; }
  .visit-strip { gap: 12px 18px; }
}

/* ---------- Free products ---------- */
.free-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: var(--green); color: #04210F; font-size: 13px; font-weight: 800; box-shadow: 0 0 16px rgba(34,197,94,.45); }
.price-tag.free { color: var(--green-text); border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.1); }
.free-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; border: 1px solid rgba(34,197,94,.5); background: var(--green); color: #04210F; text-decoration: none; }
.free-btn:hover { transform: translateY(-1px); color: #04210F; }
.free-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.4); }
.free-price { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--green-text); line-height: 1; }

/* ---------- Newsletter, bulk messages ---------- */
.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 8px 0 22px; padding: 20px 22px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.nl-text { display: flex; flex-direction: column; gap: 4px; }
.nl-text b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.nl-form { display: flex; gap: 8px; flex: 1 1 340px; max-width: 460px; }
.nl-form .input { min-width: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.meter.big { height: 14px; }
.mail-preview { width: 100%; height: 560px; border: 1px solid var(--line-2); border-radius: 12px; background: #0B0D14; }
@media (max-width: 760px) { .nl-form { flex-wrap: wrap; } .nl-form .btn { width: 100%; } .mail-preview { height: 460px; } }

/* ---------- Site notice, admin bell ---------- */
.site-notice { --sn: #FFB020; background: color-mix(in srgb, var(--sn) 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--sn) 45%, transparent); color: var(--text); }
.site-notice[hidden] { display: none; }
.site-notice.lvl-info { --sn: #3B82F6; } .site-notice.lvl-success { --sn: #22C55E; } .site-notice.lvl-warning { --sn: #FFB020; } .site-notice.lvl-danger { --sn: #EF4444; background: #B91C1C; color: #fff; border-color: #7F1D1D; }
.site-notice-in { display: flex; align-items: flex-start; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; line-height: 1.5; }
.sn-icon { flex: none; display: inline-flex; color: var(--sn); margin-top: 1px; }
.lvl-danger .sn-icon { color: #fff; }
.sn-text { flex: 1; min-width: 0; }
.sn-text a { color: inherit; font-weight: 700; text-decoration: underline; }
.sn-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: inherit; opacity: .75; cursor: pointer; font-size: 14px; }
.sn-close:hover { opacity: 1; background: rgba(0,0,0,.12); }
.notice-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.notice-pop[hidden] { display: none; }
.np-backdrop { position: absolute; inset: 0; background: rgba(5,6,10,.6); }
.np-card { --sn: #FFB020; position: relative; max-width: 440px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); border-top: 4px solid var(--sn); text-align: center; box-shadow: 0 30px 70px -20px var(--shadow-strong); }
.np-card.lvl-info { --sn: #3B82F6; } .np-card.lvl-success { --sn: #22C55E; } .np-card.lvl-danger { --sn: #EF4444; }
.np-card h2 { font-size: 21px; } .np-card p { margin: 0 0 6px; color: var(--text-2); line-height: 1.6; white-space: pre-line; }
.sn-icon.big { width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--sn) 16%, transparent); }
.lvl-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; }
.lvl-opt:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); }
.bell { position: relative; }
.bell > summary { list-style: none; position: relative; }
.bell > summary::-webkit-details-marker { display: none; }
.bell-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: min(360px, 92vw); max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--menu-bg); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px var(--shadow-strong); }
.bell-item, .notif-row { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.notif-row { flex-direction: row; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
.bell-item:hover, .notif-row:hover { background: var(--hover-bg); }
.bell-item.unread, .notif-row.unread { background: var(--sel-bg); }
.bell-all { display: block; padding: 10px; text-align: center; font-size: 13px; font-weight: 600; }
.notify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 18px; }
.notify-opt { align-items: flex-start; }
.notify-opt > span { display: flex; flex-direction: column; gap: 2px; }
.notify-opt input { margin-top: 3px; }
.maint-until { margin: 0; }
@media (max-width: 760px) { .bell-menu { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; } .notif-row { flex-wrap: wrap; } }

/* ---------- Admin › AI & feeds ---------- */
.ai-link { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ai-link:first-of-type { border-top: 0; }
.ai-link.off { opacity: .6; }
.ai-url { overflow-wrap: anywhere; }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 16px; }
.md th, .md td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md pre { overflow-x: auto; }

/* ---------- Day mode: clearer edges ---------- */
html[data-mode="light"] .panel, html[data-mode="light"] .pcard { border-color: var(--line); }
html[data-mode="light"] .panel { box-shadow: 0 1px 2px rgba(30,36,60,.08), 0 14px 32px -24px rgba(30,36,60,.35); }
html[data-mode="light"] .input, html[data-mode="light"] .search input, html[data-mode="light"] select.input, html[data-mode="light"] textarea.input { border-color: var(--line-2); }
html[data-mode="light"] .input:hover { border-color: var(--line-3); }
html[data-mode="light"] .btn-light { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-dark); }
html[data-mode="light"] .btn-light:hover { background: var(--accent-dark); color: #fff; }
html[data-mode="light"] .tbl th { background: var(--surface-2); }
html[data-mode="light"] .tbl td, html[data-mode="light"] .tbl th { border-color: var(--line); }
html[data-mode="light"] .lic, html[data-mode="light"] .pay-opt, html[data-mode="light"] .lic-opt { border-color: var(--line-2); }

/* =====================================================================
   Header & footer v2 (v18)
   ===================================================================== */
.site-header { border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
@media (min-width: 761px) {
  .site-header { position: sticky; top: 0; z-index: 60; }
  .site-header.scrolled { box-shadow: 0 10px 30px -18px var(--shadow-strong); }
}
.header-bar { gap: 10px 18px; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.brand-name { font-size: 21px; }
/* Search: a pill with a keyboard hint */
.search { flex: 1 1 280px; max-width: 560px; order: 2; }
.search input { min-height: 44px; padding-right: 44px; border-radius: 999px; border-color: var(--line-2); background: var(--field-bg); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.search input:hover { border-color: var(--line-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-kbd { position: absolute; right: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--dim); font: 600 12px var(--mono); pointer-events: none; }
.search:focus-within .search-kbd { display: none; }
/* Navigation: links on the left, tools on the right */
.main-nav { order: 3; flex: 1 1 auto; justify-content: space-between; gap: 6px 14px; }
.nav-links, .nav-tools { display: flex; align-items: center; gap: 2px; }
.nav-tools { gap: 6px; margin-left: auto; }
.site-header .navbtn { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; font-weight: 500; color: var(--text-2); position: relative; }
.site-header .navbtn:hover { color: var(--text); background: var(--hover-bg); }
.site-header .nav-links .navbtn.on { color: var(--text); background: transparent; font-weight: 600; }
.site-header .nav-links .navbtn.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.site-header .cart-btn .dot-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
.site-header .btn-sm { min-height: 40px; }
.login-link { font-weight: 600 !important; }
/* Signed-in account menu */
.user-menu { position: relative; }
.um-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px 0 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.um-btn:hover, .um-btn[aria-expanded="true"] { border-color: var(--line-3); background: var(--hover-bg); }
.um-btn .caret { font-size: 10px; opacity: .7; transition: transform .2s ease; }
.um-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.avatar.xs { width: 32px; height: 32px; border-radius: 999px; font-size: 12px; box-shadow: none; background: var(--accent); color: var(--on-accent); }
.um-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; width: 260px; padding: 6px; border-radius: 16px; background: var(--menu-bg); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -18px var(--shadow-strong); flex-direction: column; gap: 2px; }
.user-menu.open .um-list { display: flex; }
.um-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.um-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 500 14px var(--font); text-decoration: none; cursor: pointer; text-align: left; }
.um-item:hover, .um-item:focus-visible, .um-item.on { background: var(--hover-bg); color: var(--text); }
.um-item .dot-badge { margin-left: auto; }
.um-item.danger:hover { color: var(--red-text); }
/* Category row: light tabs */
.cat-bar { gap: 6px; padding-top: 2px; padding-bottom: 12px; }
.site-header .cat { min-height: 36px; padding: 0 14px; border-color: transparent; background: transparent; color: var(--text-2); font-weight: 500; box-shadow: none; }
.site-header .cat:hover { color: var(--text); background: var(--hover-bg); border-color: transparent; }
.site-header .cat.on { background: var(--sel-bg); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-text); font-weight: 600; box-shadow: none; }
.cat-menu { border-radius: 16px; box-shadow: 0 24px 50px -18px var(--shadow-strong); }
@media (max-width: 1180px) and (min-width: 761px) {
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav { order: 2; flex: 1 1 auto; }
}
@media (max-width: 760px) {
  .header-bar { min-height: 0; }
  .search { order: 0; max-width: none; }
  .search-kbd { display: none; }
  .main-nav { order: 0; }
  .nav-links, .nav-tools { flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
  .nav-tools { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
  .site-header .nav-links .navbtn.on { background: var(--sel-bg); }
  .site-header .nav-links .navbtn.on::after { display: none; }
  .user-menu .um-btn { display: none; }
  .um-list { display: flex; position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: transparent; }
}

/* ---------- Footer v2 ---------- */
.site-footer.v2 { position: relative; padding-top: 40px; border-top: 1px solid var(--line); background: var(--footer-bg); }
.site-footer.v2::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent); }
.site-footer.v2 .container.ft-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 28px; }
.ft-cta, .ft-news { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); }
.ft-cta { background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--surface); }
.ft-cta-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-dark); }
.ft-cta-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 3px; }
.ft-cta-text b { font-family: var(--display); font-size: 16px; }
.ft-news .nl-text { flex: 1 1 200px; }
.ft-news .nl-form { flex: 1 1 260px; max-width: none; }
.site-footer.v2 .container.ft-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 34px; }
.ft-trust > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ft-trust > div > span { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--sel-bg); color: var(--accent-text); }
.ft-trust b { font-size: 14px; color: var(--text); }
.ft-trust small { font-size: 12.5px; color: var(--muted); }
.site-footer.v2 .footer-grid { padding-top: 34px; border-top: 1px solid var(--line); gap: 28px; }
.ft-toggle { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: default; }
.ft-toggle .caret { display: none; }
.ft-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h2 { color: var(--text); font-size: 12.5px; }
.footer-col a { color: var(--muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--accent-text); text-decoration: none; }
.footer-col .link-btn { color: var(--muted); font-size: 14px; }
.site-footer.v2 .footer-bottom { margin-top: 10px; }
.ft-bottom-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.to-top { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2) !important; text-decoration: none; font-weight: 700; }
.to-top:hover { border-color: var(--accent); color: var(--accent-text) !important; }
html[data-mode="light"] .site-footer.v2 { background: #FFFFFF; }
html[data-mode="light"] .ft-cta, html[data-mode="light"] .ft-news { background-color: #F6F7FB; }
html[data-mode="light"] .ft-trust > div { background: #F6F7FB; }
@media (max-width: 960px) {
  .site-footer.v2 .container.ft-top { grid-template-columns: 1fr; }
  .site-footer.v2 .container.ft-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-footer.v2 { padding-top: 26px; }
  .site-footer.v2 .container.ft-trust { gap: 8px; padding-bottom: 22px; }
  .ft-trust > div { padding: 12px; column-gap: 10px; }
  .ft-trust > div > span { width: 32px; height: 32px; }
  .ft-trust small { display: none; }
  .site-footer.v2 .footer-grid { grid-template-columns: 1fr !important; gap: 0; padding-top: 22px; }
  .site-footer.v2 .footer-about { padding-bottom: 18px; }
  .site-footer.v2 .footer-col { gap: 0; border-top: 1px solid var(--line); }
  .site-footer.v2 .footer-col h2 { margin: 0; }
  .ft-toggle { cursor: pointer; min-height: 50px; }
  .ft-toggle .caret { display: inline; font-size: 11px; transition: transform .2s ease; }
  .ft-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .js .ft-links { display: none; padding: 0 0 16px; }
  .js .footer-col.open .ft-links { display: flex; }
  .ft-links a, .ft-links .link-btn { padding: 4px 0; }
  .ft-bottom-right { width: 100%; justify-content: space-between; }
}
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--on-accent); }
.site-footer.v2 .ft-cta-text b, .site-footer.v2 .nl-text b { color: var(--text); }
/* "clip" hides sideways overflow like "hidden" but keeps the sticky header working */
@supports (overflow: clip) { .site { overflow-x: clip; } }

/* ---------- Admin: side drawer menu on phones and tablets (v18) ---------- */
.admin-menu-btn, .drawer-head, .admin-backdrop { display: none; }
.admin-top { position: relative; z-index: 50; }
@media (max-width: 1024px) {
  .admin-menu-btn { display: inline-flex; position: relative; flex: none; padding: 0 10px !important; }
  .admin-menu-btn .burger i { background: var(--text); }
  .sidenav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 130;
    width: min(310px, 86vw); max-width: none;
    flex: none; flex-direction: column; flex-wrap: nowrap; gap: 2px;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
    border-radius: 0 20px 20px 0; border-left: 0;
    transform: translateX(-105%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    box-shadow: 30px 0 60px -20px var(--shadow-strong);
    scrollbar-width: thin;
  }
  .sidenav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .sidenav .label { display: block; }
  .side-sep { display: block; }
  .sidenav .side { flex: none; width: 100%; white-space: normal; min-height: 46px; }
  .sidenav .side.on { box-shadow: inset 3px 0 0 var(--accent); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .drawer-head .brand-name { font-size: 18px; }
  .admin-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 125; background: rgba(5,6,10,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  html.admin-menu-open, html.admin-menu-open body { overflow: hidden; }
  .admin-main { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none !important; } }
.site-footer .brand, .site-footer .brand:hover { color: var(--text); }

/* ---------- Mobile app download (v19) ---------- */
.app-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.app-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 12px; border-radius: 14px; border: 1px solid var(--line-3); background: #0E1018; color: #fff; text-decoration: none; cursor: pointer; font: inherit; box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .15s ease, border-color .15s ease; }
.app-btn:hover { color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.app-btn.match { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 3px 0 rgba(0,0,0,.35); }
.app-btn.pwa { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-btn-icon { display: inline-flex; }
.app-btn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.app-btn-text small { font-size: 11px; opacity: .8; }
.app-btn-text b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.app-btns.sm .app-btn { min-height: 42px; padding: 6px 12px 6px 10px; border-radius: 12px; }
.app-btns.sm .app-btn-text b { font-size: 13.5px; }
.app-btns.sm .app-btn-text small { font-size: 10px; }
.ft-app { display: flex; flex-direction: column; gap: 8px; }
.ft-app a { color: var(--accent-text); }
.ft-app .app-btn, .ft-app .app-btn:hover { color: #fff; }
.ft-app .app-btn.pwa, .ft-app .app-btn.pwa:hover { color: var(--on-accent); }
/* Home page section */
.app-band { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 34px 36px; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--surface); }
.app-band-text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.app-band-text h2 { font-size: clamp(24px, 3vw, 32px); }
.app-band-text p { margin: 0; }
.app-band-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 15px; }
.app-band-list li { display: flex; gap: 8px; align-items: center; }
.app-band-list .icon { color: var(--green-text); flex: none; }
.app-band-more { font-weight: 600; white-space: nowrap; }
/* /app page */
.app-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border-radius: 28px; background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--surface); overflow: hidden; }
.app-hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.app-hero-text h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; }
.app-hero-text .lead { margin: 0; font-size: 18px; color: var(--text-2); }
.app-phone { flex: 0 0 auto; width: 230px; height: 440px; padding: 12px; border-radius: 38px; background: #12141C; border: 2px solid #2A2F40; box-shadow: 0 40px 70px -30px var(--shadow-strong); transform: rotate(4deg); margin: 0 auto; }
.app-phone-screen { height: 100%; border-radius: 28px; background: var(--bg); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.aps-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.aps-bar .brand-cube { transform: scale(.7); }
.aps-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--field-bg); color: var(--dim); font-size: 11px; }
.aps-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aps-grid i { border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 45%, var(--surface-2)), var(--surface-2)); border: 1px solid var(--line); }
.aps-tabs { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--line); }
.aps-tabs span { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-3); }
.aps-tabs span:first-child { background: var(--accent); }
.app-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.app-feature { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.app-feature-n { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--sel-bg); color: var(--accent-text); font-weight: 800; }
.app-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.app-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; }
/* Phone banner */
.app-banner { background: var(--surface); border-bottom: 1px solid var(--line); }
.app-banner-in { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.app-banner .sn-close { width: 26px; height: 26px; color: var(--dim); }
.app-banner-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.app-banner-icon .brand-cube { transform: scale(.75); }
.app-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.app-banner-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-banner-text small { font-size: 12px; color: var(--muted); }
.app-banner .btn-sm { min-height: 34px; padding: 0 16px; border-radius: 999px; }
.apk-box { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--surface-2); }
@media (max-width: 640px) {
  .app-band { padding: 24px 20px; border-radius: 22px; }
  .app-hero { padding: 26px 20px; border-radius: 22px; }
  .app-phone { width: 190px; height: 360px; }
  .app-btns:not(.sm) .app-btn { flex: 1 1 100%; justify-content: center; }
}
.app-band { align-items: center; padding-top: 30px; padding-bottom: 30px; }
.app-band-side { display: flex; align-items: center; gap: 28px; }
.app-phone.sm { width: 170px; height: 300px; padding: 9px; border-radius: 30px; margin: -10px 20px -60px 0; }
.app-phone.sm .app-phone-screen { border-radius: 22px; padding: 12px 10px; gap: 9px; }
@media (max-width: 860px) { .app-phone.sm { display: none; } .app-band-side { width: 100%; } }

/* ---------- Admin › File storage (v20) ---------- */
.store-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.store-opt { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.store-opt input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.store-opt:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--accent); }
.move-progress { display: flex; flex-direction: column; gap: 6px; }
.move-progress .bd-bar { height: 10px; }

/* ---------- Admin › Backup (v21) ---------- */
.backup-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.backup-tool { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); }
.backup-tool ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; overflow-wrap: anywhere; }
.btn.disabled { opacity: .5; pointer-events: none; }
.key-mask { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }

/* ---------- Older versions on My downloads (v22) ---------- */
.older-versions { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); }
.older-versions > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.older-versions > summary::-webkit-details-marker { display: none; }
.older-versions > summary .caret { margin-left: auto; font-size: 11px; opacity: .7; transition: transform .2s ease; }
.older-versions[open] > summary .caret { transform: rotate(180deg); }
.older-versions ul { list-style: none; margin: 0; padding: 0 14px; display: flex; flex-direction: column; }
.older-versions li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.older-versions > p { padding: 10px 14px 12px; }

/* ---------- Admin › Email notifications (v23) ---------- */
.mail-type { border-top: 1px solid var(--line); }
.mail-type > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 2px; cursor: pointer; }
.mail-type > summary::-webkit-details-marker { display: none; }
.mail-type[open] > summary { padding-bottom: 6px; }
.mail-type .mail-count { white-space: nowrap; }
.mail-edit { padding: 6px 0 16px; }
@media (max-width: 640px) { .mail-type > summary { flex-wrap: wrap; } .mail-type .mail-count { order: 3; width: 100%; } }

/* ---------- Earnings: holds and clearing (v24) ---------- */
.hold-pop { position: relative; display: inline-block; }
.hold-pop > summary { list-style: none; }
.hold-pop > summary::-webkit-details-marker { display: none; }
.hold-pop[open] { display: block; width: 100%; }
.actions .hold-pop > form, .hold-pop > form { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; width: 280px; max-width: 100%; margin: 8px 0 0 auto; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: left; white-space: normal; }
.hold-pop > form label { order: 0; } .hold-pop > form textarea { order: 1; min-height: 72px; } .hold-pop > form button { order: 2; align-self: flex-start; }
.kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.kpi-strip > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 1px solid var(--line); }
.kpi-strip > div:first-child { border-left: 0; }
.kpi-strip span { font-size: 12.5px; color: var(--muted); }
.kpi-strip b { font-family: var(--display); font-size: 22px; }
.kpi-strip small { font-size: 12px; color: var(--dim); }
.earn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.et { --c: var(--green); display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.et.clearing { --c: var(--cyan); } .et.held { --c: var(--amber); } .et.paid { --c: var(--accent); }
.et span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.et b { font-family: var(--display); font-size: 24px; }
.et small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.earn-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.earn-bar i { display: block; height: 100%; }
.earn-bar .available { background: var(--green); } .earn-bar .clearing { background: var(--cyan); } .earn-bar .held { background: var(--amber); } .earn-bar .paid { background: var(--accent); }
.earn-explain { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); line-height: 1.6; }
.ee-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--sel-bg); color: var(--accent-text); }
.clear-item, .held-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.held-item:first-of-type { border-top: 0; padding-top: 4px; }
.clear-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.clear-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.cleared-list > summary { cursor: pointer; padding: 12px 0 6px; color: var(--muted); font-weight: 600; }
@media (max-width: 960px) { .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi-strip > div:nth-child(4) { border-left: 0; } .kpi-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); } .earn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-strip > div { border-left: 0; border-top: 1px solid var(--line); } .kpi-strip > div:nth-child(even) { border-left: 1px solid var(--line); } .kpi-strip > div:nth-child(-n+2) { border-top: 0; } .kpi-strip > div:last-child { grid-column: 1 / -1; border-left: 0; } .earn-explain { flex-direction: column; } }

/* ---------- Payout fees (v25) ---------- */
.fee-calc { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.fee-calc[hidden] { display: none; }
.fee-calc span { color: var(--muted); }
.fee-calc b { text-align: right; font-variant-numeric: tabular-nums; }
.payout-settings > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; cursor: pointer; }
.payout-settings > summary::-webkit-details-marker { display: none; }
.payout-settings > summary b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.fee-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 18px; }
.fee-method { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.fee-method.off .fee-inputs { opacity: .45; }
.fee-inputs { display: inline-flex; align-items: center; gap: 6px; }
.fee-inputs .input { width: 70px; min-height: 38px; padding: 6px 8px; }
.fee-methods { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.fee-method .check { flex: 1 1 auto; min-width: 0; }
.fee-inputs { flex: none; white-space: nowrap; }
.fee-inputs .input { width: 62px; }

/* ---------- v26: payouts — tracker, account picker, 3D wallet cards ---------- */
.payout-track { display: flex; flex-direction: column; gap: 14px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
.payout-track.late { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.pt-amount { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: pt; }
.pt-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 34px; font-size: 13px; color: var(--muted); counter-increment: pt; }
.pt-steps li::before { content: counter(pt); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.pt-steps li b { color: var(--text); font-size: 14px; }
.pt-steps li.done::before { content: '✓'; background: var(--green); border-color: var(--green); color: #05230F; }
.pt-steps li.active::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: ptPulse 1.8s infinite; }
@keyframes ptPulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pt-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.payout-track.late .pt-bar i { background: linear-gradient(90deg, var(--amber), var(--amber-dark)); }
@media (max-width: 560px) { .pt-steps { grid-template-columns: 1fr; } }

.acc-pick { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.acc-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; min-width: 0; }
.acc-opt:hover { transform: translateY(-1px); }
.acc-opt input { accent-color: var(--accent); flex: 0 0 auto; }
.acc-opt:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); }
.acc-opt:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.acc-coin { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: var(--wc-a, var(--accent)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.acc-txt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.acc-txt .mono { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-calc em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: var(--amber-text); }
.payout-times .tbl.compact th, .payout-times .tbl.compact td { padding: 8px 10px; font-size: 13px; }
.payout-times .tbl.compact { min-width: 0; width: 100%; }


.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); gap: 20px; perspective: 1400px; }
.wallet-card { position: relative; height: 178px; perspective: 900px; animation: wcIn .7s cubic-bezier(.2,.9,.25,1.2) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes wcIn { from { opacity: 0; transform: translateY(26px) rotateX(38deg) scale(.94); } to { opacity: 1; transform: none; } }
.wc-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.8,.2,1); transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); }
.wallet-card:hover .wc-inner { transition: transform .75s cubic-bezier(.2,.8,.2,1), translate .3s; translate: 0 -4px; }
.wallet-card[style*="--rx"] .wc-inner { transition: transform .12s linear; }
.wallet-card.flipped { --flip: 180deg; }
.wallet-card.flipped .wc-inner { transition: transform .75s cubic-bezier(.2,.8,.2,1); }
.wc-face { position: absolute; inset: 0; border-radius: 20px; padding: 16px 18px; color: var(--wc-ink, #fff); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--wc-c) 55%, transparent) 0%, transparent 45%), linear-gradient(135deg, var(--wc-a) 0%, var(--wc-b) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 22px 40px -18px color-mix(in srgb, var(--wc-b) 85%, #000), 0 6px 0 -1px color-mix(in srgb, var(--wc-b) 80%, #000); }
.wc-face::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); mix-blend-mode: overlay; }
.wc-front::after { content: ''; position: absolute; inset: -40%; pointer-events: none; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.38), transparent 32%); transition: opacity .3s; opacity: .55; }
.wallet-card:hover .wc-front::after { opacity: 1; }
.wc-back { transform: rotateY(180deg); color: #fff; background: linear-gradient(135deg, var(--wc-b) 0%, color-mix(in srgb, var(--wc-b) 70%, #000) 100%); }
.wc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }
.wc-net { display: flex; flex-direction: column; min-width: 0; }
.wc-net b { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.wc-net span { font-size: 11.5px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-default { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); white-space: nowrap; margin-right: 46px; }
.wc-chip { position: relative; z-index: 1; width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #F8E7A8, #C9A53F 55%, #F3DB8B); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.wc-chip::before, .wc-chip::after { content: ''; position: absolute; inset: 8px 0; border-top: 1px solid rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.25); }
.wc-chip::after { inset: 0 13px; border: 0; border-left: 1px solid rgba(0,0,0,.25); border-right: 1px solid rgba(0,0,0,.25); }
.wc-addr { position: relative; z-index: 1; font-size: 16px; letter-spacing: .06em; text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; }
.wc-label { font-size: 12.5px; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wc-flip, .wc-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: inherit; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); transition: background .15s, transform .15s; white-space: nowrap; }
.wc-flip:hover, .wc-btn:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }
.wc-full { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow: auto; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); user-select: all; }
.wc-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.wc-actions form { display: contents; }
.wc-coin { position: absolute; top: -14px; right: 14px; width: 48px; height: 48px; transform-style: preserve-3d; pointer-events: none; transition: opacity .3s, transform .75s; transform: translateZ(40px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); z-index: 2; }
.wc-coin i { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 22px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35);
  background: radial-gradient(circle at 35% 30%, var(--wc-c), var(--wc-a) 55%, var(--wc-b)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.4), 0 10px 18px -6px rgba(0,0,0,.55); animation: wcSpin 6s ease-in-out infinite; }
@keyframes wcSpin { 0%, 100% { transform: rotateY(0deg) translateY(0); } 25% { transform: rotateY(-25deg) translateY(-3px); } 50% { transform: rotateY(360deg) translateY(0); } }
.wallet-card.flipped .wc-coin { opacity: 0; }
.wallet-card.is-default .wc-front { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 0 0 2px color-mix(in srgb, var(--wc-c) 80%, #fff), 0 22px 40px -18px color-mix(in srgb, var(--wc-b) 85%, #000); }
.wallet-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 20px; border: 2px dashed var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); cursor: pointer; font: inherit; transition: border-color .2s, color .2s, transform .3s; }
.wallet-add b { color: var(--text); font-family: var(--display); }
.wallet-add > span:first-child { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sel-bg); color: var(--accent-soft); transition: transform .4s; }
.wallet-add:hover { border-color: var(--accent); color: var(--text); transform: translateY(-3px) rotateX(6deg); }
.wallet-add:hover > span:first-child { transform: rotate(90deg) scale(1.08); }
.add-account > summary { cursor: pointer; list-style: none; }
.add-account > summary::-webkit-details-marker { display: none; }
.add-account textarea { resize: vertical; min-height: 54px; }
.acc-check.ok { color: var(--green-text); } .acc-check.bad { color: var(--amber-text); }
@media (prefers-reduced-motion: reduce) {
  .wallet-card, .wc-coin i, .pt-steps li.active::before { animation: none; }
  .wc-inner { transition: none; }
}
.payout-tbl .payout-to { min-width: 240px; max-width: 320px; }
.payout-tbl .payout-to .row { align-items: flex-start; }
.payout-tbl td.actions { min-width: 150px; }
.payout-tbl .hold-pop > summary { margin: 2px 0; }
.payout-tbl td:nth-child(2) { min-width: 120px; }

/* ---------- v27: payout methods admin, promotions, sponsored cards ---------- */
.wallet-card { --wc-a: #6C5CE7; --wc-b: #241A63; --wc-c: #B9AEFF; }
.wallet-card.unusable .wc-front { filter: grayscale(.85) brightness(.8); }
.acc-opt.off { opacity: .55; cursor: not-allowed; }
.acc-opt.off:hover { transform: none; }
.hold-pop > form label.check { order: 1; }

.pm-list { display: grid; gap: 10px; }
.pm-row { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pm-row.off { opacity: .7; }
.pm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pm-card { position: relative; flex: 0 0 auto; width: 132px; height: 80px; border-radius: 12px; padding: 10px 12px; color: var(--wc-ink); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--wc-c) 55%, transparent) 0%, transparent 45%), linear-gradient(135deg, var(--wc-a), var(--wc-b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 -1px color-mix(in srgb, var(--wc-b) 80%, #000), 0 12px 22px -12px var(--wc-b); transform: perspective(500px) rotateY(-12deg) rotateX(6deg); transition: transform .3s; }
.pm-row:hover .pm-card { transform: perspective(500px) rotateY(0) rotateX(0) translateY(-2px); }
.pm-card i { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: radial-gradient(circle at 35% 30%, var(--wc-c), var(--wc-a) 60%, var(--wc-b)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); color: #fff; }
.pm-card b { font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-card small { font-size: 10px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-actions form { display: contents; }
.pm-edit > summary, .pm-add > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-soft); font-weight: 600; }
.pm-edit > summary::-webkit-details-marker, .pm-add > summary::-webkit-details-marker { display: none; }
.pm-add > summary { color: var(--text); }
.pm-edit[open] > summary { margin-bottom: 12px; }
.method-form .fee-inputs { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.method-form .fee-inputs input { width: 72px; }
.color-in { width: 56px; height: 42px; padding: 4px; cursor: pointer; }

/* Sponsored cards */
.sp-label { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber-text); }
.pcard-wrap.is-sponsored .pcard { box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 45%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--amber) 60%, transparent); }
.sponsored-grid { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-2); }

/* Promote section */
.promo-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); display: flex; align-items: center; gap: 20px; min-height: 190px;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--amber) 22%, transparent), transparent 60%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--surface); }
.promo-bal { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.promo-bal b { color: var(--green-text); }
.promo-art { position: relative; flex: 0 0 220px; height: 150px; margin-left: auto; perspective: 700px; transform-style: preserve-3d; }
.pa-card { position: absolute; width: 112px; height: 136px; border-radius: 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.pa-card::before { content: ''; position: absolute; inset: 10px 10px 60px; border-radius: 9px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--cyan) 40%, transparent)); }
.pa-card::after { content: ''; position: absolute; left: 10px; right: 30px; bottom: 30px; height: 8px; border-radius: 4px; background: var(--line-2); box-shadow: 0 14px 0 -1px var(--line-2); }
.pa-card.c1 { left: 0; top: 18px; transform: rotateY(28deg) rotateZ(-6deg) translateZ(-30px); opacity: .7; }
.pa-card.c2 { right: 0; top: 18px; transform: rotateY(-28deg) rotateZ(6deg) translateZ(-30px); opacity: .7; }
.pa-card.c3 { left: 54px; top: 0; z-index: 2; border-color: color-mix(in srgb, var(--amber) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 40%, transparent), 0 26px 40px -16px color-mix(in srgb, var(--amber) 55%, transparent); animation: paFloat 4.5s ease-in-out infinite; }
.pa-card.c3::before { background: linear-gradient(135deg, var(--amber), color-mix(in srgb, var(--amber) 40%, var(--accent))); }
.pa-card.c3 i { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #2A1E00; font-weight: 800; background: radial-gradient(circle at 35% 30%, #FFE7A3, var(--amber) 60%, var(--amber-dark)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 8px 16px -6px rgba(0,0,0,.5); animation: wcSpin 5s ease-in-out infinite; }
.pa-ring { position: absolute; left: 50%; bottom: -26px; width: 200px; height: 50px; margin-left: -100px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) 35%, transparent), transparent); filter: blur(4px); }
@keyframes paFloat { 0%, 100% { transform: translateY(0) rotateX(8deg); } 50% { transform: translateY(-10px) rotateX(0deg); } }
@media (max-width: 640px) { .promo-art { display: none; } .promo-hero { padding: 22px 18px; } }

.step-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent); vertical-align: 1px; }
.promo-places { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; min-width: 0; }
.promo-places legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.promo-place { position: relative; display: flex; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.promo-place:hover { transform: translateY(-2px); }
.promo-place:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 14px 30px -18px var(--accent); }
.promo-place:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.promo-place input { position: absolute; opacity: 0; pointer-events: none; }
.promo-place.full { opacity: .55; cursor: not-allowed; }
.pp-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-price { font-family: var(--display); font-weight: 800; font-size: 22px; }
.pp-price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.pp-art { flex: 0 0 78px; height: 92px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); padding: 7px; display: grid; gap: 4px; transform: perspective(300px) rotateY(-14deg); transition: transform .3s; }
.promo-place:hover .pp-art, .promo-place:has(input:checked) .pp-art { transform: perspective(300px) rotateY(0); }
.pp-art i { border-radius: 3px; background: var(--line-2); }
.pp-home { grid-template-columns: 1fr 1fr; grid-template-rows: 14px 1fr 1fr; }
.pp-home i:nth-child(1) { grid-column: 1 / -1; background: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
.pp-home i:nth-child(2), .pp-home i:nth-child(3) { background: var(--amber); box-shadow: 0 0 10px -2px var(--amber); }
.pp-listing { grid-template-columns: 1fr; grid-template-rows: 10px repeat(4, 1fr); }
.pp-listing i:nth-child(1) { background: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
.pp-listing i:nth-child(2) { background: var(--amber); box-shadow: 0 0 10px -2px var(--amber); }
.pp-listing i:nth-child(6) { display: none; }
.promo-range { width: 100%; accent-color: var(--accent); height: 8px; -webkit-appearance: none; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill, 20%), var(--surface-2) var(--fill, 20%)); }
.promo-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 10px -2px rgba(0,0,0,.5); cursor: grab; }
.promo-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: grab; }
.fchip.on { border-color: var(--accent); }
.promo-sum { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 22px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; }
.promo-sum span { color: var(--muted); }
.promo-sum .ps-total { font-family: var(--display); font-size: 20px; }
.promo-sum em { grid-column: 1 / -1; font-style: normal; color: var(--amber-text); font-size: 13px; }
.promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.promo-item { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.promo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-stats span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.promo-stats b { font-family: var(--display); font-size: 17px; color: var(--text); }
.promo-bar { display: block; height: 5px; margin-top: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.promo-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); }
@media (prefers-reduced-motion: reduce) { .pa-card.c3, .pa-card.c3 i { animation: none; } }

/* ---------- v27: seller application page (3D) ---------- */
.sell-page { display: flex; flex-direction: column; gap: 56px; }
.grad-text { background: linear-gradient(100deg, var(--accent-soft), var(--cyan) 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sell-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 10px; }
.sell-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.sell-hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.sell-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 560px; }
.sell-lead b { color: var(--text); }
.sell-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.sell-stats div { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 -1px var(--line-2); }
.sell-stats dt { font-size: 12px; color: var(--muted); }
.sell-stats dd { margin: 2px 0 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.sell-scene { position: relative; height: 440px; perspective: 1100px; }
.ss-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--sx, 0deg))) rotateY(calc(-14deg + var(--sy, 0deg))); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ss-card { position: absolute; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.ss-product { left: 18%; top: 40px; width: 270px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transform: translateZ(40px); animation: ssFloat 6s ease-in-out infinite; }
.ss-shot { height: 150px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--cyan) 70%, var(--accent))); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 34px 12px 12px; }
.ss-shot::before { content: ''; position: absolute; left: 12px; right: 12px; top: 10px; height: 14px; border-radius: 6px; background: rgba(255,255,255,.3); }
.ss-shot i { border-radius: 8px; background: rgba(255,255,255,.22); }
.ss-shot i:nth-child(2) { background: rgba(255,255,255,.4); }
.ss-line { height: 10px; border-radius: 5px; background: var(--line-2); }
.ss-line.w70 { width: 70%; } .ss-line.w45 { width: 45%; opacity: .7; }
.ss-foot { display: flex; justify-content: space-between; align-items: center; }
.ss-stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; }
.ss-price { font-family: var(--display); font-weight: 800; font-size: 20px; }
.ss-sale, .ss-payout { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; }
.ss-sale span:last-child, .ss-payout span:last-child { display: flex; flex-direction: column; }
.ss-sale small, .ss-payout small, .ss-key small { color: var(--muted); font-size: 11.5px; }
.ss-sale { right: 2%; top: 16px; transform: translateZ(110px); animation: ssFloat 5s ease-in-out infinite -1.5s; }
.ss-payout { left: 2%; bottom: 70px; transform: translateZ(90px); animation: ssFloat 5.5s ease-in-out infinite -3s; }
.ss-key { right: 6%; bottom: 120px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; transform: translateZ(60px) rotateZ(3deg); animation: ssFloat 6.5s ease-in-out infinite -2s; }
.ss-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--sel-bg); color: var(--accent-soft); }
.ss-ico.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green-text); }
.ss-coin { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #2A1E00; background: radial-gradient(circle at 35% 30%, #FFE7A3, var(--amber) 60%, var(--amber-dark)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 14px 22px -10px rgba(0,0,0,.6); animation: ssCoin 7s ease-in-out infinite; }
.ss-coin.c1 { left: 6%; top: 60px; transform: translateZ(140px); }
.ss-coin.c2 { right: 18%; top: 170px; background: radial-gradient(circle at 35% 30%, #A8F5D8, #26A17B 60%, #0B5E47); color: #fff; animation-delay: -2s; transform: translateZ(160px); }
.ss-coin.c3 { left: 40%; bottom: 20px; background: radial-gradient(circle at 35% 30%, #FFD08A, #F7931A 60%, #8A3E00); color: #fff; animation-delay: -4s; transform: translateZ(120px); }
.ss-floor { position: absolute; left: 8%; right: 8%; bottom: -10px; height: 80px; border-radius: 50%; transform: rotateX(80deg) translateZ(-80px); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent); filter: blur(6px); }
@keyframes ssFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ssCoin { 0%, 100% { translate: 0 0; rotate: y 0deg; } 50% { translate: 0 -16px; rotate: y 180deg; } }

.sell-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1000px; }
.sell-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface) 80%, var(--accent) 6%)); border: 1px solid var(--line); box-shadow: 0 6px 0 -1px var(--line-2), 0 24px 40px -28px rgba(0,0,0,.6); transform: rotateX(10deg) translateY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.sell-step:hover { transform: rotateX(0deg) translateY(-6px); box-shadow: 0 10px 0 -1px var(--line-2), 0 34px 50px -30px rgba(0,0,0,.7); }
.sell-step b { font-family: var(--display); font-size: 19px; }
.sell-step span:last-child { color: var(--muted); font-size: 14px; line-height: 1.55; }
.sell-step-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--on-accent); background: var(--accent); box-shadow: 0 4px 0 var(--accent-dark), 0 12px 20px -8px var(--accent); }
.sell-step:nth-child(2) .sell-step-num { background: var(--cyan); color: #05242B; box-shadow: 0 4px 0 var(--cyan-dark), 0 12px 20px -8px var(--cyan); }
.sell-step:nth-child(3) .sell-step-num { background: var(--amber); color: #2A1E00; box-shadow: 0 4px 0 var(--amber-dark), 0 12px 20px -8px var(--amber); }
.sell-step:nth-child(4) .sell-step-num { background: var(--green); color: #05230F; box-shadow: 0 4px 0 #15803D, 0 12px 20px -8px var(--green); }
.sell-step:not(:last-child)::after { content: ''; position: absolute; right: -14px; top: 40px; width: 12px; height: 2px; background: var(--line-2); }

.sell-calc { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; align-items: stretch; }
.ec-result { flex: 1 1 260px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px; border-radius: 20px; overflow: hidden; background: radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--green) 22%, transparent), transparent 60%), var(--surface-2); border: 1px solid var(--line-2); }
.ec-result > b { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--green-text); position: relative; z-index: 1; }
.ec-result > span { position: relative; z-index: 1; }
.ec-bars { position: absolute; right: 16px; bottom: 0; height: 70%; display: flex; align-items: flex-end; gap: 5px; opacity: .35; }
.ec-bars i { width: 10px; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--green), transparent); animation: ecGrow .8s cubic-bezier(.2,.9,.2,1) both; animation-delay: var(--d); }
@keyframes ecGrow { from { height: 0; } }

.sell-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sf-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.sf-tile:hover { transform: translateY(-4px) rotateX(4deg); border-color: var(--line-2); }
.sf-tile b { font-family: var(--display); font-size: 17px; }
.sf-tile > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.sf-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 6px; transform: perspective(200px) rotateX(14deg) rotateY(-14deg); transition: transform .35s; }
.sf-tile:hover .sf-ico { transform: perspective(200px) rotateX(0) rotateY(0) scale(1.06); }
.sf-ico.violet { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-soft); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 40%, transparent); }
.sf-ico.cyan { background: color-mix(in srgb, var(--cyan) 18%, transparent); color: var(--cyan); box-shadow: 0 4px 0 color-mix(in srgb, var(--cyan) 35%, transparent); }
.sf-ico.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green-text); box-shadow: 0 4px 0 color-mix(in srgb, var(--green) 35%, transparent); }
.sf-ico.amber { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber-text); box-shadow: 0 4px 0 color-mix(in srgb, var(--amber) 35%, transparent); }
.sf-ico.pink { background: rgba(244,114,182,.16); color: #F472B6; box-shadow: 0 4px 0 rgba(244,114,182,.3); }

.sell-coins { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 24px 28px; }
.coin-row { flex: 2 1 380px; display: flex; flex-wrap: wrap; gap: 18px 14px; justify-content: flex-end; perspective: 600px; }
.coin3d { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; text-align: center; }
.coin3d i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 21px; color: var(--wc-ink); background: radial-gradient(circle at 35% 30%, var(--wc-c), var(--wc-a) 58%, var(--wc-b)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.4), 0 12px 18px -8px var(--wc-b); animation: coinBob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.45s); }
.coin3d small { font-size: 11px; color: var(--muted); line-height: 1.25; }
@keyframes coinBob { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-6px) rotateY(180deg); } }

.sell-apply { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.faq { padding: 0; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.6; }
.apply-card { position: relative; flex: 1 1 380px; max-width: 480px; perspective: 1200px; }
.apply-glow { position: absolute; inset: -18px; border-radius: 34px; background: conic-gradient(from 180deg, var(--accent), var(--cyan), var(--amber), var(--accent)); filter: blur(34px); opacity: .28; animation: glowSpin 12s linear infinite; }
@keyframes glowSpin { to { transform: rotate(360deg); } }
.apply-inner { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 14px; border-radius: 26px; transform: rotateX(4deg) rotateY(-4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 8px 0 -2px var(--line-2), 0 40px 70px -40px rgba(0,0,0,.8); }
.apply-card:hover .apply-inner, .apply-card:focus-within .apply-inner { transform: none; }
.apply-inner h2 { font-size: 26px; }
.apply-inner textarea { resize: vertical; min-height: 54px; }
.status-orb { align-self: center; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--sel-bg); color: var(--accent-soft); transform: perspective(300px) rotateX(16deg); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 35%, transparent), 0 20px 30px -14px var(--accent); }
.status-orb.amber { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber-text); box-shadow: 0 6px 0 color-mix(in srgb, var(--amber) 35%, transparent); }
.status-orb.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green-text); box-shadow: 0 6px 0 color-mix(in srgb, var(--green) 35%, transparent); }
.status-orb.red { background: color-mix(in srgb, var(--red, #EF4444) 18%, transparent); color: var(--red-text); box-shadow: 0 6px 0 color-mix(in srgb, var(--red, #EF4444) 35%, transparent); }

@media (max-width: 960px) {
  .sell-hero { grid-template-columns: 1fr; }
  .sell-scene { height: 380px; }
  .sell-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-step::after { display: none; }
  .sell-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-card { max-width: none; }
}
@media (max-width: 560px) {
  .sell-page { gap: 40px; }
  .sell-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-scene { height: 320px; }
  .ss-product { left: 50%; margin-left: -120px; width: 240px; }
  .ss-shot { height: 120px; }
  .ss-key { display: none; }
  .sell-steps, .sell-features { grid-template-columns: 1fr; }
  .coin-row { justify-content: flex-start; }
  .apply-inner { transform: none; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-card, .ss-coin, .coin3d i, .apply-glow, .ec-bars i { animation: none !important; }
  .ss-stage { transition: none; }
}

/* ---------- v28: product active / inactive switch ---------- */
.active-form { display: inline-flex; }
.switch3d { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sw-track { position: relative; width: 48px; height: 26px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: inset 0 2px 4px rgba(0,0,0,.35); transition: background .25s, border-color .25s; }
.sw-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #fff, #D9DCE8); box-shadow: 0 3px 0 rgba(0,0,0,.18), 0 4px 8px -2px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.switch3d.on { color: var(--green-text); }
.switch3d.on .sw-track { background: linear-gradient(180deg, color-mix(in srgb, var(--green) 85%, #000), var(--green)); border-color: color-mix(in srgb, var(--green) 70%, #000); box-shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 0 14px -4px var(--green); }
.switch3d.on .sw-knob { transform: translateX(22px); }
.switch3d:hover .sw-knob { box-shadow: 0 3px 0 rgba(0,0,0,.18), 0 6px 12px -2px rgba(0,0,0,.55); }
.switch3d:active .sw-knob { width: 24px; }
.switch3d.on:active .sw-knob { transform: translateX(18px); }
.switch3d:focus-visible { outline: none; }
.switch3d:focus-visible .sw-track { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sw-knob, .sw-track { transition: none; } }

/* =====================================================================
   v29: storefront 3D design layer (body.s3d). Every surface is a raised
   slab with a lit top rim and a solid bottom edge; cards tilt toward the
   pointer; sections rise into place; a perspective grid floats behind.
   The admin panel does not use this class.
   ===================================================================== */
body.s3d {
  --edge: #04050A;
  --rim: rgba(255,255,255,.07);
  --slab: inset 0 1px 0 var(--rim), 0 6px 0 -2px var(--edge), 0 26px 46px -28px var(--shadow-strong);
  --slab-hi: inset 0 1px 0 var(--rim), 0 12px 0 -4px var(--edge), 0 44px 64px -30px var(--shadow-strong);
  --grid-line: color-mix(in srgb, var(--accent) 26%, transparent);
}
html[data-mode="light"] body.s3d {
  --edge: #C2C9D8;
  --rim: rgba(255,255,255,.95);
  --grid-line: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Background: perspective grid floor + slow light orbs */
.bg3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; perspective: 520px; perspective-origin: 50% 30%; }
.bg3d .bg-grid { position: absolute; left: -60%; right: -60%; bottom: -30%; height: 90%; transform-origin: 50% 100%; transform: rotateX(74deg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%); mask-image: linear-gradient(to top, #000 10%, transparent 80%); opacity: .55; animation: bgGrid 18s linear infinite; }
@keyframes bgGrid { from { transform: rotateX(74deg) translateY(0); } to { transform: rotateX(74deg) translateY(72px); } }
.bg3d .bg-orb { position: absolute; border-radius: 50%; opacity: .5; }
.bg3d .o1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); animation: bgOrb 26s ease-in-out infinite; }
.bg3d .o2 { width: 50vmax; height: 50vmax; right: -16vmax; top: 18vh; background: radial-gradient(closest-side, rgba(34,211,238,.16), transparent); animation: bgOrb 32s ease-in-out infinite reverse; }
.bg3d .o3 { width: 40vmax; height: 40vmax; left: 30vw; bottom: -20vmax; background: radial-gradient(closest-side, rgba(255,176,32,.10), transparent); animation: bgOrb 38s ease-in-out infinite; }
@keyframes bgOrb { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6vmax, 4vmax); } }
html[data-mode="light"] .bg3d .bg-orb { opacity: .7; }
html[data-mode="light"] .bg3d .bg-grid { opacity: .7; }
body.s3d .site { position: relative; z-index: 1; overflow-x: clip; }
body.s3d .site-footer { position: relative; }

/* Surfaces */
body.s3d .panel, body.s3d .step-card, body.s3d .post-card { box-shadow: var(--slab); }
body.s3d .panel .panel { box-shadow: inset 0 1px 0 var(--rim), 0 3px 0 -1px var(--edge); }
html[data-mode="light"] body.s3d .panel { box-shadow: var(--slab); }
body.s3d .table-wrap.panel { box-shadow: var(--slab); }
body.s3d .flash { box-shadow: inset 0 1px 0 var(--rim), 0 4px 0 -2px color-mix(in srgb, currentColor 35%, transparent); }
body.s3d .badge { box-shadow: 0 2px 0 -1px color-mix(in srgb, currentColor 40%, transparent); }
body.s3d .chip-mono, body.s3d .fchip { box-shadow: 0 3px 0 -1px var(--edge), inset 0 1px 0 var(--rim); transition: transform .15s, box-shadow .15s; }
body.s3d .fchip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 -1px var(--edge), inset 0 1px 0 var(--rim); }
body.s3d .fchip.on { box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--accent) 60%, var(--edge)), inset 0 1px 0 var(--rim); }
body.s3d .input, body.s3d .search input { box-shadow: inset 0 3px 6px -2px rgba(0,0,0,.55), 0 1px 0 var(--rim); transition: box-shadow .2s, border-color .2s; }
html[data-mode="light"] body.s3d .input, html[data-mode="light"] body.s3d .search input { box-shadow: inset 0 3px 6px -3px rgba(30,36,60,.22), 0 1px 0 var(--rim); }
body.s3d .input:focus, body.s3d .search input:focus { border-color: color-mix(in srgb, var(--accent) 70%, var(--line-2)); box-shadow: inset 0 3px 6px -2px rgba(0,0,0,.35), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }

/* Buttons: deeper keys that press down */
body.s3d .btn { transition: transform .12s ease, box-shadow .12s ease, background .15s ease, filter .15s; }
body.s3d .btn-primary { box-shadow: 0 5px 0 var(--accent-dark), 0 16px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
body.s3d .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-dark), 0 22px 36px -14px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
body.s3d .btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-dark), inset 0 2px 4px rgba(0,0,0,.2); }
body.s3d .btn-ghost { box-shadow: 0 4px 0 var(--edge), inset 0 1px 0 var(--rim); }
body.s3d .btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge), inset 0 1px 0 var(--rim); }
body.s3d .btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
body.s3d .btn:disabled, body.s3d .btn[disabled] { transform: none; filter: saturate(.6); }

/* Header: floating glass slab */
body.s3d .site-header { box-shadow: inset 0 -1px 0 var(--rim), 0 14px 34px -22px var(--shadow-strong); }
body.s3d .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 75%, transparent) 50%, transparent); }
body.s3d .brand-cube span { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
body.s3d .brand:hover .brand-cube span { transform: rotateX(-18deg) rotateY(148deg); }
body.s3d .site-header .cat { transition: transform .15s, box-shadow .15s, background .15s; }
body.s3d .site-header .cat:hover { transform: translateY(-2px); box-shadow: 0 3px 0 -1px var(--edge); }
body.s3d .site-header .cat.on { box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--accent) 55%, var(--edge)), inset 0 1px 0 var(--rim); }
body.s3d .site-header .nav-links .navbtn.on::after { height: 3px; box-shadow: 0 0 10px var(--accent); }

/* Section titles get a small 3D cube marker */
body.s3d .section-head > h1, body.s3d .section-head > h2 { display: flex; align-items: center; gap: 12px; }
body.s3d .section-head > h1:not(:has(svg))::before, body.s3d .section-head > h2:not(:has(svg))::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); box-shadow: 3px 3px 0 var(--accent-dark), 0 0 16px -2px color-mix(in srgb, var(--accent) 80%, transparent); }
body.s3d .section-head h2 svg, body.s3d .section-head h1 svg { color: var(--accent-soft); filter: drop-shadow(2px 2px 0 color-mix(in srgb, var(--accent-dark) 60%, transparent)); }

/* Product cards: slab + tilt toward the pointer + glare */
body.s3d .grid { perspective: 1400px; }
body.s3d .pcard-wrap { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
body.s3d .pcard-wrap.tilting { transition: transform .1s linear; }
body.s3d .pcard { position: relative; box-shadow: var(--slab); }
body.s3d .pcard:hover { transform: translateY(-8px); box-shadow: var(--slab-hi), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
html[data-mode="light"] body.s3d .pcard { box-shadow: var(--slab); }
html[data-mode="light"] body.s3d .pcard:hover { box-shadow: var(--slab-hi), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
body.s3d .pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.09), transparent 38%); }
html[data-mode="light"] body.s3d .pcard::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.75), transparent 40%); mix-blend-mode: normal; }
body.s3d .pcard-wrap:hover .pcard::after { opacity: 1; }
body.s3d .pcard-wrap:hover .pcard-cart { transform: translateY(-8px); }
body.s3d .pcard-cart { transition: transform .25s ease; }
body.s3d .pcard-wrap.is-sponsored .pcard { box-shadow: var(--slab), 0 0 0 1px color-mix(in srgb, var(--amber) 45%, transparent); }

/* Steps and post cards */
body.s3d .steps-row { perspective: 1200px; }
body.s3d .step-card { transform: rotateX(10deg); transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
body.s3d .step-card:hover { transform: rotateX(0deg) translateY(-6px); box-shadow: var(--slab-hi); }
body.s3d .step-num { box-shadow: 0 5px 0 rgba(0,0,0,.28), 0 12px 20px -8px currentColor; transform: perspective(200px) rotateX(12deg); }
body.s3d .post-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
body.s3d .post-card:hover { box-shadow: var(--slab-hi); }

/* Homepage intro (hero + steps), now under the products */
.home-intro { display: flex; flex-direction: column; gap: 22px; }
body.s3d .hero { box-shadow: var(--slab-hi); }
body.s3d .hero .scene-fit { rotate: var(--pax, 0) var(--pay, 1) 0 var(--paa, 0deg); transition: rotate .5s cubic-bezier(.2,.8,.2,1); }

/* Footer */
body.s3d .site-footer.v2 { background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), var(--footer-bg); }
body.s3d .site-footer .panel { box-shadow: var(--slab); }

/* Scroll reveal: things rise into place */
.rv { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rvd, 0ms); }
.grid > .rv { rotate: x 16deg; transition: opacity .7s ease, translate .8s cubic-bezier(.2,.8,.2,1), rotate .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rvd, 0ms); }
.rv.in { opacity: 1; translate: 0 0; rotate: x 0deg; }

@media (hover: none), (max-width: 760px) {
  body.s3d .step-card { transform: none; }
  .bg3d .bg-grid { opacity: .3; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg3d .bg-grid, .bg3d .bg-orb { animation: none; }
  .rv, .grid > .rv { opacity: 1; translate: none; rotate: none; transition: none; }
  body.s3d .pcard-wrap, body.s3d .post-card, body.s3d .step-card { transform: none; transition: none; }
  body.s3d .brand-cube span { transition: none; }
}
@media print { .bg3d { display: none; } .rv { opacity: 1; translate: none; rotate: none; } }

/* ---------- v30: refund notice ---------- */
.refund-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: color-mix(in srgb, var(--green) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 3px 0 -1px color-mix(in srgb, var(--green) 25%, transparent); text-align: left; }
.refund-note .rn-shield { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--green-text); background: color-mix(in srgb, var(--green) 16%, transparent); box-shadow: 0 3px 0 color-mix(in srgb, var(--green) 30%, transparent); transform: perspective(160px) rotateX(10deg); }
.refund-note .rn-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.refund-note .rn-body > b { font-size: 14.5px; }
.refund-note ul { margin: 2px 0 2px; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.refund-note .rn-more summary { cursor: pointer; color: var(--accent-soft); font-weight: 600; width: fit-content; }
.refund-note .rn-more[open] summary { margin-bottom: 4px; }
.refund-note.order { align-items: center; flex-wrap: wrap; }
.refund-note.order .rn-body { flex: 1 1 260px; }
.refund-note .rn-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.refund-note .rn-bar { display: block; height: 5px; margin-top: 3px; border-radius: 99px; background: color-mix(in srgb, var(--green) 14%, var(--surface)); overflow: hidden; max-width: 320px; }
.refund-note .rn-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--amber)); }
.refund-note.closed { background: var(--surface-2); border-color: var(--line-2); box-shadow: none; }
.refund-note.closed .rn-shield { color: var(--muted); background: var(--surface-3); box-shadow: none; }
.refund-admin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .refund-admin { grid-template-columns: 1fr; } }

/* ---------- v31: refund requests ---------- */
.refund-page { display: flex; flex-direction: column; gap: 18px; }
.refund-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 26px; align-items: start; }
.refund-side { position: sticky; top: 140px; }
@media (max-width: 900px) { .refund-grid { grid-template-columns: 1fr; } .refund-side { position: static; order: -1; } }
.refund-form legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.rf-reasons, .rf-to { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.rf-reason { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 14.5px; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; box-shadow: 0 3px 0 -1px var(--edge, var(--line-2)); }
.rf-reason:hover { transform: translateY(-1px); }
.rf-reason input { accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
.rf-reason:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--accent) 50%, transparent); }
.rf-reason:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.rf-to .input { margin-top: 4px; }
.rf-confirm { align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 9%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); font-size: 14px; }
.rf-confirm input { margin-top: 3px; }
.refund-status { display: flex; gap: 16px; align-items: flex-start; }
.refund-status .rs-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transform: perspective(200px) rotateX(12deg); background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber-text); box-shadow: 0 5px 0 color-mix(in srgb, var(--amber) 30%, transparent); }
.refund-status.refunded .rs-icon { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green-text); box-shadow: 0 5px 0 color-mix(in srgb, var(--green) 30%, transparent); }
.refund-status.rejected .rs-icon { background: rgba(255,107,107,.14); color: var(--red-text); box-shadow: 0 5px 0 rgba(255,107,107,.28); }
.refund-status.cancelled .rs-icon { background: var(--surface-2); color: var(--muted); box-shadow: 0 5px 0 var(--line-2); }
.rs-note { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); }
.refund-order { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.ro-list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; }
.ro-list div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ro-list dt { font-size: 11.5px; color: var(--dim); }
.ro-list dd { margin: 0; font-weight: 600; font-size: 14px; }
.refund-note.pending { background: color-mix(in srgb, var(--amber) 9%, var(--surface-2)); border-color: color-mix(in srgb, var(--amber) 35%, var(--line-2)); }
.refund-note.pending .rn-shield { color: var(--amber-text); background: color-mix(in srgb, var(--amber) 16%, transparent); box-shadow: 0 3px 0 color-mix(in srgb, var(--amber) 30%, transparent); }

.refund-list { display: grid; gap: 14px; }
.rq-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 20px; }
.rq-card:target { outline: 2px solid var(--accent); }
.rq-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rq-body { display: flex; flex-direction: column; gap: 8px; }
.rq-reason { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--sel-bg); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.rq-text { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.rq-pop > summary { list-style: none; cursor: pointer; }
.rq-pop > summary::-webkit-details-marker { display: none; }
.rq-pop[open] { flex: 1 1 100%; }
.rq-pop > form { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); max-width: 560px; }

/* ---------- v32: audit fixes (touch targets) ---------- */
.switch3d { min-height: 40px; padding: 7px 4px; margin: -7px -4px; }
@media (hover: none), (max-width: 760px) { .pcard-cart button, .pcard-cart .free-btn { min-height: 36px; padding: 8px 14px; } }
.cchip button { min-width: 30px; min-height: 30px; display: inline-grid; place-items: center; }
/* Admin header on small phones: show the logo cube only, so the name is never cut to "Script…" */
@media (max-width: 480px) { .admin-top .brand-name { display: none; } }
@media (hover: none), (max-width: 760px) { .wc-flip, .wc-btn { min-height: 34px; padding: 7px 12px; } .wc-btn[aria-label] { min-width: 34px; justify-content: center; } }
.admin-top .role-chip { white-space: nowrap; }
@media (max-width: 900px) { .admin-top .role-chip { display: none; } }

/* ---------- v34: two-step verification & account protection ---------- */
.tfa-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .tfa-grid { grid-template-columns: 1fr; } }
.tfa-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 620px) { .tfa-setup { grid-template-columns: 1fr; justify-items: start; } }
.tfa-qr { padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 6px 0 -2px var(--edge, var(--line-2)), 0 20px 40px -24px var(--shadow-strong); transform: perspective(500px) rotateY(-8deg) rotateX(4deg); transition: transform .4s; line-height: 0; }
.tfa-qr:hover { transform: none; }
.tfa-qr svg { width: 180px; height: 180px; display: block; }
.tfa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.tfa-steps li::marker { font-weight: 800; color: var(--accent-soft); }
.tfa-key { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tfa-key code { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; letter-spacing: .06em; overflow-wrap: anywhere; }
.tfa-code { max-width: 170px; font-size: 22px; letter-spacing: .25em; text-align: center; }
.auth-card .tfa-code { max-width: none; }
.tfa-codes { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--amber) 9%, var(--surface-2)); border: 1px dashed color-mix(in srgb, var(--amber) 55%, transparent); }
.tfa-codes ol { margin: 4px 0; padding-left: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; font-size: 15px; letter-spacing: .08em; }
.tfa-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.tfa-pop > summary { list-style: none; cursor: pointer; }
.tfa-pop > summary::-webkit-details-marker { display: none; }
.tfa-pop[open] { flex: 1 1 100%; }
.tfa-pop > form { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); max-width: 420px; }
.tfa-lock { align-self: center; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--accent-soft); background: var(--sel-bg); transform: perspective(240px) rotateX(14deg); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 30px -14px var(--accent); }
.sec-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); transition: transform .2s; }
.sec-link:hover { transform: translateY(-2px); color: var(--text); }
.sec-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--green-text); background: color-mix(in srgb, var(--green) 15%, transparent); }
.sec-group { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-group legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.sec-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.sec-opt input[type=checkbox] { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.sec-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sec-inline { gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.sec-inline .input { width: 64px; }
@media print { .site-header, .admin-side, .admin-top, .tfa-actions, .tfa-codes .row, .site-footer, .app-bar { display: none !important; } }

/* ===== v35: gateway logos, rotating wallet addresses ===== */
.pay-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); overflow: hidden; }
.pay-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pay-logo-sm { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); padding: 3px; }
.pay-chips span.has-logo { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; }
.pay-chips span img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; }
.gw-logo-field { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.gw-logo-preview { flex: none; width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--dim, #8a93a6); overflow: hidden; }
.gw-logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gw-logo-field input[type=file] { max-width: 100%; }
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.addr-list { display: flex; flex-direction: column; gap: 6px; }
.addr-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.addr-item code { flex: 1 1 260px; min-width: 0; word-break: break-all; font-size: 13px; }
.addr-n { flex: none; width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--accent, #2563eb); color: #fff; }
.wallet-pay { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 6px 0 var(--line-2), 0 18px 40px -24px rgba(15, 23, 42, .45); }
.wp-qr { flex: none; width: 168px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line-2); }
.wp-qr svg { display: block; width: 100%; height: auto; }
.wp-address { display: block; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); word-break: break-all; color: var(--text); }
.wp-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 9px 12px; border-radius: 10px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: var(--text); }
.wp-warn svg { flex: none; margin-top: 2px; color: #d97706; }
@media (max-width: 600px) {
  .wallet-pay { flex-direction: column; align-items: stretch; }
  .wp-qr { width: 190px; align-self: center; }
  .gw-logo-field { flex-direction: column; }
}
.pay-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.pay-jump .btn { scroll-margin-top: 20px; }
.gw-card, #methods { scroll-margin-top: 20px; }

/* ===== v37: support tickets, contact form, product Q&A, wishlist, affiliates ===== */
.empty-note { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.empty-note svg { flex: none; color: var(--accent); }
.ticket-tbl { min-width: 560px; }
.ticket-tbl td { vertical-align: top; }
.new-ticket summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.new-ticket summary::-webkit-details-marker { display: none; }
.new-ticket summary::before { content: '+'; display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; }
.new-ticket[open] summary::before { content: '–'; }
.topic-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; min-width: 0; }
.topic-opt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 14px; font-weight: 600; }
.topic-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ticket-page { display: flex; flex-direction: column; gap: 16px; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.ticket-side { position: sticky; top: 90px; }
@media (max-width: 900px) { .ticket-grid { grid-template-columns: 1fr; } .ticket-side { position: static; } }
.ticket-head { display: flex; flex-direction: column; gap: 10px; }
.ticket-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.ticket-meta div { display: flex; gap: 6px; }
.ticket-meta dt { color: var(--dim); }
.ticket-meta dd { margin: 0; color: var(--text); }
.ticket-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tmsg { display: flex; gap: 12px; align-items: flex-start; scroll-margin-top: 90px; }
.tmsg.mine { flex-direction: row-reverse; }
.tmsg-box { flex: 0 1 auto; max-width: min(640px, 100%); min-width: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.tmsg.mine .tmsg-box { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
.tmsg.by-staff .tmsg-box { border-left: 3px solid #06b6d4; }
.tmsg-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tmsg-body { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.tmsg-file { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; font-size: 13px; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 600px) { .tmsg > .avatar { display: none; } .tmsg-box { max-width: 100%; flex: 1 1 auto; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.small-article .md { font-size: 14px; }
.small-article .md h1 { display: none; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qa-item { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.qa-item:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.qa-q, .qa-a { display: flex; gap: 12px; align-items: flex-start; }
.qa-a { margin-left: 22px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.qa-mark { flex: none; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--accent); color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.qa-mark.a { background: #10b981; box-shadow: 0 3px 0 #047857; }
.qa-body { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.qa-seller { margin-left: 22px; }
.qa-answer { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.qa-reply summary { list-style: none; }
.qa-reply summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) { .qa-a, .qa-seller { margin-left: 0; } }
.wish-btn svg { transition: transform .2s ease; }
.wish-btn.on { color: #e11d48; border-color: color-mix(in srgb, #e11d48 40%, var(--line-2)); }
.wish-btn.on svg { fill: #e11d48; stroke: #e11d48; }
.wish-btn:active svg { transform: scale(1.25); }
.pcard-wish { position: absolute; left: 12px; top: 152px; z-index: 4; margin: 0; }
.pcard-wish button { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); background: rgba(14,15,22,.72); color: #fff; backdrop-filter: blur(8px); cursor: pointer; opacity: .85; transition: opacity .15s ease, transform .15s ease; }
.pcard-wish button:hover, .pcard-wish button.on { opacity: 1; transform: translateY(-1px); }
.pcard-wish button.on { background: #fff; }
.wish-list { display: flex; flex-direction: column; gap: 12px; }
.wish-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.wish-cube { flex: none; display: inline-flex; }
.wish-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 90px; }
@media (max-width: 600px) { .wish-price { align-items: flex-start; } .wish-item > .stack { flex-basis: calc(100% - 80px); } }
.share-earn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #10b981 10%, var(--surface-2)); border: 1px dashed color-mix(in srgb, #10b981 45%, var(--line-2)); }
.share-earn svg { color: #10b981; vertical-align: -2px; }
.aff-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .aff-grid { grid-template-columns: 1fr; } }
html[data-mode="light"] .pcard-wish button { background: rgba(255,255,255,.92); border-color: var(--line-2); color: var(--text); }
html[data-mode="light"] .pcard-wish button.on { color: #e11d48; }
body.s3d .pcard-wish { transition: transform .25s ease; }
body.s3d .pcard-wrap:hover .pcard-wish { transform: translateY(-8px); }

/* ===== v38: privacy, follow, bundles, languages, membership ===== */
.danger-zone { border: 1px solid color-mix(in srgb, #ef4444 40%, var(--line-2)); border-radius: 14px; padding: 14px 16px; background: color-mix(in srgb, #ef4444 5%, var(--surface)); }
.danger-zone summary { cursor: pointer; color: var(--red-text, #dc2626); }
.code-sample { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2, #0f172a); border: 1px solid var(--line-2); overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre; max-width: 100%; }
.follow-form { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bundle-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; color: var(--text); transition: transform .2s ease; }
.bundle-card:hover { transform: translateY(-3px); }
.bundle-off { position: absolute; top: 14px; right: 14px; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: #10b981; color: #fff; box-shadow: 0 3px 0 #047857; }
.bundle-name { font-size: 19px; padding-right: 70px; }
.bundle-price { font-size: 17px; display: inline-flex; gap: 8px; align-items: baseline; }
.bundle-price.big { font-size: 28px; font-family: var(--display); }
.bundle-price s { font-size: .65em; }
.bundle-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.bundle-buy { flex: 0 1 320px; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.bundle-promo { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #10b981 50%, var(--line-2)); background: color-mix(in srgb, #10b981 8%, var(--surface)); text-decoration: none; color: var(--text); }
.bundle-pick { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin: 0; max-height: 340px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; min-width: 0; }
.tr-list { display: flex; flex-direction: column; gap: 6px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.tr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tr-src { font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .tr-row { grid-template-columns: 1fr; gap: 4px; } }
.lang-switch { display: inline-flex; gap: 4px; align-items: center; }
.lang-switch a { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--muted); }
.lang-switch a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.member-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, #8b5cf6 12%, var(--surface)), var(--surface)); }
.member-status { flex: 0 1 300px; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 6px 0 var(--line-2); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 0 var(--line-2); }
.plan-name { font-size: 18px; }
.plan-price { font-family: var(--display); font-size: 32px; font-weight: 800; }
.member-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, #8b5cf6 40%, var(--line-2)); background: color-mix(in srgb, #8b5cf6 8%, var(--surface)); }
.feature-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-of-type { border-bottom: 0; }
.feature-sub { margin-left: 2px; }

/* ===== v39: 3D announcement (coupon) bar and 3D header ===== */
.announce { position: relative; overflow: hidden; }
.announce-in { position: relative; z-index: 2; }
.ann-text { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; }
.ann-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 13px; }
.ann-close:hover { background: rgba(255,255,255,.26); }
.announce-in:has(.ann-close) { padding-right: 46px; padding-left: 46px; }

/* coupon ticket (works with or without the animation) */
.ann-ticket { position: relative; display: inline-flex; align-items: stretch; border: 0; padding: 0; margin: 0 2px; cursor: pointer; font: inherit; color: #0b1020; border-radius: 9px; background: #fff;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.28)) drop-shadow(0 8px 10px rgba(0,0,0,.22)); transform: perspective(300px) rotateX(8deg); transition: transform .2s ease; }
.ann-ticket:hover { transform: perspective(300px) rotateX(0deg) translateY(-2px) scale(1.04); }
.ann-ticket:active { transform: perspective(300px) translateY(1px) scale(.98); }
.ann-ticket-code { padding: 3px 10px 3px 12px; font-family: var(--mono); font-weight: 800; letter-spacing: .08em; font-size: 13.5px; color: var(--accent-dark); }
.ann-ticket-cta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px 3px 9px; border-left: 2px dashed color-mix(in srgb, var(--accent) 40%, #cbd5e1); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #334155; }
.ann-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); text-decoration: none !important; box-shadow: 0 2px 0 rgba(0,0,0,.2); transition: background .2s, transform .2s; }
.ann-link:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.ann-link span { display: inline-block; transition: transform .2s; }
.ann-link:hover span { transform: translateX(3px); }

/* animated version */
.announce.a3d { background: linear-gradient(110deg, var(--accent-dark), var(--accent) 30%, #12B5CB 55%, var(--accent) 80%, var(--accent-dark)); background-size: 300% 100%; animation: annFlow 14s linear infinite;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 0 rgba(0,0,0,.18); }
@keyframes annFlow { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
.ann-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%); transform: translateX(-120%); animation: annShine 6s ease-in-out infinite; }
@keyframes annShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.ann-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ann-dots i { position: absolute; bottom: -8px; width: 6px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.55); animation: annRise 7s linear infinite; }
.ann-dots i:nth-child(1) { left: 6%; animation-delay: 0s; }
.ann-dots i:nth-child(2) { left: 19%; animation-delay: 2.2s; width: 4px; height: 4px; background: #FFE27A; }
.ann-dots i:nth-child(3) { left: 37%; animation-delay: 4.1s; border-radius: 50%; }
.ann-dots i:nth-child(4) { left: 63%; animation-delay: 1.3s; background: #FFB3D9; }
.ann-dots i:nth-child(5) { left: 81%; animation-delay: 3.4s; width: 4px; height: 4px; border-radius: 50%; }
.ann-dots i:nth-child(6) { left: 94%; animation-delay: 5.6s; background: #B8F5FF; }
@keyframes annRise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-56px) rotate(320deg); opacity: 0; } }
.ann-cube { flex: none; width: 22px; height: 22px; perspective: 160px; display: inline-flex; margin-right: 2px; }
.ann-cube-in { position: relative; width: 22px; height: 22px; transform-style: preserve-3d; animation: annSpin 7s cubic-bezier(.45,.05,.35,1) infinite; }
.ann-cube-in i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--accent-dark); background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); text-shadow: none; }
.ann-cube-in i:nth-child(1) { transform: translateZ(11px); }
.ann-cube-in i:nth-child(2) { transform: rotateY(180deg) translateZ(11px); }
.ann-cube-in i:nth-child(3) { transform: rotateY(90deg) translateZ(11px); background: #FFE27A; color: #7A4D00; }
.ann-cube-in i:nth-child(4) { transform: rotateY(-90deg) translateZ(11px); background: #FFE27A; color: #7A4D00; }
.ann-cube-in i:nth-child(5) { transform: rotateX(90deg) translateZ(11px); background: #E6EEFF; }
.ann-cube-in i:nth-child(6) { transform: rotateX(-90deg) translateZ(11px); background: #E6EEFF; }
@keyframes annSpin { 0% { transform: rotateX(-20deg) rotateY(0deg); } 50% { transform: rotateX(20deg) rotateY(180deg); } 100% { transform: rotateX(-20deg) rotateY(360deg); } }
.a3d .ann-ticket { animation: annBob 3.2s ease-in-out infinite; }
.a3d .ann-ticket:hover { animation: none; }
@keyframes annBob { 0%, 100% { transform: perspective(300px) rotateX(8deg) translateY(0); } 50% { transform: perspective(300px) rotateX(-6deg) translateY(-2px); } }

/* 3D header */
body.s3d .site-header { isolation: isolate; }
body.s3d .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px 140px at var(--hx, 50%) var(--hy, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
body.s3d .site-header.lit::before { opacity: 1; }
body.s3d .site-header::after { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), #12B5CB, var(--accent), transparent); background-size: 200% 100%; animation: hdrLine 6s linear infinite; opacity: .85; }
@keyframes hdrLine { from { background-position: 0% 0; } to { background-position: 200% 0; } }
body.s3d .site-header.scrolled { box-shadow: inset 0 -1px 0 var(--rim), 0 6px 0 -3px color-mix(in srgb, var(--accent) 35%, var(--edge)), 0 22px 40px -22px var(--shadow-strong); }
body.s3d .brand-cube span { animation: brandFloat 6s ease-in-out infinite; }
body.s3d .brand:hover .brand-cube span { animation: none; }
@keyframes brandFloat { 0%, 100% { transform: rotateX(-18deg) rotateY(-32deg) translateY(0); } 50% { transform: rotateX(-8deg) rotateY(-12deg) translateY(-2px); } }
body.s3d .brand-name { transition: transform .3s ease, text-shadow .3s ease; }
body.s3d .brand:hover .brand-name { transform: translateX(2px); text-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
body.s3d .site-header .nav-links .navbtn { transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease; }
body.s3d .site-header .nav-links .navbtn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--rim), 0 3px 0 -1px var(--edge); }
body.s3d .site-header .nav-links .navbtn.on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.s3d .site-header .nav-links .navbtn.on::after { left: 30%; right: 30%; animation: hdrPulse 2.4s ease-in-out infinite; }
@keyframes hdrPulse { 0%, 100% { box-shadow: 0 0 6px var(--accent); } 50% { box-shadow: 0 0 14px var(--accent); } }
body.s3d .site-header .nav-tools > .navbtn, body.s3d .site-header .nav-tools .desk-only > .navbtn, body.s3d .site-header .nav-tools .mode-toggle, body.s3d .site-header .um-btn {
  border: 1px solid var(--line-2); background: var(--surface); box-shadow: inset 0 1px 0 var(--rim), 0 3px 0 -1px var(--edge); transition: transform .15s ease, box-shadow .15s ease; }
body.s3d .site-header .nav-tools > .navbtn:hover, body.s3d .site-header .nav-tools .desk-only > .navbtn:hover, body.s3d .site-header .nav-tools .mode-toggle:hover, body.s3d .site-header .um-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--rim), 0 5px 0 -1px var(--edge); }
body.s3d .site-header .nav-tools > .navbtn:active, body.s3d .site-header .um-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--rim), 0 1px 0 -1px var(--edge); }
body.s3d .site-header .search input { transition: box-shadow .2s, border-color .2s, transform .2s; }
body.s3d .site-header .search:focus-within input { transform: translateY(-1px); }
body.s3d .site-header .cart-btn .dot-badge { animation: hdrBadge 2.8s ease-in-out infinite; }
@keyframes hdrBadge { 0%, 85%, 100% { transform: scale(1); } 90% { transform: scale(1.25); } }
body.s3d .site-header .cat.on { box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--accent) 55%, var(--edge)); }
@media (prefers-reduced-motion: reduce) {
  .announce.a3d, .ann-shine, .ann-dots i, .ann-cube-in, .a3d .ann-ticket, body.s3d .site-header::after, body.s3d .brand-cube span, body.s3d .site-header .nav-links .navbtn.on::after, body.s3d .site-header .cart-btn .dot-badge { animation: none !important; }
  .ann-dots, .ann-shine { display: none; }
}
@media (max-width: 640px) {
  .announce .container { font-size: 13px; }
  .ann-cube { display: none; }
  .announce-in:has(.ann-close) { padding-left: 8px; padding-right: 40px; }
  .ann-ticket-code { font-size: 12.5px; padding-left: 10px; }
}
@media (max-width: 640px) {
  .announce .container { gap: 4px 8px; padding-top: 6px; padding-bottom: 6px; line-height: 1.35; }
  .ann-ticket-cta span { display: none; }
  .ann-ticket-cta { padding: 3px 8px; }
  .ann-ticket-code { padding: 2px 8px; font-size: 12px; }
  .ann-link { padding: 2px 10px; font-size: 12.5px; box-shadow: none; }
  .ann-close { width: 26px; height: 26px; right: 6px; }
}
@media (max-width: 640px) {
  .announce .announce-in { display: block; text-align: center; }
  .announce .ann-text { display: inline; }
  .announce .ann-ticket { vertical-align: middle; }
  .announce .ann-link { margin-left: 4px; vertical-align: middle; }
}

/* ===== v40: font picker ===== */
.font-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.font-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.font-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.font-opt input { margin-top: 5px; }
.font-prev { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.font-prev b { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.font-prev span { font-size: 14px; color: var(--text-2); }

/* ---------- v41: add-ons, wallet & gift cards, flash sale, recommendations, licence domains, alerts ---------- */
.linkish { background: none; border: 0; padding: 0 0 0 4px; color: var(--accent-text); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkish:hover { color: var(--text); }
.domain-box { border-style: solid; border-color: var(--line-2); box-shadow: none; }
.domain-box .icon { color: var(--cyan); }
.domain-box form { margin: 0; }
.um-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green-text); }

/* Checkout add-ons */
.addon-list { display: grid; gap: 10px; }
.addon-pick { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.addon-pick:hover { border-color: var(--line-3); transform: translateY(-1px); }
.addon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.addon-tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-3); display: grid; place-items: center; color: transparent; transition: all .15s; }
.addon-pick.on, .addon-pick:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--accent); }
.addon-pick.on .addon-tick, .addon-pick:has(input:checked) .addon-tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.addon-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.addon-price { white-space: nowrap; font-family: var(--display); color: var(--green-text); }

/* Flash sale bar */
.flash-sale-bar { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, #E5484D, #F2602B 45%, #FFB020); border-bottom: 1px solid rgba(0,0,0,.25); }
.flash-sale-bar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px); animation: fsSlide 14s linear infinite; pointer-events: none; }
@keyframes fsSlide { to { background-position: 280px 0; } }
.flash-sale-in { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 9px; padding-bottom: 9px; font-size: 14px; }
.fs-bolt { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.2); animation: fsPulse 1.6s ease-in-out infinite; }
@keyframes fsPulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,255,255,.15); } }
.fs-title b { font-family: var(--display); font-size: 15px; letter-spacing: .01em; text-transform: uppercase; }
.fs-off { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #C2261C; font-weight: 800; }
.fs-clock { display: inline-flex; gap: 6px; }
.fs-clock > span { display: inline-flex; align-items: baseline; gap: 2px; padding: 3px 7px; border-radius: 8px; background: rgba(0,0,0,.28); font-variant-numeric: tabular-nums; }
.fs-clock b { font-family: var(--mono); font-size: 15px; }
.fs-clock i { font-style: normal; font-size: 11px; opacity: .8; }
.fs-go { color: #fff; font-weight: 700; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.25); }
.fs-go:hover { background: rgba(0,0,0,.4); color: #fff; }
.nav-flash { color: #FF9A6B !important; display: inline-flex; align-items: center; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .flash-sale-bar::before, .fs-bolt { animation: none; } }
@media (max-width: 560px) { .flash-sale-in { font-size: 13px; gap: 6px 10px; } .fs-bolt { display: none; } .fs-clock b { font-size: 13px; } }

/* Recommendations */
.reco { margin-top: 8px; }
.reco-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Wallet */
.wallet-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.wbal-card { position: relative; flex: 0 1 380px; min-width: 260px; min-height: 200px; padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 60%), linear-gradient(135deg, var(--accent), var(--accent-dark) 70%, #1a1240);
  box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25); transform: perspective(900px) rotateX(4deg) rotateY(-6deg); transition: transform .4s; }
.wbal-card:hover { transform: perspective(900px) rotateX(0) rotateY(0); }
.wbal-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%; border: 30px solid rgba(255,255,255,.08); }
.wb-chip { position: absolute; top: 24px; left: 26px; width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f7d87a, #c99a2e); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.wb-label { opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.wb-amount { font-family: var(--display); font-size: clamp(34px, 6vw, 46px); letter-spacing: -0.02em; line-height: 1.05; }
.wb-foot { opacity: .75; }

/* Gift cards */
.gift-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.gift-card-art { position: relative; flex: 0 1 340px; min-width: 240px; aspect-ratio: 1.6; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #F472B6, var(--accent) 55%, #22D3EE); box-shadow: 0 24px 48px -20px rgba(124,92,255,.7); transform: rotate(-4deg); animation: gcaFloat 6s ease-in-out infinite; }
@keyframes gcaFloat { 50% { transform: rotate(-2deg) translateY(-8px); } }
.gca-shine { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); animation: gcaShine 4.5s ease-in-out infinite; }
@keyframes gcaShine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.gca-site { position: relative; font-weight: 700; letter-spacing: .04em; }
.gca-amount { position: relative; font-family: var(--display); font-size: clamp(34px, 6vw, 48px); }
.gca-code { position: relative; font-size: 13px; opacity: .85; letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { .gift-card-art, .gca-shine { animation: none; } }
.amount-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.amount-chip { min-width: 86px; text-align: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; transition: all .15s; }
.amount-chip:hover { border-color: var(--line-3); transform: translateY(-1px); color: var(--text); }
.amount-chip.on { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--accent); }

/* Membership auto-renew */
.auto-renew { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Admin helpers */
.two-col-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

html[data-mode="light"] .addon-pick, html[data-mode="light"] .amount-chip { background: var(--surface); }

/* ---------- v42: admin error log ---------- */
.log-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.log-filter .field:first-child { flex: 0 1 220px; }
.log-filter .grow { flex: 1 1 240px; }
.log-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.log-chips .fchip b { margin-left: 4px; font-weight: 700; opacity: .75; }
.log-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--dim); }
.log-dot.red { background: #E5484D; } .log-dot.pink { background: var(--pink); } .log-dot.amber { background: var(--amber); } .log-dot.violet { background: var(--accent); } .log-dot.cyan { background: var(--cyan); } .log-dot.green { background: var(--green); }
.log-item { padding: 0; border-left: 4px solid var(--line-3); overflow: hidden; }
.log-item.red { border-left-color: #E5484D; } .log-item.pink { border-left-color: var(--pink); } .log-item.amber { border-left-color: var(--amber); } .log-item.violet { border-left-color: var(--accent); } .log-item.cyan { border-left-color: var(--cyan); } .log-item.green { border-left-color: var(--green); }
.log-item summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.log-item summary::-webkit-details-marker { display: none; }
.log-item summary:hover { background: var(--hover-bg); }
.log-msg { min-width: 0; font-family: var(--mono); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.log-item[open] .log-msg { -webkit-line-clamp: unset; }
.log-meta { white-space: nowrap; text-align: right; }
.log-count { color: var(--text); }
.log-detail { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.log-detail pre { width: 100%; margin: 0; padding: 12px 14px; max-height: 360px; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font: 12px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
@media (max-width: 640px) { .log-item summary { grid-template-columns: 1fr; gap: 6px; } .log-meta { text-align: left; } .log-item summary .badge { justify-self: start; } }
.stat.red { border-top-color: #E5484D; }

/* ---------- v43: go-live & safety ---------- */
.golive-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.golive-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: 0 0 auto;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%), conic-gradient(var(--green) calc(var(--p) * 1%), var(--surface-3) 0); }
.golive-ring b { font-family: var(--display); font-size: 28px; line-height: 1; }
.gl-pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.gl-pill.ok { color: var(--green-text); } .gl-pill.warn { color: var(--amber-text); } .gl-pill.fail { color: var(--red-text); }
.gl-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-left: 4px solid var(--line-3); flex-wrap: wrap; }
.gl-item.ok { border-left-color: var(--green); } .gl-item.warn { border-left-color: var(--amber); } .gl-item.fail { border-left-color: #E5484D; }
.gl-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.gl-item.ok .gl-icon { background: rgba(34,197,94,.15); color: var(--green-text); }
.gl-item.warn .gl-icon { background: rgba(255,176,32,.15); color: var(--amber-text); }
.gl-item.fail .gl-icon { background: rgba(229,72,77,.15); color: var(--red-text); }
.job-report { margin: 0; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font: 12px/1.6 var(--mono); white-space: pre-wrap; color: var(--text-2); }
.copy-field { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* ---------- v44: live chat ---------- */
.lc { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.lc.left { right: auto; left: 20px; align-items: flex-start; }
.lc > * { pointer-events: auto; }
.lc-launch { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 700 15px/1 var(--font);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s ease, box-shadow .2s ease; }
.lc-launch:hover { transform: translateY(-2px); }
.lc-launch:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, #fff); outline-offset: 3px; }
.lc-launch-icon { display: grid; place-items: center; }
.lc.is-open .lc-launch { padding: 0; width: 56px; justify-content: center; }
.lc.is-open .lc-launch-label, .lc.is-open .lc-launch > .lc-presence { display: none; }
.lc-facade { position: fixed; z-index: 90; right: 20px; bottom: 20px; }
.lc-facade.left { right: auto; left: 20px; }
.lc-facade.busy { opacity: .7; cursor: progress; }
.lc-presence { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--dim); border: 2px solid var(--surface); }
.lc-launch > .lc-presence { top: 6px; left: 36px; border-color: var(--accent-dark); }
.lc-presence.on { background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: lcPulse 2.4s infinite; }
@keyframes lcPulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lc-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--bg); }
.lc-panel { width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px var(--shadow-strong); transform-origin: bottom right; animation: lcIn .22s cubic-bezier(.2,.9,.3,1.2); }
.lc.left .lc-panel { transform-origin: bottom left; }
.lc-panel[hidden] { display: none; }
@keyframes lcIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.lc-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent-soft) 45%, transparent), transparent 55%), linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.lc-avatar { position: relative; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.lc-avatar .lc-presence { right: -3px; bottom: -3px; border-color: var(--accent-dark); }
.lc-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-head-text b { font-family: var(--display); font-size: 16px; }
.lc-head-text .small { opacity: .85; }
.lc-icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lc-icon-btn:hover { background: rgba(255,255,255,.26); }
.lc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-2); }
.lc-view { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow-y: auto; }
.lc-view[hidden] { display: none; }
.lc-chat { padding: 0; gap: 0; }
.lc-form { display: flex; flex-direction: column; gap: 8px; }
.lc-form .input { background: var(--surface); }
.lc-error { margin: 0; color: var(--red-text); }
.lc-done { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 0; color: var(--green-text); }
.lc-done b { color: var(--text); }
.lc-msgs { list-style: none; margin: 0; padding: 16px; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.lc-msg { display: flex; flex-direction: column; gap: 3px; max-width: 84%; animation: lcMsg .2s ease; }
@keyframes lcMsg { from { opacity: 0; transform: translateY(6px); } }
.lc-msg.me { align-self: flex-end; align-items: flex-end; }
.lc-msg.them { align-self: flex-start; }
.lc-msg.sys { align-self: center; max-width: 100%; }
.lc-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.lc-msg.them .lc-bubble { background: var(--surface); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; color: var(--text); }
.lc-msg.me .lc-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.lc-msg.me .lc-bubble a { color: #fff; }
.lc-msg.sys .lc-bubble { padding: 4px 12px; font-size: 12.5px; color: var(--dim); background: transparent; }
.lc-meta { font-size: 11px; color: var(--dim); padding: 0 4px; }
.lc-typing { display: flex; align-items: center; gap: 4px; padding: 0 18px 8px; color: var(--dim); }
.lc-typing[hidden] { display: none; }
.lc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: lcDot 1.2s infinite; }
.lc-typing span:nth-child(2) { animation-delay: .15s; } .lc-typing span:nth-child(3) { animation-delay: .3s; margin-right: 4px; }
@keyframes lcDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.lc-ended { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.lc-ended[hidden] { display: none; }
.lc-stars { display: flex; gap: 4px; }
.lc-stars button { border: 0; background: none; padding: 4px; cursor: pointer; fill: var(--surface-3); }
.lc-stars { flex-direction: row-reverse; }
.lc-stars button:hover, .lc-stars button:hover ~ button, .lc-stars button.on { fill: var(--amber); }
.lc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.lc-compose[hidden] { display: none; }
.lc-compose textarea { flex: 1; resize: none; border: 0; background: transparent; color: var(--text); font: 15px/1.4 var(--font); padding: 9px 0; max-height: 120px; outline: none; }
.lc-send { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lc-send:hover { background: var(--accent-dark); }
.lc-foot { padding: 8px 16px; text-align: center; background: var(--surface); border-top: 1px solid var(--line); }
.lc-foot a { color: inherit; }
html[data-mode="light"] .lc-msg.them .lc-bubble { background: #fff; }
@media (prefers-reduced-motion: reduce) { .lc-panel, .lc-msg, .lc-presence.on, .lc-typing span { animation: none; } }
@media (max-width: 760px) {
  .lc { right: 14px; bottom: 14px; }
  .lc.left { left: 14px; }
  .lc-facade { right: 14px; bottom: 14px; }
  .lc-launch { height: 52px; padding: 0 16px 0 13px; }
  .lc-launch-label { display: none; }
  .lc-launch { width: 52px; padding: 0; justify-content: center; }
  .lc-launch > .lc-presence { top: 4px; left: auto; right: 4px; }
  .lc.is-open { inset: 0; right: 0; bottom: 0; left: 0; z-index: 130; }
  .lc.is-open .lc-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .lc.is-open .lc-launch { display: none; }
  body:has(.app-bar) .lc:not(.is-open), body:has(.app-bar) .lc-facade { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.mobile-buy) .lc:not(.is-open), body:has(.mobile-buy) .lc-facade { bottom: 84px; }
  body:has(.app-bar):has(.mobile-buy) .lc:not(.is-open), body:has(.app-bar):has(.mobile-buy) .lc-facade { bottom: calc(140px + env(safe-area-inset-bottom)); }
}
@media print { .lc, .lc-facade { display: none !important; } }

/* Admin inbox */
.lci { display: grid; grid-template-columns: 300px minmax(0, 1fr) 260px; gap: 16px; align-items: stretch; min-height: 560px; }
.lci:not(:has(.lci-info)) { grid-template-columns: 300px minmax(0, 1fr); }
.lci-list { display: flex; flex-direction: column; min-height: 0; max-height: 72vh; padding: 12px; gap: 10px; }
.lci-search .input { width: 100%; }
.lci-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lci-items { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.lci-empty { padding: 18px 6px; text-align: center; }
.lci-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.lci-item:hover { background: var(--hover-bg); color: var(--text); }
.lci-item.on { background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.lci-avatar { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--cyan-dark)); }
.lci-avatar.big { width: 44px; height: 44px; }
.lci-avatar .lc-presence { right: -3px; bottom: -3px; border-color: var(--surface); }
.lci-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lci-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lci-conv { display: flex; flex-direction: column; min-height: 0; max-height: 72vh; padding: 0; overflow: hidden; }
.lci-blank { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 20px; color: var(--dim); }
.lci-blank b { color: var(--text); }
.lci-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lci-msgs { background: var(--bg-2); }
.lci-closed { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); }
.lci-compose { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.lci-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.lci-compose-row textarea { flex: 1; resize: vertical; min-height: 46px; }
.lci-quick { align-self: flex-start; max-width: 100%; }
.lci-info { max-height: 72vh; overflow-y: auto; }
.lci-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; }
.lci-dl dt { color: var(--dim); }
.lci-dl dd { margin: 0; overflow-wrap: anywhere; }
.lci-order { display: block; color: var(--text-2); text-decoration: none; }
.lci-order:hover { color: var(--accent-text); }
.lc-avail { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; gap: 8px; }
.chat-providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chat-prov { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--bg-2); }
.chat-prov:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--accent); }
.chat-prov > span { display: flex; flex-direction: column; gap: 2px; }
.chat-prov input { margin-top: 3px; }
@media (max-width: 1100px) { .lci { grid-template-columns: 260px minmax(0, 1fr); } .lci-info { grid-column: 1 / -1; max-height: none; } }
@media (max-width: 760px) { .lci, .lci:not(:has(.lci-info)) { grid-template-columns: 1fr; } .lci-list { max-height: 40vh; } .lci-conv { max-height: none; min-height: 60vh; } }

/* ---------- v45: Glass 3D design (Admin › Theme, header & footer › Design) ---------- */
html[data-style="glass"] {
  --surface: rgba(255,255,255,.065);
  --surface-2: rgba(255,255,255,.09);
  --surface-3: rgba(255,255,255,.14);
  --bg-2: rgba(8,10,24,.38);
  --line: rgba(255,255,255,.13);
  --line-2: rgba(255,255,255,.2);
  --line-3: rgba(255,255,255,.3);
  --header-bg: rgba(14,16,34,.42);
  --footer-bg: rgba(10,12,26,.4);
  --menu-bg: rgba(22,24,46,.82);
  --field-bg: rgba(255,255,255,.07);
  --hover-bg: rgba(255,255,255,.09);
  --sel-bg: color-mix(in srgb, var(--accent) 24%, rgba(255,255,255,.04));
  --glass-blur: blur(20px) saturate(170%);
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.035);
  --glass-shadow: 0 24px 60px -24px rgba(0,0,0,.65);
}
html[data-style="glass"][data-mode="light"] {
  --surface: rgba(255,255,255,.52);
  --surface-2: rgba(255,255,255,.6);
  --surface-3: rgba(255,255,255,.78);
  --bg-2: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.75);
  --line-2: rgba(110,120,165,.3);
  --line-3: rgba(110,120,165,.45);
  --header-bg: rgba(255,255,255,.5);
  --footer-bg: rgba(255,255,255,.45);
  --menu-bg: rgba(255,255,255,.9);
  --field-bg: rgba(255,255,255,.62);
  --hover-bg: rgba(255,255,255,.55);
  --sel-bg: color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.7));
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.35);
  --glass-shadow: 0 24px 50px -26px rgba(40,46,90,.35);
}
html[data-style="glass"] body { background: radial-gradient(ellipse at 15% 0%, #1a1240 0%, transparent 55%), radial-gradient(ellipse at 100% 30%, #062a3a 0%, transparent 50%), radial-gradient(ellipse at 50% 110%, #2a0f33 0%, transparent 55%), #05060f; background-attachment: fixed; }
html[data-style="glass"][data-mode="light"] body { background: radial-gradient(ellipse at 10% 0%, #e7dcff 0%, transparent 55%), radial-gradient(ellipse at 100% 25%, #cdeffd 0%, transparent 50%), radial-gradient(ellipse at 50% 110%, #ffe0ef 0%, transparent 55%), #f2f4fb; background-attachment: fixed; }

/* Frosted surfaces */
html[data-style="glass"] :is(.panel, .pcard, .pill, .fchip, .site-header, .site-footer, .cat-menu, .um-list, .cookie-bar, .lc-panel, .mobile-buy, .app-bar, .to-top, .np-card, .sf-tile, .empty, .member-status, .flash, .toast, .ann-bar) {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
html[data-style="glass"] :is(.panel, .pcard) { box-shadow: var(--glass-edge), var(--glass-shadow); border-color: var(--line); }
html[data-style="glass"] .site-header { background: var(--header-bg); border-bottom-color: rgba(255,255,255,.1); box-shadow: 0 10px 40px -20px rgba(0,0,0,.5); }
html[data-style="glass"] .site-footer, html[data-style="glass"] .site-footer.v2 { background: var(--footer-bg); }
html[data-style="glass"] .input, html[data-style="glass"] select.input, html[data-style="glass"] textarea.input { background: var(--field-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-style="glass"] .hero { background: radial-gradient(ellipse at 78% 40%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 58%), radial-gradient(ellipse at 95% 90%, rgba(34,211,238,.2), transparent 50%), rgba(255,255,255,.05); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), var(--glass-shadow); }
html[data-style="glass"][data-mode="light"] .hero { background: radial-gradient(ellipse at 78% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%), radial-gradient(ellipse at 95% 90%, rgba(34,211,238,.16), transparent 50%), rgba(255,255,255,.5); }
/* A light sweep across cards and panels on hover */
html[data-style="glass"] .pcard { background-image: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-position .9s ease; }
html[data-style="glass"] .pcard-wrap:hover .pcard { background-position: -30% 0; border-color: rgba(255,255,255,.3); box-shadow: var(--glass-edge), 0 30px 70px -26px color-mix(in srgb, var(--accent) 55%, transparent); }
html[data-style="glass"] .btn-primary { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
html[data-style="glass"] .btn-ghost { background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-style="glass"][data-mode="light"] .btn-ghost { background: rgba(255,255,255,.6); }

/* Moving 3D background */
html[data-style="glass"] .bg3d .bg-orb { opacity: .9; filter: blur(10px); }
html[data-style="glass"] .bg3d .bg-grid { opacity: .55; }
.bg-aurora, .g-scene, .bg-noise { display: none; }
html[data-style="glass"] .bg-aurora { display: block; position: absolute; inset: -20%; opacity: .55; filter: blur(70px);
  background: conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--accent) 70%, transparent), rgba(34,211,238,.45), rgba(244,114,182,.45), rgba(255,176,32,.25), color-mix(in srgb, var(--accent) 70%, transparent));
  animation: gAurora 40s linear infinite; mix-blend-mode: screen; }
html[data-style="glass"][data-mode="light"] .bg-aurora { opacity: .35; mix-blend-mode: multiply; filter: blur(80px) saturate(80%); }
@keyframes gAurora { to { transform: rotate(360deg) scale(1.1); } }
html[data-style="glass"] .g-scene { display: block; position: absolute; inset: 0; perspective: 1000px; transform-style: preserve-3d; }
.g-cube { position: absolute; width: 130px; height: 130px; transform-style: preserve-3d; animation: gSpin 36s linear infinite; }
.g-cube b { position: absolute; inset: 0; border-radius: 18px; border: 1px solid rgba(255,255,255,.32); background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02) 60%), color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 30px rgba(255,255,255,.06); }
.g-cube b:nth-child(1) { transform: translateZ(65px); }
.g-cube b:nth-child(2) { transform: rotateY(180deg) translateZ(65px); }
.g-cube b:nth-child(3) { transform: rotateY(90deg) translateZ(65px); }
.g-cube b:nth-child(4) { transform: rotateY(-90deg) translateZ(65px); }
.g-cube b:nth-child(5) { transform: rotateX(90deg) translateZ(65px); }
.g-cube b:nth-child(6) { transform: rotateX(-90deg) translateZ(65px); }
.g-cube.c1 { right: 7vw; top: 22vh; }
.g-cube.c2 { left: 4vw; bottom: 14vh; width: 80px; height: 80px; animation-duration: 28s; animation-direction: reverse; }
.g-cube.c2 b:nth-child(1) { transform: translateZ(40px); } .g-cube.c2 b:nth-child(2) { transform: rotateY(180deg) translateZ(40px); }
.g-cube.c2 b:nth-child(3) { transform: rotateY(90deg) translateZ(40px); } .g-cube.c2 b:nth-child(4) { transform: rotateY(-90deg) translateZ(40px); }
.g-cube.c2 b:nth-child(5) { transform: rotateX(90deg) translateZ(40px); } .g-cube.c2 b:nth-child(6) { transform: rotateX(-90deg) translateZ(40px); }
@keyframes gSpin { from { transform: rotateX(-20deg) rotateY(0) translateY(0); } 50% { transform: rotateX(25deg) rotateY(180deg) translateY(-24px); } to { transform: rotateX(-20deg) rotateY(360deg) translateY(0); } }
.g-ring { position: absolute; border-radius: 50%; border: 14px solid transparent; background: linear-gradient(135deg, rgba(255,255,255,.4), color-mix(in srgb, var(--accent) 50%, transparent), rgba(34,211,238,.35)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); animation: gRing 24s ease-in-out infinite; opacity: .7; }
.g-ring.r1 { width: 220px; height: 220px; left: 12vw; top: 14vh; }
.g-ring.r2 { width: 140px; height: 140px; right: 18vw; bottom: 10vh; animation-duration: 30s; animation-direction: reverse; border-width: 10px; }
@keyframes gRing { 0%, 100% { transform: rotateX(62deg) rotateZ(0deg) translateY(0); } 50% { transform: rotateX(48deg) rotateY(20deg) rotateZ(180deg) translateY(-30px); } }
.g-ball { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.75), rgba(255,255,255,.12) 22%, color-mix(in srgb, var(--accent) 35%, transparent) 60%, rgba(255,255,255,.05) 100%);
  box-shadow: inset -10px -14px 30px rgba(0,0,0,.18), 0 20px 40px -20px color-mix(in srgb, var(--accent) 60%, transparent); animation: gFloat 14s ease-in-out infinite; }
.g-ball.b1 { width: 90px; height: 90px; left: 46vw; top: 9vh; }
.g-ball.b2 { width: 54px; height: 54px; right: 32vw; top: 62vh; animation-delay: -5s; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.8), rgba(255,255,255,.1) 22%, rgba(34,211,238,.35) 60%, rgba(255,255,255,.04)); }
.g-ball.b3 { width: 34px; height: 34px; left: 26vw; top: 70vh; animation-delay: -9s; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.8), rgba(255,255,255,.1) 22%, rgba(244,114,182,.4) 60%, rgba(255,255,255,.04)); }
@keyframes gFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(18px, -26px, 40px); } 66% { transform: translate3d(-14px, 16px, -30px); } }
html[data-style="glass"] .bg-noise { display: block; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }
html[data-style="glass"][data-mode="light"] .g-cube b { border-color: rgba(255,255,255,.9); background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.15) 60%), color-mix(in srgb, var(--accent) 10%, transparent); }
html[data-style="glass"][data-mode="light"] .bg-noise { display: none; }
/* Older browsers without frosted glass: a little more solid so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-style="glass"] { --surface: rgba(24,26,48,.88); --surface-2: rgba(30,32,56,.9); --header-bg: rgba(14,16,34,.92); --footer-bg: rgba(10,12,26,.92); --bg-2: rgba(14,16,30,.9); }
  html[data-style="glass"][data-mode="light"] { --surface: rgba(255,255,255,.9); --surface-2: rgba(255,255,255,.92); --header-bg: rgba(255,255,255,.94); --footer-bg: rgba(255,255,255,.94); --bg-2: rgba(245,247,252,.92); }
}
@media (max-width: 760px) {
  html[data-style="glass"] { --glass-blur: blur(12px) saturate(160%); }
  .g-cube.c2, .g-ring.r2, .g-ball.b3 { display: none; }
  .g-cube.c1 { right: -30px; top: 30vh; transform: scale(.7); }
  .g-ring.r1 { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-aurora, .g-cube, .g-ring, .g-ball { animation: none !important; }
}
@media print { .bg-aurora, .g-scene { display: none !important; } }

/* Admin › Theme: design picker */
.style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.style-opt { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; cursor: pointer; background: var(--bg-2); }
.style-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.style-opt input { position: absolute; opacity: 0; }
.style-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-prev { position: relative; flex: 0 0 auto; width: 112px; height: 78px; border-radius: 12px; overflow: hidden; background: #0d1020; }
.style-prev.classic { background: #0B0D14; }
.style-prev.glass { background: radial-gradient(circle at 20% 10%, #2a1d66, transparent 60%), radial-gradient(circle at 90% 70%, #064055, transparent 55%), #070814; }
.style-prev .sp-orb { position: absolute; border-radius: 50%; filter: blur(8px); }
.style-prev.classic .sp-orb, .style-prev.classic .sp-cube { display: none; }
.style-prev .sp-orb.a { width: 50px; height: 50px; left: -6px; top: -8px; background: var(--accent); opacity: .7; }
.style-prev .sp-orb.b { width: 40px; height: 40px; right: -4px; bottom: -6px; background: #22D3EE; opacity: .5; }
.style-prev .sp-cube { position: absolute; width: 18px; height: 18px; right: 12px; top: 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; background: rgba(255,255,255,.15); transform: rotate(20deg); animation: spSpin 6s linear infinite; }
@keyframes spSpin { to { transform: rotate(380deg); } }
.style-prev .sp-card { position: absolute; left: 12px; right: 30px; height: 18px; border-radius: 6px; }
.style-prev .sp-card.c1 { top: 22px; } .style-prev .sp-card.c2 { top: 46px; right: 50px; }
.style-prev.classic .sp-card { background: #1B2030; border: 1px solid #2E3650; }
.style-prev.glass .sp-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- v46: responsive fixes from the all-screen-size test ---------- */
/* Phones zoom into fields with text smaller than 16px (iPhone) and the page then sits zoomed in. */
@media (max-width: 820px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; }
}
/* Touch: comfortable targets in the announcement bar */
@media (hover: none), (max-width: 760px) {
  .ann-close { width: 36px; height: 36px; right: 6px; }
  .ann-ticket { min-height: 32px; }
  .ann-ticket-code, .ann-ticket-cta { padding-top: 7px; padding-bottom: 7px; }
}
/* Text-style buttons (footer "Cookie settings" and similar): a taller touch area without changing the look */
@media (hover: none), (max-width: 900px) {
  .link-btn { min-height: 36px; padding: 6px 0; }
  .switch { width: 54px; height: 32px; }
  .switch::after { top: 4px; }
  .switch.on::after, input:checked + .switch::after { left: 27px; }
}
/* Tablets in portrait (761–900px) also show the bottom "Buy now" bar: keep the chat button and messages above it */
@media (min-width: 761px) and (max-width: 900px) {
  body:has(.mobile-buy) .lc:not(.is-open), body:has(.mobile-buy) .lc-facade { bottom: 88px; }
  body:has(.mobile-buy) .toast, body:has(.mobile-buy) .cookie-bar { bottom: 88px; }
}
/* Phones held sideways: the chat uses the whole screen, there is too little height for a floating box */
@media (max-height: 500px) and (orientation: landscape) {
  .lc.is-open { inset: 0; z-index: 130; }
  .lc.is-open .lc-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .lc.is-open .lc-launch { display: none; }
}

/* ---------- v46: responsive fixes ---------- */
/* The chat button waits until the visitor has answered the cookie bar (they share the bottom corner). */
@media (max-width: 1299px) {
  body:has([data-cookie-bar]:not([hidden])) .lc:not(.is-open), body:has([data-cookie-bar]:not([hidden])) .lc-facade { opacity: 0; visibility: hidden; transform: translateY(12px); }
}
.lc, .lc-facade { transition: opacity .25s ease, transform .25s ease, visibility .25s; }
/* Tablets with the bottom "Buy now" bar: the chat sits above it. */
@media (min-width: 761px) and (max-width: 900px) {
  body:has(.mobile-buy) .lc:not(.is-open), body:has(.mobile-buy) .lc-facade { bottom: 86px; }
  body:has(.mobile-buy) .lc.is-open { bottom: 86px; }
  body:has(.mobile-buy) .lc-panel { height: min(560px, calc(100vh - 190px)); }
}
/* Low landscape screens (phones turned sideways): the chat panel uses the full height. */
@media (max-height: 520px) {
  body .lc.is-open, body:has(.mobile-buy) .lc.is-open, body:has(.app-bar) .lc.is-open { inset: 0; right: 0; bottom: 0; left: 0; z-index: 130; }
  body:has(.lc.is-open) .mobile-buy, body:has(.lc.is-open) .app-bar { visibility: hidden; }
  .lc.is-open .lc-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .lc.is-open .lc-launch { display: none; }
  .lc-head { padding-top: 10px; padding-bottom: 10px; }
  .lc-foot { display: none; }
}
/* Bigger wishlist heart on touch screens */
@media (hover: none) { .pcard-wish button { width: 42px; height: 42px; } }
/* Admin tables on tablets and small laptops: action buttons stack instead of making the table scroll sideways. */
@media (max-width: 1280px) {
  .tbl td.actions { white-space: normal; min-width: 150px; }
  .tbl td.actions > form, .tbl td.actions > a, .tbl td.actions > details { display: block; margin: 0 0 6px; text-align: right; }
  .tbl td.actions > form .btn, .tbl td.actions > a.btn, .tbl td.actions > details > summary.btn { width: 100%; justify-content: center; }
}
/* Very small phones: a smaller chat button */
@media (max-width: 380px) {
  .lc-launch, .lc-facade { width: 46px; height: 46px; }
  .lc-launch svg, .lc-facade svg { width: 21px; height: 21px; }
}

/* ---------- v48: tidy admin menu and settings ---------- */
.nav-find { margin: 2px 0 8px; min-height: 38px; font-size: 14px; }
.nav-group { border-radius: 12px; }
.nav-group + .nav-group { margin-top: 2px; }
.nav-head { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 10px; cursor: pointer; list-style: none; color: var(--text-2); font-size: 14px; font-weight: 700; user-select: none; white-space: nowrap; }
.nav-head .grow { overflow: hidden; text-overflow: ellipsis; }
.nav-head::-webkit-details-marker { display: none; }
.nav-head:hover { background: var(--surface-2); color: var(--text); }
.nav-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); flex: none; }
.nav-caret { font-size: 11px; color: var(--dim); transition: transform .2s; }
.nav-group:not([open]) .nav-caret { transform: rotate(-90deg); }
.nav-group[data-current] > .nav-head { color: var(--text); }
.nav-items { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 14px; margin-left: 12px; border-left: 1px solid var(--line); }
.nav-items .side { min-height: 38px; font-size: 14px; }
.nav-head .count { margin-left: auto; }
.sidenav.finding .nav-group { display: none; }
.sidenav.finding .nav-group.has-hit { display: block; }
.sidenav.finding .side.miss { display: none; }
.nav-none { padding: 6px 10px; margin: 0; }
@media (max-width: 1024px) { .nav-items .side { min-height: 44px; } }
/* General settings: section bar and save button that stay in reach */
.set-jump { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin: -6px 0 4px; background: var(--bg); box-shadow: 0 10px 12px -10px var(--bg); }
.set-jump::-webkit-scrollbar { display: none; }
.set-jump .fchip { flex: none; }
.set-sec { scroll-margin-top: 70px; }
.set-save { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px var(--shadow-strong); align-self: stretch; }
/* All settings page */
.setup-find { position: relative; max-width: 620px; }
.setup-find .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.setup-find .input { padding-left: 42px; min-height: 52px; font-size: 16px; border-radius: 14px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.setup-group { padding: 18px; }
.setup-group h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 10px; }
.setup-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-group li > a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.setup-group li > a:hover { background: var(--hover-bg); }
.setup-group li > a b { font-weight: 600; }
.setup-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px 8px; }
.setup-sub .fchip { font-size: 12.5px; min-height: 30px; }
[data-setup-item].miss, .setup-group.miss { display: none !important; }

/* ---------- v49: licence key generator ---------- */
.lk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.lk-key { font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.lk-api summary { cursor: pointer; }
.lk-api .copy-field code { word-break: break-all; }

/* ---------- v50: domain validator, own products, installs ---------- */
.domain-ask { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--surface-2); color: var(--text); margin-bottom: 12px; }
.domain-ask-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; }
.domain-ask-text b { display: inline-flex; align-items: center; gap: 6px; }
.domain-ask-row { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; }
.domain-ask-row .input { flex: 1 1 auto; min-width: 0; }
.domain-ask-row .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .domain-ask-row { flex-direction: column; } }
.btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.own-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.lic-code { display: block; white-space: pre; overflow-x: auto; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.55; max-width: 100%; }
.lic-api-row { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 8px 14px; align-items: center; font-size: 14px; }
.lic-api-row code { word-break: break-all; }
@media (max-width: 560px) { .lic-api-row { grid-template-columns: 1fr; gap: 2px; } .lic-api-row > span { margin-top: 8px; } }
.inst-msg { display: flex; gap: 6px; }
.inst-msg .input { min-width: 0; flex: 1 1 160px; }

.inst-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.inst-acts .btn { width: 100%; justify-content: center; }
.inst-key { white-space: nowrap; }
