/* =========================================================
   SecretVN — bright gradient, chunky white cards, bold type
   ========================================================= */
:root {
  --grad: linear-gradient(160deg, #5b2bef 0%, #a52ce6 48%, #ff4f8b 100%);   /* brand gradient */
  --grad-soft: linear-gradient(160deg, #efe9ff 0%, #f8ebff 50%, #ffe9f1 100%);
  --bg: #f6f3fc;          /* light lilac canvas */
  --bg-2: #f1eef8;        /* inputs, soft bands */
  --surface: #ffffff;     /* cards */
  --surface-2: #f5f2fa;   /* raised / hover */
  --surface-3: #ebe6f4;
  --line: #ebe7f2;
  --line-2: #ddd7e8;
  --text: #2b2837;
  --text-strong: #121019;
  --muted: #6f6a80;
  --faint: #9a95a9;
  --ink: #121019;         /* black pill buttons */
  --accent: #7c3aed;      /* violet */
  --accent-d: #6d28d9;
  --accent-ink: #ffffff;
  --accent-soft: rgba(124, 58, 237, .10);
  --accent-line: rgba(124, 58, 237, .26);
  --teal: #0e9f8b;
  --teal-soft: rgba(14, 159, 139, .10);
  --warn: #b7791f;
  --warn-soft: rgba(183, 121, 31, .12);
  --bad: #e11d48;
  --bad-soft: rgba(225, 29, 72, .09);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(60, 24, 120, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--text-strong); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { margin-top: 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sec-head h2 { font-size: 36px; letter-spacing: -.035em; margin-top: 10px; }
.sec-head p { color: var(--muted); font-size: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--text-strong); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .12s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ada1f5; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--surface-2); color: var(--text-strong); border-color: var(--line); }
.btn-soft:hover { background: var(--surface-3); }
.btn-teal { background: var(--teal); color: #0b1f1c; }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(226,128,139,.3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: transparent; color: var(--text); position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text-strong); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.pill-teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(95,194,180,.3); }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(214,167,94,.3); }
.pill-bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(226,128,139,.3); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 17, 24, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; color: var(--text-strong); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, var(--accent), var(--teal)); color: #14112a; }
.brand-word em { font-style: normal; color: var(--accent); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.main-nav a:hover { color: var(--text-strong); background: var(--surface); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge-inline { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--line); }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover { background: var(--surface); }
.acct-name { font-weight: 600; font-size: 14px; color: var(--text-strong); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.acct-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.acct-menu a:hover { background: var(--surface-2); color: var(--text-strong); }
.acct-head { padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-head strong { display: block; color: var(--text-strong); }
.acct-head small { color: var(--muted); }

/* drawer */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 12, .65); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 16px; animation: slideIn .22s ease; overflow-y: auto; }
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 500; }
.drawer nav a:not(.btn):hover { background: var(--surface); }
.drawer nav .btn { margin-top: 12px; }

/* flash & toast */
.flash-wrap { margin-top: 16px; display: grid; gap: 8px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(95,194,180,.25); }
.flash-error { background: var(--bad-soft); color: var(--bad); border-color: rgba(226,128,139,.25); }
.flash-info { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--surface-3); color: var(--text-strong); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; display: flex; align-items: center; gap: 10px; animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- avatar & ghost ---------- */
.avatar { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(140deg, #2b2650, #1b3a3a); color: var(--text-strong); font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; }
.avatar img.img-failed { display: none; }
.avatar-ini { letter-spacing: -.02em; }
.ghost-badge { display: inline-grid; place-items: center; border-radius: 50%; flex: none; background: hsl(var(--h) 45% 22%); color: hsl(var(--h) 70% 78%); border: 1px solid hsl(var(--h) 40% 34%); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 500px at 85% 20%, rgba(157,143,240,.16), transparent 60%),
  radial-gradient(700px 400px at 10% 90%, rgba(95,194,180,.08), transparent 60%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(214,218,228,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 72px 24px 88px; }
.hero h1 { font-size: 60px; letter-spacing: -.045em; line-height: 1.04; margin: 18px 0 18px; }
.hero h1 .soft { color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.claim { display: flex; align-items: center; max-width: 520px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 20px; }
.claim:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.claim span { color: var(--muted); font-weight: 500; white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text-strong); font: 600 16px var(--font); padding: 10px 4px; outline: none; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.stack { display: flex; }
.stack .avatar { border: 2px solid var(--bg); margin-left: -10px; }
.stack .avatar:first-child { margin-left: 0; }

/* phone mockup */
.phone { position: relative; width: 340px; max-width: 100%; margin-left: auto; margin-right: auto; border-radius: 40px; padding: 12px; background: #0a0c12; border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 8px rgba(157,143,240,.05); }
.phone-screen { border-radius: 30px; background: linear-gradient(180deg, #171c2a, #11141d); padding: 26px 20px 22px; overflow: hidden; }
.phone-notch { width: 96px; height: 24px; background: #0a0c12; border-radius: 0 0 14px 14px; margin: -26px auto 18px; }
.phone .pf { text-align: center; }
.phone .pf .avatar { margin: 0 auto 10px; border: 3px solid var(--accent-line); }
.phone .pf h4 { margin: 0; font-size: 16px; }
.phone .pf small { color: var(--muted); }
.phone .prompt-bubble { margin: 16px 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--text-strong); text-align: center; }
.mock-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 56px; margin: 8px 0 14px; }
.mock-wave i { width: 4px; border-radius: 4px; background: var(--accent); opacity: .85; animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: scaleY(.45); } }
.mock-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.mock-chips span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.mock-chips span.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.mock-mic { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px var(--accent-soft); }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-size: 13px; animation: floaty 5s ease-in-out infinite; }
.float-card strong { display: block; color: var(--text-strong); font-size: 13px; }
.float-card small { color: var(--muted); }
.float-a { top: 12%; left: -6%; }
.float-b { bottom: 14%; right: -8%; animation-delay: -2.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hero-visual { position: relative; }

/* perks strip */
.perks { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.perks-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 24px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.perk:nth-child(2) .perk-ic { background: var(--teal-soft); color: var(--teal); }
.perk:nth-child(3) .perk-ic { background: var(--warn-soft); color: var(--warn); }
.perk strong { display: block; color: var(--text-strong); font-size: 15px; }
.perk span { color: var(--muted); font-size: 14px; }

/* voices */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.voice-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.voice-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vc-top { display: flex; align-items: center; gap: 12px; }
.vc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--vc) 16%, transparent); color: var(--vc); }
.vc-top strong { display: block; color: var(--text-strong); font-size: 16px; }
.vc-top small { color: var(--muted); font-size: 13px; }
.vc-top .pill { margin-left: auto; }

/* player */
.player { --vc: var(--accent); display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; }
.play-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; background: var(--vc); color: #12101f; transition: transform .15s; }
.play-btn:hover { transform: scale(1.05); }
.play-btn .ic:nth-child(2) { display: none; }
.player.playing .play-btn .ic:nth-child(1) { display: none; }
.player.playing .play-btn .ic:nth-child(2) { display: inline-block; }
.player.loading .play-btn { opacity: .6; }
.wave { position: relative; flex: 1; height: 34px; cursor: pointer; min-width: 60px; }
.bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.bars i { flex: 1; min-width: 2px; border-radius: 3px; background: var(--line-2); }
.bars-fill { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.bars-fill i { background: var(--vc); }
.p-time { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.voice-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vc); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* stats band */
.band { position: relative; border-radius: 24px; overflow: hidden; background: #0b0d14; border: 1px solid var(--line); }
.band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; }
.band-bg img.img-failed { display: none; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,13,20,.96) 35%, rgba(11,13,20,.7) 70%, rgba(35,28,70,.7)); }
.band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 52px; align-items: center; }
.band h2 { font-size: 34px; letter-spacing: -.035em; }
.band p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
.stat { border-left: 2px solid var(--accent-line); padding-left: 16px; }
.stat b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.045em; color: var(--text-strong); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* wall */
.wall-grid { columns: 3 320px; column-gap: 16px; }
.wall-card { break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.wc-owner { display: flex; align-items: center; gap: 10px; }
.wc-owner strong { display: block; color: var(--text-strong); font-size: 14px; line-height: 1.3; }
.wc-owner small { color: var(--muted); font-size: 12.5px; }
.wc-owner:hover strong { color: var(--accent); }
.wc-ghost { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.wc-ghost small { color: var(--faint); font-weight: 500; margin-left: 4px; }
.wc-hint { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.wc-hint .ic { color: var(--warn); margin-top: 3px; }
.wc-reply { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--text-strong); font-size: 14.5px; }
.reacts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: all .15s; }
.react:hover { border-color: var(--line-2); color: var(--text-strong); }
.react.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.react.pop .ic { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.4); } }
.plays { margin-left: auto; font-size: 12.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(157,143,240,.08), var(--surface) 50%); }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -.045em; color: var(--text-strong); }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; }
.plan li .ic { color: var(--teal); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--text-strong); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.cta-strip { margin-top: 88px; border-radius: 24px; padding: 48px; text-align: center; background: radial-gradient(600px 240px at 50% 0%, rgba(157,143,240,.2), transparent 70%), var(--surface); border: 1px solid var(--line); }
.cta-strip h2 { font-size: 34px; letter-spacing: -.035em; }
.cta-strip p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding: 52px 24px 40px; }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.foot-grid > div > a:not(.brand) { display: block; color: var(--text); font-size: 14px; padding: 5px 0; }
.foot-grid > div > a:not(.brand):hover { color: var(--accent); }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 16px 0; max-width: 320px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.socials a:hover { color: var(--text-strong); border-color: var(--line-2); }
.news-form { display: flex; gap: 8px; }
.news-form input { flex: 1; min-width: 0; }
.legal { border-top: 1px solid var(--line); background: #0a0c12; font-size: 13px; color: var(--faint); }
.legal-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; flex-wrap: wrap; }
.legal-row .muted { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- forms ---------- */
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-strong); margin-bottom: 7px; }
.input, input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text-strong); font: 400 16px var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
::placeholder { color: var(--faint); }
.field { margin-bottom: 18px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); padding-left: 14px; }
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-prefix span { color: var(--muted); white-space: nowrap; font-size: 15px; }
.input-prefix input { border: 0; background: transparent; box-shadow: none !important; padding-left: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; font-weight: 500; }
.switch strong { display: block; color: var(--text-strong); font-weight: 600; font-size: 14.5px; }
.switch small { color: var(--muted); font-weight: 400; font-size: 13px; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; flex: none; transition: background .2s; border: 1px solid var(--line-2); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: #fff; }

/* auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-side { position: relative; padding: 64px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(700px 400px at 30% 30%, rgba(157,143,240,.15), transparent 60%), var(--bg-2); border-right: 1px solid var(--line); }
.auth-side h2 { font-size: 40px; letter-spacing: -.045em; }
.auth-side p { color: var(--muted); font-size: 16px; max-width: 420px; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.auth-side li .ic { color: var(--teal); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.035em; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.demo-box { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); }
.demo-box code { color: var(--accent); font-size: 13px; }

/* ---------- send page ---------- */
.send-page { padding: 40px 0 0; }
.send-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: start; justify-content: center; }
.send-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; position: sticky; top: 92px; }
.pf-head { text-align: center; }
.pf-head .avatar { margin: 0 auto 14px; border: 3px solid var(--accent-line); box-shadow: 0 0 0 8px var(--accent-soft); }
.pf-head h1 { font-size: 24px; margin-bottom: 2px; display: inline-flex; align-items: center; gap: 8px; }
.pf-head .handle { color: var(--muted); font-size: 14px; }
.pf-head .bio { color: var(--muted); font-size: 14.5px; margin: 10px auto 0; max-width: 380px; }
.verified { color: var(--accent); }
.prompt-card { margin: 22px 0; padding: 18px; border-radius: 16px; background: linear-gradient(140deg, rgba(157,143,240,.14), rgba(95,194,180,.08)); border: 1px solid var(--accent-line); text-align: center; }
.prompt-card small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.prompt-card p { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); }

.recorder { text-align: center; }
.rec-stage { position: relative; height: 96px; margin: 6px 0 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.rec-stage canvas { width: 100%; height: 100%; display: block; }
.rec-idle { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.rec-timer { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-strong); margin-bottom: 12px; }
.rec-timer small { color: var(--muted); font-weight: 500; }
.mic-btn { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; box-shadow: 0 0 0 10px var(--accent-soft); transition: transform .15s, background .2s; }
.mic-btn:hover { transform: scale(1.04); }
.mic-btn .ic-stop { display: none; }
.recorder.is-rec .mic-btn { background: var(--bad); color: #2a0e13; box-shadow: 0 0 0 10px var(--bad-soft); animation: pulse 1.4s ease-in-out infinite; }
.recorder.is-rec .mic-btn .ic-mic { display: none; }
.recorder.is-rec .mic-btn .ic-stop { display: inline-block; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(226,128,139,.05); } }
.mic-label { margin-top: 14px; font-size: 14px; color: var(--muted); }
.voice-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.vp { position: relative; margin: 0; }
.vp input { position: absolute; opacity: 0; pointer-events: none; }
.vp span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); transition: all .15s; text-align: center; }
.vp span .ic { color: var(--vc); }
.vp span small { font-weight: 500; color: var(--faint); font-size: 11px; }
.vp:has(input:checked) span { border-color: var(--vc); background: color-mix(in srgb, var(--vc) 12%, var(--bg-2)); color: var(--text-strong); }
.vp:has(input:disabled) span { opacity: .45; cursor: not-allowed; }
.vp .lock { position: absolute; top: 6px; right: 6px; color: var(--warn); }
.preview-row { display: flex; gap: 10px; align-items: center; }
.preview-row .player { flex: 1; }
.send-actions { display: grid; gap: 10px; margin-top: 18px; }
.send-step[hidden] { display: none !important; }
.priv-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 18px; padding: 12px 14px; background: var(--teal-soft); border-radius: 12px; border: 1px solid rgba(95,194,180,.2); text-align: left; }
.priv-note .ic { color: var(--teal); margin-top: 2px; }
.sent-ok { text-align: center; padding: 10px 0; }
.sent-ok .big-ic { width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 16px; }
.paused-box { text-align: center; padding: 24px; color: var(--muted); }
.wall-side h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.wall-side .wall-grid { columns: 2 280px; }
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty .ic { color: var(--faint); margin-bottom: 10px; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 32px 24px 0; align-items: start; }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; position: sticky; top: 92px; }
.side-me { display: flex; gap: 12px; align-items: center; padding: 8px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side-me strong { display: block; color: var(--text-strong); font-size: 14.5px; line-height: 1.3; }
.side-me small { color: var(--muted); font-size: 12.5px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.side nav a:hover { background: var(--surface-2); color: var(--text-strong); }
.side nav a.on { background: var(--accent-soft); color: var(--accent); }
.side nav a b { margin-left: auto; font-size: 12px; background: var(--surface-3); color: var(--text); padding: 1px 8px; border-radius: 999px; }
.side nav a.on b { background: var(--accent); color: var(--accent-ink); }
.side-link { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.side-link small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 6px; }
.side-link code { display: block; font: 600 13px var(--font); color: var(--text-strong); word-break: break-all; margin-bottom: 10px; }
.dash-main h1 { font-size: 28px; letter-spacing: -.035em; margin-bottom: 4px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head p { margin: 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi:first-child { background: linear-gradient(140deg, #2a2456, #1c2433); border-color: var(--accent-line); }
.kpi small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--text-strong); margin-top: 6px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.tabs a:hover { color: var(--text-strong); }
.tabs a.on { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.note-list { display: grid; gap: 12px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 14px; transition: border-color .2s; }
.note.unheard { border-color: var(--accent-line); box-shadow: inset 3px 0 0 var(--accent); }
.note-top { display: flex; align-items: center; gap: 12px; }
.note-top .who strong { display: block; color: var(--text-strong); font-size: 15px; line-height: 1.3; }
.note-top .who small { color: var(--muted); font-size: 12.5px; }
.note-top .tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.note-hint { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.note-hint .ic { color: var(--warn); margin-top: 3px; }
.note-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.na { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.na:hover { color: var(--text-strong); border-color: var(--line-2); background: var(--surface-2); }
.na.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.na.danger:hover { color: var(--bad); border-color: rgba(226,128,139,.35); }
.na-push { margin-left: auto; }
.note .wc-reply { font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.panel h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.panel > p.muted { margin-top: -4px; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 8px 8px 16px; }
.link-box code { flex: 1; font: 600 15px var(--font); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.share-btns a, .share-btns button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--text); }
.share-btns a:hover, .share-btns button:hover { border-color: var(--line-2); background: var(--surface-2); }
.share-btns .ic { width: 22px; height: 22px; }
.sb-wa .ic { color: #5cc78a; } .sb-x .ic { color: var(--text-strong); } .sb-tg .ic { color: #6aaee0; } .sb-fb .ic { color: #7b9be8; }
.card-maker { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.card-maker canvas { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 9 / 16; }
.theme-dots { display: flex; gap: 10px; margin: 6px 0 18px; flex-wrap: wrap; }
.theme-dots label { margin: 0; }
.theme-dots input { position: absolute; opacity: 0; }
.theme-dots span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px var(--bg); }
.theme-dots input:checked + span { border-color: var(--text-strong); }
.prompt-list { display: grid; gap: 8px; margin-bottom: 16px; }
.prompt-opt { margin: 0; }
.prompt-opt input { position: absolute; opacity: 0; }
.prompt-opt span { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 500; font-size: 14.5px; cursor: pointer; color: var(--text); }
.prompt-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* modal */
dialog { border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--text); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5, 7, 12, .7); backdrop-filter: blur(3px); }
.modal-body { padding: 24px; }
.modal-body h3 { font-size: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); margin: 0; font-weight: 500; cursor: pointer; background: var(--bg-2); }
.radio-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-list input { accent-color: var(--accent); }

/* tables (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .who { display: flex; align-items: center; gap: 10px; }
td .who strong { display: block; color: var(--text-strong); font-size: 14px; }
td .who small { color: var(--muted); font-size: 12px; }
.inline-form { display: inline; }

/* explore */
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero h1 { font-size: 44px; letter-spacing: -.045em; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }
.creators { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
.creator { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.creator:hover { border-color: var(--line-2); }
.creator strong { display: block; color: var(--text-strong); font-size: 14px; line-height: 1.3; }
.creator small { color: var(--muted); font-size: 12.5px; }
.creator .pill { margin-left: auto; }
.prose { max-width: 760px; margin: 0 auto; padding: 48px 24px 0; }
.prose h1 { font-size: 40px; letter-spacing: -.045em; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--text); }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 18px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .hero h1 { font-size: 48px; }
  .float-a { left: 0; } .float-b { right: 0; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; gap: 56px; }
  .voice-grid, .steps { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr; padding: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .send-grid { grid-template-columns: 1fr; }
  .send-card { position: static; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side nav a { white-space: nowrap; }
  .side-link, .side-me { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .creators { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { margin-top: 64px; }
  .hero-inner { padding: 36px 16px 64px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 16px; }
  .sec-head h2, .band h2, .cta-strip h2 { font-size: 28px; }
  .perks-row { grid-template-columns: 1fr; gap: 16px; padding: 22px 16px; }
  .voice-grid, .steps, .plans, .grid-2 { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .stat b { font-size: 30px; }
  .band-inner { padding: 28px 22px; }
  .cta-strip { padding: 32px 20px; }
  .foot-grid { grid-template-columns: 1fr; padding: 40px 16px 28px; }
  .legal-row { padding: 16px; }
  .hide-sm { display: none; }
  .acct-name { display: none; }
  .float-card { display: none; }
  .hdr { gap: 10px; }
  .dash { padding: 20px 16px 0; }
  .card-maker { grid-template-columns: 1fr; }
  .card-maker canvas { max-width: 240px; margin: 0 auto; }
  .share-btns { grid-template-columns: repeat(2, 1fr); }
  .send-card { padding: 20px; border-radius: 20px; }
  .page-hero h1 { font-size: 34px; }
  .creators { grid-template-columns: 1fr; }
  .wall-grid, .wall-side .wall-grid { columns: 1; }
  .prose h1 { font-size: 32px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .claim span { display: none; }
  .claim { padding-left: 14px; }
  .kpi b { font-size: 24px; }
  .voice-pick { grid-template-columns: repeat(2, 1fr); }
  .note-top .tags { display: none; }
  .na span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* video maker */
.clip-dialog { width: min(760px, calc(100vw - 24px)); }
.clip-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.clip-top h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.clip-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2, #f1eff6); color: var(--text-strong, #121019); font-size: 24px; line-height: 1; cursor: pointer; }
.clip-sub { margin: 4px 0 16px; font-size: 14px; }
.clip-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.clip-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #5b2bef, #a52ce6 48%, #ff4f8b); box-shadow: 0 18px 40px rgba(91, 43, 239, .28); }
.clip-screen canvas, .clip-screen video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: transparent; }
.clip-screen video { background: #000; }
.clip-screen [hidden] { display: none !important; }
.clip-play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #121019; box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; transition: transform .15s; }
.clip-play:active { transform: scale(.92); }
.clip-play.on { background: #121019; color: #fff; }
.clip-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(18,16,25,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; text-align: center; padding: 20px; }
.clip-ring { position: relative; width: 96px; height: 96px; }
.clip-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clip-ring circle { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 7; }
.clip-ring .clip-ring-fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset .2s; }
.clip-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.clip-busy small { font-size: 13.5px; font-weight: 600; opacity: .95; }
.clip-lab { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.clip-themes span { width: 40px; height: 40px; }
.clip-actions { display: grid; gap: 10px; margin-top: 6px; }
.clip-actions [hidden] { display: none !important; }
.clip-note { font-size: 12.5px; margin: 10px 0 0; }
.content-cta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-top: 16px; text-align: left; }
.content-cta .ic { color: var(--accent); }
.content-cta div { flex: 1 1 0; min-width: 0; font-size: 13.5px; color: var(--muted); }
.content-cta .btn { flex: 1 1 100%; }
.content-cta strong { display: block; color: var(--text-strong); font-size: 14.5px; }

/* cookie bar & ads */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 13.5px; color: var(--text); }
.cookie-bar p .ic { color: var(--teal); margin-right: 4px; }
.cookie-bar a { color: var(--accent); }
.cookie-bar div { display: flex; gap: 8px; flex: none; }
.ad-slot { margin: 32px 0; padding: 12px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); min-height: 120px; }
.ad-slot small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
@media (max-width: 720px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar div .btn { flex: 1; } }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.post-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #231d4a, #12302f); overflow: hidden; }
.post-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; transition: transform .4s; }
.post-img img.img-failed { display: none; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-fb { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(236,238,244,.35); }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.post-body strong { color: var(--text-strong); font-size: 17px; letter-spacing: -.02em; line-height: 1.3; }
.post-body small { color: var(--muted); font-size: 14px; }
.post-body em { font-style: normal; font-size: 12.5px; color: var(--faint); margin-top: auto; }
.article { max-width: 760px; margin: 0 auto; padding: 44px 24px 0; }
.article .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.article .crumbs a:hover { color: var(--accent); }
.article h1 { font-size: 42px; letter-spacing: -.045em; }
.article .meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.article .post-img { border-radius: 18px; margin-bottom: 30px; border: 1px solid var(--line); }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body h2 { font-size: 24px; margin-top: 38px; }
.article-body p, .article-body li { color: var(--text); }
.article-body strong { color: var(--text-strong); }
.article-body li { margin-bottom: 8px; }
.article-cta { margin-top: 40px; padding: 26px; border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.article-cta strong { color: var(--text-strong); font-size: 18px; display: block; }
.article-cta span { color: var(--muted); font-size: 14.5px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.contact-card p { display: flex; gap: 10px; align-items: flex-start; color: var(--text); margin-bottom: 14px; }
.contact-card .ic { color: var(--accent); margin-top: 4px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } .article h1 { font-size: 32px; } .article { padding: 28px 16px 0; } .article-body { font-size: 16px; } }
.expiry { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.expiry.soon { color: var(--warn); }
.pf-head .avatar { display: grid; }

.ios-hint { display: none; margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: left; gap: 8px; align-items: flex-start; }
.ios-hint .ic { color: var(--warn); margin-top: 3px; }
.is-ios .ios-hint { display: flex; }

/* ---------- mobile polish (dashboard & dialogs) ---------- */
.dash > *, .send-grid > *, .contact-grid > *, .grid-2 > *, .card-maker > * { min-width: 0; }
.note-top .who { min-width: 0; }
.note-top .who strong, .note-top .who small { overflow-wrap: anywhere; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; left: 0; top: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 980px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: sticky; top: 76px; z-index: 30; padding: 6px; border-radius: 16px; background: rgba(22, 27, 39, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
  .side nav { gap: 2px; }
  .side nav a { padding: 9px 12px; font-size: 14px; border-radius: 11px; }
  .side nav a b { margin-left: 6px; }
}
@media (max-width: 720px) {
  .dash-main h1 { font-size: 26px; }
  .dash-head { margin-bottom: 16px; gap: 12px; }
  .dash-head > div { flex: 1 1 100%; }
  .dash-head > .btn { width: 100%; }
  .dash-head form { width: 100%; }
  .dash-head form input { flex: 1; min-width: 0; }
  .kpis { gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 14px; border-radius: 14px; }
  .kpi b { font-size: 26px; }
  .panel { padding: 18px; border-radius: 18px; }
  .note { padding: 14px; border-radius: 16px; gap: 12px; }
  .player { gap: 10px; padding-right: 12px; }
  .player .voice-tag { display: none; }
  .note-actions { gap: 6px; }
  .na { height: 38px; padding: 0 12px; }
  .link-box { padding: 6px 6px 6px 14px; }
  .link-box code { font-size: 14px; }
  .avatar-row { flex-wrap: wrap; }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  /* dialogs become bottom sheets */
  dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: sheetUp .25s ease; }
  .modal-body { padding: 22px 18px 24px; }
  .modal-body::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: -8px auto 16px; }
  .modal-actions { position: sticky; bottom: 0; background: var(--surface); padding-top: 12px; margin-top: 16px; }
  .modal-actions .btn { flex: 1; }
  .clip-grid { grid-template-columns: 1fr; gap: 14px; }
  .clip-screen { width: min(100%, calc(44vh * 9 / 16)); max-width: 270px; margin: 0 auto; }
  .clip-sub { margin-bottom: 12px; }
  .acct-menu { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 420px) {
  .na[data-clip] span { display: inline; }
  .note-actions .na-push { margin-left: 0; }
  .share-btns a, .share-btns button { padding: 14px 6px; }
}
[hidden] { display: none !important; }
@media (max-width: 980px) {
  .side nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; }
  .side nav a { position: relative; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px 7px; font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
  .side nav a .ic { width: 20px; height: 20px; }
  .side nav a b { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; font-size: 10.5px; min-width: 18px; padding: 0 5px; line-height: 17px; }
}
@media (max-width: 980px) { .hide-xs { display: none; } }
@media (max-width: 480px) {
  .note-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .note-actions .na { justify-content: center; padding: 0; width: 100%; height: 40px; margin: 0; }
  .note-actions .na span { display: none; }
  .note-actions .na[data-clip] { grid-column: 1 / -1; order: -1; height: 44px; font-size: 14px; }
  .note-actions .na[data-clip] span { display: inline; }
  .note-actions:has([data-act=unpin]) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* =========================================================
   Record page — the page every shared link lands on
   ========================================================= */
/* animated brand background + floating icons */
body.rp-page.on-grad { background: linear-gradient(160deg, #5b2bef, #a52ce6 30%, #ff4f8b 55%, #a52ce6 80%, #5b2bef) 0 0 / 260% 260%; animation: rpBg 22s ease-in-out infinite alternate; }
@keyframes rpBg { to { background-position: 100% 100%; } }
.rp-float { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.rp-float span { position: absolute; left: var(--x); bottom: -40px; color: rgba(255,255,255,.32); transform: scale(var(--s)); animation: rpFloat var(--d) linear var(--delay) infinite; }
@keyframes rpFloat { 0% { transform: translateY(0) rotate(0) scale(var(--s)); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-110vh) rotate(var(--r)) scale(var(--s)); opacity: 0; } }
.rp-page .site-header, .rp-page main, .rp-page .mini-footer { position: relative; z-index: 1; }

/* card palette (day) — night overrides these variables */
.rp { padding: 14px 0 32px;
  --rp-card: #ffffff; --rp-body: linear-gradient(180deg, #f6f2ff, #fbf4fb); --rp-tile: #ffffff; --rp-tile-line: #ece6f6; --rp-sep: #efe9f7;
  --rp-q: #121019; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 430px); justify-content: center; gap: 14px; }
.rp-card { border-radius: 28px; overflow: hidden; background: var(--rp-card); box-shadow: 0 24px 60px rgba(40,8,90,.32); animation: rpCardIn .8s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes rpCardIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.rp-head { padding: 16px 18px 14px; background: var(--rp-card); }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rp-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-who > span:last-child { min-width: 0; line-height: 1.25; }
.rp-who b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text-strong); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-who small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ring-av { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; }
.rp-ring-av::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ff4f8b, #ffb86b, #a52ce6, #5b2bef, #ff4f8b); animation: rpSpin 4s linear infinite; }
.rp-ring-av .avatar { position: relative; border: 3px solid var(--rp-card); }
@keyframes rpSpin { to { transform: rotate(360deg); } }
.rp-top-r { display: flex; align-items: center; gap: 6px; flex: none; }
.rp-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 5px 10px; border-radius: 999px; }
.rp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: rpBlink 1.8s infinite; }
.rp-live.off { color: var(--warn); background: var(--warn-soft); }
.rp-live.off i { background: var(--warn); animation: none; }
@keyframes rpBlink { 0% { box-shadow: 0 0 0 0 rgba(14,159,139,.55); } 70% { box-shadow: 0 0 0 7px rgba(14,159,139,0); } }
.rp-theme { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rp-tile-line); background: var(--rp-tile); color: var(--muted); display: grid; place-items: center; padding: 0; }
.rp-theme .ic-sun { display: none; }
.rp-ask { margin: 14px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); animation: rpFadeUp .5s .25s both; }
.rp-ask .ic { color: #e9a52a; animation: rpTwinkle 2.4s ease-in-out infinite; }
.rp-ask b { color: var(--accent); font-weight: 800; }
@keyframes rpTwinkle { 50% { transform: scale(1.3) rotate(15deg); opacity: .7; } }
@keyframes rpFadeUp { from { opacity: 0; transform: translateY(8px); } }
.rp-q { margin: 6px 0 0; font-size: 23px; line-height: 1.22; font-weight: 800; letter-spacing: -.035em; }
.rp-q .w { display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--rp-q) 0%, var(--rp-q) 38%, #7c3aed 46%, #ff4f8b 54%, var(--rp-q) 62%, var(--rp-q) 100%); background-size: 400% 100%; background-position: 100% 0;
  animation: rpWordIn .55s cubic-bezier(.2,1.5,.4,1) both, rpShimmer 5s ease-in-out infinite; animation-delay: calc(.35s + var(--i) * .07s), calc(1.6s + var(--i) * .09s); }
@keyframes rpWordIn { from { opacity: 0; transform: translateY(14px) scale(.8); } }
@keyframes rpShimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.rp-bio { margin: 8px 0 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-owner { margin-top: 10px; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.rp-owner a { text-decoration: underline; margin-left: 2px; font-weight: 600; }
.rp-body { padding: 14px 16px 16px; background: var(--rp-body); border-top: 1px solid var(--rp-sep); }

/* compact recorder: orb left, info right */
.rp-rec { text-align: center; }
.rp-recrow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; animation: rpFadeUp .5s .55s both; }
.rp-orb { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.rp-spin { position: absolute; inset: 8px; border-radius: 50%; background: conic-gradient(#5b2bef, #ff4f8b, #ffb86b, #a52ce6, #5b2bef); animation: rpSpin 3s linear infinite; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
.rp-ring { position: absolute; inset: 16px; border-radius: 50%; border: 2px solid rgba(165,44,230,.45); animation: rpRipple 2.6s cubic-bezier(.2,.6,.4,1) infinite; }
.rp-ring:nth-child(2) { animation-delay: 1.3s; }
@keyframes rpRipple { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.rp .mic-btn { position: relative; z-index: 2; width: 80px; height: 80px; border: 0; background: radial-gradient(circle at 32% 26%, #c9a6ff, #8b3cf0 45%, #ff4f8b); color: #fff; box-shadow: 0 12px 30px rgba(165,44,230,.55), inset 0 -5px 12px rgba(60,0,90,.25); animation: rpBreathe 2.6s ease-in-out infinite; }
.rp .mic-btn:active { transform: scale(.94); }
@keyframes rpBreathe { 50% { transform: scale(1.06); } }
.rp-rec.is-rec .rp-ring { border-color: rgba(225,29,72,.55); animation-duration: 1.2s; }
.rp-rec.is-rec .rp-spin { background: conic-gradient(#e11d48, #ff8fa3, #e11d48); animation-duration: 1.2s; }
.rp-rec.is-rec .mic-btn { background: radial-gradient(circle at 32% 26%, #ffb3c0, #e11d48 55%, #b4123a); box-shadow: 0 12px 30px rgba(225,29,72,.45); animation: rpBreathe 1s ease-in-out infinite; }
/* the tapping hand */
.rp-hand { position: absolute; z-index: 3; left: 58px; top: 52px; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(18,16,25,.35)); transform-origin: 20% 10%; animation: rpHand 3.4s cubic-bezier(.45,0,.3,1) 1.4s infinite both; }
@keyframes rpHand {
  0% { opacity: 0; transform: translate(26px, 30px) rotate(-12deg); }
  14% { opacity: 1; transform: translate(10px, 12px) rotate(-12deg); }
  34% { transform: translate(-6px, -6px) rotate(-12deg) scale(1); }
  40% { transform: translate(-6px, -4px) rotate(-12deg) scale(.86); }
  48% { transform: translate(-6px, -6px) rotate(-12deg) scale(1); }
  70% { opacity: 1; transform: translate(12px, 14px) rotate(-12deg); }
  86%, 100% { opacity: 0; transform: translate(26px, 30px) rotate(-12deg); }
}
.rp-orb::after { content: ""; position: absolute; z-index: 1; width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; opacity: 0; animation: rpTapRing 3.4s ease-out 1.4s infinite; pointer-events: none; }
@keyframes rpTapRing { 0%, 39% { opacity: 0; transform: scale(.9); } 41% { opacity: .9; transform: scale(1); } 60% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
.rp-orb.tapped .rp-hand, .rp-orb.tapped::after, .rp-rec.is-rec .rp-hand, .rp-rec.is-rec .rp-orb::after { display: none; }
.rp-recinfo { min-width: 0; }
.rp .mic-label { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-strong); letter-spacing: -.03em; line-height: 1.2; }
.rp .rec-timer { margin: 3px 0 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.rp .rec-timer b { color: var(--text-strong); }
.rp .rec-stage { height: 38px; margin: 0; border-radius: 12px; background: var(--rp-tile); border: 1px solid var(--rp-tile-line); }
.rp .rec-idle { font-size: 12.5px; color: var(--muted); justify-content: flex-start; padding-left: 12px; }
.rp-morph { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); }
.rp-morph-words { display: inline-block; height: 1.5em; line-height: 1.5em; overflow: hidden; vertical-align: bottom; text-align: left; }
.rp-morph-words > span { display: flex; flex-direction: column; animation: rpMorph 11s infinite; }
.rp-morph-words em { font-style: normal; font-weight: 800; font-size: 13.5px; height: 1.5em; line-height: 1.5em; letter-spacing: -.01em; }
@keyframes rpMorph { 0% { transform: translateY(0); } 13.00% { transform: translateY(-0.0em); } 16.67% { transform: translateY(-1.5em); } 29.67% { transform: translateY(-1.5em); } 33.33% { transform: translateY(-3.0em); } 46.33% { transform: translateY(-3.0em); } 50.00% { transform: translateY(-4.5em); } 63.00% { transform: translateY(-4.5em); } 66.67% { transform: translateY(-6.0em); } 79.67% { transform: translateY(-6.0em); } 83.33% { transform: translateY(-7.5em); } 96.33% { transform: translateY(-7.5em); } 100.00% { transform: translateY(-9.0em); } }
.rp-chips { display: flex; justify-content: center; gap: 6px; margin-top: 14px; animation: rpFadeUp .5s .7s both; }
.rp-chips span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--text); padding: 5px 9px; border-radius: 999px; background: var(--rp-tile); border: 1px solid var(--rp-tile-line); white-space: nowrap; }
.rp-chips .ic { color: var(--accent); }
.rp-starter { margin: 10px 0 0; font-size: 12px; color: var(--muted); animation: rpFadeUp .5s .8s both; }
.rp-starter .ic { color: #e9a52a; vertical-align: -2px; }
.rp-starter span { color: var(--text-strong); font-style: italic; transition: opacity .35s; }
.rp-upload { margin: 4px 0 0; font-size: 11.5px; color: var(--faint); }
.rp-upload label { display: inline; margin: 0; font-size: inherit; font-weight: 700; color: var(--accent); cursor: pointer; }
/* pick & sent steps */
.rp-step-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text-strong); margin: 2px 0 10px; text-align: left; letter-spacing: -.02em; }
.rp-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--grad); color: #fff; }
.rp .voice-pick { gap: 6px; margin: 0 0 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp .vp span { padding: 10px 4px; font-size: 12.5px; border-radius: 14px; background: var(--rp-tile); border-color: var(--rp-tile-line); color: var(--text); }
.rp .vp span small { font-size: 10.5px; }
.rp .vp:has(input:checked) span { background: color-mix(in srgb, var(--vc) 14%, var(--rp-tile)); color: var(--text-strong); transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--vc) 25%, transparent); }
.rp .player { background: var(--rp-tile); border-color: var(--rp-tile-line); }
.rp-hint { margin: 14px 0 0; text-align: left; }
.rp-hint label { font-size: 13px; color: var(--text-strong); }
.rp-hint .muted { font-weight: 400; }
.rp-hint input { background: var(--rp-tile); border-color: var(--rp-tile-line); color: var(--text-strong); }
.rp .send-actions { margin-top: 14px; gap: 8px; }
.rp .btn-accent { background: var(--grad); color: #fff; box-shadow: 0 12px 28px rgba(165,44,230,.35); }
.rp .btn-accent:hover { filter: brightness(1.06); }
.rp .btn-ghost { border-color: var(--rp-tile-line); color: var(--text-strong); background: var(--rp-tile); }
.rp .sent-ok { padding-top: 4px; }
.rp .sent-ok h2 { font-size: 22px; color: var(--text-strong); }
.rp .sent-ok .big-ic { width: 64px; height: 64px; margin-bottom: 10px; animation: rpPop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes rpPop { from { transform: scale(0) rotate(-30deg); } }
.rp .sent-ok p { font-size: 13.5px; }
.rp .content-cta { padding: 12px 14px; background: var(--rp-tile); border-color: var(--rp-tile-line); }
.rp .content-cta div { font-size: 12.5px; }
.rp .content-cta strong { font-size: 13.5px; color: var(--text-strong); }
.rp .paused-box { padding: 14px 8px 6px; font-size: 13.5px; }
.rp .paused-box h3 { font-size: 17px; margin: 8px 0 4px; color: var(--text-strong); }
/* below the card */
.rp-lock { margin: 0; text-align: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88); }
.rp-lock .ic { vertical-align: -2px; }
.rp-lock a { color: #fff; text-decoration: underline; }
.rp-cta { text-align: center; margin-top: 4px; }
.rp-count { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rp-count .ic.down { transform: rotate(90deg); animation: rpNudge 1.6s ease-in-out infinite; }
@keyframes rpNudge { 50% { transform: rotate(90deg) translateX(4px); } }
.rp-own-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 58px; border-radius: 999px; background: #121019; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 16px 36px rgba(18,16,25,.35); animation: rpWiggle 4s ease-in-out infinite; }
.rp-own-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: rpSweep 3.2s ease-in-out infinite; }
@keyframes rpSweep { 0%, 60% { left: -80px; } 100% { left: 110%; } }
@keyframes rpWiggle { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-2deg) scale(1.02); } 92% { transform: rotate(2deg) scale(1.02); } 95% { transform: rotate(-1deg); } }
/* confetti on "sent" */
.rp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.rp-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: rpConfetti var(--t) cubic-bezier(.2,.6,.4,1) var(--d) forwards; }
@keyframes rpConfetti { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); } }

/* ---------- night card (dark mode, 7pm–6am, or the moon button) ---------- */
.night body.rp-page.on-grad { background-image: linear-gradient(160deg, #160c33, #35115e 30%, #5e1846 55%, #35115e 80%, #160c33); }
.night .rp { --rp-card: #17131f; --rp-body: linear-gradient(180deg, #1c1727, #1f1626); --rp-tile: #241e31; --rp-tile-line: #322a43; --rp-sep: #2a2338; --rp-q: #f6f2ff;
  --text: #ddd8ea; --text-strong: #ffffff; --muted: #a49db6; --faint: #7f7892; --accent: #b892ff; --accent-soft: rgba(184,146,255,.14); --teal: #4fd1bd; --teal-soft: rgba(79,209,189,.12); --line: #2b2539; --line-2: #3a3350; --bg-2: #120f19; }
.night .rp-card { box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); }
.night .rp-theme .ic-moon { display: none; }
.night .rp-theme .ic-sun { display: block; color: #ffd27a; }
.night .rp-float span { color: rgba(255,255,255,.18); }
.night .rp-orb::after { border-color: rgba(255,255,255,.8); }
.night .rp .priv-note, .night .rp .flash { background: var(--rp-tile); }
@media (max-width: 720px) {
  .rp { padding: 8px 0 26px; }
  .rp-card { border-radius: 26px; }
  .rp-head { padding: 14px 16px 12px; }
  .rp-body { padding: 14px 14px 14px; }
  .rp-q { font-size: 21px; }
}
@media (max-width: 380px) {
  .rp-q { font-size: 19px; }
  .rp-recrow { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .rp-orb { width: 100px; height: 100px; }
  .rp .mic-btn { width: 72px; height: 72px; }
  .rp .mic-label { font-size: 16px; }
  .rp-chips span { font-size: 10.5px; padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) { .rp-float { display: none; } .rp-hand { opacity: 1; } }

/* =========================================================
   Floating footer banner (anchor ad, Google-style)
   ========================================================= */
:root { --ab-h: 0px; }
body.has-anchor { padding-bottom: var(--ab-h); }
body.has-anchor .toast-wrap { bottom: calc(24px + var(--ab-h)); }
body.has-anchor .cookie-bar { bottom: calc(16px + var(--ab-h)); }
.anchor-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: #ffffff42; color: #202124; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,.35); transition: transform .32s cubic-bezier(.4,0,.2,1); }
.anchor-ad.min { transform: translateY(100%); }
.ab-tab { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 58px; height: 27px; border: 0; padding: 0; border-radius: 12px 12px 0 0; background: #fff; color: #5f6368; display: grid; place-items: center; box-shadow: 0 -3px 8px rgba(0,0,0,.22); clip-path: inset(-12px -12px 0 -12px); }
.ab-tab .ic { transition: transform .3s; }
.anchor-ad.min .ab-tab .ic { transform: rotate(180deg); }
.ab-body { position: relative; max-width: 728px; margin: 0 auto; }
.ab-label { position: absolute; top: 0; left: 0; z-index: 2; font: 700 9.5px/1 var(--font); letter-spacing: .04em; color: #5f6368; background: rgba(255,255,255,.94); padding: 3px 5px; border-radius: 4px 0 4px 0; pointer-events: none; }
.ab-viewport { overflow: hidden; border-radius: 6px; height: 90px; background: #f1f3f4; touch-action: pan-y; }
.ab-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.ab-slide { flex: 0 0 100%; height: 100%; display: block; color: #fff; text-decoration: none; }
.ab-img picture, .ab-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-text { display: flex; align-items: center; gap: 14px; padding: 0 18px 0 22px; }
.ab-mark { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.ab-copy { flex: 1; min-width: 0; line-height: 1.25; }
.ab-copy b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-copy small { display: block; font-size: 13.5px; opacity: .88; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #15122a; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ab-dots { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.ab-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: width .3s, background .3s; }
.ab-dots button.on { width: 16px; background: #fff; }
@media (max-width: 744px) {
  .ab-viewport { height: min(64px, calc((100vw - 16px) * .15625)); }
  .ab-text { gap: 10px; padding: 0 10px 0 14px; }
  .ab-mark { width: 34px; height: 34px; border-radius: 10px; }
  .ab-mark .ic { width: 17px; height: 17px; }
  .ab-copy b { font-size: 14px; }
  .ab-copy small { font-size: 11px; margin-top: 1px; }
  .ab-cta { font-size: 12px; padding: 7px 11px; gap: 4px; }
  .ab-cta .ic { width: 12px; height: 12px; }
  .ab-tab { width: 50px; height: 24px; top: -23px; }
}
@media (max-width: 360px) { .ab-copy small { display: none; } }

/* ---------- admin: banners ---------- */
.ic.flip { transform: rotate(180deg); }
.ic.flip-x { transform: scaleX(-1); }
.bn-list { display: grid; gap: 12px; }
.bn-item { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.bn-prev { height: 54px; border-radius: 8px; overflow: hidden; background: #f1f3f4; }
.bn-prev .ab-slide { height: 100%; }
.bn-prev .ab-text { gap: 8px; padding: 0 10px; }
.bn-prev .ab-mark { width: 30px; height: 30px; border-radius: 9px; }
.bn-prev .ab-mark .ic { width: 15px; height: 15px; }
.bn-prev .ab-copy b { font-size: 13px; }
.bn-prev .ab-copy small { font-size: 10.5px; }
.bn-prev .ab-cta { font-size: 11px; padding: 5px 9px; }
.bn-prev .ab-cta .ic { width: 11px; height: 11px; }
.bn-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bn-title strong { color: var(--text-strong); font-size: 15px; }
.bn-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--accent); margin-top: 4px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bn-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.bn-stats span { display: inline-flex; align-items: center; gap: 5px; }
.bn-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bn-actions .na[disabled] { opacity: .35; cursor: default; }
.bn-edit { max-width: 860px; padding-top: 28px; }
.bn-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.bn-back:hover { color: var(--text-strong); }
.bn-preview { position: relative; max-width: 728px; margin: 4px auto 10px; padding: 6px; background: #fff; border-radius: 10px; }
.bn-preview .ab-label { top: 6px; left: 6px; }
.bn-preview .ab-track { transition: none; }
.bn-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.bn-swatches label { margin: 0; cursor: pointer; }
.bn-swatches input { position: absolute; opacity: 0; }
.bn-swatches span { display: block; width: 44px; height: 30px; border-radius: 10px; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--bg); }
.bn-swatches input:checked + span { border-color: var(--text-strong); }
.bn-swatches input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bn-file .file-btn { margin: 0; }
.bn-remove { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; color: var(--muted); margin: 10px 0 0; cursor: pointer; }
.bn-remove input { width: 16px; height: 16px; accent-color: var(--bad); }
.bn-form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.field label .muted { font-weight: 400; }
@media (max-width: 980px) {
  .bn-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bn-prev { height: auto; aspect-ratio: 320 / 56; max-height: 64px; }
  .bn-actions { justify-content: flex-start; }
}
@media (max-width: 744px) {
  .bn-preview .ab-viewport { height: min(64px, calc((100vw - 76px) * .15625)); }
  .bn-form-actions .btn { flex: 1; }
}
.ab-slide { min-width: 0; overflow: hidden; }
.bn-prev .ab-img img { object-fit: contain; background: #0e1118; }
input[type=datetime-local], input[type=number] { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-strong); font: 400 16px var(--font); color-scheme: dark; }
input[type=datetime-local]:focus, input[type=number]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bn-where { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text); background: var(--teal-soft); border: 1px solid rgba(95,194,180,.28); border-radius: var(--radius-sm); padding: 10px 12px; }
.bn-where .ic { color: var(--teal); margin-top: 2px; }
@media (max-width: 744px) { .ab-tab { height: 28px; top: -27px; width: 56px; } }
.clip-cap { margin: 2px 0 14px; }
.clip-cap label .muted { font-weight: 400; }

/* banner arrives after the page has loaded, and hides outside the record step */
.anchor-ad.off { transform: translateY(calc(100% + 40px)); pointer-events: none; }
.anchor-ad.off.min { transform: translateY(calc(100% + 40px)); }
.anchor-ad { transition: transform .55s cubic-bezier(.22,1,.36,1); }
.rp-inapp { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--warn); background: var(--warn-soft); border: 1px solid rgba(214,167,94,.25); border-radius: 10px; padding: 8px 10px; }
.rp-inapp .ic { vertical-align: -2px; }
.rp-inapp b { color: var(--text-strong); }

/* =========================================================
   SecretVN theme layer (light canvas + brand gradient pages)
   ========================================================= */
body { background: var(--bg); }
body.on-grad { background: #7d2ced var(--grad); background-attachment: scroll; min-height: 100vh; }
@media (hover: hover) { body.on-grad { background-attachment: fixed; } }
.ic.down { transform: rotate(90deg); }

/* header */
.site-header { background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); }
.brand-mark { background: var(--grad); color: #fff; }
.brand-word em { color: var(--accent); }
.on-grad .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: relative; }
.on-grad .site-header .brand-word { color: #fff; }
.on-grad .site-header .brand-word em { color: #ffd3e8; }
.on-grad .site-header .brand-mark { background: #fff; color: var(--accent); }
.on-grad .hdr .icon-btn, .on-grad .main-nav a { color: rgba(255,255,255,.9); }
.on-grad .hdr .icon-btn:hover, .on-grad .main-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.on-grad .hdr .btn-accent { background: #fff; color: var(--ink); }
.on-grad .hdr .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.on-grad .acct summary { border-color: rgba(255,255,255,.4); }
.on-grad .acct-name, .on-grad .acct summary > .ic { color: #fff; }
.drawer-backdrop, dialog::backdrop { background: rgba(18,16,25,.45); }
.drawer-panel { background: #fff; }

/* buttons */
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { background: #2b2736; }
.btn-ghost { border-color: var(--line-2); color: var(--text-strong); }
.btn-teal { color: #fff; }
.btn-teal:hover { filter: brightness(1.06); }
.play-btn { color: #fff; }

/* avatars & ghost badges */
.avatar { background: var(--grad); color: #fff; }
.ghost-badge { background: hsl(var(--h) 75% 95%); color: hsl(var(--h) 55% 45%); border-color: hsl(var(--h) 60% 86%); }

/* toasts, legal bar, footer */
.toast { background: var(--ink); color: #fff; border: 0; box-shadow: 0 14px 34px rgba(18,16,25,.3); }
.legal { background: #ebe6f4; color: var(--muted); }
.site-footer { background: #fff; }
.cookie-bar { background: #fff; }
.mini-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 34px; }
.mini-footer .brand-word { color: #fff; font-size: 16px; }
.mini-footer .brand-word em { color: #ffd3e8; }
.mini-footer .brand-mark { width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--accent); }
.mini-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.mini-footer nav a { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.82); }
.mini-footer nav a:hover { color: #fff; }

/* dashboard */
.kpi:first-child { background: var(--grad); border: 0; }
.kpi:first-child small, .kpi:first-child b { color: #fff; }
.side, .panel, .note, .kpi, .voice-card, .step, .faq details, .post-card, .contact-card, .bn-item, .wall-card { box-shadow: 0 2px 10px rgba(60,24,120,.05); }
@media (max-width: 980px) { .side { background: rgba(255,255,255,.94); box-shadow: 0 10px 24px rgba(60,24,120,.10); } }
.post-img { background: var(--grad); }
.post-fb { color: rgba(255,255,255,.55); }

/* home: hero on the brand gradient */
.hero { background: var(--grad); border-bottom: 0; }
.hero::before { background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); }
.hero .eyebrow { color: #fff; opacity: .92; }
.hero h1 { color: #fff; }
.hero h1 .soft { color: #ffd3e8; }
.hero-lead { color: rgba(255,255,255,.86); }
.claim { background: #fff; border-color: transparent; box-shadow: 0 18px 40px rgba(40,8,90,.28); }
.claim:focus-within { border-color: transparent; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 18px 40px rgba(40,8,90,.28); }
.claim input { color: var(--text-strong); }
.hero-proof { color: rgba(255,255,255,.86); }
.hero-proof strong { color: #fff !important; }
.stack .avatar { border-color: #fff; }
.phone { background: #111019; border-color: #2b2836; box-shadow: 0 40px 80px rgba(40,8,90,.45); }
.phone-screen { background: var(--grad); }
.phone-notch { background: #111019; }
.phone .pf h4 { color: #fff; }
.phone .pf small { color: rgba(255,255,255,.8); }
.phone .pf .avatar { border-color: #fff; }
.phone .prompt-bubble { background: #fff; border: 0; color: var(--text-strong); }
.mock-wave i { background: #fff; }
.mock-chips span { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.25); color: #fff; }
.mock-chips span.on { background: #fff; color: var(--ink); border-color: #fff; }
.mock-mic { background: var(--ink); color: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.18); }
.perks { background: #fff; }
.band { background: var(--grad); border: 0; }
.band::after { background: linear-gradient(100deg, rgba(70,24,190,.92) 30%, rgba(165,44,230,.75) 70%, rgba(255,79,139,.6)); }
.band h2, .band .stat b { color: #fff; }
.band p, .band .stat span { color: rgba(255,255,255,.85); }
.band .eyebrow { color: #fff; }
.band .stat { border-left-color: rgba(255,255,255,.45); }
.cta-strip { background: var(--grad); border: 0; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.86); }

/* auth pages on the gradient */
.auth-page .auth-wrap { min-height: auto; padding: 24px 0 48px; }
.auth-page .auth-side { background: transparent; border: 0; }
.auth-page .auth-side h2, .auth-page .auth-side li { color: #fff; }
.auth-page .auth-side p { color: rgba(255,255,255,.86); }
.auth-page .auth-side .eyebrow, .auth-page .auth-side li .ic { color: #fff; }
.auth-page .auth-card { background: #fff; border-radius: 28px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(40,8,90,.3); }
.auth-page .auth-form { padding: 24px 16px; }
.on-grad .page-hero h1, .on-grad .page-hero p { color: #fff; }
.on-grad .page-hero .eyebrow { color: #fff; }
.on-grad .flash-wrap .flash { background: #fff; }
.rp-inapp { border-color: rgba(183,121,31,.25); }
.rp-lock a { color: #fff; text-decoration: underline; }
.rp .rec-idle { place-items: center start; }
