:root {
  --bg: #04090c;
  --bg-elevated: rgba(11, 21, 27, 0.88);
  --bg-card: rgba(17, 32, 41, 0.88);
  --bg-input: rgba(7, 14, 19, 0.94);
  --border: rgba(164, 214, 208, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(37, 211, 102, 0.45);
  --text: #f4faf7;
  --text-muted: #9ab3b9;
  --text-dim: #6c868e;

  --wa-green: #25d366;
  --wa-green-bright: #4dff91;
  --wa-green-dark: #00a884;
  --wa-green-soft: rgba(37, 211, 102, 0.14);
  --cyan: #38e8ff;
  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.14);
  --danger: #ff5d5d;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.52);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 420px at 15% 0%, rgba(37, 211, 102, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 380px at 88% 6%, rgba(56, 232, 255, 0.08), transparent 70%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main,
section,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--wa-green-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
canvas,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(4, 9, 12, 0.84);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--wa-green-bright);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.16s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.main-nav a.nav-ad-link {
  color: #1c1300;
  background: linear-gradient(135deg, #ffd166, #f5a623);
  margin-left: 6px;
  box-shadow: 0 6px 22px rgba(245, 185, 66, 0.28);
}

.main-nav a.nav-ad-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 16px 18px;
  gap: 6px;
  border-top: 1px solid var(--border);
  background: #081218;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}

.mobile-nav a.mobile-ad-link {
  background: var(--gold-soft);
  color: var(--gold);
}

/* Above-the-Fold Studio Header */
.studio-section {
  padding: 18px 0 56px;
}

.studio-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.studio-topbar-left {
  max-width: 700px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pill-live {
  background: var(--wa-green-soft);
  color: #79ffb0;
  border: 1px solid rgba(37, 211, 102, 0.36);
}

.pill-source {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green-bright);
  box-shadow: 0 0 0 0 rgba(77, 255, 145, 0.75);
  animation: pulseDot 1.9s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(77, 255, 145, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(77, 255, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 255, 145, 0); }
}

.studio-topbar h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.studio-lead {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(120deg, #52ff96 0%, #25d366 48%, #63e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(120deg, #ffe08a 0%, #f5b942 60%, #ff9a3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.studio-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.trust-mini-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(14, 28, 36, 0.9);
  border: 1px solid rgba(37, 211, 102, 0.32);
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease;
}

.trust-mini-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--wa-green);
}

.trust-mini-icon {
  font-size: 1.25rem;
}

.trust-mini-card strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.trust-mini-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--wa-green-bright);
  font-weight: 600;
}

.ad-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.08);
  border: 1px dashed rgba(245, 185, 66, 0.42);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
}

.ad-mini-pill:hover {
  text-decoration: none;
  background: rgba(245, 185, 66, 0.16);
}

.ad-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1c1300;
  background: var(--gold);
  padding: 3px 7px;
  border-radius: 999px;
}

/* Studio Layout */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(350px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.studio-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sticky-panel {
  position: sticky;
  top: 78px;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top-color: var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.panel-glass {
  backdrop-filter: blur(18px) saturate(135%);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wa-green-bright), var(--wa-green-dark));
  color: #041d10;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(154, 179, 185, 0.26);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  border-color: var(--wa-green);
  background: rgba(37, 211, 102, 0.06);
  outline: none;
}

.dropzone-compact {
  padding: 26px 18px;
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.dropzone-icon {
  font-size: 1.85rem;
}

.dropzone-empty strong {
  font-size: 0.93rem;
}

.dropzone-empty span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropzone-loaded {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}

.dropzone-loaded[hidden],
.dropzone-empty[hidden] {
  display: none;
}

.dropzone-loaded img,
.dropzone-loaded video {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: repeating-conic-gradient(#1a2b35 0% 25%, #111e25 0% 50%) 50% / 14px 14px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.dropzone-loaded img[hidden],
.dropzone-loaded video[hidden] {
  display: none;
}

.dropzone-file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dropzone-file-meta strong {
  font-size: 0.91rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropzone-file-meta span {
  font-size: 0.78rem;
  color: var(--wa-green-bright);
}

.change-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

/* Paste from WhatsApp Bar */
.wa-paste-bar {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(37, 211, 102, 0.07);
  border: 1px solid rgba(37, 211, 102, 0.26);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.btn-paste-wa {
  width: 100%;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #8dffb8;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.btn-paste-wa kbd {
  background: rgba(4, 9, 12, 0.7);
  border-color: rgba(141, 255, 184, 0.35);
  color: #dcffe9;
}

.wa-paste-hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wa-paste-hint strong {
  color: var(--text);
}

/* Quick Starter Stickers */
.quick-stickers {
  margin-top: 14px;
}

.quick-stickers-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.quick-stickers-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.sample-sticker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sample-sticker-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.48);
}

.sample-sticker-btn.active {
  border-color: var(--wa-green);
  background: var(--wa-green-soft);
}

.sample-sticker-btn img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.sample-sticker-btn span {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Customizer */
.customizer {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(7, 14, 19, 0.68);
}

.customizer summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.customizer summary::-webkit-details-marker {
  display: none;
}

.customizer[open] summary .chevron {
  transform: rotate(180deg);
}

.customizer-body {
  padding: 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-group label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.seg-btn {
  flex: 1;
  min-width: fit-content;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--wa-green);
  color: #041d10;
}

.toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.toggle-chip input {
  accent-color: var(--wa-green);
  width: 16px;
  height: 16px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-field label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-field input,
.input-field select,
.input-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  outline: none;
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

/* Audio Source Tabs */
.audio-source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 14px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Search Bar & Quick Tags */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.92rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 0.9rem;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--wa-green);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.tag-chip.active {
  background: var(--wa-green-soft);
  color: #7dffb0;
  border-color: var(--wa-green);
}

.soundboard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.soundboard-tip {
  color: var(--text-dim);
}

/* MyInstants 3D Soundboard Grid */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 11px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 211, 102, 0.38) transparent;
}

.meme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 13px 10px 10px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.meme-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.meme-card.selected {
  border-color: var(--wa-green);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.16), rgba(16, 30, 38, 0.96));
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.35);
}

.instant-btn-shell {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.instant-btn-base {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3c4d57, #152028);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.58), inset 0 2px 3px rgba(255, 255, 255, 0.16);
}

.instant-play-btn {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(
    circle at 34% 26%,
    rgba(255, 255, 255, 0.56) 0%,
    var(--btn-color, #ff3b30) 42%,
    color-mix(in srgb, var(--btn-color, #ff3b30) 64%, #000) 100%
  );
  box-shadow:
    0 6px 0 color-mix(in srgb, var(--btn-color, #ff3b30) 48%, #000),
    0 9px 14px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
  transform: translateY(-3px);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  font-size: 1rem;
}

.instant-play-btn:active,
.meme-card.playing .instant-play-btn {
  transform: translateY(2px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--btn-color, #ff3b30) 48%, #000);
}

.meme-card.playing .instant-btn-shell::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa-green-bright);
  animation: soundRing 1s ease-out infinite;
  pointer-events: none;
}

@keyframes soundRing {
  0% { transform: scale(0.92); opacity: 0.95; }
  100% { transform: scale(1.24); opacity: 0; }
}

.meme-title {
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.24;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.48em;
}

.meme-select-btn {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
}

.meme-card.selected .meme-select-btn {
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: #041d10;
}

.load-more-wrap {
  margin-top: 12px;
  text-align: center;
}

/* Audio Editor & Waveform */
.audio-editor {
  margin-top: 16px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 36, 44, 0.92), rgba(8, 16, 22, 0.96));
  border: 1px solid var(--border-strong);
}

.audio-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.selected-sound-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selected-color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--wa-green);
  border: 2px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.selected-sound-info small {
  display: block;
  font-size: 0.7rem;
  color: var(--wa-green-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.selected-sound-info strong {
  font-size: 0.94rem;
}

.selected-sound-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.waveform-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #060d12;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

#waveformCanvas {
  width: 100%;
  height: 78px;
}

.waveform-loading {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 18, 0.85);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--wa-green-bright);
  font-weight: 600;
}

.waveform-loading[hidden] {
  display: none;
}

.trim-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.range-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.range-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.range-head .mono {
  color: var(--text);
  font-weight: 600;
}

.range-field input[type='range'] {
  width: 100%;
  accent-color: var(--wa-green);
  cursor: pointer;
}

/* WhatsApp Phone Preview */
.wa-phone {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b141a;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: #1f2c34;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.wa-chat-info {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.wa-chat-info strong {
  display: block;
  font-size: 0.88rem;
  color: #e9edef;
}

.wa-chat-info span {
  font-size: 0.72rem;
  color: #8696a0;
}

.wa-header-icons {
  font-size: 0.82rem;
  color: #8696a0;
  letter-spacing: 2px;
}

.wa-chat-body {
  padding: 13px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-date-pill {
  align-self: center;
  background: #182229;
  color: #8696a0;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}

.wa-msg-in {
  align-self: flex-start;
  max-width: 86%;
  background: #202c33;
  padding: 7px 11px 5px;
  border-radius: 0 12px 12px 12px;
  color: #e9edef;
}

.wa-sender {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #53bdeb;
  margin-bottom: 2px;
}

.wa-msg-in p {
  margin: 0 0 2px;
  font-size: 0.82rem;
}

.wa-time {
  font-size: 0.66rem;
  color: #8696a0;
  float: right;
}

.wa-msg-out-sticker {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.wa-sticker-stage {
  position: relative;
  width: 212px;
  height: 212px;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

#stickerPreviewCanvas,
.wa-anim-media {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #0b141a;
}

#stickerPreviewCanvas[hidden],
.wa-anim-media[hidden] {
  display: none;
}

.wa-anim-media.fit-contain {
  object-fit: contain;
}

.wa-caption-overlay {
  position: absolute;
  left: 8px;
  right: 8px;
  text-align: center;
  font-family: Impact, 'Space Grotesk', 'Arial Black', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
  pointer-events: none;
  z-index: 3;
}

.wa-caption-top { top: 10px; }
.wa-caption-bottom { bottom: 12px; }

.wa-native-speaker {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 20, 26, 0.74);
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
}

.wa-native-speaker[hidden] {
  display: none;
}

.wa-sticker-stage.playing .wa-native-speaker {
  background: rgba(37, 211, 102, 0.92);
  color: #041d10;
  transform: scale(1.1);
}

.wa-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.56) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wa-sticker-stage:hover .wa-play-overlay,
.wa-sticker-stage.playing .wa-play-overlay {
  opacity: 1;
}

.wa-play-pill {
  background: rgba(11, 20, 26, 0.88);
  color: #fff;
  border: 1px solid rgba(37, 211, 102, 0.65);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.wa-sticker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(11, 20, 26, 0.8);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: #aebac1;
}

.wa-ticks {
  color: #53bdeb;
  margin-left: 2px;
}

/* Readiness checklist */
.readiness-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.readiness-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.readiness-item.done {
  color: #84ffb1;
  font-weight: 600;
}

.ready-icon {
  width: 16px;
  text-align: center;
  font-weight: 800;
}

/* Direct Native WhatsApp Audio Sticker Sender Card */
.wa-direct-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.12), rgba(8, 16, 22, 0.96));
  border: 1px solid rgba(37, 211, 102, 0.44);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.wa-direct-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wa-direct-head strong {
  display: block;
  font-size: 0.9rem;
}

.wa-direct-head small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.wa-conn-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wa-conn-pill.offline { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.wa-conn-pill.qr { background: var(--gold-soft); color: var(--gold); }
.wa-conn-pill.online { background: rgba(37, 211, 102, 0.22); color: #7effad; }

.wa-conn-box,
.wa-connected-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wa-conn-box[hidden],
.wa-qr-box[hidden],
.wa-connected-box[hidden],
.wa-send-feedback[hidden] {
  display: none;
}

.wa-conn-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.wa-conn-note strong { color: var(--text); }

.wa-security-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--wa-green-bright);
}

.wa-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 9, 12, 0.78);
  border: 1px solid var(--border);
}

.wa-qr-frame {
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
}

.wa-qr-frame img {
  width: 200px;
  height: 200px;
}

.wa-qr-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.77rem;
  color: var(--text-muted);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-qr-steps strong { color: var(--text); }

.wa-connected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(4, 9, 12, 0.72);
  border: 1px solid rgba(37, 211, 102, 0.3);
  font-size: 0.79rem;
  font-weight: 700;
  color: #84ffb1;
}

.wa-target-field label { font-size: 0.73rem; }

.wa-send-feedback {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.45;
}

.wa-send-feedback.success {
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #93ffba;
}

.wa-send-feedback.error {
  background: rgba(255, 93, 93, 0.14);
  border: 1px solid rgba(255, 93, 93, 0.45);
  color: #ff9f9f;
}

.export-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 9px;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.export-divider::before,
.export-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 11px 17px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, filter 0.16s ease, opacity 0.16s ease;
}

.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: 0.46; cursor: not-allowed; transform: none; filter: none; }
.btn-full { width: 100%; }

.btn-primary,
.btn-generate {
  width: 100%;
  background: linear-gradient(135deg, #43f684, #00a884);
  color: #031e10;
  font-size: 0.94rem;
  padding: 13px 18px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
}

.btn-primary-sm {
  background: linear-gradient(135deg, #43f684, #00a884);
  color: #031e10;
  padding: 9px 15px;
  font-size: 0.86rem;
}

.btn-whatsapp {
  width: 100%;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #7effad;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.84rem;
}

.btn-secondary-sm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 11px;
  font-size: 0.77rem;
  flex: 1;
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid rgba(37, 211, 102, 0.55);
  color: #7effad;
  padding: 7px 13px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.btn-ghost-sm {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 8px;
  margin-left: auto;
}

.btn-ghost-sm:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.btn-gold {
  width: 100%;
  background: linear-gradient(135deg, #ffd166, #f59e0b);
  color: #1f1300;
  padding: 13px 20px;
  font-size: 0.94rem;
  box-shadow: 0 12px 26px rgba(245, 185, 66, 0.28);
}

/* Progress & Result */
.render-progress {
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #25d366, #63e8ff);
  transition: width 0.12s linear;
}

.result-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.11), rgba(8, 16, 22, 0.96));
  border: 1px solid rgba(37, 211, 102, 0.45);
}

.result-badge { font-weight: 800; font-size: 0.88rem; color: #7effad; margin-bottom: 10px; }
.result-video-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
#resultVideo { width: 196px; height: 196px; border-radius: 16px; background: #0b141a; border: 1px solid var(--border); object-fit: cover; }
.result-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.spec-pill { font-family: var(--font-mono); font-size: 0.7rem; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.result-secondary-row { display: flex; gap: 8px; }

/* ============================================================
   3D WHATSAPP EMBLEM SPLIT SHOWCASE (CLEAN & MOBILE-FIRST)
   ============================================================ */
.scroll3d-section {
  position: relative;
  padding: 76px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 75% 35%, rgba(37, 211, 102, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #04090c 0%, #07141a 50%, #04090c 100%);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--wa-green-bright);
  margin-bottom: 10px;
}

.kicker-gold { color: var(--gold); }

.section-heading h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.scroll3d-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.story-cards-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(11, 21, 27, 0.9);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.story-card.is-active {
  border-color: rgba(37, 211, 102, 0.52);
  background: linear-gradient(160deg, rgba(16, 36, 44, 0.96), rgba(10, 20, 26, 0.96));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(37, 211, 102, 0.22);
}

.story-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.story-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #041e11;
  background: linear-gradient(135deg, #4dff91, #00a884);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.story-badge-gold {
  background: linear-gradient(135deg, #ffe08a, #f59e0b);
  color: #1f1300;
}

.chapter-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--wa-green-bright);
}

.story-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.story-card p {
  margin: 0 0 15px;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.story-card p strong { color: var(--text); }

.chapter-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-metrics span {
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.scroll3d-sticky-col {
  position: sticky;
  top: 86px;
}

.scroll3d-stage-card {
  border-radius: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(20, 48, 52, 0.72), rgba(7, 14, 19, 0.96) 72%);
  border: 1px solid rgba(37, 211, 102, 0.32);
  padding: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scroll3d-hud {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(4, 9, 12, 0.78);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: #a4f8c4;
  letter-spacing: 0.04em;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green-bright);
  box-shadow: 0 0 10px var(--wa-green-bright);
  flex-shrink: 0;
}

.hud-counter {
  margin-left: auto;
  color: var(--text-muted);
  flex-shrink: 0;
}

.scroll3d-canvas-box {
  position: relative;
  width: 100%;
  height: 410px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
}

#wa3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scroll3d-glow-floor {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 211, 102, 0.35), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.scroll3d-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scroll3d-progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scroll3d-progress-fill {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4dff91, #38e8ff, #f5b942);
  transition: width 0.1s linear;
}

.scroll3d-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

/* ============================================================
   SECURITY WALKTHROUGH SECTION (100% VISIBLE)
   ============================================================ */
.security-section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.08), transparent 48%), var(--bg);
}

.security-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.security-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top-color: var(--border-highlight);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.security-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.45);
}

.security-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.security-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(77, 255, 145, 0.5);
  line-height: 1;
}

.security-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--wa-green-soft);
  border: 1px solid rgba(37, 211, 102, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.security-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.security-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.security-card p strong { color: var(--text); }

.security-card code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  color: #b7ffcf;
}

.security-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #84ffb1;
  font-size: 0.75rem;
  font-weight: 700;
}

.security-banner {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.12), rgba(11, 21, 27, 0.94));
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.security-banner-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #c8f9da;
}

/* FAQ */
.faq-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.faq-container { max-width: 840px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--wa-green-bright); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; font-size: 0.91rem; color: var(--text-muted); }
.faq-item code { font-family: var(--font-mono); font-size: 0.84em; background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 5px; color: #b7ffcf; }

/* Advertisers Section */
.advertise-section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at 80% 10%, rgba(245, 185, 66, 0.11), transparent 46%),
    linear-gradient(180deg, rgba(11, 21, 27, 0.55), var(--bg));
}

.advertise-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.advertise-info h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
}

.advertise-lead { font-size: 1rem; color: var(--text); margin: 0 0 10px; }
.advertise-desc { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 22px; }

.ad-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ad-format-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ad-format-icon { font-size: 1.3rem; flex-shrink: 0; }
.ad-format-card strong { display: block; font-size: 0.88rem; margin-bottom: 3px; }
.ad-format-card p { margin: 0; font-size: 0.79rem; color: var(--text-muted); }

.ad-direct-contact {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(245, 185, 66, 0.06);
  border: 1px solid rgba(245, 185, 66, 0.28);
}

.ad-direct-contact h3 { margin: 0 0 12px; font-size: 0.96rem; color: var(--gold); }

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.channel-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(4, 9, 12, 0.78);
  border: 1px solid var(--border);
}

.channel-label { display: block; font-size: 0.71rem; color: var(--text-muted); margin-bottom: 3px; }
.channel-value-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.channel-value-row a { font-weight: 700; font-size: 0.84rem; color: var(--text); word-break: break-all; }

.copy-btn {
  border: 1px solid rgba(245, 185, 66, 0.45);
  background: rgba(245, 185, 66, 0.12);
  color: var(--gold);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.sla-note { margin: 12px 0 0; font-size: 0.77rem; color: var(--text-muted); }

.advertise-form-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(245, 185, 66, 0.32);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.advertise-form-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.26rem; }
.advertise-form-card > p { margin: 0 0 16px; font-size: 0.86rem; color: var(--text-muted); }

#advertiseForm { display: flex; flex-direction: column; gap: 13px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.form-feedback { padding: 12px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; }
.form-feedback.success { background: rgba(37, 211, 102, 0.14); border: 1px solid rgba(37, 211, 102, 0.45); color: #84ffb1; }
.form-feedback.error { background: rgba(255, 93, 93, 0.14); border: 1px solid rgba(255, 93, 93, 0.45); color: #ff9c9c; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  background: #030608;
}

.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; font-weight: 600; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 16px; font-size: 0.8rem; color: var(--text-dim); }
.footer-legal p { margin: 0 0 6px; }
.footer-ad-cta { color: var(--text-muted); }

/* Toast */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #10202a;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

.toast.error { border-color: rgba(255, 93, 93, 0.65); }
.meme-empty { grid-column: 1 / -1; text-align: center; padding: 36px 16px; color: var(--text-muted); font-size: 0.9rem; }

/* Live Sponsored Studio Banner (controlled from /admin) */
.live-studio-ad {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.11), rgba(11, 22, 29, 0.95));
  border: 1px solid rgba(245, 185, 66, 0.36);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.live-studio-ad[hidden] { display: none !important; }
.live-studio-ad-media {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #071016;
}
.live-studio-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-studio-ad-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.live-studio-ad-body .ad-tag { align-self: flex-start; }
.live-studio-ad-body strong {
  font-size: 0.98rem;
  color: var(--text);
}
.live-studio-ad-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.live-studio-ad-cta {
  width: auto !important;
  flex-shrink: 0;
  padding: 10px 16px !important;
  font-size: 0.85rem !important;
}

@media (max-width: 760px) {
  .live-studio-ad {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .live-studio-ad-cta {
    width: 100% !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE OPTIMIZATION
   ============================================================ */
@media (max-width: 1040px) {
  .studio-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .studio-topbar-right { align-items: flex-start; width: 100%; }
  .trust-mini-card { width: 100%; }

  .scroll3d-split { grid-template-columns: 1fr; gap: 20px; }
  .scroll3d-sticky-col { position: static; order: -1; }
  .scroll3d-canvas-box { height: 270px; }

  .advertise-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 24px); }
  .header-inner { height: 58px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .studio-section { padding: 12px 0 40px; }
  .studio-topbar h1 { font-size: 1.46rem; }
  .studio-lead { font-size: 0.86rem; }

  .quick-stickers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .meme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 350px;
    -webkit-overflow-scrolling: touch;
  }

  .meme-card { padding: 10px 6px 8px; gap: 7px; }
  .instant-btn-shell { width: 58px; height: 58px; }
  .instant-play-btn { width: 46px; height: 46px; font-size: 0.9rem; }
  .meme-title { font-size: 0.71rem; }

  .wa-phone { max-width: 360px; margin-inline: auto; }
  .wa-sticker-stage { width: 186px; height: 186px; }

  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }

  /* Prevent iOS Safari zoom when focusing inputs */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .control-row,
  .trim-controls,
  .security-steps-grid,
  .ad-formats-grid,
  .contact-channels,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .scroll3d-section,
  .security-section,
  .faq-section,
  .advertise-section {
    padding: 52px 0;
  }

  .scroll3d-canvas-box { height: 245px; }
  .scroll3d-hud { font-size: 0.66rem; padding: 7px 10px; }

  .story-card,
  .security-card,
  .advertise-form-card { padding: 18px; }

  .security-banner { padding: 16px; }
  .security-banner .btn { width: 100%; }
  .result-secondary-row { flex-direction: column; }
  .panel { padding: 15px; }

  .toast-container { left: 12px; right: 12px; bottom: 12px; }
}
