/* ==========================================================================
   StickerVox.com — Production Design System
   DNA: SV-01 Tactile Studio Dark + SV-02 3D Vinyl Peel-Off + SV-05 Floating Player
   Standards: Concentric Radii, @container Responsive, 44x44px Touch, LCP < 1s
   ========================================================================== */

:root {
  --bg: #090C10;
  --surface: #12171E;
  --surface-2: #161D26;
  --surface-3: #1C2531;
  --glass: rgba(14, 20, 28, 0.84);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text: #F4F7FA;
  --muted: #94A3B8;
  --muted-2: #64748B;
  --accent: #1EE87A;
  --accent-dim: rgba(30, 232, 122, 0.14);
  --accent-glow: rgba(30, 232, 122, 0.28);
  --amber: #FFB800;
  --amber-dim: rgba(255, 184, 0, 0.14);
  --cyan: #38BDF8;
  --cyan-dim: rgba(56, 189, 248, 0.14);
  --coral: #FF4D6D;
  --wa-bg: #0B141A;
  --wa-header: #1F2C34;
  --wa-in: #1F2C34;
  --wa-out: #005C4B;

  --r-outer: 24px;
  --r-card: 20px;
  --r-inner: 12px;
  --r-pill: 999px;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(920px circle at 12% -6%, rgba(30, 232, 122, 0.10), transparent 55%),
    radial-gradient(760px circle at 92% 10%, rgba(255, 184, 0, 0.07), transparent 52%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

/* Subtle anti-banding SVG grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer, aside { position: relative; z-index: 1; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabular { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.container {
  width: min(1260px, 100% - 2rem);
  margin-inline: auto;
}

/* ================= TOP NAVIGATION ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 12, 16, 0.84);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 66px;
  padding: 0.65rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid rgba(30, 232, 122, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(30, 232, 122, 0.16);
}

.brand-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}

.brand-bars span {
  width: 3px;
  border-radius: 99px;
  background: var(--accent);
  animation: eqIdle 1.6s ease-in-out infinite;
}
.brand-bars span:nth-child(1) { height: 7px; animation-delay: 0s; }
.brand-bars span:nth-child(2) { height: 15px; animation-delay: 0.2s; }
.brand-bars span:nth-child(3) { height: 18px; animation-delay: 0.4s; }
.brand-bars span:nth-child(4) { height: 11px; animation-delay: 0.15s; }

@keyframes eqIdle {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active { color: var(--accent); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.lang-switch a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.34rem 0.55rem;
  border-radius: 7px;
  color: var(--muted);
  transition: all 0.16s ease;
}

.lang-switch a.active {
  background: var(--text);
  color: #090C10;
}

.btn-audio-global {
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 232, 122, 0.3);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-audio-global.muted {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
}

.btn-audio-global:active { transform: scale(0.97); }

/* Mobile compact sub-nav strip */
.mobile-nav-strip {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.45rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mobile-nav-strip::-webkit-scrollbar { display: none; }
.mobile-nav-strip .container {
  display: flex;
  gap: 0.4rem;
}
.mobile-nav-strip a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.mobile-nav-strip a.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ================= ASYMMETRIC HERO (SV-01) ================= */
.hero {
  padding: clamp(2rem, 4.8vw, 3.8rem) 0 clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(30, 232, 122, 0.28);
  padding: 0.36rem 0.8rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.9vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.05rem;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease-snappy), box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #06110B;
  box-shadow: 0 8px 26px rgba(30, 232, 122, 0.28);
}
.btn-primary:hover {
  background: #30F287;
  box-shadow: 0 10px 32px rgba(30, 232, 122, 0.38);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.btn-amber {
  background: var(--amber);
  color: #090C10;
}
.btn-amber:hover { background: #FFC933; }

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 10px;
}

.telemetry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.tele-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tele-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.tele-lbl {
  font-size: 0.76rem;
  color: var(--muted);
}

/* ================= LIVE WHATSAPP CHAT PHONE HERO ================= */
.wa-phone-shell {
  background: linear-gradient(160deg, #1A232E, #0E141B);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wa-screen {
  background:
    radial-gradient(circle at 20% 25%, rgba(30, 232, 122, 0.06), transparent 55%),
    var(--wa-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-top {
  background: var(--wa-header);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0FA958);
  color: #06110B;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.wa-name { font-weight: 700; font-size: 0.9rem; line-height: 1.15; }
.wa-status { font-size: 0.72rem; color: var(--accent); font-family: var(--font-mono); }

.wa-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
}

.wa-chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wa-msg {
  max-width: 86%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.38;
}

.wa-msg.in {
  align-self: flex-start;
  background: var(--wa-in);
  border-top-left-radius: 4px;
  color: #E2E8F0;
}

.wa-msg.out {
  align-self: flex-end;
  background: var(--wa-out);
  border-top-right-radius: 4px;
  color: #ECFDF5;
}

.wa-sticker-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.wa-sticker-row.right { justify-content: flex-end; }

/* Tactile Die-Cut Sticker Bubble inside WA Hero */
.wa-diecut-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem 0.65rem 0.7rem;
  border-radius: 20px;
  border: 3px solid #F8FAFC;
  background: linear-gradient(145deg, #1E293B, #0F172A);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s var(--ease-spring), border-color 0.2s ease, box-shadow 0.22s ease;
}

.wa-diecut-btn:hover {
  transform: translateY(-3px) rotate(-1.5deg) scale(1.02);
  border-color: var(--accent);
}

.wa-diecut-btn.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 232, 122, 0.22), 0 12px 30px rgba(30, 232, 122, 0.25);
  transform: scale(1.03);
}

.wa-sticker-art {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}

.wa-sticker-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-sticker-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.15;
}

.wa-sticker-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.loop-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(30, 232, 122, 0.16);
  color: var(--accent);
}

.wa-foot {
  background: #141E25;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ================= SECTIONS & HEADINGS ================= */
.section {
  padding: clamp(2.2rem, 4.5vw, 3.6rem) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.section-lead {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin-top: 0.35rem;
}

/* ================= CREATOR WORKBENCH (OPUS MINI-APP) ================= */
.creator-deck {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-outer);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 16px;
}

.creator-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.segmented {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.seg-btn {
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-btn.active {
  background: var(--accent);
  color: #06110B;
}

.creator-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.upload-label {
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  border: 1px dashed rgba(30, 232, 122, 0.45);
  background: rgba(30, 232, 122, 0.06);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.upload-label input { display: none; }

.select-clean, .input-clean {
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}

.btn-rec {
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.12);
  color: #FF859B;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-rec.recording {
  background: var(--coral);
  color: #FFFFFF;
  animation: pulseDot 1s infinite;
}

.wave-stage {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
}

.wave-stage canvas {
  width: 100%;
  height: 86px;
  display: block;
}

.trim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.range-field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.range-field strong {
  color: var(--accent);
  font-family: var(--font-mono);
}

input[type="range"].tactile-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: #232E3D;
  cursor: pointer;
}

input[type="range"].tactile-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #090C10;
  box-shadow: 0 0 12px rgba(30, 232, 122, 0.45);
}

.fx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fx-pill {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-pill:hover { border-color: var(--border-hover); color: var(--text); }
.fx-pill.active {
  background: var(--amber-dim);
  border-color: var(--amber);
  color: var(--amber);
}

.preview-stage-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 1rem;
  background:
    radial-gradient(360px circle at 50% 25%, rgba(30, 232, 122, 0.12), transparent 65%),
    var(--wa-bg);
}

.sticker-canvas-wrap {
  position: relative;
  width: 184px;
  height: 184px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring);
}
.sticker-canvas-wrap:hover { transform: scale(1.04) rotate(-2deg); }

#stickerPreviewCanvas {
  width: 180px;
  height: 180px;
  border-radius: 26px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
}

.creator-export-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

/* ================= STICKER GRID WITH SV-02 3D PEEL-OFF ================= */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.9rem 0.55rem 2.45rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
}

.search-box .search-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.cat-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cat-pill {
  min-height: 40px;
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cat-pill:hover { color: var(--text); border-color: var(--border-hover); }
.cat-pill.active {
  background: var(--accent);
  color: #06110B;
  border-color: var(--accent);
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Concentric card + SV-02 3D Peel-Off corner on hover */
.sticker-card {
  position: relative;
  background:
    radial-gradient(280px circle at var(--mx, 50%) var(--my, 30%), rgba(30, 232, 122, 0.10), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.24s var(--ease-snappy), border-color 0.2s ease, box-shadow 0.24s ease;
}

.sticker-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.sticker-card.is-playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(30, 232, 122, 0.4), 0 18px 40px rgba(30, 232, 122, 0.14);
}

/* Die-Cut Vinyl Sticker Stage with 3D Corner Peel-Off (from SV-02) */
.peel-stage {
  position: relative;
  height: 146px;
  border-radius: var(--r-inner);
  background: #0D1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.diecut-vinyl {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 3.5px solid #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.26s var(--ease-spring), clip-path 0.26s var(--ease-snappy);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.peel-stage:hover .diecut-vinyl,
.sticker-card.is-playing .diecut-vinyl {
  transform: scale(1.05) rotate(-2deg);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.peel-flap {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  background: linear-gradient(225deg, rgba(255,255,255,0.95) 0%, #CBD5E1 48%, #64748B 100%);
  border-bottom-left-radius: 8px;
  box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.45);
  transition: width 0.26s var(--ease-snappy), height 0.26s var(--ease-snappy);
  pointer-events: none;
}

.peel-stage:hover .peel-flap,
.sticker-card.is-playing .peel-flap {
  width: 26px;
  height: 26px;
}

.vinyl-emoji { font-size: 2.35rem; line-height: 1; }
.vinyl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.vinyl-chip {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(9, 12, 16, 0.78);
  color: #FFFFFF;
}

.peel-badge-tl {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(9, 12, 16, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
}

.peel-badge-br {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(30, 232, 122, 0.16);
  color: var(--accent);
}

.sticker-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.sticker-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.card-btn-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem;
  margin-top: auto;
}

.card-btn-row button {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-btn-row button:hover { border-color: var(--border-hover); background: var(--surface-3); }
.card-btn-row .btn-play-card {
  background: var(--accent-dim);
  border-color: rgba(30, 232, 122, 0.34);
  color: var(--accent);
}
.sticker-card.is-playing .btn-play-card {
  background: var(--accent);
  color: #06110B;
}

/* ================= HORIZONTAL RECTANGLE DIRECTORY (@container!) ================= */
.dir-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.density-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.density-btn {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.density-btn.active { background: var(--text); color: #090C10; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.channel-grid.single-col {
  grid-template-columns: 1fr;
}

.channel-slot {
  container-type: inline-size;
  container-name: entity-card;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.channel-row:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.channel-row.featured {
  border-color: rgba(255, 184, 0, 0.42);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), var(--surface) 60%);
}

.ch-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ch-main {
  min-width: 0;
  flex: 1;
}

.ch-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-desc {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-stats {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 2px;
}

.ch-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@container entity-card (max-width: 470px) {
  .channel-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ch-title, .ch-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .ch-actions {
    width: 100%;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
  }
  .ch-actions .btn { flex: 1; }
}

/* ================= ECOSYSTEM / ASTRAGRUPOS BRIDGE ================= */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.eco-card {
  border-radius: 22px;
  padding: 1.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
}

.eco-card.astra {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.11), var(--surface) 62%);
}

.eco-card.msp {
  border-color: rgba(204, 255, 0, 0.28);
  background: linear-gradient(145deg, rgba(204, 255, 0, 0.08), var(--surface) 62%);
}

.eco-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.eco-card p { color: var(--muted); font-size: 0.9rem; }

/* ================= FAQ & EDITORIAL CARDS ================= */
.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 72ch;
}

/* ================= CODE EMBED BOX ================= */
.code-box {
  background: #06080B;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #A7F3D0;
  overflow-x: auto;
  line-height: 1.5;
}

/* ================= FLOATING BOTTOM PLAYER BAR (FROM SV-05!) ================= */
.floating-player {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  transform: translateX(-50%);
  width: min(860px, calc(100% - 1.25rem));
  z-index: 80;
  background: rgba(14, 20, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 232, 122, 0.32);
  border-radius: 18px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fp-art {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #F8FAFC;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: var(--surface-2);
}

.fp-info {
  min-width: 0;
  flex: 1;
}

.fp-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fp-progress {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 5px;
}

.fp-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  transition: width 0.08s linear;
}

.fp-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.fp-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.65rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fp-btn.play {
  background: var(--accent);
  color: #06110B;
  border-color: var(--accent);
}

.fp-btn.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* ================= MODAL & TOAST ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop.open { display: grid; }

.modal-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 22px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }

.shield-msg {
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  display: none;
}
.shield-msg.ok { display: block; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(30,232,122,0.3); }
.shield-msg.err { display: block; background: rgba(255,77,109,0.14); color: #FF8FA3; border: 1px solid rgba(255,77,109,0.35); }

.toast {
  position: fixed;
  top: 78px;
  right: 16px;
  z-index: 120;
  background: #16221D;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.22s var(--ease-snappy);
}
.toast.show { opacity: 1; transform: translateY(0); }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.42rem; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-nav-strip { display: block; }
  .hero { grid-template-columns: 1fr; }
  .creator-deck { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 1.25rem); }
  input, select, textarea { font-size: 16px !important; }
  .trim-grid { grid-template-columns: 1fr; }
  .creator-export-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fp-hide-sm { display: none; }
  .density-toggle { display: none; }
  .floating-player { padding: 0.55rem 0.65rem; gap: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
