/* ==========================================================================
   Actora.ai - Bespoke Nordic Luxury & High-Tech AI Studio Design System
   ========================================================================== */

:root {
  /* Pristine Canvas & Surfaces */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-glass: rgba(255, 255, 255, 0.85);

  /* Borders */
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --border-focus: #18181b;

  /* High-Contrast Editorial Typography */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* Signature Nordic Cobalt Blue Brand Theme */
  --brand-mint: #2563eb;
  --brand-mint-subtle: #eff6ff;
  --brand-mint-border: #bfdbfe;

  --brand-cobalt: #0284c7;
  --brand-cobalt-subtle: #f0f9ff;

  --primary-btn: #1d4ed8;
  --primary-btn-hover: #1e40af;

  /* Diffused Soft Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 20px 45px -10px rgba(15, 23, 42, 0.09), 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-stage: 0 30px 60px -15px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.06);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Ambient Nordic Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-mint {
  top: -10%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: rgba(37, 99, 235, 0.12);
}

.glow-cobalt {
  top: 30%;
  left: -10%;
  width: 750px;
  height: 750px;
  background: rgba(6, 182, 212, 0.1);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Minimalist Editorial Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-text {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 900 !important;
  letter-spacing: -0.6px !important;
}

.brand-badge {
  width: 32px;
  height: 32px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.brand-dot {
  color: var(--brand-mint);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  flex-shrink: 1;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  padding: 4px 6px;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 1000;
}

.nav-lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-lang-picker:hover,
.nav-lang-picker:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.lang-globe-icon {
  font-size: 15px;
  line-height: 1;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.lang-switch-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: none;
  color: #0f172a;
  padding: 2px 18px 2px 0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }

  .nav-actions {
    margin-left: auto;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .lang-switch-select {
    font-size: 12px;
    padding-right: 14px;
  }

  .nav-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-pill {
  border-radius: 999px;
  padding: 10px 24px;
}

.btn-primary {
  background: var(--primary-btn);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
}

.btn-glow {
  position: relative;
}

.btn-glow:after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-cobalt));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-glow:hover:after {
  opacity: 0.4;
}

.btn-outline {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: #cbd5e1;
}

.btn-hero-lg {
  padding: 15px 32px;
  font-size: 15.5px;
}

.sparkle {
  font-size: 14px;
  color: #fbbf24;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero: Split-Screen Interactive Live Studio Stage
   ========================================================================== */
.hero-split {
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* Left Hero Column */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.badge-dot-live {
  width: 8px;
  height: 8px;
  background: var(--brand-mint);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.badge-eyebrow-text {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.hero-headline {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-line-1 {
  display: block;
  margin-bottom: 4px;
}

.hero-line-2 {
  display: block;
}

.highlight-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
}

.platform-tags-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.platform-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-guarantee-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.dot-sep {
  opacity: 0.5;
}

/* Right Column: 3D Stage Phone Frame */
.hero-stage-wrapper {
  display: flex;
  justify-content: center;
}

.stage-frame {
  width: 320px;
  background: #0f172a;
  border-radius: 36px;
  border: 6px solid #ffffff;
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   Goviral-Beating 3D Floating Tri-Phone Mockups
   ========================================== */
.hero-stage-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tri-phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  width: 100%;
  max-width: 540px;
  height: 440px;
  margin: 0 auto;
}

.floating-phone {
  position: absolute;
  width: 215px;
  height: 390px;
  border-radius: 36px;
  background: #09090b;
  border: 4px solid #27272a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-left {
  left: 0;
  transform: rotate(-10deg) scale(0.86) translateY(20px);
  z-index: 1;
  opacity: 0.88;
}

.phone-left:hover {
  transform: rotate(-4deg) scale(0.94) translateY(0);
  opacity: 1;
  z-index: 4;
}

.phone-center {
  left: 50%;
  transform: translateX(-50%) scale(1.04);
  z-index: 3;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 2.5px #2563eb;
}

.phone-center:hover {
  transform: translateX(-50%) scale(1.08);
}

.phone-right {
  right: 0;
  transform: rotate(10deg) scale(0.86) translateY(20px);
  z-index: 1;
  opacity: 0.88;
}

.phone-right:hover {
  transform: rotate(4deg) scale(0.94) translateY(0);
  opacity: 1;
  z-index: 4;
}

.phone-center.dimmed {
  transform: translateX(-50%) scale(0.98) !important;
  opacity: 0.78 !important;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.45) !important;
  filter: grayscale(15%) !important;
}

.phone-left.focused {
  transform: rotate(-3deg) scale(0.98) translateY(-6px) !important;
  opacity: 1 !important;
  z-index: 5 !important;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 2.5px #6366f1 !important;
}

.phone-right.focused {
  transform: rotate(3deg) scale(0.98) translateY(-6px) !important;
  opacity: 1 !important;
  z-index: 5 !important;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 2.5px #6366f1 !important;
}

.phone-overlay {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  z-index: 2;
  color: #ffffff;
  pointer-events: none;
}

.tiktok-ui-compact {
  pointer-events: none;
}

.overlay-views-badge {
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.overlay-creator-tag {
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tiktok-ui-compact {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.9));
  color: #ffffff;
  pointer-events: none;
}

.tt-right-actions {
  position: absolute;
  right: 8px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tt-avatar-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  overflow: visible;
}

.tt-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tt-plus {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #fe2c55;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.tt-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tt-icon {
  font-size: 13px;
}

.tt-text {
  font-size: 9px;
  font-weight: 700;
}

.tt-bottom-info {
  font-size: 10.5px;
  max-width: 155px;
}

.tt-bottom-info b {
  display: block;
  font-size: 11px;
}

.tt-bottom-info p {
  margin: 2px 0;
  font-size: 10px;
  opacity: 0.9;
}

.tt-sound {
  font-size: 9.5px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   Metrics & Social Proof Strip
   ========================================================================== */
.proof-metrics-strip {
  padding: 36px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-val {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.metric-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ==========================================================================
   Showcase Section: Swipable & Scrollable 16-Card Carousel
   ========================================================================== */
.showcase-section {
  padding: 80px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.section-title-wrap h2 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 16px;
}

.showcase-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Carousel Container */
.showcase-carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-main);
  cursor: pointer;
  z-index: 20;
  box-shadow: var(--shadow-card);
  transition: all 0.15s ease;
}

.carousel-nav-btn:hover {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: -22px;
}

.next-btn {
  right: -22px;
}

.showcase-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 24px;
  -webkit-overflow-scrolling: touch;
}

.showcase-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.showcase-carousel-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.showcase-carousel-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.showcase-carousel-track::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.showcase-card {
  flex: 0 0 268px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.showcase-card:hover {
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.25);
  border-color: #a5b4fc;
}

.showcase-card-media {
  position: relative;
  aspect-ratio: 9/15;
  background: #09090c;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.showcase-card-media img,
.showcase-card-media .card-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.showcase-card-media .card-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.showcase-card:hover .card-preview-video,
.showcase-card-media.playing .card-preview-video {
  opacity: 1;
}

.showcase-card:hover .card-poster,
.showcase-card-media.playing .card-poster {
  opacity: 0;
}

.card-play-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(9, 9, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-2px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}

.card-play-indicator .indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.card-play-indicator .indicator-label {
  font-size: 9px;
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.showcase-card:hover .card-play-indicator,
.showcase-card-media.playing .card-play-indicator {
  opacity: 1;
  transform: translateY(0);
}

.card-metric-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #ffffff;
}

.card-caption-overlay b {
  font-size: 12px;
  display: block;
  line-height: 1.3;
}

.card-caption-overlay span {
  font-size: 10px;
  color: #e2e8f0;
}

.showcase-card-footer {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}

.category-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.use-template-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #f4f4f5;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.use-template-btn:hover {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.28);
  color: #10b981;
  transform: translateY(-1px);
}

/* ==========================================================================
   Real-Time Video Orchestration Pipeline Section
   ========================================================================== */
.pipeline-section {
  padding: 80px 0 60px;
  background: var(--bg);
  position: relative;
}

/* High-Fidelity App Window Frame */
.app-dashboard-frame {
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 36px;
}

/* App Top Navigation Bar */
.app-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #111217;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  user-select: none;
  overflow-x: auto;
}

.app-brand-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.app-name {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f4f4f5;
}

.app-nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.app-tab:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.05);
}

.app-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.tab-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.tab-live-pill {
  font-size: 9px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tab-count {
  font-size: 10px;
  color: #71717a;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.app-user-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.app-time {
  font-size: 11px;
  color: #71717a;
}

.app-gpu-status {
  font-size: 10.5px;
  color: #10b981;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.app-avatar-pill {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Dashboard Subheader */
.app-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #0d0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #71717a;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.loop-indicator {
  color: #10b981;
  font-weight: 700;
}

.next-up .glow-target {
  color: #f4f4f5;
  font-weight: 700;
}

.next-up .countdown {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.sub-right {
  color: #52525b;
  font-size: 10.5px;
}

/* 3-Column Studio Workspace */
.app-workspace-grid {
  display: grid;
  grid-template-columns: 240px 1fr 270px;
  min-height: 460px;
  background: #08080a;
}

/* Column 1: Accounts & Stats */
.workspace-col-accounts {
  background: #0e0f14;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.stats-overview-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 6px;
}

.stat-cell {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 13px;
  font-weight: 800;
  color: #f4f4f5;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.account-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.account-item.active {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: inset 2px 0 0 #10b981;
}

.acc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.acc-name {
  font-size: 12px;
  font-weight: 700;
  color: #f4f4f5;
}

.platform-chip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.platform-chip.tiktok {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.platform-chip.instagram {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.platform-chip.facebook {
  color: #38bdf8;
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.35);
}

.platform-chip.youtube {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.acc-meta {
  font-size: 10px;
  color: #71717a;
  line-height: 1.35;
}

.active-product-card {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 12px;
}

.prod-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.prod-name {
  font-size: 12.5px;
  color: #f4f4f5;
}

.status-chip {
  font-size: 9px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.prod-sub {
  font-size: 10px;
  color: #71717a;
  margin: 0;
  line-height: 1.35;
}

/* Column 2: Visual Workflow Node Canvas */
.workspace-col-canvas {
  background: #07080a;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.canvas-grid-bg {
  flex: 1;
  position: relative;
  min-height: 380px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.canvas-cables-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.canvas-node {
  position: absolute;
  z-index: 2;
  background: #111218;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  width: 160px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.canvas-node:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

.canvas-node.active {
  border-color: #10b981;
  background: #121816;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 0 1px #10b981;
}

.canvas-node.glow {
  border-color: #10b981;
  animation: nodeGlow 3s infinite alternate;
}

@keyframes nodeGlow {
  0% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  }

  100% {
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
  }
}

.node-badge {
  font-size: 8.5px;
  font-weight: 800;
  color: #71717a;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.node-main {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.node-icon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.node-icon-dot.green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.node-icon-dot.blue {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.node-icon-dot.purple {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
}

.node-icon-dot.gold {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.node-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-sub {
  font-size: 9.5px;
  color: #71717a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0d0e12;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  color: #71717a;
  z-index: 3;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Column 3: Live Preview & Boost */
.workspace-col-preview {
  background: #0e0f14;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-boost-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boost-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.boost-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #10b981;
}

.boost-acc {
  font-size: 13px;
  font-weight: 800;
  color: #f4f4f5;
}

.boost-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 8px 6px;
}

.boost-metrics div {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.boost-metrics span {
  font-size: 9px;
  color: #71717a;
}

.boost-metrics b {
  font-size: 12.5px;
  color: #34d399;
}

.recent-renders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.recent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 2px solid rgba(16, 185, 129, 0.4);
}

.recent-item .time {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  flex-shrink: 0;
}

.recent-item .desc {
  font-size: 10.5px;
  color: #a1a1aa;
  line-height: 1.35;
}

.dashboard-bottom-caption {
  text-align: center;
  font-size: 12px;
  color: #71717a;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* Responsive Collapses */
@media (max-width: 1080px) {
  .app-workspace-grid {
    grid-template-columns: 220px 1fr;
  }

  .workspace-col-preview {
    grid-column: span 2;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
  }

  .preview-boost-card {
    flex: 1;
  }

  .recent-renders-list {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .app-workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-col-canvas {
    min-height: 320px;
    overflow-x: auto;
  }

  .canvas-grid-bg {
    min-width: 620px;
    min-height: 300px;
  }

  .workspace-col-preview {
    grid-column: span 1;
    flex-direction: column;
  }

  /* Mobile Hero & Stage Polish (Flaw 7 Fix) */
  .hero-stage-wrapper {
    margin-top: 24px;
    margin-bottom: 20px;
  }
  .tri-phone-stage {
    height: 380px;
    max-width: 320px;
  }
  .floating-phone {
    width: 195px;
    height: 350px;
    border-radius: 28px;
  }
  .phone-left {
    display: none !important;
  }
  .phone-center {
    left: 50% !important;
    transform: translateX(-50%) scale(1) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 2px #2563eb !important;
  }
  .hero-headline {
    font-size: 32px;
    line-height: 1.15;
  }
  .hero-action-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-action-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Studio Section
   ========================================================================== */
.studio-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.studio-container {
  max-width: 880px;
}

.studio-header {
  text-align: center;
  margin-bottom: 36px;
}

.studio-header h2 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.studio-header p {
  color: var(--text-muted);
  font-size: 15px;
}

section[id],
#showcase,
#hook-analyzer,
#autopilot,
#studio,
#global,
#calculator,
#pricing,
#faq,
.studio-section,
.studio-card {
  scroll-margin-top: 85px;
}

.studio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

/* =========================================================
   VUBIO-STYLE 3-STEP PROGRESSIVE STUDIO WIZARD
   ========================================================= */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.wizard-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  opacity: 0.6;
}

.wizard-step-tab:hover {
  opacity: 0.9;
  background: var(--surface);
  border-color: var(--border);
}

.wizard-step-tab.active {
  opacity: 1;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.wizard-step-tab.completed .step-num-pill {
  background: #10b981;
  color: #ffffff;
}

.wizard-step-tab .step-num-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.wizard-step-tab.active .step-num-pill {
  background: var(--text-main);
  color: var(--bg);
}

.step-label-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.step-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.step-sublabel {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.wizard-step-divider {
  width: 28px;
  height: 1.5px;
  background: var(--border);
}

@media (max-width: 640px) {
  .wizard-step-divider {
    display: none;
  }

  .step-sublabel {
    display: none;
  }

  .wizard-step-tab {
    padding: 6px 12px;
  }
}

.wizard-panel {
  animation: wizardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-panel-header {
  text-align: center;
  margin-bottom: 26px;
}

.wizard-panel-header h3 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.wizard-panel-header p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Vubio-Style URL Link Box */
.vubio-link-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.vubio-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  transition: all 0.2s ease;
}

.vubio-input-wrap:focus-within {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.vubio-link-icon {
  color: var(--text-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vubio-url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  min-width: 0;
}

.btn-vubio-fetch {
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.vubio-samples-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sample-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.sample-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.sample-chip:hover,
.sample-chip.active {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

/* Vubio Product Summary Card */
.vubio-product-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 22px;
}

.prod-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.prod-badge-scanned {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.prod-edit-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Vubio Trust Strip */
.vubio-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Vubio Setup Summary Capsule in Step 3 */
.vubio-setup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 14px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}

.setup-summary-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.summary-val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.summary-creator-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-creator-inline img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

.setup-summary-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@media (max-width: 600px) {
  .setup-summary-divider {
    display: none;
  }
}

.summary-edit-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.summary-edit-btn:hover {
  background: var(--text-main);
  color: var(--bg);
}

/* Wizard Navigation Actions */
.wizard-nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.wizard-nav-actions.split-actions {
  justify-content: space-between;
}

.wizard-btn-next {
  min-width: 260px;
}

.wizard-btn-back {
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
}

.btn-subtext-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.preset-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.preset-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.preset-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* URL Smart Scraper Card */
.url-scraper-card {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.7) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1.5px dashed var(--brand-mint);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.scraper-header {
  margin-bottom: 10px;
}

.scraper-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scraper-badge {
  font-size: 10.5px;
  font-weight: 800;
  background: var(--brand-mint);
  color: #065f46;
  padding: 2px 8px;
  border-radius: 999px;
}

.scraper-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.scraper-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px 6px 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.scraper-input-group:focus-within {
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.url-icon {
  font-size: 16px;
  color: var(--text-muted);
}

.scraper-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.scraper-input-group button {
  flex-shrink: 0;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.avatar-helper-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Clean 8-Column Creator Grid */
.actor-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.actor-sub-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.actor-sub-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: actor-live-pulse 2s infinite ease-in-out;
}

@keyframes actor-live-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

.avatar-grid-clean {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 4px 0 10px;
}

@media (max-width: 1200px) {
  .avatar-grid-clean {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .avatar-grid-clean {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

@media (max-width: 440px) {
  .avatar-grid-clean {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.avatar-grid-clean .avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 9px 4px 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.avatar-grid-clean .avatar-option input {
  display: none;
}

.avatar-grid-clean .avatar-option:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.08);
}

.avatar-grid-clean .avatar-option.selected {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35), 0 8px 18px -4px rgba(16, 185, 129, 0.15);
}

.avatar-grid-clean .avatar-option img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.avatar-grid-clean .avatar-option:hover img {
  transform: scale(1.05);
}

.actor-name {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.actor-tag {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1.5px 6px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.avatar-grid-clean .avatar-option:hover .actor-tag {
  background: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}

.avatar-grid-clean .avatar-option.selected .actor-tag {
  background: #dcfce7;
  color: #047857;
  border-color: #86efac;
  font-weight: 800;
}

/* Streamlined Hook Formula Pills */
.hook-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hook-roas-badge {
  font-size: 10px;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #fde68a;
}

.hook-selector-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.hook-pill-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.hook-pill-card input {
  display: none;
}

.hook-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hook-pill-card.selected .hook-pill-icon {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(37, 99, 235, 0.12);
}

.hook-pill-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.hook-pill-card:hover {
  border-color: #94a3b8;
  background: var(--surface-hover);
}

.hook-pill-card.selected {
  border-color: var(--brand-mint);
  background: #f0fdf4;
  box-shadow: 0 0 0 1.5px var(--brand-mint);
}

/* Single Full-Width Primary Action Button */
.studio-single-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.btn-subtle-ab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: underline;
  padding: 4px 8px;
}

.btn-subtle-ab:hover {
  color: #4f46e5;
}

/* Advanced Settings Accordion */
.advanced-studio-accordion {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.2s ease;
}

.advanced-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}

.advanced-summary:hover {
  background: #f1f5f9;
}

.summary-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.advanced-studio-accordion[open] .summary-arrow {
  transform: rotate(180deg);
}

.advanced-content-body {
  padding: 6px 18px 20px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

/* Persona Tone Selector */
.tone-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.tone-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
}

.tone-pill input {
  display: none;
}

.tone-pill span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.tone-pill:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
}

.tone-pill.selected {
  background: var(--text-main);
  border-color: var(--text-main);
}

.tone-pill.selected span {
  color: #ffffff;
}

/* Video Layout Selector */
.layout-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.layout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.layout-card input {
  display: none;
}

.layout-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.layout-card.selected {
  border-color: var(--brand-mint);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px var(--brand-mint);
}

.layout-icon-box {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.layout-card.selected .layout-icon-box {
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.layout-meta b {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  line-height: 1.2;
}

.layout-meta small {
  font-size: 10.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
  line-height: 1.2;
}

.layout-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #09090b;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Background Music Selector */
.music-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.music-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
}

.music-pill input {
  display: none;
}

.music-pill span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.music-pill:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
}

.music-pill.selected {
  background: var(--text-main);
  border-color: var(--text-main);
}

.music-pill.selected span {
  color: #ffffff;
}

/* Aspect Ratio Selector */
.aspect-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.aspect-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
}

.aspect-pill input {
  display: none;
}

.aspect-pill span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.aspect-pill:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
}

.aspect-pill.selected {
  background: var(--text-main);
  border-color: var(--text-main);
}

.aspect-pill.selected span {
  color: #ffffff;
}

.nav-count-badge {
  background: var(--brand-mint);
  color: #065f46;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ==========================================================================
   My Ads Library / Gallery Section (TikTok/Reels Studio Edition)
   ========================================================================== */
.library-section {
  padding: 70px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.library-empty {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
}

.empty-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
}

.library-empty h4 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.library-empty p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 340px));
  gap: 28px;
  justify-content: start;
}

@media (max-width: 680px) {
  .library-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.library-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.library-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.1);
  border-color: #93c5fd;
}

.lib-video-wrap {
  position: relative;
  background: #090d16;
  aspect-ratio: 9/16;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.lib-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.library-card:hover .lib-card-video {
  transform: scale(1.02);
}

.lib-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(1.5px);
  transition: opacity 0.25s ease;
  z-index: 3;
}

.library-card.is-playing .lib-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.lib-play-btn-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.library-card:hover .lib-play-btn-circle {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.4);
}

.lib-badge-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
  z-index: 4;
}

.lib-tag {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.lib-tag.mint {
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lib-duration-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  z-index: 4;
  line-height: 1.2;
}

.lib-playing-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
  display: none;
  z-index: 4;
}

.library-card.is-playing .lib-playing-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lib-sound-toggle-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.lib-sound-toggle-btn:hover,
.lib-sound-toggle-btn.unmuted {
  background: #2563eb;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.lib-meta {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
}

.lib-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.lib-title-row b {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lib-date {
  font-size: 11.5px;
  color: #64748b;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.lib-caption-snippet {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lib-actions-primary {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}

.btn-lib-dl {
  white-space: nowrap;
  font-weight: 700;
  justify-content: center;
}

.lib-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-lib-channel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-lib-channel:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Library '+ Create New Ad' Action Card
   ========================================================================== */
.lib-create-new-card {
  border: 2px dashed #cbd5e1 !important;
  background: #f8fafc !important;
  min-height: 480px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 32px 24px !important;
  transition: all 0.25s ease !important;
}

.lib-create-new-card:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px -4px rgba(37, 99, 235, 0.12) !important;
}

.lib-create-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 240px;
}

.lib-create-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}

.lib-create-new-card:hover .lib-create-icon-wrap {
  transform: scale(1.12) rotate(90deg);
  background: #2563eb;
  color: #ffffff;
}

.lib-create-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.lib-create-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 22px 0;
}

.lib-create-btn {
  pointer-events: none;
}

/* Studio Multi-Action Row */
.studio-action-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.btn-ab-pack {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
}

.btn-ab-pack:hover {
  background: linear-gradient(135deg, #3730a3 0%, #312e81 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.4);
}

.ab-badge {
  font-size: 9.5px;
  font-weight: 900;
  background: #fef08a;
  color: #854d0e;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* A/B Test Pack Comparison Matrix */
.ab-pack-box {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.ab-pack-header {
  margin-bottom: 20px;
}

.ab-matrix-badge {
  font-size: 10.5px;
  font-weight: 900;
  background: #dbeafe;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.ab-pack-header h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.ab-pack-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.ab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.ab-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.ab-card-header {
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ab-card-header b {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.ab-card-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.ab-card-tag.problem {
  background: #fee2e2;
  color: #991b1b;
}

.ab-card-tag.secret {
  background: #fef3c7;
  color: #92400e;
}

.ab-card-tag.review {
  background: #e0e7ff;
  color: #3730a3;
}

.ab-card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: #000;
}

.ab-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ab-card-hook {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 10px;
  font-style: italic;
}

.ab-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

@media (max-width: 900px) {
  .studio-action-row {
    grid-template-columns: 1fr;
  }

  .ab-grid {
    grid-template-columns: 1fr;
  }
}

.file-dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  position: relative;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-dropzone:hover {
  border-color: var(--brand-mint);
}

.file-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 24px;
  margin-bottom: 4px;
  display: block;
}

.dropzone-content p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-content small {
  color: var(--text-muted);
  font-size: 11px;
}

/* Progress Box */
.progress-box {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-cobalt));
  transition: width 0.3s ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.step-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  color: var(--text-muted);
}

.step-badge.active {
  color: #ffffff;
  background: var(--text-main);
  border-color: var(--text-main);
}

/* Result Box */
.result-box {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.result-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

/* Result Player Controls Bar */
.player-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.preview-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-mint);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
}

/* TikTok UI Simulation Overlay */
.result-player-wrapper {
  position: relative;
  background: #000;
  border-radius: 20px;
  border: 2px solid var(--border);
  overflow: hidden;
  aspect-ratio: 9/16;
  box-shadow: var(--shadow-card);
}

.result-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tiktok-ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 20%, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  transition: opacity 0.25s ease;
  z-index: 10;
}

.tiktok-ui-overlay.hidden {
  opacity: 0;
}

.tiktok-right-rail {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  margin-bottom: 70px;
}

.tiktok-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.avatar-ring {
  position: relative;
  width: 40px;
  height: 40px;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.follow-plus {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #fe2c55;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.t-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.t-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1px;
}

.tiktok-bottom-rail {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.tiktok-author-info {
  flex: 1;
  color: #ffffff;
}

.tiktok-author-info b {
  font-size: 13px;
  font-weight: 800;
  display: block;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tiktok-author-info p {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 3px;
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tiktok-sound-track {
  margin-top: 4px;
  font-size: 10px;
  color: #e2e8f0;
  opacity: 0.9;
}

.tiktok-disc-spin {
  width: 38px;
  height: 38px;
  background: #111;
  border: 4px solid #222;
  border-radius: 50%;
  animation: spin 3s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-inner {
  width: 12px;
  height: 12px;
  background: var(--brand-mint);
  border-radius: 50%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 1-Click Multi-Language Video Cloner Box */
.clone-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.clone-box-header {
  margin-bottom: 10px;
}

.clone-badge {
  font-size: 10px;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}

.clone-box-header b {
  font-size: 12.5px;
  color: var(--text-main);
  display: block;
}

.clone-buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.btn-clone-lang {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-clone-lang:hover {
  background: #f1f5f9;
  border-color: var(--brand-mint);
  transform: translateY(-1px);
}

.btn-clone-lang.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.result-meta h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 10px 0 16px;
}

.success-pill {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.caption-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.caption-box label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.caption-box textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  resize: none;
  outline: none;
  font-family: inherit;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   1-Click Global Multi-Language Duplication Section
   ========================================================================== */
.global-section {
  padding: 80px 0;
}

.global-clone-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.global-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  width: 260px;
}

.global-card img {
  width: 100%;
  aspect-ratio: 9/12;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

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

.source-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-cobalt);
  letter-spacing: 0.05em;
}

.global-meta b {
  font-size: 13px;
  color: var(--text-main);
  display: block;
}

.global-meta p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.global-arrow {
  font-size: 32px;
  color: var(--brand-mint);
  font-weight: 900;
}

.global-targets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.target-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.target-item:hover {
  border-color: var(--brand-mint);
  transform: translateX(4px);
}

.target-flag {
  font-size: 24px;
}

.target-item b {
  font-size: 13.5px;
  color: var(--text-main);
  display: block;
}

.target-item small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.target-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--brand-mint);
  background: var(--brand-mint-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-voice-preview {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-voice-preview:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  transform: scale(1.04);
}

.btn-voice-preview.playing {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

.btn-audio-mini:hover {
  background: rgba(15, 23, 42, 1) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ==========================================================================
   ROI Calculator Section
   ========================================================================== */
.calculator-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-card {
  max-width: 900px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 40px;
}

.calc-header h2 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.calc-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.calc-slider-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.slider-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-mint);
}

.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-markers {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

.calc-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.compare-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.compare-card.agency {
  background: #fff;
}

.compare-card.actora {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.compare-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #166534;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.compare-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.compare-price {
  font-size: 38px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 18px;
}

.compare-price small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.bullet-cross {
  color: #ef4444;
  font-weight: 800;
  margin-right: 6px;
}

.bullet-check {
  color: #10b981;
  font-weight: 800;
  margin-right: 6px;
}

.savings-banner {
  background: #09090b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.savings-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  flex-shrink: 0;
}

.savings-tag {
  font-size: 12.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.savings-amount {
  font-size: 24px;
  font-weight: 800;
  color: #4ade80;
}

.savings-banner .btn {
  background: #ffffff;
  color: #000;
}

.savings-banner .btn:hover {
  background: #f4f4f5;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
}

/* Pricing Switcher */
.pricing-switcher-wrap {
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pricing-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-tab-btn:hover {
  color: #0f172a;
}

.pricing-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 800;
}

.pricing-hint-banner {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  text-align: center;
}

.hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Tab Panels */
.pricing-tab-panel {
  display: none;
  animation: panelFade 0.3s ease;
  margin-top: 36px;
}

.pricing-tab-panel.active {
  display: block;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab 1: Engine License Card */
.engine-license-card {
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #6366f1;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.engine-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.license-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
}

.savings-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
}

.engine-card-body {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.engine-title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.engine-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 24px;
}

.engine-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.spec-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.spec-item p {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

.spec-item code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #475569;
}

/* Engine Pricing Column */
.engine-pricing-col {
  display: flex;
  flex-direction: column;
}

.engine-price-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-header {
  text-align: center;
  margin-bottom: 20px;
}

.price-type {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.engine-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.lifetime-note {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
}

.engine-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

.perk-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secure-badge {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 12px;
  line-height: 1.4;
}

/* Tab 2: Cloud Pricing Grid */
.cloud-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.popular-card {
  background: #ffffff;
  border-color: var(--brand-mint);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--brand-mint);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-mint);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.lifetime-tag {
  background: var(--brand-cobalt);
}

.plan-badge-top {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.plan-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.was-price {
  font-size: 18px;
  color: var(--text-faint);
  text-decoration: line-through;
  font-weight: 600;
}

.now-price {
  font-size: 46px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.period {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
  flex: 1;
}

.plan-list li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
}

.guarantee-card {
  max-width: 580px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.guarantee-shield {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}

.guarantee-card b {
  font-size: 14.5px;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.guarantee-card p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.lang-pill,
.target-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.05em;
  background: #18181b;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.target-item:hover .target-pill {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(37, 99, 235, 0.12);
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   FAQ Section & Social Toast
   ========================================================================== */
.faq-section {
  padding: 70px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-wrap {
  max-width: 740px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary:after {
  content: "+";
  font-size: 20px;
  color: var(--brand-mint);
}

.faq-item[open] summary:after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.social-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  z-index: 999;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.social-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-avatar {
  width: 32px;
  height: 32px;
  background: var(--brand-mint-subtle);
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.toast-content b {
  font-size: 12.5px;
  color: var(--text-main);
  display: block;
}

.toast-content p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   4-Scene Interactive Script Studio
   ========================================== */
.script-studio-details {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 14px 0 18px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.script-studio-details[open] {
  border-color: var(--brand-mint);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.script-studio-summary {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-main);
  user-select: none;
}

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

.summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.script-scenes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.scene-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.hook-tag {
  background: #fee2e2;
  color: #dc2626;
}

.demo-tag {
  background: #e0f2fe;
  color: #0284c7;
}

.benefit-tag {
  background: #fef3c7;
  color: #d97706;
}

.cta-tag {
  background: #dcfce7;
  color: #16a34a;
}

.hook-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.hook-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.hook-chip:hover {
  background: var(--brand-mint-subtle);
  border-color: var(--brand-mint);
  color: #166534;
}

.scene-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.4;
  resize: vertical;
  font-family: inherit;
}

.scene-input:focus {
  outline: none;
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ==========================================
   TikTok Virality Scorecard
   ========================================== */
.virality-scorecard {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.score-badge {
  font-size: 10px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 6px;
}

.score-main-grade {
  font-size: 12px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.score-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.metric-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-bar-wrap {
  background: #f1f5f9;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.fill-green {
  background: #22c55e;
}

.fill-blue {
  background: #0ea5e9;
}

.fill-purple {
  background: #a855f7;
}

.fill-gold {
  background: #f59e0b;
}

.metric-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: right;
}

.score-tips {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #166534;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 38px;
  }

  .form-row,
  .result-grid,
  .calc-compare-grid,
  .pricing-grid,
  .cloud-pricing-grid {
    grid-template-columns: 1fr;
  }

  .engine-card-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .engine-specs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .engine-license-card {
    padding: 24px 20px;
  }

  .nav-links {
    display: none;
  }

  .avatar-selector-16 {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel-nav-btn {
    display: none;
  }
}


/* ==========================================================================
   Showcase Card Audio Toggle & Scrubber (Phase 1 / Hamle 5)
   ========================================================================== */
.card-audio-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.showcase-card:hover .card-audio-toggle,
.showcase-card-media.playing .card-audio-toggle {
  opacity: 1;
  transform: scale(1);
}

.card-audio-toggle:hover {
  background: var(--accent, #10b981);
  color: #ffffff;
  border-color: #34d399;
  transform: scale(1.12);
}

.card-audio-toggle .icon-unmuted {
  display: none;
}

.card-audio-toggle .icon-muted {
  display: block;
}

.card-audio-toggle.unmuted .icon-unmuted {
  display: block;
}

.card-audio-toggle.unmuted .icon-muted {
  display: none;
}

.card-audio-toggle.unmuted {
  background: rgba(16, 185, 129, 0.9);
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.card-scrubber-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 8;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.showcase-card-media.playing .card-scrubber-track {
  opacity: 1;
}

.card-scrubber-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Nav Link Badge */
.nav-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-free {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   Free TikTok & Reels Hook Analyzer (Phase 2 / Hamle 1)
   ========================================================================== */
.hook-analyzer-section {
  padding: 84px 0;
  background: var(--bg-alt, #090d14);
  position: relative;
  border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.07));
  border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.07));
}

.analyzer-tool-card {
  max-width: 980px;
  margin: 36px auto 0;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.08);
}

.analyzer-input-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analyzer-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.analyzer-input-header label b {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.analyzer-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.btn-preset-pill {
  background: #3f4756;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset-pill:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.hook-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #3f4756;
  padding: 16px 18px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.hook-textarea::placeholder {
  color: #e2e8f0;
  opacity: 0.9;
}

.hook-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  background: #3f4756;
}

.analyzer-controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.analyzer-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #2e3542;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  border-radius: 9px;
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.analyzer-select:hover {
  background-color: #384152;
  border-color: rgba(255, 255, 255, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.analyzer-select option {
  background: #1e293b;
  color: #ffffff;
}

.analyzer-select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.char-count-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin-left: auto;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.btn-analyze-hook {
  padding: 11px 24px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-analyze-hook:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* Results Section */
.analyzer-results {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  animation: fadeInResults 0.4s ease forwards;
}

@keyframes fadeInResults {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analyzer-score-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

@media (max-width: 768px) {
  .analyzer-score-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.score-dial-wrap {
  display: flex;
  justify-content: center;
}

.dial-container {
  position: relative;
  width: 130px;
  height: 130px;
}

.dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial-track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 9;
}

.dial-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1;
}

.score-max {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.score-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  margin-bottom: 8px;
}

.score-verdict-col h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0f172a;
}

.score-verdict-col p {
  font-size: 14px;
  color: #475569;
  margin: 0 0 20px;
  line-height: 1.5;
}

.retention-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .retention-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.metric-bar-item {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.metric-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.metric-bar-labels span {
  color: #64748b;
  font-weight: 600;
}

.metric-bar-labels b {
  color: #0f172a;
  font-weight: 800;
}

.metric-progress-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.metric-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.metric-fill-safe {
  background: #059669;
}

.metric-fill-warn {
  background: #d97706;
}

.metric-fill-bad {
  background: #dc2626;
}

/* Alternatives Grid */
.analyzer-alternatives-wrap {
  margin-top: 32px;
}

.alternatives-header {
  margin-bottom: 16px;
}

.alternatives-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.alt-sub {
  font-size: 13px;
  color: #64748b;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .alternatives-grid {
    grid-template-columns: 1fr;
  }
}

.alt-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.alt-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12);
}

.alt-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.alt-hook-quote {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0 0 10px;
  font-style: italic;
}

.alt-why {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 16px;
  flex-grow: 1;
}

.btn-use-alt-hook {
  width: 100%;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-use-alt-hook:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}


/* ==========================================================================
   The Receipts: Verified Proof Wall (Phase 3 / Hamle 2)
   ========================================================================== */
.receipts-section {
  padding: 84px 0;
  background: var(--bg-alt, #080c14);
  position: relative;
  border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
}

.receipts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .receipts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .receipts-grid {
    grid-template-columns: 1fr;
  }
}

.receipt-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.receipt-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
  background: #0b0f14;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.receipt-card:nth-child(odd) .receipt-frame {
  transform: rotate(-1.2deg);
}

.receipt-card:nth-child(even) .receipt-frame {
  transform: rotate(1.2deg);
}

.receipt-card:hover .receipt-frame {
  transform: rotate(0deg) scale(1.03);
  border-color: #10b981;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
}

.receipt-frame img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #090d14;
}

.receipt-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0.85;
}

.receipt-card figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-card figcaption b {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.35;
}

.receipt-card figcaption span {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

/* Lightbox Modal for Zoom */
.rcpt-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 1000;
  cursor: zoom-out;
  padding: 4vh 4vw;
  animation: fadeInZoom 0.2s ease forwards;
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rcpt-zoom-overlay img {
  max-width: min(880px, 94vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Still Shipping: Live Changelog (Phase 4 / Hamle 3)
   ========================================================================== */
.changelog-section {
  padding: 80px 0;
  background: var(--bg, #0b0f19);
  border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
}

.changelog-container {
  max-width: 860px;
  margin: 36px auto 0;
  background: var(--surface, rgba(18, 24, 38, 0.8));
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.changelog-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 26px;
  border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.07));
  transition: background 0.15s ease;
}

.changelog-entry:first-child {
  border-top: 0;
}

.changelog-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }
}

.changelog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 2px;
}

.changelog-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.changelog-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
}

.tag-new {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-improved {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-fixed {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.changelog-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.4;
}

.changelog-body p {
  font-size: 13.5px;
  color: var(--text-muted, #94a3b8);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Viral Export Suite & Autopilot Dispatch (Phase 5 / Hamle 4)
   ========================================================================== */
.viral-export-suite {
  margin-top: 20px;
  background: rgba(10, 15, 24, 0.6);
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 16px;
}

.export-suite-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.suite-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 5px;
}

.export-suite-header b {
  font-size: 13px;
  color: #ffffff;
}

.aspect-format-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aspect-pill {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #cbd5e1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.aspect-pill:hover,
.aspect-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Dispatch Modal */
.dispatch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 20px;
}

.dispatch-modal-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 1px rgba(15, 23, 42, 0.1);
  position: relative;
}

.dispatch-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dispatch-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.btn-close-modal {
  background: #f1f5f9;
  border: 0;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dispatch-channels-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.channel-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
}

.webhook-code-box {
  background: #070b12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: #a5f3fc;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 20px;
  white-space: pre-wrap;
}


/* ==========================================================================
   Autopilot Campaign Cockpit & Social Media Connect
   ========================================================================== */
.nav-autopilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.badge-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   Autopilot Campaign Cockpit & Social Media Connect
   Bespoke Nordic Luxury & High-Tech AI Studio Design System
   ========================================================================== */
.autopilot-hub-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 36px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.autopilot-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 28px;
}

.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hub-header-left h3 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hub-header-left p {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
  max-width: 720px;
  line-height: 1.55;
}

/* Master Switch */
.autopilot-master-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.switch-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.btn-toggle-switch {
  position: relative;
  width: 76px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
  padding: 2px;
  display: flex;
  align-items: center;
}

.btn-toggle-switch.active {
  background: #2563eb;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
}

.switch-slider {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-toggle-switch.active .switch-slider {
  transform: translateX(48px);
}

.switch-state-text {
  position: absolute;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.btn-toggle-switch.active .switch-state-text {
  right: auto;
  left: 10px;
  color: #ffffff;
}

/* Steps Grid */
.autopilot-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1080px) {
  .autopilot-steps-grid {
    grid-template-columns: 1fr;
  }
}

.hub-step-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hub-step-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
}

.hub-step-box .step-num-pill {
  width: auto !important;
  min-width: unset !important;
  height: auto !important;
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  align-self: flex-start !important;
  margin-bottom: 12px !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hub-step-box:nth-child(1) .step-num-pill {
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
}

.hub-step-box:nth-child(2) .step-num-pill {
  color: #4f46e5 !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
}

.hub-step-box:nth-child(3) .step-num-pill {
  color: #059669 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

.hub-step-box h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.step-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.45;
}

/* Channel Connect List */
.channel-connect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.channel-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.channel-card.connected {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.chan-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chan-icon.tiktok {
  background: #000000;
  color: #25f4ee;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chan-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  color: #ffffff;
}

.chan-icon.facebook {
  background: #1877f2;
  color: #ffffff;
}

.chan-icon.youtube {
  background: #ff0000;
  color: #ffffff;
}

.chan-info {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.chan-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chan-handle {
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono, ui-monospace, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.channel-card.connected .chan-handle {
  color: #059669;
  font-weight: 600;
}

.btn-connect-chan {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-connect-chan:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.btn-connect-chan.connected {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 800;
}

.btn-connect-chan.connected:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Schedule Box */
.schedule-config-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.config-label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.days-pills-row {
  display: flex;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.day-pill {
  flex: 1;
  min-width: 0;
  padding: 8px 2px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-pill:hover {
  border-color: #0f172a;
  color: #0f172a;
  background: #f1f5f9;
}

.day-pill.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.schedule-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.schedule-meta-grid>div {
  width: 100%;
  min-width: 0;
}

.autopilot-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.autopilot-select:focus {
  border-color: #10b981;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.cadence-summary-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #065f46;
  margin-top: auto;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.06);
  min-width: 0;
  box-sizing: border-box;
}

.cadence-summary-pill b {
  color: #047857;
  font-weight: 800;
}

.summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  animation: pulseDot 1.8s infinite;
}

/* Live Queue */
.live-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.queue-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.queue-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.queue-item.next-up {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1);
}

.queue-status-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  margin-bottom: 8px;
}

.queue-status-tag.scheduled {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.queue-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.queue-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.queue-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.queue-text b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  margin-bottom: 3px;
  max-width: 100%;
}

.queue-text span {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.platform-mini-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.platform-mini-pills .p-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.platform-mini-pills .p-pill.tk {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
}

.platform-mini-pills .p-pill.ig {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.platform-mini-pills .p-pill.fb {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.platform-mini-pills .p-pill.yt {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-test-dispatch {
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-test-dispatch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.42);
  filter: brightness(1.05);
}

.btn-test-dispatch:active {
  transform: translateY(0);
}

/* Studio Button: Schedule to Queue */
.btn-autopilot-queue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-autopilot-queue:hover {
  background: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}


.chan-icon.facebook {
  background: #1877f2;
  color: #ffffff;
  border: 1px solid rgba(24, 119, 242, 0.4);
}

.platform-mini-pills {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.p-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.p-pill.tk {
  color: #25f4ee;
}

.p-pill.ig {
  color: #f43f5e;
}

.p-pill.fb {
  color: #38bdf8;
}

.p-pill.yt {
  color: #ef4444;
}

/* ==========================================================================
   Actora Autopilot Weekly Video Ad Calendar Matrix (Vubio-Inspired UX)
   ========================================================================== */
.autopilot-matrix-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94) 0%, rgba(11, 15, 25, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 32px 28px;
  margin-bottom: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.autopilot-matrix-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), rgba(56, 189, 248, 0.5), transparent);
}

.matrix-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}

.matrix-top-left h3 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
}

.matrix-top-left p {
  font-size: 14px;
  color: #94a3b8;
  max-width: 620px;
  margin: 0;
  line-height: 1.5;
}

.matrix-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.matrix-week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px 8px;
}

.btn-matrix-nav {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-matrix-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.matrix-week-range {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  padding: 0 6px;
}

.matrix-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* 7-Column Grid */
.matrix-grid-7col {
  display: grid;
  grid-template-columns: repeat(7, minmax(145px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.matrix-grid-7col::-webkit-scrollbar {
  height: 6px;
}

.matrix-grid-7col::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.matrix-day-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 145px;
  transition: all 0.2s ease;
}

.matrix-day-col.today {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.06);
}

.matrix-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-day-header .day-name {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.matrix-day-header .day-date {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.day-badge-count {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.matrix-day-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Slot Cards */
.matrix-slot-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.matrix-slot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.2);
}

.slot-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-time {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
}

.slot-badge.ai-auto {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.18));
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.slot-badge.ai-generating {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.slot-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/11;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.slot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.matrix-slot-card:hover .slot-avatar-img {
  transform: scale(1.06);
}

.slot-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.matrix-slot-card:hover .slot-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
}

.slot-play-overlay svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.slot-creator-name {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 2px 5px;
  border-radius: 4px;
  color: #f8fafc;
}

.slot-hook-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.slot-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5px;
}

.slot-status-icon.success {
  color: #10b981;
  font-weight: 900;
  font-size: 12px;
}

.slot-status-icon.pending {
  color: #f59e0b;
  font-size: 10px;
  animation: matrixDotPulse 1.5s infinite;
}

@keyframes matrixDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.25);
  }
}

.slot-status-icon.scheduled {
  font-size: 11px;
  opacity: 0.75;
}

/* Dashed AI Upcoming Slot */
.matrix-slot-card.dashed-ai {
  background: rgba(255, 255, 255, 0.015);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  justify-content: space-between;
  min-height: 140px;
}

.matrix-slot-card.dashed-ai:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-2px);
}

.dashed-slot-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 10px 0;
}

.dashed-sparkle {
  font-size: 18px;
  animation: floatSparkle 2s ease-in-out infinite;
}

@keyframes floatSparkle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.dashed-slot-body b {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 700;
}

.dashed-slot-body p {
  font-size: 9.5px;
  color: #64748b;
  margin: 0;
}

.dashed-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

/* Matrix Bottom Bar */
.matrix-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.matrix-tagline {
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matrix-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: matrixDotPulse 1.5s infinite;
}

.matrix-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Calendar Video Inspection Modal
   ========================================================================== */
.calendar-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.calendar-modal-overlay.hidden {
  display: none !important;
}

.calendar-modal-card {
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(16, 185, 129, 0.15);
  display: flex;
  flex-direction: column;
}

.calendar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-creator-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-avatar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #10b981;
}

.modal-creator-meta h4 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
}

.modal-slot-info {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 700;
}

.calendar-modal-body {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 26px;
  padding: 24px;
}

@media (max-width: 768px) {
  .calendar-modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-video-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cal-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-video-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 7px;
  border-radius: 6px;
}

.modal-details-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-hook-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.modal-hook-box .hook-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.modal-hook-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.modal-script-scenes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.script-scene-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
}

.scene-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #10b981;
  display: block;
  margin-bottom: 3px;
}

.script-scene-item p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.modal-platforms-sync {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 12px 14px;
}

.sync-title {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}

.modal-chan-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.modal-action-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ========================================================
   USER DASHBOARD, CREDIT PILLS & ACCOUNT MENU
   ======================================================== */
.user-nav-block {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.user-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

.user-credits-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(59, 130, 246, 0.18) 100%);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

.user-credits-icon {
  font-size: 14px;
  animation: pulseCredits 2.5s infinite ease-in-out;
}

@keyframes pulseCredits {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }
}

.user-profile-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.user-profile-menu-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-name-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-dropdown-menu.active {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.user-dropdown-header b {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.user-dropdown-header span {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.user-plan-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.plan-pill-tag {
  background: #0f172a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.plan-pill-tag.founder {
  background: rgba(236, 72, 153, 0.14) !important;
  color: #ec4899 !important;
  border: 1px solid rgba(236, 72, 153, 0.45) !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.plan-status-active {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.credits-progress-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.credits-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.credits-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.credits-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.user-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.user-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.user-dropdown-item.danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* Studio Credit Status Banner */
.studio-credit-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.studio-credit-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.studio-credit-count {
  color: #059669;
  font-weight: 800;
}

.btn-topup-credits {
  font-size: 11.5px;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-topup-credits:hover {
  background: #dbeafe;
}

/* User Videos Library Modal */
.user-videos-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.user-videos-modal.active {
  display: flex;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-videos-panel {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.user-videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #f1f5f9;
}

.user-videos-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.user-videos-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.user-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.user-video-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.user-video-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
}

.user-video-thumb-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #09090b;
  position: relative;
  overflow: hidden;
}

.user-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-video-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-video-card-body b {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.user-video-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.user-video-btn {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.user-video-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.user-video-btn.primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.user-video-btn.primary:hover {
  background: #1e293b;
}

/* ==========================================================================
/* ==========================================================================
   Hero Multi-Character Voice Preview Pills
   ========================================================================== */
.hero-audio-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hero-audio-pill:hover {
  background: rgba(37, 99, 235, 0.88);
  border-color: rgba(147, 197, 253, 0.6);
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
}

.hero-audio-pill.playing {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: #93c5fd;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.75);
  animation: pulseHeroAudio 1.5s infinite;
}

.floating-phone.phone-left .hero-audio-pill,
.floating-phone.phone-right .hero-audio-pill {
  font-size: 11px;
  padding: 5px 12px;
  opacity: 0.92;
}

.floating-phone.phone-left.focused .hero-audio-pill,
.floating-phone.phone-right.focused .hero-audio-pill {
  font-size: 11.5px;
  padding: 6px 14px;
  opacity: 1;
}

@keyframes pulseHeroAudio {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  }

  50% {
    box-shadow: 0 0 24px rgba(147, 197, 253, 0.9);
  }
}

/* ==========================================================================
   DTC Brand Trust Ribbon (Sleek Slate Charcoal Edition)
   ========================================================================== */
.brand-trust-section {
  padding: 28px 0 32px 0;
  background: #384252;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.brand-trust-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.brand-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.brand-logo-item {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: all 0.2s ease;
  user-select: none;
}

.brand-logo-item:hover {
  opacity: 1;
  color: #38bdf8;
  transform: translateY(-1.5px);
}

.brand-logo-mark {
  color: #38bdf8;
  font-size: 14px;
}

/* ==========================================================================
   Autopilot API Trust Banner (Sleek Slate Tech Edition)
   ========================================================================== */
.api-trust-banner {
  margin-top: 16px;
  padding: 12px 16px;
  background: #384252;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.15);
}

.api-trust-shield {
  font-size: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Pricing SaaS Guarantees & Flexibility Bar
   ========================================================================== */
.pricing-trust-bar {
  margin-top: 36px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 0 1px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .pricing-trust-bar {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 20px;
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-item b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  letter-spacing: -0.015em;
}

.trust-item p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================================================
   Mobile Floating Sticky CTA Bar
   ========================================================================== */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 990;
    pointer-events: none;
    transform: translateY(140%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-sticky-cta.visible {
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(37, 99, 235, 0.3);
  }

  .mobile-sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-sticky-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-sticky-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* =========================================================================
   ANNUAL / MONTHLY BILLING TOGGLE & AGENCY SCALE PLAN
   ========================================================================= */
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 32px auto;
  padding: 6px 14px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  width: fit-content;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.billing-cycle-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.billing-cycle-label.active {
  color: #0f172a;
}

.billing-toggle-btn {
  width: 50px;
  height: 28px;
  background: #cbd5e1;
  border: none;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  padding: 2px;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.billing-toggle-btn.yearly-active {
  background: #2563eb;
}

.billing-toggle-thumb {
  display: block;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-toggle-btn.yearly-active .billing-toggle-thumb {
  transform: translateX(22px);
}

.billing-badge-save {
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulseSubtle 2.5s infinite;
}

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.billed-annually-note {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 6px;
  width: fit-content;
}

/* Agency Scale Card Accent */
.agency-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
}

.agency-card:hover {
  border-color: #6366f1;
  box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.25);
}

.agency-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* =========================================================================
   ADD-ONS & UPSELL ROW
   ========================================================================= */
.pricing-addons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 36px auto 0 auto;
}

@media (max-width: 768px) {
  .pricing-addons-row {
    grid-template-columns: 1fr;
  }
}

.addon-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.addon-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.vip-avatar-card {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border-color: rgba(168, 85, 247, 0.35);
}

.vip-avatar-card:hover {
  border-color: #a855f7;
  box-shadow: 0 12px 28px -6px rgba(168, 85, 247, 0.2);
}

.addon-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.addon-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.vip-tag {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.addon-pricing {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.addon-price-num {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.addon-price-sub {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
  white-space: nowrap;
}

.addon-content {
  margin-bottom: 20px;
}

.addon-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.addon-content p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.addon-footer {
  margin-top: auto;
}

.addon-footer .btn {
  width: 100%;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
}

/* =========================================================================
   VIP CUSTOM AVATAR IN STUDIO SELECTION GRID
   ========================================================================= */
.custom-avatar-vip-card {
  position: relative;
  background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%) !important;
  border: 1.5px dashed #a855f7 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
  padding: 9px 4px 8px !important;
  border-radius: 14px !important;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-avatar-vip-card:hover {
  transform: translateY(-2px);
  border-color: #7c3aed !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.custom-avatar-vip-badge {
  position: absolute;
  top: -8px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
}

.custom-avatar-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 0px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.custom-avatar-vip-card:hover .custom-avatar-circle-icon {
  transform: scale(1.05);
  background: rgba(168, 85, 247, 0.25);
}

/* =========================================================================
   STUDIO LIVE QUOTA & TOP-UP BANNER
   ========================================================================= */
.studio-credit-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .studio-credit-status-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.studio-credit-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.quota-sparkle {
  color: #f59e0b;
  font-size: 15px;
}

.studio-credit-count {
  color: #059669;
  font-weight: 800;
}

.quota-progress-track {
  width: 90px;
  height: 7px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  display: inline-block;
  margin-left: 4px;
}

.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.studio-credit-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-topup-credits {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-topup-credits:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #2563eb;
}

.btn-upgrade-plan-link {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.btn-upgrade-plan-link:hover {
  text-decoration: underline;
}

/* =========================================================================
   MODALS: CUSTOM AVATAR & TOP-UP
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
  max-height: 90vh;
  max-width: 100%;
  overflow-y: auto;
  width: 100%;
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.08);
}

.modal-card .form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 15px;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.modal-card .form-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 12px;
  }
  .modal-card {
    max-height: 94vh;
  }
  .custom-avatar-modal-card {
    padding: 24px 18px !important;
  }
  .topup-modal-card {
    padding: 24px 16px !important;
  }
}

.custom-avatar-modal-card {
  max-width: 540px !important;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px !important;
}

.custom-avatar-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.vip-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #7c3aed;
  background: rgba(168, 85, 247, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.custom-avatar-modal-header h3 {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.custom-avatar-modal-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.custom-avatar-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.cam-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cam-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cam-step-content h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
}

.cam-step-content p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.modal-guarantee-note {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Top-up Modal */
.topup-modal-card {
  max-width: 480px !important;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 24px !important;
}

.topup-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.topup-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.topup-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.topup-modal-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.topup-packs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 480px) {
  .topup-packs-grid {
    grid-template-columns: 1fr;
  }
}

.topup-pack-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.topup-pack-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.topup-pack-card.popular {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.topup-pack-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 4px 0;
}

.pack-badge {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-block;
}

.popular-badge {
  background: #2563eb;
  color: #ffffff;
}

.pack-price {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
}

.pack-unit {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Checkout Modal */
.checkout-modal-card {
  max-width: 500px !important;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 26px !important;
}

.checkout-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.checkout-security-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.checkout-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.checkout-modal-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.checkout-order-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.summary-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 12px;
}

.summary-plan-header h4 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.summary-plan-desc {
  font-size: 12px;
  color: #64748b;
}

.summary-plan-price .price-amount {
  font-size: 22px;
  font-weight: 900;
  color: #2563eb;
}

.summary-plan-price .price-cycle {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.summary-features-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.payment-method-selector {
  margin-bottom: 14px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #2563eb;
  padding: 10px 14px;
  border-radius: 12px;
}

.method-radio {
  color: #2563eb;
  font-size: 14px;
}

.method-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}

.card-brand-logos {
  display: flex;
  gap: 5px;
  align-items: center;
}

.card-brand {
  font-size: 10px;
  font-weight: 800;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
}

.card-input-wrapper {
  position: relative;
}

.card-lock-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
}

.checkout-guarantee-footer {
  text-align: center;
  margin-top: 14px;
}

.guarantee-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 3px;
}

.checkout-guarantee-footer p {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* =========================================================================
   LUXURY GLASSMORPHIC TOAST NOTIFICATIONS
   ========================================================================= */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 48px);
}

.toast-item {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-item.toast-leave {
  opacity: 0;
  transform: translateX(50px) scale(0.92);
}

.toast-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 2px;
  color: #ffffff;
}

.toast-message {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 4px;
  transition: color 0.15s;
  line-height: 1;
}

.toast-close:hover {
  color: #ffffff;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
}

.toast-success .toast-progress { background: linear-gradient(90deg, #10b981, #06b6d4); }
.toast-error .toast-progress { background: linear-gradient(90deg, #ef4444, #f97316); }
.toast-warning .toast-progress { background: linear-gradient(90deg, #f59e0b, #eab308); }
.toast-info .toast-progress { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }

@media (max-width: 640px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
  .modal-backdrop {
    padding: 12px !important;
  }
  .modal-card {
    border-radius: 20px !important;
  }
  .checkout-modal-card,
  .custom-avatar-modal-card,
  .topup-modal-card {
    padding: 22px 16px !important;
    border-radius: 20px !important;
  }
}

/* =========================================================================
   ACTORA SUPPORT CONCIERGE & FLOATING WIDGET
   ========================================================================= */
.floating-support-btn {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.floating-support-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 14px 28px -5px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.support-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: supportLivePulse 2s infinite;
}

@keyframes supportLivePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.support-pill-status {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.support-drawer {
  position: relative;
  width: 380px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.05);
  margin-bottom: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: supportSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-sizing: border-box;
}

@keyframes supportSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-drawer-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-avatar-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.support-header-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.support-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

.support-header-status .pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.support-drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 700;
}

.support-drawer-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.support-drawer-body {
  padding: 16px 18px;
  overflow-y: auto;
  max-height: 400px;
  box-sizing: border-box;
}

.support-tabs-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
  gap: 3px;
}

.support-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.support-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.support-section-lead {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 10px 0;
  font-weight: 500;
}

/* Accordion FAQ */
.support-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.support-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 10px;
  font-family: inherit;
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.faq-q-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.faq-arrow {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.support-faq-answer {
  display: none;
  padding: 0 14px 13px;
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
  border-top: 1px dashed #e2e8f0;
  margin-top: 4px;
  padding-top: 10px;
}

.support-faq-answer p {
  margin: 0;
}

.support-faq-item.open {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.support-faq-item.open .support-faq-answer {
  display: block;
}

.support-faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: #2563eb;
}

.support-faq-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.support-faq-action-btn:hover {
  background: rgba(124, 58, 237, 0.16);
  transform: translateY(-1px);
}

.support-drawer-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-email-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
}

.support-email-label {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: #334155;
  font-weight: 600;
}

.support-copy-btn {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.support-copy-btn:hover {
  background: #dbeafe;
}

.support-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
}

.support-social-row a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.support-social-row a:hover {
  color: #0f172a;
}
/* The HTML hidden attribute must always win over component display rules */
[hidden] { display: none !important; }
