/* StickerVoice — Create. Animate. Speak. Share. */
:root {
  --bg: #fbf8ff;
  --bg-soft: #f3eefe;
  --surface: #ffffff;
  --surface-2: #f7f4fd;
  --border: #e7e0f5;
  --text: #1d1730;
  --muted: #6b6386;
  --brand: #7c3aed;
  --brand-2: #ec4899;
  --brand-3: #f59e0b;
  --brand-ink: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --gradient: linear-gradient(120deg, #7c3aed 0%, #ec4899 55%, #f59e0b 100%);
  --shadow: 0 1px 2px rgba(40, 20, 80, .06), 0 8px 24px rgba(40, 20, 80, .08);
  --shadow-lg: 0 20px 50px rgba(60, 20, 120, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --checker: #f1ecfa;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fredoka", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110d1d; --bg-soft: #181228; --surface: #1b1530; --surface-2: #231b3b; --border: #2f2650;
    --text: #f3effc; --muted: #a89fc4; --brand: #a78bfa; --brand-2: #f472b6; --checker: #211a37;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110d1d; --bg-soft: #181228; --surface: #1b1530; --surface-2: #231b3b; --border: #2f2650;
  --text: #f3effc; --muted: #a89fc4; --brand: #a78bfa; --brand-2: #f472b6; --checker: #211a37;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); text-decoration: none; }
.nav-search { flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.nav-search input { padding-left: 38px; border-radius: 999px; height: 42px; }
.nav-search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--brand); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-grid; }
  .nav-search { display: none; }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 600 .95rem/1.2 var(--font); border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, .3); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(236, 72, 153, .4); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; vertical-align: middle; }
input[type=range] { accent-color: var(--brand); width: 100%; }
input[type=color] { width: 44px; height: 38px; border: 1px solid var(--border); border-radius: 10px; padding: 2px; background: var(--surface); cursor: pointer; }
.field { margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 500; border: 1px solid; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); color: var(--success); }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.alert-info { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-premium { background: linear-gradient(120deg, #f59e0b, #ec4899); color: #fff; border: 0; }
.badge-brand { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); border-color: transparent; }
.badge-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); border-color: transparent; }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-color: transparent; }
.badge-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.active { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(236,72,153,.18), transparent), radial-gradient(closest-side at 70% 40%, rgba(124,58,237,.2), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art .float { position: absolute; width: 46%; filter: drop-shadow(0 14px 24px rgba(60,20,120,.25)); animation: bob 4s ease-in-out infinite; }
.hero-art .float:nth-child(1) { left: 2%; top: 4%; transform: rotate(-8deg); }
.hero-art .float:nth-child(2) { right: 0; top: 18%; animation-delay: -1.2s; }
.hero-art .float:nth-child(3) { left: 18%; bottom: 0; animation-delay: -2.4s; }
.hero-art .float:nth-child(4) { right: 8%; bottom: 4%; width: 34%; animation-delay: -.6s; }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.6rem; }
.slogan { display: inline-flex; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .85rem; margin-bottom: 18px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } .hero-art { max-width: 320px; } }

/* Sticker grid */
.grid { display: grid; gap: 16px; }
.grid-stickers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-sounds { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-packs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 480px) { .grid-stickers { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.sticker-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.sticker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sticker-card .thumb { display: block; aspect-ratio: 1; border-radius: 12px; background: var(--bg-soft); background-image: conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0); background-size: 20px 20px; padding: 10px; }
.sticker-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.sticker-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; }
.sticker-card .title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.sticker-card .corner { position: absolute; top: 16px; left: 16px; display: flex; gap: 4px; }
.sticker-card .play { position: absolute; right: 16px; top: 16px; }
.lock { position: absolute; right: 16px; bottom: 52px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.lock svg { width: 14px; height: 14px; }
.fav-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; display: inline-flex; align-items: center; gap: 4px; font: 600 .8rem var(--font); }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.on { color: var(--brand-2); }
.fav-btn.on svg { fill: currentColor; }

.round-play { width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(236,72,153,.35); flex: none; }
.round-play svg { width: 18px; height: 18px; }
.round-play.sm { width: 32px; height: 32px; }
.round-play.sm svg { width: 14px; height: 14px; }
.round-play .i-pause { display: none; }
.round-play.playing .i-pause { display: block; }
.round-play.playing .i-play { display: none; }

.sound-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .15s; }
.sound-card:hover { box-shadow: var(--shadow-lg); }
.sound-card .info { flex: 1; min-width: 0; }
.sound-card .title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wave { display: flex; gap: 2px; align-items: center; height: 22px; margin-top: 4px; }
.wave i { flex: 1; background: color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 2px; min-width: 2px; }
.playing-card .wave i { background: var(--brand-2); animation: eq .8s ease-in-out infinite alternate; }
.playing-card .wave i:nth-child(3n) { animation-delay: -.3s; }
.playing-card .wave i:nth-child(2n) { animation-delay: -.5s; }
@keyframes eq { to { transform: scaleY(.4); } }

.pack-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; }
.pack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pack-card .cover { aspect-ratio: 16/10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px; background: var(--gradient); }
.pack-card .cover img { width: 100%; aspect-ratio: 1; object-fit: contain; background: rgba(255,255,255,.18); border-radius: 10px; padding: 4px; }
.pack-card .body { padding: 14px 16px; }

.cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; }
.cat-card:hover { border-color: var(--brand); text-decoration: none; }
.cat-card .emoji { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.4rem; }

/* Detail page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 36px 0; align-items: start; }
.detail-media { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; position: relative; }
.detail-media .stage { aspect-ratio: 1; border-radius: 16px; background-color: var(--bg-soft); background-image: conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0); background-size: 28px 28px; display: grid; place-items: center; padding: 24px; }
.detail-media .stage img { max-height: 100%; object-fit: contain; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

.player { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.player .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; cursor: pointer; }
.player .bar span { display: block; height: 100%; width: 0; background: var(--gradient); }

/* Premium */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan { position: relative; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan.popular { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-lg); }
.plan .price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 8px 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: .93rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* Banner / CTA */
.cta { border-radius: 28px; padding: 44px; background: var(--gradient); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { color: #fff; }
.cta .btn-ghost { background: #fff; color: #1d1730; border: 0; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 28px; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 12px; background: var(--surface-2); }

/* Tabs / account */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.page-head { padding: 36px 0 12px; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.empty .big { font-size: 2.6rem; }
.auth-wrap { max-width: 440px; margin: 48px auto; }
.prose { max-width: 760px; }
.prose p { white-space: pre-line; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td .thumb-sm { width: 44px; min-width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--bg-soft); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { opacity: .45; }

/* Maker */
.maker { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; padding: 28px 0 48px; align-items: start; }
.maker-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 18px; position: sticky; top: 86px; }
.maker-stage canvas { width: 100%; aspect-ratio: 1; border-radius: 16px; background-color: var(--bg-soft); background-image: conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0); background-size: 24px 24px; touch-action: none; cursor: crosshair; }
.maker-panel .card + .card { margin-top: 16px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tool { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: 600 .85rem var(--font); }
.tool.active { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--brand); }
.rec-btn { width: 84px; height: 84px; border-radius: 999px; border: 0; background: #ef4444; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(239,68,68,.4); margin: 0 auto; }
.rec-btn svg { width: 32px; height: 32px; }
.rec-btn.recording { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(239,68,68,.15); } }
.rec-time { font-family: var(--display); font-size: 1.6rem; text-align: center; margin-top: 10px; }
@media (max-width: 900px) { .maker { grid-template-columns: 1fr; } .maker-stage { position: static; } }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); padding: 3px 0; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--text); color: var(--bg) !important; font-weight: 600; font-size: .85rem; }
.store-badge svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .25s ease; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

dialog { border: 0; border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(440px, calc(100% - 32px)); }

.wa-steps { padding-left: 20px; margin: 10px 0; }
.wa-steps li { margin: 6px 0; }
dialog::backdrop { background: rgba(15, 10, 30, .55); }

/* ---------------- Admin ---------------- */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #15102a; color: #d8d1f0; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; margin: 4px 8px 22px; font-size: 1.15rem; }
.admin-side .brand svg { width: 32px; height: 32px; }
.admin-side h6 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #8c82b0; margin: 18px 10px 6px; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: #d8d1f0; font-weight: 500; font-size: .93rem; }
.admin-side a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.admin-side a.active { background: linear-gradient(120deg, rgba(124,58,237,.5), rgba(236,72,153,.35)); color: #fff; }
.admin-side .count { background: #ec4899; color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 700; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.7rem; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat .value { font-family: var(--display); font-size: 1.9rem; font-weight: 700; margin-top: 4px; }
.stat.alert-stat { border-color: color-mix(in srgb, var(--brand-2) 40%, var(--border)); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: var(--brand); min-height: 2px; }
.bars .b.alt { background: var(--brand-2); }
.bars .col span { font-size: .65rem; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters input[type=checkbox] { min-width: 0; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bulkbar select, .bulkbar input { width: auto; }
.admin-menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.open { transform: none; }
  .admin-menu-toggle { display: inline-grid; }
  .admin-main { padding: 16px; }
}
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 4px; }
.pick { position: relative; border: 2px solid var(--border); border-radius: 12px; padding: 6px; cursor: pointer; background: var(--surface); font-size: .72rem; text-align: center; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pick input { position: absolute; top: 6px; left: 6px; }
.pick:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }

/* Maker mode picker */
.mode-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 4px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: left; transition: border-color .12s, box-shadow .12s; }
.mode:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.mode.active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.mode-ico { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
label.tool { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
label.tool[hidden] { display: none; }
@media (max-width: 640px) { .mode-picker { grid-template-columns: 1fr; } .mode { flex-direction: row; align-items: center; gap: 10px; } .mode .muted { display: none; } }

/* Home: animated how-to */
.home-hero { padding: 40px 0 8px; text-align: center; }
.home-hero h1 { margin-bottom: 8px; }
.home-hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto 22px; font-size: 1.08rem; }
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.ht-step { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); animation: ht-focus 8s infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes ht-focus {
  0%, 22% { border-color: var(--brand); box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 28%, transparent); transform: translateY(-4px); }
  27%, 100% { border-color: var(--border); box-shadow: none; transform: none; }
}
.ht-art { position: relative; height: 92px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; overflow: hidden; display: grid; place-items: center; }
.ht-link .ht-chip { font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); max-width: 90%; overflow: hidden; white-space: nowrap; }
.ht-link .ht-fill { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 6px; border-radius: 6px; background: var(--border); }
.ht-link .ht-fill::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 6px; background: var(--gradient); animation: ht-load 2s ease-in-out infinite; }
@keyframes ht-load { 0% { width: 0; } 80%, 100% { width: 100%; } }
.ht-film { display: flex; gap: 3px; width: 86%; }
.ht-film i { flex: 1; height: 44px; border-radius: 4px; background: linear-gradient(160deg, #7fd8ff, #b38cff); }
.ht-film i:nth-child(odd) { background: linear-gradient(160deg, #ffc93c, #ff7aa2); }
.ht-win { position: absolute; top: 18px; height: 56px; width: 34%; left: 10%; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 0 0 999px rgba(20, 10, 40, .35); animation: ht-slide 2s ease-in-out infinite alternate; }
.ht-cut { position: absolute; top: 2px; left: 10%; font-size: 1.1rem; animation: ht-slide 2s ease-in-out infinite alternate; }
@keyframes ht-slide { from { left: 8%; } to { left: 56%; } }
.ht-eq { grid-template-columns: auto auto; gap: 10px; }
.ht-face { font-size: 2.4rem; animation: ht-bob 1s ease-in-out infinite; }
@keyframes ht-bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
.ht-bars { display: flex; gap: 3px; align-items: center; height: 44px; }
.ht-bars i { width: 5px; height: 100%; border-radius: 3px; background: var(--brand-2); animation: ht-eq .7s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -0.13s); }
@keyframes ht-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.ht-chat { background: #e6ddd4; }
:root[data-theme="dark"] .ht-chat { background: #1f2c33; }
.ht-msg { font-size: 2rem; padding: 6px 10px; border-radius: 14px 14px 4px 14px; background: #d9fdd3; justify-self: end; margin-right: 14px; animation: ht-pop 2s ease-in-out infinite; }
.ht-wa { position: absolute; left: 10px; bottom: 8px; font-size: .7rem; font-weight: 700; color: #128c7e; }
@keyframes ht-pop { 0%, 30% { transform: scale(0); } 45% { transform: scale(1.15); } 55%, 100% { transform: scale(1); } }
@media (max-width: 860px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .howto *, .ht-step { animation: none !important; } }

/* "More" menu */
.nav-more { position: relative; }
.nav-more > button { background: none; border: 0; color: var(--text); padding: 8px 12px; border-radius: 999px; font: 500 .95rem var(--font); cursor: pointer; }
.nav-more > button:hover { background: var(--surface-2); }
.nav-more .dropdown-menu { left: 0; right: auto; }
@media (max-width: 920px) { .nav-more .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; } .nav-more > button { display: none; } }

/* Buttons are not text: no selection, no Safari "Look Up" / long-press callout on firm clicks. */
.btn, .tool, .chip, .mode, .fav-btn, .round-play, .icon-btn, .rec-btn, .pick, .tabs a, .nav-links a, .nav-more > button {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
