/* MemeBox site: one design system for the landing page, forms, buy page, legal pages and admin.
   Color themes: prefs.js sets <html data-theme="auto|light|dark|sunny|neon|candy">. "auto" follows
   the computer's light/dark setting. The extension has the same themes. */
:root {
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(28, 27, 32, .06), 0 2px 8px rgba(28, 27, 32, .05);
  --shadow: 0 10px 30px rgba(28, 27, 32, .10);
  --shadow-lg: 0 24px 60px rgba(28, 27, 32, .18);
}
:root, :root[data-theme="light"] {
  --bg: #fffdf6; --bg-2: #fff6d6; --card: #ffffff; --text: #1c1b20; --muted: #5d5f66; --line: #ece6d2; --field: #ffffff;
  --brand: #ffd43b; --brand-2: #ff922b; --brand-ink: #1c1b20; --accent: #7048e8; --focus: #1a73e8;
  --ok: #2b8a3e; --error: #c5221f; --error-bg: #fdecea;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]), :root[data-theme="auto"] {
    --bg: #141417; --bg-2: #1e1c16; --card: #1f1f24; --text: #ecebf0; --muted: #a3a4ad; --line: #34343c; --field: #18181c;
    --brand: #ffd43b; --brand-2: #ff922b; --brand-ink: #1c1b20; --accent: #9775fa; --focus: #74a9ff;
    --ok: #8ce99a; --error: #f28b82; --error-bg: #3b1f1d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141417; --bg-2: #1e1c16; --card: #1f1f24; --text: #ecebf0; --muted: #a3a4ad; --line: #34343c; --field: #18181c;
  --brand: #ffd43b; --brand-2: #ff922b; --brand-ink: #1c1b20; --accent: #9775fa; --focus: #74a9ff;
  --ok: #8ce99a; --error: #f28b82; --error-bg: #3b1f1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="sunny"] {
  --bg: #fff8d6; --bg-2: #ffec99; --card: #fffdf0; --text: #3d2c00; --muted: #7a6320; --line: #f3dd8a; --field: #fffef7;
  --brand: #ffd43b; --brand-2: #ff922b; --brand-ink: #3d2c00; --accent: #e8590c; --focus: #1864ab;
  --ok: #2b8a3e; --error: #c92a2a; --error-bg: #ffe3e3;
  color-scheme: light;
}
:root[data-theme="neon"] {
  --bg: #0d0820; --bg-2: #1a1038; --card: #1a1238; --text: #f3eaff; --muted: #b8a6e6; --line: #3b2d6e; --field: #130d2c;
  --brand: #f72585; --brand-2: #7209b7; --brand-ink: #ffffff; --accent: #4cc9f0; --focus: #4cc9f0;
  --ok: #80ffdb; --error: #ff8fab; --error-bg: #3a1030;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px rgba(114, 9, 183, .35); --shadow-lg: 0 24px 60px rgba(247, 37, 133, .3);
  color-scheme: dark;
}
:root[data-theme="candy"] {
  --bg: #fff0f6; --bg-2: #ffdeeb; --card: #ffffff; --text: #3b1030; --muted: #8c4a73; --line: #fcc2d7; --field: #fffafd;
  --brand: #faa2c1; --brand-2: #f06595; --brand-ink: #3b1030; --accent: #7048e8; --focus: #7048e8;
  --ok: #2b8a3e; --error: #c2255c; --error-bg: #ffdeeb;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Nirmala UI", Roboto, sans-serif; }
a { color: var(--focus); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 36px); margin: 12px 0 6px; }
h2 { font-size: 20px; margin: 0 0 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; }
.wrap.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: inherit; text-decoration: none; }
.brand img { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15)); }
.page-head { margin-bottom: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 16px; box-shadow: var(--shadow-sm); }
.card.narrow { max-width: 400px; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; background: color-mix(in srgb, var(--muted) 14%, transparent); padding: 2px 7px; border-radius: 7px; }

/* ---------- buttons ---------- */
button, .button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; border: 1px solid var(--line);
  padding: 11px 20px; background: var(--card); color: inherit; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
button:hover, .button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
button:active, .button:active { transform: translateY(0); }
button.primary, .button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: var(--brand-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-2) 40%, transparent); }
button.primary:hover, .button.primary:hover { filter: brightness(1.03); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-2) 50%, transparent); }
button:disabled { opacity: .6; cursor: default; transform: none; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.button.big, button.big { padding: 15px 26px; font-size: 17px; }

/* ---------- forms ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 750; margin-bottom: 10px; font-size: 17px; }
.faces { display: flex; gap: 12px; flex-wrap: wrap; }
.faces label { position: relative; cursor: pointer; display: grid; justify-items: center; gap: 6px; }
.faces input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.faces span[aria-hidden] { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  font-size: 34px; border: 2px solid var(--line); background: var(--field); transition: transform .12s, border-color .12s, background .12s; }
.faces label:hover span[aria-hidden] { transform: translateY(-2px) rotate(-3deg); }
.faces input:checked + span { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand) 45%, var(--field)); transform: scale(1.1); }
.faces input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.faces .sr { position: static; width: auto; height: auto; clip: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks.column { flex-direction: column; }
.checks label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--field); transition: border-color .12s, background .12s; }
.checks label:has(input:checked) { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand) 20%, var(--field)); }
.checks input { width: 18px; height: 18px; accent-color: var(--brand-2); margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 650; }
input, textarea, select { font: inherit; font-weight: 400; color: inherit; background: var(--field); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .12s, box-shadow .12s; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.error { color: var(--error); background: var(--error-bg); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { margin: 4px 0 12px; }
.thanks { text-align: center; padding: 44px 22px; }
.thanks h2 { font-size: 26px; }
.foot { margin-top: 24px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot .prefs { margin-left: auto; }
.page-bg { background:
  radial-gradient(900px 400px at 10% -10%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%),
  radial-gradient(700px 360px at 100% 0%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%), var(--bg); }

/* ---------- landing ---------- */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: inherit; text-decoration: none; font-weight: 650; opacity: .8; }
.nav nav a:hover { opacity: 1; }
.nav .button { padding: 9px 16px; font-size: 15px; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; margin: 18px 0 16px; letter-spacing: -.03em; }
.hl { background: linear-gradient(120deg, var(--brand-2), #f03e3e 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-right: 6px; }

.demo { position: relative; margin: 0; }
.frame { border-radius: 16px; overflow: hidden; background: #1f2023; box-shadow: var(--shadow-lg); border: 1px solid rgba(0, 0, 0, .2);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .4s ease; }
.frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.frame .dots { display: flex; gap: 6px; padding: 10px 12px; background: #2a2b2f; }
.frame .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; display: block; }
.frame .dots i:nth-child(2) { background: #fcc419; } .frame .dots i:nth-child(3) { background: #51cf66; }
.frame img { display: block; width: 100%; height: auto; }
.float { position: absolute; font-size: 38px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); animation: bob 3.2s ease-in-out infinite; z-index: 2; }
.float.f1 { top: -18px; left: -14px; }
.float.f2 { top: 30%; right: -22px; animation-delay: .8s; font-size: 32px; }
.float.f3 { bottom: -16px; left: 22%; animation-delay: 1.6s; font-size: 30px; }
.heard { position: absolute; right: 18px; bottom: -22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.heard .bars { display: inline-flex; gap: 3px; align-items: end; height: 18px; }
.heard .bars i { width: 4px; background: var(--brand-2); border-radius: 2px; display: block; animation: eq 1s ease-in-out infinite; }
.heard .bars i:nth-child(1) { height: 8px; } .heard .bars i:nth-child(2) { height: 16px; animation-delay: .2s; }
.heard .bars i:nth-child(3) { height: 11px; animation-delay: .4s; } .heard .bars i:nth-child(4) { height: 14px; animation-delay: .1s; }
figcaption { margin-top: 30px; text-align: center; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.1); } }

.works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding-top: 8px; padding-bottom: 8px; color: var(--muted); font-weight: 650; }
.works span.chip { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }

.section { font-size: clamp(28px, 4vw, 40px); margin: 40px 0 8px; text-align: center; letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 36em; font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.features .card { margin: 0; transition: transform .15s, box-shadow .15s; }
.features .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.features h3 { margin: 12px 0 6px; font-size: 19px; }
.features p { margin: 0; color: var(--muted); }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 60%, transparent), color-mix(in srgb, var(--brand-2) 35%, transparent)); }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; counter-reset: step; }
.how .card { margin: 0; position: relative; padding-top: 54px; }
.how .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.how b { font-size: 19px; display: block; margin-bottom: 6px; }
.how p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.plan { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { border: 2px solid transparent; background:
  linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent)) border-box; box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 40px; font-weight: 900; margin: 0; letter-spacing: -.02em; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; flex: 1; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-right: 8px; }
.badge { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
@media (prefers-color-scheme: dark) { .badge { color: #b197fc; } }

.band { margin-top: 44px; border-radius: 24px; padding: 34px; text-align: center; color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); }
.band h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 8px; }
.band p { margin: 0 0 20px; font-size: 18px; opacity: .85; }
.band .button { background: #1c1b20; color: #fff; border-color: transparent; }
.privacy-note { display: flex; gap: 18px; align-items: center; margin-top: 36px; }
.privacy-note .icon { flex: none; width: 60px; height: 60px; font-size: 30px; }
.privacy-note h2 { margin: 0 0 4px; }
.privacy-note p { margin: 0; color: var(--muted); }
.faq details { margin-bottom: 10px; padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 18px; color: var(--muted); }
.site-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); }
.site-foot a { color: inherit; }
.site-foot .brand { margin-right: auto; font-size: 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 40px; }
  .frame { transform: none; }
  .nav nav a:not(.button) { display: none; }
  .nav .prefs { gap: 6px; }
  .nav select.pref { padding: 6px 8px; font-size: 13px; max-width: 124px; }
  .nav, .nav nav { flex-wrap: wrap; row-gap: 8px; }
  .nav nav { min-width: 0; }
  .float.f1 { left: -4px; } .float.f2 { right: -2px; }
  .heard { right: 8px; }
}
@media (max-width: 560px) {
  .nav nav > a.button { display: none; } /* the hero has the big install button */
  .pref-label { font-size: 0; } .pref-label select { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- language and color pickers ---------- */
.prefs { display: inline-flex; gap: 8px; align-items: center; }
.pref-label { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; }
select.pref { width: auto; padding: 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--card); cursor: pointer; }
.site-foot .prefs { margin-left: auto; }

/* ---------- playful emoji ---------- */
button.poke { background: none; border: 0; padding: 0; box-shadow: none; cursor: pointer; line-height: 1; }
button.poke:hover { transform: scale(1.15); box-shadow: none; }
.poke.pop { animation: pop-emoji .45s ease; }
@keyframes pop-emoji { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-12deg); } 100% { transform: scale(1); } }
.fx-burst { position: fixed; z-index: 50; pointer-events: none; font-size: 26px; line-height: 1;
  animation: fx-fly 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes fx-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot)); }
}

/* ---------- try-it soundboard ---------- */
.try { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; padding: 22px; align-items: stretch; }
.stage { position: relative; background: #1f2023; border-radius: 16px; padding: 12px; min-height: 280px; overflow: hidden; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; }
.tile { position: relative; border-radius: 12px; display: grid; place-items: center; min-height: 118px; color: #fff; transition: box-shadow .2s; }
.tile b { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.tile span { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .4); padding: 2px 8px; border-radius: 6px; }
.t1 { background: #364fc7; } .t2 { background: #0b7285; } .t3 { background: #5f3dc4; } .t4 { background: #2b8a3e; }
.stage.talking .t4 { box-shadow: 0 0 0 4px var(--brand), 0 0 24px var(--brand); }
.stage-caption { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); width: 90%; text-align: center; pointer-events: none;
  font: 900 clamp(26px, 4.4vw, 46px)/1.05 Impact, "Anton", "Arial Black", "Nirmala UI", sans-serif; text-transform: uppercase;
  color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 #000, 0 6px 16px rgba(0, 0, 0, .5); opacity: 0; }
.stage-caption.show { animation: cap-pop 2.6s ease forwards; }
@keyframes cap-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(-4deg); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(1deg); }
  20% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
.board { display: grid; gap: 14px; align-content: start; }
.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.tone { padding: 8px 14px; font-size: 14px; }
.tone.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pad { justify-content: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 15px; text-align: start; background: var(--field); }
.pad .pe { font-size: 22px; }
.pad:hover { border-color: var(--brand-2); }
.pad.hit { animation: pad-hit .35s ease; }
@keyframes pad-hit { 0% { transform: scale(1); } 40% { transform: scale(.94); background: color-mix(in srgb, var(--brand) 40%, var(--field)); } 100% { transform: scale(1); } }
.try-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; color: var(--muted); font-weight: 600; }
button.linkish { background: none; border: 0; padding: 4px 8px; color: var(--focus); box-shadow: none; }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } .stage { min-height: 230px; } }

/* ---------- buy page ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.product { margin: 0; display: grid; gap: 8px; align-content: start; }
.product h2 { margin: 0; }
.product.best { border: 2px solid transparent; background:
  linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent)) border-box; box-shadow: var(--shadow); }
.product .price { font-size: 36px; font-weight: 900; margin: 0; letter-spacing: -.02em; }
.product p { margin: 0; }
.product button { margin-top: 8px; width: 100%; }
.topup summary { cursor: pointer; font-weight: 700; }
.topup .field { margin-top: 12px; }
.pay-grid { display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: start; margin: 14px 0 18px; }
#qr { width: 232px; height: 232px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.pay-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 20px; }
.keybox code { font-size: 22px; padding: 10px 14px; }
@media (max-width: 580px) { .pay-grid { grid-template-columns: 1fr; justify-items: center; } }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { flex: 1; }
.admin-head form { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr auto; gap: 8px; align-items: center; }
.bars progress { width: 100%; height: 12px; accent-color: var(--brand-2); }
.requests { margin: 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 650; }
.nowrap { white-space: nowrap; }
body.admin .wrap > .card { margin-top: 16px; }
form.inline { display: inline; margin: 0; }
form.inline button { padding: 7px 14px; font-size: 14px; }
.keyform { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin-bottom: 16px; }
.keyform label { display: grid; gap: 4px; font-weight: 650; font-size: 14px; }
.keyform label.check { display: flex; align-items: center; gap: 6px; }
.keyform input[type=number] { width: 110px; }
.keyform input, .keyform select { width: auto; }
.notice { background: #ebfbee; color: #1b5e20; border: 1px solid #b2f2bb; padding: 12px 16px; border-radius: 14px; margin-top: 16px; font-weight: 600; }
.section-title { margin-top: 28px; }
@media (prefers-color-scheme: dark) { .notice { background: #16301c; color: #b2f2bb; border-color: #2b8a3e; } }

/* ---------- legal pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 30px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
