/* ======================================
   ClippingCut -- V2 Ultimate SaaS CSS
   Dark premium + Orange accent #FF6B00
   Glassmorphism + Responsive
   ====================================== */

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

:root {
  --bg: #080808;
  --bg-2: #0d0d0f;
  --bg-3: #121214;
  --bg-4: #19191c;
  --bg-5: #242428;
  --accent: #FF6B00;
  --accent-dim: #cc5500;
  --accent-glow: rgba(255, 107, 0, 0.25);
  --accent-subtle: rgba(255, 107, 0, 0.08);
  --white: #FFFFFF;
  --text: #f7f6f3;
  --text-2: #aaa9b2;
  --text-3: #77767f;
  --text-4: #4a494f;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --green: #22c55e;
  --red: #ef4444;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.5);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* == Pages == */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
#page-home.active { display: flex; flex-direction: column; }

/* ======================================
   NAV
   ====================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-nav-login {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: color var(--transition);
}
.btn-nav-login:hover { color: var(--white); }
.btn-nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-nav-cta:hover { background: var(--accent-dim); transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 1px;
}

/* Nav app variant */
.nav--app .nav-inner { max-width: 1400px; }
.nav-app-info { display: flex; align-items: center; gap: 16px; }
.credits-display {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, 0.15);
}
.user-display {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.btn-nav-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-nav-logout:hover { border-color: var(--text-4); color: var(--text-2); }

/* Unified App Nav */
.app-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
}
.app-nav[hidden] { display: none; }
.app-nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 16px;
}
.app-nav-logo {
  font-size: 18px; font-weight: 800; color: var(--white); cursor: pointer;
}
.app-nav-logo span { color: var(--accent); }
.app-nav-links { display: flex; gap: 4px; }
.app-nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  background: none; border: none; color: var(--text-3);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
}
.app-nav-link:hover { color: var(--text); background: var(--glass); }
.app-nav-link.active { color: var(--accent); background: var(--accent-subtle); }
.app-nav-right { display: flex; align-items: center; gap: 12px; }

/* Profile page */
.profile-container {
  max-width: 600px; margin: 40px auto; padding: 0 24px;
}
.profile-container h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.profile-sub { color: var(--text-3); font-size: 14px; margin-bottom: 32px; }
.profile-section { margin-bottom: 28px; }
.profile-section h3 { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-field { margin-bottom: 14px; }
.profile-field label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.profile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-color { width: 60px; height: 36px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2); cursor: pointer; }
.field-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.field-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.profile-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.profile-saved { color: var(--green); font-size: 13px; font-weight: 600; }
.myclips-notice { font-size: 12px; color: var(--text-4); font-style: italic; margin-top: 4px; }

/* ======================================
   HERO
   ====================================== */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { text-align: left; }
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-badge {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(135deg, var(--accent), #ff9b50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn-hero {
  background: linear-gradient(135deg, var(--accent), #ff8c33);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255, 107, 0, 0.4); }
.btn-hero-secondary {
  background: var(--glass);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-hero-secondary:hover { background: var(--glass-hover); border-color: var(--text-4); }
.hero-micro {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}

/* Hero phone mockup */
.hero-phone-wrapper {
  display: flex;
  justify-content: center;
}
.hero-phone {
  width: 280px;
  height: 500px;
  background: linear-gradient(180deg, #111 0%, #0a0a1a 100%);
  border: 2px solid rgba(255, 107, 0, 0.3);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(255, 107, 0, 0.15), 0 20px 60px rgba(0,0,0,0.5);
}
.hero-phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.hero-phone-hook {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.hero-phone-captions {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.hw {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin: 0 2px;
}
.hw.active { color: var(--accent); }
.hero-phone-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 4px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.hero-phone-cta {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #FE2C55;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-phone-cta-icon { font-size: 16px; font-weight: 300; }
.hero-phone-score {
  position: absolute;
  top: 50px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--green);
}

/* ======================================
   HERO PHONE ANIMATED DEMO
   ====================================== */

/* -- Creator media layer -- */
.hp-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.creator-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Readability overlay — TikTok-style strong bottom gradient */
.hp-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 25%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.02) 60%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}

/* Film grain (CSS only, no external URL) */
.hp-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* Face light effect */
.hp-face-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 55% 35%, rgba(255,150,60,0.18), transparent 38%);
  mix-blend-mode: screen;
  opacity: 0.4;
}

/* Micro camera flash / blink */
.hp-blink {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: rgba(255,255,255,0.08);
  opacity: 0;
}

/* -- All overlays above media -- */
.hp-progress,
.hp-hook,
.hp-captions-wrap,
.hp-cta-wrap,
.hp-ready { z-index: 5; }

/* Progress bar */
.hp-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.08);
}
.hp-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  width: 65%;
}

/* Hook */
.hp-hook {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* Captions -- 3 phases cycling every 10s */
.hp-captions-wrap {
  position: absolute;
  bottom: 110px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 12px;
}
.hp-caption {
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}

/* Caption words -- TikTok style */
.hp-caption .hw {
  display: inline;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.9),
    0 0 10px rgba(0,0,0,0.5),
    1px 1px 0 rgba(0,0,0,0.7);
}
.hp-caption .hw.active {
  color: var(--accent);
  text-shadow:
    0 1px 4px rgba(0,0,0,0.9),
    0 0 14px rgba(255,107,0,0.4),
    1px 1px 0 rgba(0,0,0,0.7);
  animation: wordPop 0.4s ease both;
}
.hp-caption .hw.dim {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
@keyframes wordPop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* CTA button */
.hp-cta-wrap {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
}
.hp-cta-btn {
  background: #FE2C55;
  color: #fff;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  box-shadow: 0 2px 10px rgba(254, 44, 85, 0.3);
  box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.2);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(254, 44, 85, 0); }
}
.hp-cta-user {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Flash final "CLIP PRET" */
.hp-ready {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  color: #16a34a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* ======================================
   SECTIONS COMMON
   ====================================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ======================================
   PROBLEM SECTION
   ====================================== */
.problem { padding: 100px 0; background: var(--bg-2); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--glass);
  border: 1px solid rgba(255, 68, 68, 0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.problem-card:hover {
  border-color: rgba(255, 68, 68, 0.3);
  transform: translateY(-2px);
}
.problem-icon { margin-bottom: 16px; }
.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ff6666;
}
.problem-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ======================================
   BEFORE / AFTER
   ====================================== */
.before-after { padding: 100px 0; }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}
.ba-col {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}
.ba-col--before { border-color: rgba(255, 68, 68, 0.15); }
.ba-col--after { border-color: rgba(255, 107, 0, 0.25); box-shadow: 0 0 30px rgba(255, 107, 0, 0.08); }
.ba-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff6666;
  margin-bottom: 20px;
}
.ba-label--accent { color: var(--accent); }
.ba-list { list-style: none; }
.ba-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}
.ba-list li:last-child { border-bottom: none; }
.ba-x { color: #ff4444; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.ba-check { color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.ba-divider {
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  border-radius: 1px;
}

/* ======================================
   HOW IT WORKS
   ====================================== */
.how-it-works { padding: 100px 0; background: var(--bg-2); }
.hiw-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hiw-step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.hiw-number {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hiw-icon { color: var(--accent); margin-bottom: 16px; }
.hiw-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.hiw-step p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
}

/* ======================================
   FEATURES
   ====================================== */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.feat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feat-icon { margin-bottom: 16px; }
.feat-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ======================================
   USE CASES
   ====================================== */
.use-cases { padding: 100px 0; background: var(--bg-2); }
.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.uc-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.uc-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.uc-emoji { font-size: 32px; margin-bottom: 12px; }
.uc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.uc-card p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ======================================
   DEMO MOCKUP
   ====================================== */
.demo-mockup { padding: 100px 0; }
.demo-mockup-phone {
  max-width: 340px;
  margin: 0 auto;
  background: linear-gradient(180deg, #111 0%, #0a0a1a 100%);
  border: 2px solid rgba(255, 107, 0, 0.2);
  border-radius: 32px;
  padding: 40px 24px;
  position: relative;
  box-shadow: 0 0 60px rgba(255, 107, 0, 0.1), 0 20px 60px rgba(0,0,0,0.4);
}
.demo-mockup-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dm-element {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all var(--transition);
}
.dm-element:hover { border-color: rgba(255, 107, 0, 0.2); }
.dm-tag {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.dm-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}
.dm-caption-words { display: flex; gap: 4px; flex-wrap: wrap; }
.dmw {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}
.dmw.active { color: var(--accent); }
.dm-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  overflow: hidden;
}
.dm-progress-fill {
  width: 65%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.dm-cta-btn {
  background: #FE2C55;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dm-cta-platform { font-size: 10px; opacity: 0.7; }
.dm-score-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
}
.dm-score-value span { font-size: 14px; color: var(--text-3); font-weight: 500; }

/* ======================================
   PRICING
   ====================================== */
.pricing { padding: 100px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-grid--single {
  grid-template-columns: 1fr;
  max-width: 400px;
}
.price-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  backdrop-filter: blur(8px);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.price-card--pro {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.12);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}
.price-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.price-amount {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--white);
}
.price-currency { font-size: 24px; vertical-align: super; }
.price-period { font-size: 16px; font-weight: 400; color: var(--text-3); }
.price-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}
.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.price-features li::before {
  content: '\2713';
  color: var(--green);
  margin-right: 10px;
  font-weight: 700;
}
.btn-price {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-price:hover { border-color: var(--text-4); background: var(--glass-hover); }
.btn-price--pro {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-price--pro:hover { background: var(--accent-dim); }
.pricing-note {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  margin-top: 32px;
}

/* ======================================
   FAQ
   ====================================== */
.faq { padding: 100px 0; background: var(--bg-2); }
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text-3);
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { content: '-'; color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p {
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ======================================
   FINAL CTA
   ====================================== */
.final-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.final-cta p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 28px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn-hero { position: relative; }

/* ======================================
   FOOTER
   ====================================== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-desc { color: var(--text-3); font-size: 14px; margin-top: 12px; line-height: 1.5; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--text-3); font-size: 14px; text-decoration: none; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-4); }

/* ======================================
   AUTH PAGE
   ====================================== */
.auth-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
}
.auth-form h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { color: var(--text-2); font-size: 14px; margin-bottom: 28px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  margin-bottom: 16px;
}
.btn-auth {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}
.btn-auth:hover { background: var(--accent-dim); }
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.auth-switch button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

/* ======================================
   1-CLICK MODE BANNER
   ====================================== */
.oneclick-banner {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.03));
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}
.oneclick-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.oneclick-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
}
.oneclick-icon { font-size: 22px; }
.oneclick-text strong { display: block; color: var(--accent); font-size: 15px; }
.oneclick-text span { color: var(--text-2); font-size: 13px; }
.btn-oneclick {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-oneclick:hover { background: var(--accent-dim); transform: translateY(-1px); }

/* ======================================
   COCKPIT LAYOUT
   ====================================== */
.cockpit {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  min-height: calc(100vh - 64px);
  gap: 0;
}

/* Sidebar */
.cockpit-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
}
.sidebar-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-4);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.sidebar-step:hover { background: var(--glass); color: var(--text-3); }
.sidebar-step .ss-num {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-4);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-step.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}
.sidebar-step.active .ss-num {
  background: var(--accent);
  color: #fff;
}
.sidebar-step.done {
  color: var(--green);
}
.sidebar-step.done .ss-num {
  background: var(--green);
  color: #fff;
}
.sidebar-credits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  padding: 12px;
  background: var(--glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.sidebar-credits span { color: var(--accent); font-weight: 700; }

/* Main content */
.cockpit-main {
  padding: 24px 32px 120px;
  max-width: 800px;
  width: 100%;
}
.wizard-progress {
  height: 3px;
  background: var(--bg-4);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9b50);
  width: 14.3%;
  transition: width 0.4s ease;
  border-radius: 2px;
}

.wizard-step { display: none; animation: fadeIn 0.3s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.step-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--text-2); }

/* Wizard nav */
.wizard-nav {
  position: fixed;
  bottom: 0;
  left: 200px;
  right: 280px;
  background: rgba(7, 7, 20, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 50;
}
.btn-wizard {
  padding: 12px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-wizard--back {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-wizard--back:hover { border-color: var(--text-4); color: var(--text); }
.btn-wizard--next {
  background: var(--accent);
  border: none;
  color: #fff;
}
.btn-wizard--next:hover { background: var(--accent-dim); }
.btn-wizard--next:disabled { opacity: 0.4; cursor: not-allowed; }

/* ======================================
   LIVE PREVIEW PANEL
   ====================================== */
.cockpit-preview {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 20px 16px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
}
.lp-cost {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 3px 10px;
  border-radius: 50px;
}
.lp-phone {
  width: 100%;
  display: flex;
  justify-content: center;
}
.lp-phone-inner {
  width: 160px;
  height: 284px;
  background: #111;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.lp-phone-inner.lp-format-169 {
  width: 200px;
  height: 112px;
  border-radius: 10px;
}
.lp-phone-inner.lp-format-11 {
  width: 180px;
  height: 180px;
  border-radius: 12px;
}
.lp-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.lp-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
  z-index: 1;
}
.lp-hook {
  position: absolute;
  top: 12px;
  left: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 4px 6px;
  border-radius: 4px;
  border-left: 2px solid var(--accent);
  z-index: 2;
}
.lp-captions {
  position: absolute;
  bottom: 50px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
  line-height: 1.5;
}
.lp-word { display: inline; }
.lp-word.active { color: var(--accent); }
.lp-progress {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 2;
}
.lp-progress-fill {
  height: 100%;
  width: 65%;
  background: var(--accent);
  border-radius: 1px;
}
.lp-cta {
  position: absolute;
  bottom: 10px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
}
.lp-cta-logo {
  color: #FE2C55;
}
.lp-cta-logo svg { width: 14px; height: 14px; }
.lp-cta-btn {
  font-size: 7px;
  font-weight: 800;
  color: #fff;
  background: #FE2C55;
  padding: 3px 12px;
  border-radius: 4px;
}
.lp-cta-user {
  font-size: 7px;
  color: rgba(255,255,255,0.6);
}
.lp-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,107,0,0.2);
  z-index: 2;
  pointer-events: none;
  letter-spacing: 2px;
}

/* Meta info */
.lp-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.lp-meta-row:last-child { border-bottom: none; }
.lp-meta-label { color: var(--text-4); }
.lp-meta-value { color: var(--text-2); font-weight: 600; }
.lp-meta-value--accent { color: var(--accent); }

/* ======================================
   ADVANCED OPTIONS PANEL
   ====================================== */
.adv-panel {
  margin-top: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
}
.adv-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adv-panel-header svg { color: var(--accent); }
.adv-group { display: flex; flex-direction: column; gap: 14px; }
.adv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.adv-row label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}
.adv-row--toggle {
  padding: 4px 0;
}
.adv-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.adv-chip {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-4);
  border: 1px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}
.adv-chip:hover { border-color: var(--text-4); color: var(--text-2); }
.adv-chip.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* == Upload == */
.upload-zone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.upload-icon-wrap { color: var(--text-3); margin-bottom: 16px; }
.upload-text { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.upload-hint { font-size: 13px; color: var(--text-3); }
.link { color: var(--accent); cursor: pointer; text-decoration: underline; }

.video-preview-wrap { margin-top: 20px; }
.video-preview { width: 100%; max-height: 400px; border-radius: var(--radius); background: #000; }
.video-meta { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.btn-change-video {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-change-video:hover { border-color: var(--text-4); color: var(--text-2); }

.upload-progress-wrap { margin-top: 20px; }
.upload-file-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.progress-bar-track { height: 6px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); width: 0; transition: width 0.3s ease; border-radius: 3px; }
.upload-status { font-size: 13px; color: var(--text-2); margin-top: 8px; }

.multi-upload-zone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin-top: 20px;
}

/* == Objectives == */
.objective-grid { display: flex; flex-direction: column; gap: 12px; }
.objective-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.objective-card:hover { border-color: var(--border-hover); }
.objective-card.active { border-color: var(--accent); background: var(--accent-subtle); }
.objective-icon { color: var(--text-3); flex-shrink: 0; padding-top: 2px; }
.objective-card.active .objective-icon { color: var(--accent); }
.objective-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.objective-info p { font-size: 13px; color: var(--text-2); margin-bottom: 8px; line-height: 1.4; }
.objective-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.obj-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}
.obj-detail { font-size: 12px; color: var(--text-3); }
.obj-cost { font-size: 12px; color: var(--accent); font-weight: 600; }

/* == Format == */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.format-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.format-card:hover { border-color: var(--border-hover); }
.format-card.active { border-color: var(--accent); background: var(--accent-subtle); }
.format-preview {
  background: var(--bg-4);
  border-radius: var(--radius-sm);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-3);
}
.format-preview--portrait { width: 60px; height: 100px; }
.format-preview--landscape { width: 120px; height: 70px; }
.format-preview--square { width: 80px; height: 80px; }
.format-card.active .format-preview { background: rgba(255, 107, 0, 0.15); color: var(--accent); }
.format-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.format-card p { font-size: 13px; color: var(--text-2); margin-bottom: 10px; line-height: 1.4; }
.format-badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.format-badge { background: var(--bg-4); padding: 3px 10px; border-radius: 50px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.format-res { font-size: 12px; color: var(--text-4); font-weight: 500; }

/* == Style == */
.style-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--text-4); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.style-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.style-card:hover { border-color: var(--text-4); transform: translateY(-2px); }
.style-card.active { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.style-card-preview {
  height: 120px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.style-mini-phone {
  width: 50px;
  height: 88px;
  background: #111;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.style-mini-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a2e, #0f3460);
}
.style-mini-phone::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.style-mini-caption {
  position: relative;
  z-index: 1;
  font-size: 6px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.style-card.active .style-mini-caption { color: var(--accent); }
.style-card-info { padding: 12px 14px; }
.style-card-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.style-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.style-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.style-tag--viral { background: rgba(255, 107, 0, 0.1); color: var(--accent); }
.style-tag--business { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.style-tag--storytelling { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.style-tag--luxe { background: rgba(255, 215, 0, 0.1); color: #FFD700; }

/* == Personalization == */
.personalize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.personalize-field {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
}
.personalize-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.personalize-field--toggle { grid-column: 1 / -1; }
.field-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input::placeholder { color: var(--text-4); }
.field-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.field-hint { display: block; font-size: 11px; color: var(--text-4); margin-top: 6px; }
.color-picker-wrap { display: flex; align-items: center; gap: 10px; }
.color-picker { width: 40px; height: 40px; border: none; border-radius: var(--radius-xs); cursor: pointer; background: none; }
.color-value { font-size: 13px; color: var(--text-2); font-family: monospace; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}
.toggle-label input { display: none; }
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-4);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-3);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-label input:checked + .toggle-switch { background: var(--accent); }
.toggle-label input:checked + .toggle-switch::after { left: 23px; background: #fff; }
.toggle-label--main { margin-bottom: 20px; font-weight: 600; }

.btn-save-brand {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-save-brand:hover { border-color: var(--accent); color: var(--accent); }

/* == CTA == */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cta-field { }
.cta-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.cta-platform-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.platform-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.platform-btn:hover { border-color: var(--text-4); }
.platform-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

/* == Summary == */
.summary-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
}
.summary-details { min-width: 0; }
.summary-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-icon {
  width: 24px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--text-4);
}
.summary-label { font-size: 13px; color: var(--text-3); flex-shrink: 0; min-width: 90px; }
.summary-value { font-size: 13px; font-weight: 600; color: var(--text); margin-left: auto; text-align: right; }

/* Summary preview phone */
.summary-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.summary-phone-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-4);
}
.summary-phone {
  width: 160px;
  height: 284px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
}
.sp-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.sp-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a2e, #0f3460);
}
.sp-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  z-index: 1;
}
.sp-hook {
  position: absolute;
  top: 12px;
  left: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 4px 6px;
  border-radius: 4px;
  border-left: 2px solid var(--accent);
  z-index: 2;
}
.sp-captions {
  position: absolute;
  bottom: 50px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.sp-progress {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 2;
}
.sp-progress-fill {
  height: 100%;
  width: 65%;
  border-radius: 1px;
}
.sp-cta {
  position: absolute;
  bottom: 10px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
}
.sp-cta-logo svg { width: 14px; height: 14px; }
.sp-cta-btn {
  font-size: 7px;
  font-weight: 800;
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
}
.sp-cta-user {
  font-size: 7px;
  color: rgba(255,255,255,0.6);
}
.sp-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
  pointer-events: none;
  letter-spacing: 2px;
}
.summary-phone-meta {
  display: flex;
  justify-content: space-between;
  width: 160px;
  font-size: 11px;
  color: var(--text-4);
}

.credits-cost {
  margin-bottom: 16px;
}
.cost-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.cost-amount {
  font-weight: 800;
  color: var(--accent);
  font-size: 20px;
}
.cost-remaining {
  color: var(--text-3);
  font-size: 13px;
}
.cost-warning {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-xs);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.btn-generate {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent), #ff8c33);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255, 107, 0, 0.4); }
.btn-generate:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.generate-hint { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 12px; }

/* ======================================
   PROCESSING
   ====================================== */
.processing-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 40px 24px;
}
.processing-card {
  width: 100%;
  max-width: 480px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.processing-anim { position: relative; width: 80px; height: 80px; margin: 0 auto 28px; }
.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 0.6s; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.pulse-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
}
.processing-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.processing-mode { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 32px; }

.steps-list { text-align: left; }
.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-4);
  font-size: 14px;
  transition: color 0.3s ease;
}
.step-row.active { color: var(--text); }
.step-row.done { color: var(--green); }
.step-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon.done { color: var(--green); }
.mini-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.step-row:not(.active):not(.done) .mini-spinner { border-top-color: var(--bg-4); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.processing-meta { margin-top: 24px; font-size: 20px; font-weight: 700; color: var(--accent); }

/* ======================================
   RESULTS
   ====================================== */
.results-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.results-header h1 { font-size: 28px; font-weight: 800; }
.results-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.results-actions { display: flex; gap: 10px; }
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--text-4); }
.btn-primary-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary-sm:hover { background: var(--accent-dim); }

.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.clip-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.clip-video { width: 100%; aspect-ratio: 9/16; max-height: 480px; background: #000; object-fit: contain; }
.clip-body { padding: 18px; }
.clip-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.clip-title { font-size: 15px; font-weight: 700; }
.score-badge { font-size: 14px; font-weight: 800; }
.score-bar { height: 4px; background: var(--bg-4); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.clip-hook { font-size: 13px; color: var(--accent); font-style: italic; margin-bottom: 10px; }

/* Viral score display */
.viral-score-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}
.viral-score-display .vs-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  overflow: hidden;
}
.viral-score-display .vs-fill {
  height: 100%;
  border-radius: 3px;
}
.viral-score-criteria {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vs-criterion {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-3);
}
.vs-criterion.pass { color: var(--green); }
.vs-criterion.fail { color: var(--text-4); }

.clip-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.clip-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
}
.clip-detail-row .cdl { color: var(--text-4); }
.clip-detail-row .cdv { color: var(--text-2); font-weight: 500; }

.clip-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { background: var(--bg-4); padding: 3px 10px; border-radius: 50px; font-size: 11px; color: var(--text-3); }
.clip-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-clip {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-2);
  transition: all var(--transition);
}
.btn-clip:hover { border-color: var(--text-4); color: var(--text); }
.btn-clip.download { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-clip.download:hover { background: var(--accent-dim); }

/* ======================================
   SOCIAL EXPORT MODULE
   ====================================== */
.social-export {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.social-export-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-export-header::before {
  content: '\1F4E4';
  font-size: 16px;
}
.social-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-card {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px;
  transition: border-color var(--transition);
}
.social-card:hover { border-color: var(--sc-color, var(--accent)); }
.sc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-icon { display: flex; align-items: center; }
.sc-icon svg { width: 18px; height: 18px; }
.sc-label { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }
.sc-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--bg-4);
  color: var(--text-3);
  font-weight: 500;
}
.sc-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: pre-line;
}
.sc-tags {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
  word-break: break-all;
}
.sc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-sc {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-2);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-sc:hover { border-color: var(--sc-color, var(--accent)); color: var(--text); }
.btn-sc.copy-all { background: var(--sc-color, var(--accent)); color: #fff; border-color: transparent; }
.btn-sc.copy-all:hover { opacity: 0.85; }
.btn-sc.open-app { background: var(--bg-4); color: var(--text-2); }
.btn-sc.open-app:hover { background: var(--sc-color, var(--accent)); color: #fff; }

/* Copy toast */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-2);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.copy-toast.toast-error {
  border-color: #ef4444;
  background: #1a0505;
  color: #fca5a5;
}
.copy-toast.toast-warning {
  border-color: #f59e0b;
  background: #1a1005;
  color: #fcd34d;
  max-width: 500px;
  text-align: center;
  line-height: 1.4;
}

/* ======================================
   CAPTION EDITOR MODAL
   ====================================== */
.caption-editor {
  max-width: 700px;
  width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.ce-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.ce-subtitle { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.ce-clips {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 4px;
}
.ce-clip-section {
  background: var(--bg-3);
  border-radius: 12px;
  padding: 16px;
}
.ce-clip-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ce-clip-header .ce-clip-id {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.ce-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ce-block {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ce-timestamp {
  flex-shrink: 0;
  width: 100px;
  font-size: 11px;
  color: var(--text-4);
  font-family: monospace;
  padding-top: 10px;
  line-height: 1.3;
}
.ce-text {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 38px;
  line-height: 1.4;
  transition: border-color 0.2s;
}
.ce-text:focus {
  border-color: var(--accent);
  outline: none;
}
.ce-text.modified {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}
.ce-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.ce-cost {
  font-size: 13px;
  color: var(--text-3);
}
.ce-cost strong { color: var(--accent); }
.ce-actions { display: flex; gap: 8px; }
.btn-ce {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ce:hover { border-color: var(--accent); }
.btn-ce.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-ce.primary:hover { opacity: 0.9; }
.btn-ce.secondary { background: transparent; border-color: var(--border); color: var(--text-3); }
.btn-ce:disabled { opacity: 0.4; cursor: not-allowed; }

/* Caption edit badge in my-clips */
.mc-badge-captions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 107, 0, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
}
.btn-mc.edit-captions {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-mc.edit-captions:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 600px) {
  .caption-editor { max-height: 95vh; }
  .ce-block { flex-direction: column; gap: 4px; }
  .ce-timestamp { width: auto; padding-top: 0; }
  .ce-footer { flex-direction: column; gap: 12px; }
  .ce-actions { width: 100%; justify-content: stretch; }
  .btn-ce { flex: 1; text-align: center; }
}

/* ======================================
   MY CLIPS PAGE
   ====================================== */
.myclips-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.myclips-header { margin-bottom: 24px; }
.myclips-header h1 { font-size: 28px; font-weight: 800; }
.myclips-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.myclips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.myclips-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px; gap: 16px; text-align: center; color: var(--text-3);
}
.mc-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px);
}
.mc-video { width: 100%; aspect-ratio: 9/16; max-height: 400px; background: #000; object-fit: contain; }
.mc-body { padding: 16px; }
.mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mc-title { font-size: 14px; font-weight: 700; }
.mc-score { font-size: 13px; font-weight: 800; color: var(--accent); }
.mc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mc-meta span { font-size: 11px; color: var(--text-3); background: var(--bg-4); padding: 2px 8px; border-radius: 4px; }
.mc-hook { font-size: 12px; color: var(--accent); font-style: italic; margin-bottom: 6px; }
.mc-desc { font-size: 12px; color: var(--text-2); margin-bottom: 6px; line-height: 1.4; }
.mc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.mc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-mc {
  padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--glass);
  color: var(--text-2); transition: all var(--transition);
}
.btn-mc:hover { border-color: var(--accent); color: var(--text); }
.btn-mc.download { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-mc.mobile { background: var(--bg-4); }
.btn-nav-myclips {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); transition: all var(--transition);
}
.btn-nav-myclips:hover { border-color: var(--accent); color: var(--text); }

/* ======================================
   MOBILE CLIP PAGE
   ====================================== */
.mobile-clip-page {
  max-width: 480px; margin: 0 auto; padding: 16px; min-height: 100vh;
}
.mobile-header { text-align: center; padding: 12px 0 8px; }
.mobile-content { display: flex; flex-direction: column; gap: 12px; }
.mobile-video { width: 100%; border-radius: 12px; background: #000; max-height: 60vh; }
.mobile-title { font-size: 18px; font-weight: 800; }
.mobile-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.mobile-meta span { font-size: 11px; color: var(--text-3); background: var(--bg-4); padding: 3px 10px; border-radius: 50px; }
.mobile-instructions {
  font-size: 13px; color: var(--text-2); background: var(--bg-3);
  padding: 12px 16px; border-radius: 10px; border-left: 3px solid var(--accent);
}
.btn-mobile {
  display: block; width: 100%; padding: 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-align: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--glass); color: var(--text-2);
  transition: all var(--transition); text-decoration: none;
}
.btn-mobile:hover { border-color: var(--accent); color: var(--text); }
.btn-mobile.download { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-mobile.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.mobile-caption-box {
  background: var(--bg-3); border-radius: 10px; padding: 14px;
  border: 1px solid var(--glass-border);
}
.mobile-caption-label { font-size: 11px; color: var(--text-4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.mobile-caption-text { font-size: 13px; color: var(--text-2); margin-bottom: 10px; line-height: 1.4; word-break: break-all; }
.mobile-tags { color: var(--accent); }
.mobile-social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.btn-mobile-social {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--bg-3); border: 1px solid var(--glass-border);
  text-decoration: none; transition: all var(--transition);
}
.btn-mobile-social:hover { border-color: var(--sc-color, var(--accent)); background: var(--bg-4); }
.btn-mobile-social svg { width: 18px; height: 18px; }

/* ======================================
   PRICING MODAL
   ====================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--bg-2); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 32px; max-width: 560px; width: 100%;
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  color: var(--text-3); font-size: 24px; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }
.modal-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.modal-plans--single { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
.modal-plan {
  background: var(--bg-3); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer; transition: all var(--transition);
  position: relative;
}
.modal-plan:hover { border-color: var(--accent); }
.modal-plan--pro { border-color: var(--accent); }
.mp-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 50px; white-space: nowrap;
}
.mp-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.mp-price { font-size: 22px; font-weight: 800; color: var(--accent); }
.mp-price span { font-size: 12px; color: var(--text-3); font-weight: 400; }
.mp-credits { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.mp-soon { font-size: 11px; color: var(--text-4); margin-top: 8px; font-style: italic; }
.modal-plan--disabled { opacity: 0.45; pointer-events: none; }
.btn-checkout-pro {
  margin-top: 10px; padding: 8px 20px; border: none; border-radius: 8px;
  background: var(--accent); color: #000; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background 0.2s;
}
.btn-checkout-pro:hover { background: var(--accent-dim); }
.modal-status {
  text-align: center; font-size: 13px; color: var(--text-3);
  padding: 16px; background: var(--bg-3); border-radius: 10px; line-height: 1.6;
}
.modal-cta-link {
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.modal-cta-link:hover { text-decoration: underline; }

/* Plan badge */
.plan-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-badge--pro { background: var(--accent); color: #000; }
.plan-badge--free { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }
.plan-badge[hidden] { display: none; }

/* Subscription alert */
.subscription-alert {
  padding: 10px 20px; text-align: center; font-size: 13px; font-weight: 500;
}
.subscription-alert[hidden] { display: none; }
.subscription-alert--warning { background: #e74c3c; color: #fff; }
.subscription-alert--warning a { color: #fff; text-decoration: underline; font-weight: 700; }
.subscription-alert--info { background: var(--bg-3); color: var(--text-2); border-bottom: 1px solid var(--border); }
.subscription-alert--info a { color: var(--accent); text-decoration: underline; }

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1100px) {
  .cockpit { grid-template-columns: 1fr; }
  .cockpit-sidebar { display: none; }
  .cockpit-preview { display: none; }
  .cockpit-main { max-width: 100%; padding: 24px 24px 120px; }
  .wizard-nav { left: 0; right: 0; }
  .summary-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-nav-links { gap: 0; }
  .app-nav-link span { display: none; }
  .app-nav-link { padding: 8px 10px; }
  .app-nav-right .user-display { display: none; }
  .profile-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions .btn-nav-login { display: none; }

  .hero { padding: 80px 24px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .hero-micro { text-align: center; }
  .hero-title { font-size: 28px; }
  .hero-phone { width: 220px; height: 380px; }
  .hp-hook { font-size: 9px; padding: 6px 12px; top: 40px; }
  .hp-caption .hw { font-size: 13px; }
  .hp-captions-wrap { bottom: 100px; }
  .hp-cta-btn { font-size: 11px; padding: 6px 18px; }
  .hp-cta-wrap { bottom: 30px; }
  .hp-ready { font-size: 18px; }

  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba-divider { width: 100%; height: 2px; }

  .hiw-grid { flex-direction: column; align-items: center; }
  .hiw-connector { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .personalize-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }

  .nav-app-info { gap: 8px; }
  .nav-app-info .user-display { display: none; }

  .clips-grid { grid-template-columns: 1fr; }
  .myclips-grid { grid-template-columns: 1fr; }
  .modal-plans { grid-template-columns: 1fr; }

  .results-header { flex-direction: column; }

  .adv-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-hero, .hero-ctas .btn-hero-secondary { width: 100%; }
  .format-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cta-platform-grid { flex-direction: column; }
}

/* ======================================
   CLIPPINGCUT — LANDING V4
   Editorial product design, scoped to home
   ====================================== */

#page-home > :not(.cs-landing) { display: none !important; }
#page-home.active { display: block; }

.cs-landing {
  --cs-bg: #080808;
  --cs-bg-soft: #0d0d0f;
  --cs-panel: #121214;
  --cs-panel-2: #17171a;
  --cs-line: rgba(255,255,255,.09);
  --cs-line-strong: rgba(255,255,255,.16);
  --cs-copy: #aaa9b2;
  --cs-white: #f7f6f3;
  --cs-orange: #ff6b00;
  --cs-orange-bright: #ff8a33;
  --cs-orange-soft: rgba(255,107,0,.13);
  --cs-green: #58d68d;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--cs-white);
  background:
    radial-gradient(circle at 50% 0%, rgba(70,35,16,.22), transparent 29rem),
    var(--cs-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cs-landing button,
.cs-landing a { font: inherit; }

.cs-landing button { color: inherit; }

.cs-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.cs-nav {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 40px));
  min-height: 58px;
  padding: 7px 8px 7px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(17,17,19,.72);
  box-shadow: 0 18px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.cs-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cs-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.cs-brand > span:last-child > span { color: var(--cs-orange); }

.cs-brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #ff954d, var(--cs-orange) 65%, #b83f00);
  box-shadow: 0 6px 18px rgba(255,107,0,.22), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 900;
}

.cs-brand-logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(255,107,0,.22);
}

.cs-brand-mark-small {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  font-size: 11px;
}

.cs-brand-logo-mark-small {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}

.cs-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cs-nav-links a {
  color: #aaa9b0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease;
}

.cs-nav-links a:hover { color: #fff; }

.cs-nav-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Small, explicit language control. It stays neutral so orange remains the
   product accent; the selected language gets only a subtle orange treatment. */
.cc-locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
}

.cc-locale-switcher button {
  min-width: 29px;
  height: 27px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: #85838a;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cc-locale-switcher button:hover { color: #fff; }
.cc-locale-switcher button.active {
  color: #fff;
  background: var(--cs-orange);
  box-shadow: 0 5px 14px rgba(255,107,0,.26);
}

.cc-locale-switcher-global {
  position: fixed;
  z-index: 1200;
  top: 18px;
  right: 22px;
  display: none;
}

body[data-route]:not([data-route="home"]) .cc-locale-switcher-global { display: inline-flex; }

.cs-login {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #b7b6bd !important;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.cs-login:hover { color: #fff !important; }

.cs-btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.cs-btn:hover { transform: translateY(-2px); }
.cs-btn span { font-size: 17px; }

.cs-btn-small {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: #f6f5f2;
  color: #111 !important;
  font-size: 12px !important;
}

.cs-btn-primary {
  background: linear-gradient(135deg, var(--cs-orange-bright), var(--cs-orange));
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(255,107,0,.24), inset 0 1px 0 rgba(255,255,255,.25);
}

.cs-btn-primary:hover { box-shadow: 0 16px 36px rgba(255,107,0,.32), inset 0 1px 0 rgba(255,255,255,.25); }

.cs-btn-secondary {
  color: #f3f1f2;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.035);
}
.cs-btn-secondary:hover { border-color: rgba(255,107,0,.72); background: rgba(255,107,0,.08); }

.cs-btn-ghost {
  color: #d8d7dc !important;
  border-color: var(--cs-line-strong);
  background: rgba(255,255,255,.035);
}

.cs-btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }

.cs-hero {
  position: relative;
  min-height: 1080px;
  padding: 165px 0 110px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}

.cs-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 415px;
  width: min(1180px, 94vw);
  height: 640px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,107,0,.12), transparent 68%);
  filter: blur(18px);
}

.cs-aurora {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  filter: blur(70px);
  opacity: .55;
  border-radius: 50%;
}

.cs-aurora-one {
  top: -190px;
  left: 50%;
  width: 760px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,91,0,.3), rgba(130,38,0,.1) 52%, transparent 70%);
}

.cs-aurora-two {
  top: 80px;
  right: 1%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(95,49,165,.14), transparent 68%);
}

.cs-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cs-eyebrow,
.cs-section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d3d2d6;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cs-eyebrow {
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.cs-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-orange);
  box-shadow: 0 0 12px var(--cs-orange);
}

.cs-hero h1 {
  width: min(910px, 100%);
  margin: 24px auto 22px;
  color: #f8f7f5;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 870;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.cs-hero h1 em {
  display: block;
  padding-bottom: .08em;
  color: transparent;
  background: linear-gradient(100deg, #fff2e8 3%, #ffb37e 36%, #ff6b00 76%, #d64d00);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.cs-hero-copy {
  width: min(680px, 100%);
  margin: 0 auto;
  color: #aaa9b2;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  text-wrap: balance;
}

.cs-hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.cs-hero-proof {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  color: #76757d;
  font-size: 11px;
}

.cs-hero-proof span {
  padding: 0 15px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.cs-hero-proof span:last-child { border: 0; }
.cs-hero-proof b { color: #bdbcc3; font-weight: 650; }

.cs-product-stage {
  position: relative;
  width: min(1120px, 100%);
  margin-top: 80px;
  perspective: 1200px;
}

.cs-stage-glow {
  position: absolute;
  inset: 10% 6% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,107,0,.24), transparent 65%);
  filter: blur(46px);
  opacity: .7;
}

.cs-product-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #0c0c0e;
  box-shadow:
    0 70px 120px rgba(0,0,0,.72),
    0 0 0 1px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform: rotateX(1.7deg);
  transform-origin: center top;
}

.cs-window-bar {
  height: 57px;
  padding: 0 16px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, #161619, #111113);
  color: #89888f;
  font-size: 10px;
}

.cs-window-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e2e1e4;
  font-size: 11px;
  font-weight: 750;
}

.cs-window-project {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(255,255,255,.03);
}

.cs-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cs-green);
  box-shadow: 0 0 8px var(--cs-green);
}

.cs-window-bar > button {
  justify-self: end;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--cs-orange);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.cs-dashboard {
  min-height: 520px;
  display: grid;
  grid-template-columns: 170px 1fr;
  text-align: left;
}

.cs-dash-side {
  padding: 23px 15px;
  border-right: 1px solid rgba(255,255,255,.06);
  background: #0e0e10;
}

.cs-side-title {
  padding: 0 10px;
  margin-bottom: 8px;
  color: #55545b;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cs-side-title-spaced { margin-top: 28px; }

.cs-side-item {
  margin-bottom: 3px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  color: #6e6d74;
  font-size: 9px;
  font-weight: 600;
}

.cs-side-item span { color: #8d8c92; font-size: 12px; }

.cs-side-item.active {
  color: #f2f1f3;
  background: rgba(255,107,0,.1);
}

.cs-side-item.active span { color: var(--cs-orange); }

.cs-side-file {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.cs-file-icon {
  width: 27px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(145deg, #502510, #20130d);
  font-size: 8px;
}

.cs-side-file div { min-width: 0; }
.cs-side-file b,
.cs-side-file small { display: block; }
.cs-side-file b { color: #c6c5c9; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-side-file small { margin-top: 3px; color: #59585f; font-size: 7px; }

.cs-dash-main {
  min-width: 0;
  padding: 30px 30px 34px;
  background:
    radial-gradient(circle at 40% 0%, rgba(255,107,0,.045), transparent 36%),
    #0b0b0d;
}

.cs-dash-head {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.cs-dash-kicker {
  color: var(--cs-green);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cs-dash-head h2 {
  margin-top: 4px;
  color: #efedf0;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.04em;
}

.cs-dash-actions { display: flex; gap: 5px; }

.cs-dash-actions button {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: #74737a;
  background: rgba(255,255,255,.025);
  font-size: 8px;
}

.cs-dash-actions button.active { color: #fff; border-color: var(--cs-orange); background: var(--cs-orange); }

.cs-clip-grid {
  display: grid;
  grid-template-columns: 1.25fr .82fr .82fr;
  gap: 12px;
}

.cs-mobile-slide-hint { display: none; }

.cs-clip-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: #121214;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}

.cs-video-frame,
.cs-mini-frame {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #19191c;
}

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

.cs-video-frame::after,
.cs-mini-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88), transparent 48%, rgba(0,0,0,.18));
}

.cs-hook-pill {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  padding: 6px 8px;
  border-radius: 5px;
  color: #fff;
  background: rgba(5,5,5,.78);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  font-size: 7px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .04em;
}

.cs-caption-preview,
.cs-mini-caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 35px;
  width: 90%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 6px #000;
  text-transform: uppercase;
}

.cs-caption-preview b,
.cs-mini-caption b { color: var(--cs-orange); }

.cs-hero-cta-preview {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  width: 82%;
  min-height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transform: translateX(-50%);
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(100deg, #f65b19, #ff8127);
  box-shadow: 0 7px 18px rgba(255,107,0,.36);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .06em;
}

.cs-hero-cta-preview i {
  font-size: 9px;
  font-style: normal;
}

.cs-clip-card-featured .cs-caption-preview { bottom: 52px; }
.cs-clip-card-featured .cs-video-time { bottom: 43px; }

.cs-video-time {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  padding: 3px 5px;
  border-radius: 4px;
  color: #ddd;
  background: rgba(0,0,0,.7);
  font-size: 7px;
}

.cs-mini-frame {
  height: 290px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 52% 27%, #7c5244 0 11%, transparent 12%),
    radial-gradient(ellipse at 52% 72%, #2d3342 0 25%, transparent 26%),
    linear-gradient(150deg, #564037, #171719 64%);
}

.cs-mini-frame-three {
  background:
    radial-gradient(circle at 47% 26%, #805e4d 0 10%, transparent 11%),
    radial-gradient(ellipse at 47% 70%, #3d291f 0 26%, transparent 27%),
    linear-gradient(150deg, #625445, #181718 62%);
}

.cs-mini-play {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.38);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.cs-mini-caption { bottom: 30px; font-size: 9px; }

.cs-clip-meta {
  min-height: 58px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cs-clip-meta div { min-width: 0; }
.cs-clip-meta small,
.cs-clip-meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-clip-meta small { margin-bottom: 3px; color: #57565d; font-size: 7px; }
.cs-clip-meta b { color: #c3c2c7; font-size: 8px; font-weight: 650; }

.cs-score {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(88,214,141,.42);
  border-radius: 50%;
  color: var(--cs-green);
  background: rgba(88,214,141,.06);
  font-size: 8px;
  font-weight: 800;
}

.cs-score-high {
  width: 33px;
  height: 33px;
  border-color: rgba(255,107,0,.55);
  color: #ffad73;
  background: rgba(255,107,0,.08);
}

.cs-float-card {
  position: absolute;
  z-index: 5;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(20,20,22,.88);
  box-shadow: 0 18px 36px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
  text-align: left;
  animation: csFloat 4.8s ease-in-out infinite;
}

.cs-float-card-left { left: -24px; bottom: 66px; }
.cs-float-card-right { right: -28px; top: 108px; animation-delay: -2s; }
.cs-float-card b,
.cs-float-card small { display: block; }
.cs-float-card b { color: #efedf1; font-size: 10px; }
.cs-float-card small { margin-top: 2px; color: #69686f; font-size: 8px; }

.cs-float-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffb27d;
  background: rgba(255,107,0,.13);
}

.cs-ring {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cs-orange);
  border-radius: 50%;
  color: #ffac70;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 0 16px rgba(255,107,0,.16);
}

@keyframes csFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cs-metrics {
  position: relative;
  border-top: 1px solid var(--cs-line);
  border-bottom: 1px solid var(--cs-line);
  background: #0a0a0b;
}

.cs-metric-grid {
  min-height: 130px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cs-metric-grid > div {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--cs-line);
  text-align: center;
}

.cs-metric-grid > div:last-child { border-right: 0; }
.cs-metric-grid b { color: #f5f3f0; font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.cs-metric-grid span { margin-top: 4px; color: #68676e; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }

/* ── CTA conversion showcase ── */
.cs-conversion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 138px 0 144px;
  background:
    linear-gradient(180deg, #0a0a0b 0%, #0c0b0c 100%);
}

.cs-convert-ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(18px);
}

.cs-convert-ambient-one {
  top: 22%;
  right: -16rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(255,107,0,.16), transparent 68%);
}

.cs-convert-ambient-two {
  bottom: -20rem;
  left: -12rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(130,54,17,.13), transparent 69%);
}

.cs-convert-heading {
  margin-bottom: 66px;
  display: grid;
  grid-template-columns: 1.1fr .72fr;
  align-items: end;
  gap: 70px;
}

.cs-convert-heading h2 {
  max-width: 720px;
  margin: 14px 0 0;
  color: #f4f2ef;
  font-size: clamp(38px, 5vw, 67px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.cs-convert-heading p {
  max-width: 370px;
  margin: 0 0 3px;
  color: #9a999f;
  font-size: 16px;
  line-height: 1.72;
}

.cs-convert-grid {
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  align-items: center;
  gap: 70px;
}

.cs-convert-contrast {
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 40px 1.1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 25px 55px rgba(0,0,0,.2);
}

.cs-convert-before,
.cs-convert-after {
  min-height: 150px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 13px;
}

.cs-convert-before {
  color: #7c7b81;
  background: #121214;
}

.cs-convert-after {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, rgba(255,128,41,.21), rgba(89,31,5,.3));
  box-shadow: inset 0 0 0 1px rgba(255,132,59,.2);
}

.cs-convert-after::before {
  content: "";
  position: absolute;
  inset: auto -18% -80% 25%;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,107,0,.2);
  filter: blur(24px);
}

.cs-convert-state {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #77767d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cs-convert-after .cs-convert-state { color: #ffad74; }

.cs-convert-contrast strong,
.cs-convert-contrast small {
  position: relative;
  z-index: 1;
  display: block;
}

.cs-convert-contrast strong { font-size: 15px; line-height: 1.25; letter-spacing: -.025em; }
.cs-convert-contrast small { margin-top: 8px; color: inherit; font-size: 10px; line-height: 1.4; opacity: .72; }

.cs-convert-arrow {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: auto -3px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,151,90,.34);
  border-radius: 50%;
  color: #ffb07a;
  background: #171517;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  font-size: 17px;
}

.cs-convert-points {
  margin: 29px 0 28px;
  border-top: 1px solid var(--cs-line);
}

.cs-convert-points article {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-convert-points article > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffad75;
  background: rgba(255,107,0,.09);
  font-size: 8px;
  font-weight: 850;
}

.cs-convert-points b { color: #e6e4e4; font-size: 13px; }
.cs-convert-points p { margin-top: 4px; color: #84838a; font-size: 12px; line-height: 1.55; }

.cs-convert-note {
  display: block;
  margin-top: 14px;
  color: #6f6e74;
  font-size: 10px;
}

.cs-cta-demo {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 25px;
  background:
    radial-gradient(circle at 73% 37%, rgba(255,107,0,.13), transparent 28%),
    linear-gradient(145deg, #18171a, #0e0e10 63%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 34px 75px rgba(0,0,0,.38);
}

.cs-cta-demo-topbar,
.cs-cta-demo-footer {
  min-height: 58px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: var(--cs-line);
  color: #96959c;
  font-size: 10px;
}

.cs-cta-demo-topbar { border-bottom: 1px solid var(--cs-line); }
.cs-cta-demo-topbar span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cs-cta-demo-topbar span i { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-green); box-shadow: 0 0 11px var(--cs-green); }
.cs-cta-demo-topbar b { padding: 6px 9px; border: 1px solid rgba(255,107,0,.2); border-radius: 999px; color: #ffad75; background: rgba(255,107,0,.08); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }

.cs-cta-demo-body {
  min-height: 430px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(210px, .75fr) 1fr;
  align-items: center;
  gap: 31px;
}

.cs-cta-video-preview {
  position: relative;
  width: min(100%, 255px);
  justify-self: center;
  aspect-ratio: 9 / 15.7;
  overflow: hidden;
  border: 4px solid #28272a;
  border-radius: 27px;
  background:
    radial-gradient(circle at 52% 24%, rgba(241,180,140,.9) 0 7%, transparent 7.5%),
    radial-gradient(ellipse at 53% 61%, #26314a 0 22%, transparent 23%),
    radial-gradient(ellipse at 50% 102%, #171b28 0 40%, transparent 41%),
    linear-gradient(150deg, #55433f 2%, #292327 52%, #0d0d10 100%);
  box-shadow: 0 27px 48px rgba(0,0,0,.54), 0 0 0 1px rgba(255,255,255,.08), 0 0 38px rgba(255,107,0,.13);
}

.cs-cta-video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), transparent 38%, rgba(0,0,0,.9));
}

.cs-cta-video-noise {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

.cs-cta-video-kicker {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 50%;
  width: 80%;
  padding: 6px 5px;
  transform: translateX(-50%);
  border-left: 3px solid var(--cs-orange);
  color: #fff;
  background: rgba(0,0,0,.68);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
}

.cs-cta-video-caption {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 105px;
  width: 87%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.14;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0,0,0,.82);
  text-transform: uppercase;
}

.cs-cta-video-caption strong { color: #ff923e; }

.cs-cta-action-card {
  --cta-platform-color: #ff5a3d;
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 37px;
  left: 10px;
  min-height: 42px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cta-platform-color) 54%, transparent);
  border-radius: 8px;
  color: #fff;
  background: color-mix(in srgb, var(--cta-platform-color) 82%, #140705);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--cta-platform-color) 30%, transparent);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.cs-cta-action-card.is-updating { animation: csCtaRefresh .36s ease both; }

@keyframes csCtaRefresh {
  0% { transform: translateY(4px); opacity: .45; }
  100% { transform: translateY(0); opacity: 1; }
}

.cs-cta-action-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  color: var(--cta-platform-color);
  background: rgba(0,0,0,.26);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.cs-cta-action-card small,
.cs-cta-action-card b { display: block; }
.cs-cta-action-card small { margin-bottom: 2px; color: rgba(255,255,255,.68); font-size: 5px; font-weight: 800; letter-spacing: .06em; }
.cs-cta-action-card b { font-size: 7px; font-weight: 900; letter-spacing: .02em; }

.cs-cta-handle {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 7px;
  font-weight: 650;
}

.cs-cta-progress {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 7px;
  left: 15px;
  height: 2px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255,255,255,.2);
}

.cs-cta-progress span { display: block; width: 72%; height: 100%; background: var(--cs-orange); }

.cs-cta-demo-side { min-width: 0; }
.cs-cta-demo-side-title span,
.cs-cta-demo-side-title b { display: block; }
.cs-cta-demo-side-title span { color: #75747b; font-size: 10px; font-weight: 700; }
.cs-cta-demo-side-title b { margin-top: 4px; color: #e9e7e6; font-size: 19px; letter-spacing: -.04em; }

.cs-cta-platforms {
  margin: 23px 0 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cs-cta-platform {
  min-height: 33px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #7d7c83;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-size: 8px;
  font-weight: 750;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.cs-cta-platform:hover { color: #e6e3e1; transform: translateY(-1px); }
.cs-cta-platform.active { border-color: rgba(255,107,0,.56); color: #ffac73; background: rgba(255,107,0,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

.cs-cta-config-row {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--cs-line);
  color: #77767c;
  font-size: 9px;
}

.cs-cta-config-row b { color: #d2d0d2; font-size: 9px; font-weight: 680; text-align: right; }

.cs-cta-result {
  margin-top: 17px;
  padding: 14px;
  border: 1px solid rgba(255,107,0,.18);
  border-radius: 10px;
  background: rgba(255,107,0,.055);
}

.cs-cta-result span,
.cs-cta-result strong { display: block; }
.cs-cta-result span { margin-bottom: 5px; color: #ffab72; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.cs-cta-result strong { color: #efeceb; font-size: 12px; line-height: 1.3; }

.cs-cta-demo-footer { min-height: 56px; border-top: 1px solid var(--cs-line); }
.cs-cta-demo-footer span { color: #8a898f; font-size: 9px; }
.cs-cta-demo-footer span i { margin-right: 5px; color: var(--cs-green); font-style: normal; font-weight: 900; }
.cs-cta-demo-footer button { padding: 0; border: 0; color: #ffad75; background: transparent; cursor: pointer; font-size: 9px; font-weight: 750; }
.cs-cta-demo-footer button b { margin-left: 4px; font-size: 13px; }

.cs-editorial,

.cs-editorial,
.cs-how,
.cs-audiences,
.cs-capabilities,
.cs-compare,
.cs-pricing,
.cs-faq {
  position: relative;
  padding: 126px 0;
}

.cs-editorial,
.cs-capabilities,
.cs-pricing { background: var(--cs-bg); }

.cs-how,
.cs-compare,
.cs-faq { background: var(--cs-bg-soft); }

.cs-section-head {
  width: min(720px, 100%);
  margin-bottom: 64px;
}

.cs-section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cs-section-label { color: var(--cs-orange-bright); }

.cs-section-head h2 {
  margin: 14px 0 16px;
  color: #f2f0ed;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.cs-section-head p {
  color: var(--cs-copy);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: balance;
}

.cs-feature-row {
  position: relative;
  min-height: 520px;
  padding: 76px 0;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 86px;
  border-top: 1px solid var(--cs-line);
}

.cs-feature-row:last-child { border-bottom: 1px solid var(--cs-line); }

.cs-feature-row-reverse { grid-template-columns: 1.12fr .88fr; }
.cs-feature-row-reverse .cs-feature-copy { order: 2; }
.cs-feature-row-reverse > :last-child { order: 1; }

.cs-feature-copy { position: relative; }

.cs-number {
  position: absolute;
  top: -35px;
  right: 0;
  color: rgba(255,255,255,.04);
  font-size: 90px;
  font-weight: 900;
  letter-spacing: -.08em;
  pointer-events: none;
}

.cs-feature-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,107,0,.22);
  border-radius: 12px;
  color: #ffac72;
  background: rgba(255,107,0,.08);
  font-size: 16px;
  font-weight: 800;
}

.cs-feature-copy h3 {
  margin: 13px 0 16px;
  color: #f2f0ee;
  font-size: clamp(29px, 3.5vw, 43px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.cs-feature-copy > p {
  color: #98979f;
  font-size: 15px;
  line-height: 1.75;
}

.cs-feature-copy ul,
.cs-audience-grid ul,
.cs-price-body ul {
  margin-top: 24px;
  list-style: none;
}

.cs-feature-copy li,
.cs-audience-grid li,
.cs-price-body li {
  position: relative;
  padding: 8px 0 8px 23px;
  color: #b0afb6;
  font-size: 13px;
  line-height: 1.5;
}

.cs-feature-copy li::before,
.cs-audience-grid li::before,
.cs-price-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cs-orange-bright);
  font-weight: 850;
}

.cs-reframe-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--cs-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,107,0,.11), transparent 35%),
    linear-gradient(145deg, #101012, #0b0b0c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 32px 70px rgba(0,0,0,.28);
}

.cs-source-frame {
  position: relative;
  width: 275px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: linear-gradient(145deg, #5a453c, #171719 70%);
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
}

.cs-source-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
}

.cs-source-person {
  position: absolute;
  bottom: 0;
  width: 34%;
  height: 75%;
  border-radius: 50% 50% 0 0;
  background: #22272e;
}

.cs-source-person span {
  position: absolute;
  top: -9%;
  left: 27%;
  width: 47%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #966f5a;
}

.person-left { left: 14%; }
.person-right { right: 13%; background: #33271f; }

.cs-focus-box {
  position: absolute;
  z-index: 2;
  top: 16%;
  left: 14%;
  width: 35%;
  height: 68%;
  border: 1px solid var(--cs-orange);
  border-radius: 7px;
  box-shadow: 0 0 20px rgba(255,107,0,.16);
}

.cs-focus-box small {
  position: absolute;
  top: -18px;
  left: -1px;
  padding: 3px 5px;
  color: #fff;
  background: var(--cs-orange);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .05em;
}

.cs-format-tag {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 7px;
  color: rgba(255,255,255,.62);
  font-size: 7px;
  font-weight: 700;
}

.cs-arrow-flow {
  color: #54535a;
  font-size: 26px;
}

.cs-output-phone {
  position: relative;
  width: 133px;
  aspect-ratio: 9/16;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: #111;
  box-shadow: 0 20px 45px rgba(0,0,0,.46), 0 0 30px rgba(255,107,0,.1);
}

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

/* The reframe demonstration is real video, not a simulated CSS pan. */
.cs-reframe-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cs-reframe-video-source { object-position: 50% 50%; }
.cs-reframe-video-output { object-position: 50% 50%; }

.cs-output-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), transparent 55%);
}

.cs-output-hook,
.cs-output-caption,
.cs-output-progress,
.cs-output-phone > small { position: absolute; z-index: 2; }

.cs-output-hook {
  top: 27px;
  left: 50%;
  width: 86%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.cs-output-caption {
  left: 50%;
  bottom: 53px;
  width: 88%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #000;
}

.cs-output-caption b { color: var(--cs-orange); }

.cs-output-progress {
  left: 10px;
  right: 10px;
  bottom: 34px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255,255,255,.18);
}

.cs-output-progress span { display: block; width: 68%; height: 100%; background: var(--cs-orange); }
.cs-output-phone > small { left: 10px; bottom: 12px; color: rgba(255,255,255,.55); font-size: 6px; font-weight: 700; }

.cs-caption-studio,
.cs-scoreboard {
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 24px;
  background: linear-gradient(145deg, #141416, #0d0d0f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 32px 70px rgba(0,0,0,.28);
}

.cs-caption-toolbar {
  height: 58px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cs-line);
  color: #69686e;
  font-size: 9px;
}

.cs-caption-toolbar b {
  padding: 6px 9px;
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 6px;
  color: #ffad76;
  background: rgba(255,107,0,.07);
  font-size: 8px;
}

.cs-caption-canvas {
  position: relative;
  height: 315px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 27%, #9b6e58 0 9%, transparent 9.5%),
    radial-gradient(ellipse at 50% 77%, #273141 0 27%, transparent 27.5%),
    linear-gradient(145deg, #60514a, #1d1d20 70%);
}

.cs-caption-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent 55%);
}

.cs-caption-hook {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 11px;
  border-left: 3px solid var(--cs-orange);
  color: #fff;
  background: rgba(0,0,0,.68);
  font-size: 10px;
  font-weight: 900;
}

.cs-caption-lines {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 55px;
  width: 90%;
  transform: translateX(-50%);
  text-align: center;
}

.cs-caption-lines span,
.cs-caption-lines strong { display: block; }
.cs-caption-lines span { color: #fff; font-size: 15px; font-weight: 750; text-shadow: 0 2px 7px #000; }
.cs-caption-lines strong { margin-top: 5px; color: var(--cs-orange-bright); font-size: 20px; font-weight: 950; text-shadow: 0 2px 7px #000; }

.cs-style-pills {
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-style-pills span {
  flex: 1;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  color: #68676d;
  background: rgba(255,255,255,.02);
  font-size: 8px;
  text-align: center;
}

.cs-style-pills span.active { color: #ffac72; border-color: rgba(255,107,0,.35); background: rgba(255,107,0,.08); }

.cs-scoreboard { padding: 24px; }

.cs-scoreboard-head {
  padding-bottom: 17px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--cs-line);
  color: #6e6d73;
  font-size: 9px;
}

.cs-scoreboard-head b { color: var(--cs-green); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }

.cs-score-hero {
  padding: 27px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-score-circle {
  width: 94px;
  height: 94px;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  border: 5px solid rgba(255,107,0,.18);
  border-top-color: var(--cs-orange);
  border-right-color: var(--cs-orange);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255,107,0,.1);
  text-align: center;
  transform: rotate(12deg);
}

.cs-score-circle b,
.cs-score-circle span { transform: rotate(-12deg); }
.cs-score-circle b { color: #fff; font-size: 27px; line-height: 1; }
.cs-score-circle span { color: #69686f; font-size: 8px; }
.cs-score-hero small { color: #67666d; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.cs-score-hero h4 { margin: 6px 0 5px; color: #f1eff1; font-size: 16px; }
.cs-score-hero p { color: #77767d; font-size: 10px; line-height: 1.5; }

.cs-score-bars { padding-top: 20px; }

.cs-score-bars > div {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: 63px 1fr 26px;
  align-items: center;
  gap: 10px;
  color: #7d7c83;
  font-size: 9px;
}

.cs-score-bars i {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
}

.cs-score-bars i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d34d00, var(--cs-orange-bright));
}

.cs-score-bars strong { color: #d3d2d6; font-size: 9px; text-align: right; }

.cs-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.cs-how-grid > article {
  position: relative;
  padding: 18px 18px 26px;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  background: #121214;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.cs-step {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 30px;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
}

.cs-how-preview {
  height: 230px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: #0d0d0f;
}

.cs-upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.cs-upload-icon {
  width: 47px;
  height: 47px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,107,0,.25);
  border-radius: 14px;
  color: #ffae75;
  background: rgba(255,107,0,.08);
  font-size: 22px;
}

.cs-how-preview b { color: #d5d4d8; font-size: 11px; }
.cs-how-preview > span { margin-top: 6px; color: #56555c; font-size: 8px; }

.cs-scan-preview {
  padding: 58px 27px 0;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    #0d0d0f;
  background-size: 100% 31px;
}

.cs-scan-preview > span { color: #77767c; font-size: 9px; }

.cs-scan-line {
  position: relative;
  height: 62px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,107,0,.3) 8% 10%, transparent 10% 27%, rgba(255,107,0,.5) 27% 31%, transparent 31% 58%, rgba(255,107,0,.25) 58% 60%, transparent 60% 77%, rgba(255,107,0,.58) 77% 82%, transparent 82%),
    rgba(255,255,255,.03);
}

.cs-scan-line i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--cs-orange);
  box-shadow: 0 0 13px var(--cs-orange);
  animation: csScan 3s ease-in-out infinite;
}

@keyframes csScan {
  0%,100% { transform: translateX(-110px); }
  50% { transform: translateX(110px); }
}

.cs-scan-scores {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cs-scan-scores b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88,214,141,.25);
  border-radius: 50%;
  color: var(--cs-green);
  background: rgba(88,214,141,.05);
  font-size: 8px;
}

.cs-export-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cs-export-stack {
  width: 90px;
  height: 90px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.cs-export-stack i {
  width: 28px;
  height: 61px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 6px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent), linear-gradient(150deg, #654b3d, #202024);
  box-shadow: 0 9px 16px rgba(0,0,0,.25);
  transform: rotate(-6deg) translateY(6px);
}

.cs-export-stack i:nth-child(2) { height: 78px; transform: none; border-color: rgba(255,107,0,.3); }
.cs-export-stack i:nth-child(3) { transform: rotate(6deg) translateY(6px); }

.cs-how-grid h3 {
  margin: 0 0 9px;
  color: #f0eef0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.025em;
}

.cs-how-grid article > p { color: #77767d; font-size: 12px; line-height: 1.65; }
.cs-center-action { margin-top: 38px; display: flex; justify-content: center; }

.cs-audiences {
  padding: 126px 0;
  background:
    radial-gradient(circle at 12% 40%, rgba(255,107,0,.08), transparent 24rem),
    var(--cs-bg);
}

.cs-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cs-audience-grid article {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 26px;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: linear-gradient(150deg, #131315, #0e0e10);
}

.cs-audience-index {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: 28px;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
}

.cs-audience-art {
  position: relative;
  height: 230px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: #0b0b0d;
}

.cs-art-creator {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 26%, #986a54 0 9%, transparent 9.5%),
    radial-gradient(ellipse at 50% 75%, #27313c 0 25%, transparent 25.5%),
    linear-gradient(145deg, #5a473e, #151517 73%);
}

.cs-art-creator::after {
  content: "LES 3 RÈGLES POUR GRANDIR";
  position: absolute;
  top: 29px;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.cs-art-creator span,
.cs-art-creator b { position: relative; z-index: 2; }
.cs-art-creator span { color: rgba(255,255,255,.6); font-size: 8px; }
.cs-art-creator b { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--cs-orange); border-radius: 50%; color: #ffb17b; font-size: 9px; }

.cs-art-podcast {
  padding: 58px 24px 0;
  background:
    radial-gradient(circle at 24% 30%, #78574b 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 24% 65%, #242a33 0 16%, transparent 16.5%),
    radial-gradient(circle at 76% 30%, #8b6252 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 76% 65%, #342720 0 16%, transparent 16.5%),
    linear-gradient(145deg, #4b3d38, #131315 70%);
}

.cs-art-podcast span { color: rgba(255,255,255,.7); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.cs-art-podcast i { position: absolute; bottom: 30px; width: 5px; border-radius: 5px; background: var(--cs-orange); }
.cs-art-podcast i:nth-of-type(1) { left: 42%; height: 19px; }
.cs-art-podcast i:nth-of-type(2) { left: 49%; height: 39px; }
.cs-art-podcast i:nth-of-type(3) { left: 56%; height: 25px; }

.cs-art-agency {
  padding: 57px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #0d0d0f;
  background-size: 28px 28px;
}

.cs-art-agency b { color: #fff; font-size: 52px; line-height: 1; letter-spacing: -.07em; }
.cs-art-agency span { margin-top: 7px; color: #706f76; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.cs-art-agency em { margin-top: 28px; padding: 7px 9px; border-radius: 7px; color: var(--cs-green); background: rgba(88,214,141,.07); font-size: 10px; font-style: normal; font-weight: 800; }

.cs-audience-grid h3 { color: #efedf0; font-size: 21px; letter-spacing: -.035em; }
.cs-audience-grid article > p { min-height: 60px; margin-top: 9px; color: #7d7c83; font-size: 12px; line-height: 1.65; }
.cs-audience-grid ul { margin-top: 14px; }
.cs-audience-grid li { padding-top: 5px; padding-bottom: 5px; color: #9b9aa1; font-size: 11px; }

.cs-audience-grid article > button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  color: #d3d2d6;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.cs-audience-grid article > button:hover { color: var(--cs-orange-bright); }

.cs-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cs-line);
  border-left: 1px solid var(--cs-line);
}

.cs-cap-grid article {
  min-height: 210px;
  padding: 31px;
  border-right: 1px solid var(--cs-line);
  border-bottom: 1px solid var(--cs-line);
  background: rgba(255,255,255,.008);
  transition: background .22s ease;
}

.cs-cap-grid article:hover { background: rgba(255,107,0,.035); }

.cs-cap-grid article > span {
  width: 39px;
  height: 39px;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cs-line);
  border-radius: 11px;
  color: #ffad74;
  background: rgba(255,107,0,.055);
  font-size: 13px;
  font-weight: 800;
}

.cs-cap-grid h3 { margin-bottom: 8px; color: #efedf0; font-size: 16px; font-weight: 750; }
.cs-cap-grid p { color: #76757c; font-size: 12px; line-height: 1.65; }

.cs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: #101012;
}

.cs-table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.cs-table-wrap th,
.cs-table-wrap td {
  padding: 20px 23px;
  border-right: 1px solid var(--cs-line);
  border-bottom: 1px solid var(--cs-line);
  color: #85848b;
  font-size: 12px;
  text-align: center;
}

.cs-table-wrap th:first-child,
.cs-table-wrap td:first-child { color: #c3c2c7; text-align: left; font-weight: 650; }
.cs-table-wrap tr:last-child td { border-bottom: 0; }
.cs-table-wrap th:last-child,
.cs-table-wrap td:last-child { border-right: 0; }
.cs-table-wrap th { color: #aaa9b0; background: rgba(255,255,255,.02); font-size: 11px; }
.cs-table-wrap .is-you { color: #fff; background: rgba(255,107,0,.075); }
.cs-table-wrap th.is-you { color: #ffb37d; }

.cs-pricing-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 15px;
}

.cs-plan-card {
  position: relative;
  display: flex;
  min-height: 448px;
  flex-direction: column;
  padding: 31px 27px 25px;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,0,.07), transparent 15rem),
    linear-gradient(155deg, #171719, #101012 67%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 20px 45px rgba(0,0,0,.16);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.cs-plan-card:hover { transform: translateY(-5px); border-color: rgba(255,107,0,.46); }

.cs-plan-card-featured {
  z-index: 1;
  border-color: rgba(255,107,0,.8);
  background:
    radial-gradient(circle at 88% 4%, rgba(255,107,0,.24), transparent 17rem),
    linear-gradient(155deg, #251711, #121214 67%);
  box-shadow: 0 28px 75px rgba(0,0,0,.32), 0 0 0 1px rgba(255,107,0,.08) inset;
}

.cs-plan-ribbon {
  position: absolute;
  top: 0;
  right: 20px;
  padding: 7px 11px;
  border-radius: 0 0 8px 8px;
  color: #17100c;
  background: #ff7411;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cs-plan-heading { min-height: 78px; padding-right: 54px; }
.cs-plan-heading h3 { color: #f5f3f4; font-size: 24px; font-weight: 820; letter-spacing: -.045em; }
.cs-plan-heading p { margin-top: 7px; color: #85838a; font-size: 11px; line-height: 1.55; }

.cs-plan-price { display: flex; align-items: end; gap: 6px; margin: 20px 0 17px; }
.cs-plan-price b { color: #fff; font-size: 43px; font-weight: 850; line-height: .9; letter-spacing: -.065em; }
.cs-plan-card-featured .cs-plan-price b { color: #ff8132; }
.cs-plan-price span { padding-bottom: 2px; color: #75737a; font-size: 10px; }

.cs-plan-allowance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 63px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(0,0,0,.14);
}
.cs-plan-allowance strong { color: #f2f0f1; font-size: 12px; font-weight: 750; }
.cs-plan-allowance span { color: #87858b; font-size: 9px; }

.cs-plan-features { display: grid; gap: 11px; margin: 23px 0 26px; }
.cs-plan-features li { position: relative; padding-left: 18px; color: #b7b5ba; font-size: 10px; line-height: 1.45; }
.cs-plan-features li::before { content: "✓"; position: absolute; left: 0; color: #ff7923; font-weight: 850; }
.cs-plan-card .cs-btn { width: 100%; margin-top: auto; }

.cs-pricing-note { margin: 21px auto 0; color: #68666d; font-size: 9px; text-align: center; }

.cs-faq-list {
  width: min(780px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--cs-line);
}

.cs-faq-list details { border-bottom: 1px solid var(--cs-line); }

.cs-faq-list summary {
  position: relative;
  padding: 25px 48px 25px 3px;
  color: #d9d7db;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
}

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

.cs-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--cs-line);
  border-radius: 50%;
  color: #77767d;
  font-size: 17px;
}

.cs-faq-list details[open] summary::after { content: "−"; color: var(--cs-orange-bright); border-color: rgba(255,107,0,.25); }
.cs-faq-list p { padding: 0 55px 24px 3px; color: #838289; font-size: 13px; line-height: 1.75; }

.cs-final {
  position: relative;
  padding: 135px 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(135deg, #d94f00, #ff6b00 55%, #ff8c3b);
  background-size: 58px 58px, 58px 58px, auto;
  text-align: center;
}

.cs-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.16), transparent 35rem);
}

.cs-final .cs-wrap { position: relative; z-index: 2; }
.cs-final .cs-section-label { color: rgba(255,255,255,.75); }

.cs-final h2 {
  width: min(820px, 100%);
  margin: 16px auto 17px;
  color: #fff;
  font-size: clamp(42px, 5.7vw, 70px);
  font-weight: 870;
  line-height: 1;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.cs-final p { width: min(620px, 100%); margin: 0 auto; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }

.cs-btn-light {
  margin-top: 31px;
  color: #151515 !important;
  background: #fff;
  box-shadow: 0 14px 30px rgba(92,28,0,.22);
}

.cs-final small { margin-top: 17px; display: block; color: rgba(255,255,255,.56); font-size: 9px; }

.cs-footer {
  padding: 70px 0 28px;
  border-top: 1px solid var(--cs-line);
  background: #080808;
}

.cs-footer-main {
  padding-bottom: 55px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
}

.cs-footer-brand p { width: min(320px, 100%); margin-top: 18px; color: #68676d; font-size: 12px; line-height: 1.7; }
.cs-footer-main h4 { margin-bottom: 17px; color: #d3d2d5; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }

.cs-footer-main > div:not(.cs-footer-brand) a,
.cs-footer-main > div:not(.cs-footer-brand) button {
  margin: 0 0 10px;
  padding: 0;
  display: block;
  border: 0;
  color: #68676d;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
}

.cs-footer-main a:hover,
.cs-footer-main button:hover { color: #fff !important; }

.cs-footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--cs-line);
  color: #4f4e54;
  font-size: 9px;
}

@media (max-width: 1050px) {
  .cs-nav { width: calc(100% - 32px); }
  .cs-nav-links { gap: 15px; }
  .cs-dashboard { grid-template-columns: 135px 1fr; }
  .cs-clip-grid { grid-template-columns: 1.15fr .85fr; }
  .cs-clip-card:last-child { display: none; }
  .cs-float-card-left { left: 8px; }
  .cs-float-card-right { right: 8px; }
  .cs-feature-row,
  .cs-feature-row-reverse { gap: 45px; grid-template-columns: .9fr 1.1fr; }
  .cs-feature-row-reverse { grid-template-columns: 1.1fr .9fr; }
  .cs-source-frame { width: 220px; }
  .cs-convert-heading { gap: 38px; }
  .cs-convert-grid { gap: 42px; }
  .cs-cta-demo-body { padding: 25px 21px; gap: 21px; }
}

@media (max-width: 820px) {
  .cs-wrap { width: min(100% - 32px, 680px); }
  .cs-nav { top: 12px; min-height: 54px; padding-left: 12px; gap: 10px; }
  .cs-nav-links { display: none; }
  .cs-login { display: none; }
  .cs-nav-actions { gap: 4px; }
  .cc-locale-switcher button { min-width: 27px; padding-inline: 5px; }
  .cs-brand { font-size: 14px; }
  .cs-brand-mark,
  .cs-brand-logo-mark:not(.cs-brand-logo-mark-small) { width: 27px; height: 27px; border-radius: 8px; }
  .cs-btn-small { min-height: 39px; }
  .cs-hero { min-height: 0; padding: 136px 0 95px; }
  .cs-hero h1 { font-size: clamp(43px, 11vw, 68px); }
  .cs-product-stage { margin-top: 62px; width: min(650px, 106%); }
  .cs-dashboard { min-height: 430px; grid-template-columns: 1fr; }
  .cs-dash-side { display: none; }
  .cs-dash-main { padding: 24px 20px; }
  .cs-video-frame,
  .cs-mini-frame { height: 250px; }
  .cs-window-project { display: none; }
  .cs-window-bar { grid-template-columns: 1fr 1fr; }
  .cs-window-bar > button { grid-column: 2; }
  .cs-float-card { display: none; }
  .cs-metric-grid { grid-template-columns: 1fr 1fr; }
  .cs-metric-grid > div:nth-child(2) { border-right: 0; }
  .cs-metric-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--cs-line); }
  .cs-editorial,
  .cs-how,
  .cs-audiences,
  .cs-capabilities,
  .cs-compare,
  .cs-pricing,
  .cs-faq { padding: 92px 0; }
  .cs-conversion { padding: 94px 0; }
  .cs-convert-heading,
  .cs-convert-grid { grid-template-columns: 1fr; }
  .cs-convert-heading { margin-bottom: 46px; gap: 18px; }
  .cs-convert-heading p { max-width: 570px; }
  .cs-convert-copy { width: min(620px, 100%); }
  .cs-cta-demo { width: min(660px, 100%); }
  .cs-feature-row,
  .cs-feature-row-reverse { padding: 62px 0; grid-template-columns: 1fr; gap: 45px; }
  .cs-feature-row-reverse .cs-feature-copy,
  .cs-feature-row-reverse > :last-child { order: initial; }
  .cs-feature-row-reverse .cs-feature-copy { order: 1; }
  .cs-feature-row-reverse > :last-child { order: 2; }
  .cs-reframe-visual { min-height: 390px; }
  .cs-how-grid,
  .cs-audience-grid { grid-template-columns: 1fr; }
  .cs-how-grid { width: min(500px, 100%); margin: 0 auto; }
  .cs-how-preview { height: 260px; }
  .cs-audience-grid { width: min(560px, 100%); margin: 0 auto; }
  .cs-audience-art { height: 280px; }
  .cs-cap-grid { grid-template-columns: 1fr 1fr; }
  .cs-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-plan-card-featured { transform: none; }
  .cs-footer-main { grid-template-columns: 1.7fr 1fr 1fr; gap: 35px; }
  .cs-footer-main > div:last-child { display: none; }
}

@media (max-width: 720px) {
  .cc-locale-switcher-global {
    top: 17px;
    right: 12px;
  }
  body.app-mode .cc-locale-switcher-global { top: auto; bottom: 14px; right: 14px; }
}

@media (max-width: 560px) {
  .cs-wrap { width: calc(100% - 26px); }
  .cs-nav { width: calc(100% - 20px); }
  .cs-brand > span:last-child { display: none; }
  .cs-btn-small { padding: 0 14px; font-size: 11px !important; }
  .cs-hero { padding-top: 122px; }
  .cs-hero h1 { font-size: clamp(40px, 12.5vw, 56px); line-height: .99; }
  .cs-hero-copy { font-size: 15px; }
  .cs-hero-actions { width: 100%; flex-direction: column; }
  .cs-hero-actions .cs-btn { width: 100%; }
  .cs-hero-proof { max-width: 330px; gap: 8px; }
  .cs-hero-proof span { border: 0; padding: 0 6px; }
  /* The product preview becomes a native swipe gallery on phones.
     Keep its frame within the viewport so no interface text is cropped. */
  .cs-product-stage { width: 100%; margin-left: 0; margin-right: 0; perspective: none; }
  .cs-product-window { border-radius: 13px; }
  .cs-product-window { transform: none; }
  .cs-dashboard { min-height: 0; }
  .cs-window-bar { height: 47px; padding: 0 12px; }
  .cs-dash-main { padding: 18px 14px 18px; }
  .cs-dash-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .cs-dash-head h2 { font-size: 17px; }
  .cs-dash-actions { width: 100%; }
  .cs-dash-actions button { flex: 1; }
  .cs-dash-actions button:first-child { display: none; }
  .cs-clip-grid {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    padding: 0 2px 10px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cs-clip-grid::-webkit-scrollbar { display: none; }
  .cs-clip-card:nth-child(-n + 3) {
    display: block;
    flex: 0 0 88%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .cs-mobile-slide-hint {
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9a989f;
    font-size: 9px;
  }
  .cs-mobile-slide-hint span { color: var(--cs-orange); font-size: 15px; line-height: 1; }
  .cs-mobile-slide-hint b { color: #bbb9bf; font-weight: 700; }
  .cs-mobile-slide-hint i { margin-left: auto; color: var(--cs-orange); font-style: normal; font-weight: 750; }
  .cs-video-frame,
  .cs-mini-frame { height: 260px; }
  .cs-clip-meta { padding: 10px; }
  .cs-clip-meta b { font-size: 9px; }
  .cs-caption-preview { font-size: 10px; }
  .cs-metric-grid b { font-size: 25px; }
  .cs-metric-grid span { font-size: 8px; }
  .cs-conversion { padding: 74px 0 78px; }
  .cs-convert-heading { margin-bottom: 35px; }
  .cs-convert-heading h2 { font-size: 39px; }
  .cs-convert-heading p { font-size: 14px; }
  .cs-convert-contrast { grid-template-columns: 1fr; gap: 0; }
  .cs-convert-before,
  .cs-convert-after { min-height: 110px; padding: 19px; }
  .cs-convert-arrow { margin: -4px auto; transform: rotate(90deg); }
  .cs-convert-points article { padding: 15px 0; }
  .cs-cta-demo { border-radius: 18px; }
  .cs-cta-demo-topbar { min-height: 50px; padding: 0 15px; }
  .cs-cta-demo-topbar b { font-size: 7px; }
  .cs-cta-demo-body { min-height: 0; padding: 22px 16px 18px; grid-template-columns: 1fr; gap: 28px; }
  .cs-cta-video-preview { width: min(205px, 72%); }
  .cs-cta-demo-side-title b { font-size: 18px; }
  .cs-cta-demo-footer { min-height: 0; padding: 14px 16px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .cs-cta-demo-footer span { line-height: 1.5; }
  .cs-section-head { margin-bottom: 46px; }
  .cs-section-head h2 { font-size: 36px; }
  .cs-section-head p { font-size: 14px; }
  .cs-feature-copy h3 { font-size: 32px; }
  .cs-reframe-visual { min-height: 460px; flex-direction: column; }
  .cs-source-frame { width: min(280px, 82%); }
  .cs-arrow-flow { transform: rotate(90deg); }
  .cs-output-phone { width: 115px; }
  .cs-caption-canvas { height: 280px; }
  .cs-scoreboard { padding: 17px; }
  .cs-score-hero { gap: 14px; }
  .cs-score-circle { width: 78px; height: 78px; }
  .cs-how-preview { height: 225px; }
  .cs-audience-art { height: 240px; }
  .cs-cap-grid { grid-template-columns: 1fr; }
  .cs-cap-grid article { min-height: 180px; padding: 26px; }
  .cs-pricing-grid { grid-template-columns: 1fr; width: min(420px, 100%); }
  .cs-plan-card { min-height: 0; padding: 28px 23px 23px; }
  .cs-final { padding: 100px 0; }
  .cs-final h2 { font-size: 46px; }
  .cs-footer-main { grid-template-columns: 1fr 1fr; }
  .cs-footer-brand { grid-column: 1/-1; }
  .cs-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-landing *,
  .cs-landing *::before,
  .cs-landing *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Landing visuals — real creator footage previews, with lightweight cinematic motion. */
.cs-landing .cs-landing-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cs-cta-landing-video { object-position: 51% 44%; }
.cs-caption-landing-video { object-position: 50% 40%; }

.cs-landing .cs-media-photo,
.cs-landing .cs-source-photo,
.cs-landing .cs-caption-photo,
.cs-landing .cs-audience-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: 52% 46%;
}

.cs-landing .cs-cinematic-motion {
  animation: csCinematicDrift 13s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes csCinematicDrift {
  0% { transform: scale(1.015) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.3%, -1.1%, 0); }
}

.cs-video-frame::after,
.cs-mini-frame::after,
.cs-source-frame::before,
.cs-output-phone::after,
.cs-caption-canvas::after,
.cs-cta-video-preview::before {
  z-index: 1;
  pointer-events: none;
}

.cs-video-frame > :not(.cs-media-photo),
.cs-mini-frame > :not(.cs-media-photo) { z-index: 2; }

.cs-video-frame .cs-media-photo { object-position: 58% 43%; }
.cs-mini-frame-two .cs-media-photo { object-position: 76% 43%; }
.cs-mini-frame-three .cs-media-photo { object-position: 53% 40%; }
.cs-cta-video-preview .cs-media-photo,
.cs-output-phone .cs-media-photo,
.cs-caption-canvas .cs-caption-photo { object-position: 60% 42%; }
.cs-source-frame .cs-source-photo { object-position: 58% 46%; }

.cs-cta-video-noise { z-index: 2; }
.cs-cta-video-kicker,
.cs-cta-video-caption { z-index: 3; }
.cs-cta-action-card,
.cs-cta-handle,
.cs-cta-progress { z-index: 4; }

.cs-cta-video-caption { animation: csCaptionRise 5.8s ease-in-out infinite; }
.cs-cta-action-card { animation: csActionPulse 5.8s ease-in-out infinite; }

@keyframes csCaptionRise {
  0%, 14%, 100% { transform: translate(-50%, 8px); opacity: .72; }
  28%, 76% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes csActionPulse {
  0%, 58%, 100% { transform: translateY(7px); opacity: .38; }
  70%, 90% { transform: translateY(0); opacity: 1; }
}

.cs-focus-box { animation: csFocusPulse 2.7s ease-in-out infinite; }

@keyframes csFocusPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,107,0,.1); }
  50% { box-shadow: 0 0 28px rgba(255,107,0,.45); }
}

.cs-caption-canvas .cs-caption-photo { object-position: 61% 36%; }
.cs-caption-hook { animation: csHookIn 5.2s ease-in-out infinite; }
.cs-caption-lines strong { animation: csWordEmphasis 1.7s ease-in-out infinite alternate; }

@keyframes csHookIn {
  0%, 14%, 100% { opacity: .25; transform: translate(-50%, -6px); }
  28%, 76% { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes csWordEmphasis {
  from { filter: brightness(.82); transform: scale(.98); }
  to { filter: brightness(1.14); transform: scale(1.025); }
}

.cs-how-preview { position: relative; isolation: isolate; }
.cs-how-preview > * { position: relative; z-index: 2; }
.cs-upload-preview,
.cs-scan-preview,
.cs-export-preview {
  background-position: center;
  background-size: cover;
}

.cs-upload-preview {
  background-image: linear-gradient(135deg, rgba(5,5,6,.48), rgba(5,5,6,.88)), url('./assets/landing/podcast-conversation.jpg');
}

.cs-scan-preview {
  background-image: linear-gradient(135deg, rgba(5,5,6,.54), rgba(5,5,6,.9)), url('./assets/landing/podcast-conversation.jpg');
}

.cs-export-preview {
  background-image: linear-gradient(135deg, rgba(5,5,6,.34), rgba(5,5,6,.86)), url('./assets/landing/creator-studio.jpg');
  background-position: center 37%;
}

.cs-audience-art { isolation: isolate; background: #0b0b0d; }
.cs-audience-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5,5,6,.86), rgba(5,5,6,.04) 65%);
}

.cs-art-creator,
.cs-art-podcast,
.cs-art-agency { background: #0b0b0d; }

.cs-art-creator::after { z-index: 2; text-shadow: 0 3px 12px #000; }
.cs-art-creator > span,
.cs-art-creator > b,
.cs-art-podcast > span,
.cs-art-podcast > i,
.cs-art-agency > b,
.cs-art-agency > span,
.cs-art-agency > em {
  position: relative;
  z-index: 2;
}

.cs-art-podcast > i { position: absolute; }
.cs-art-agency > b,
.cs-art-agency > span,
.cs-art-agency > em { text-shadow: 0 3px 12px rgba(0,0,0,.85); }
.cs-audience-photo { object-position: center 42%; }
.cs-audience-photo-podcast { object-position: 61% 44%; }

@media (max-width: 560px) {
  .cs-video-frame .cs-media-photo { object-position: 61% 37%; }
  .cs-mini-frame-two .cs-media-photo { object-position: 76% 45%; }
  .cs-audience-photo { object-position: center 36%; }
}

/* Live caption style demo: every option changes the actual visual language. */
.cs-style-pills button {
  flex: 1;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  color: #68676d;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.cs-style-pills button:hover { color: #f3f1f3; border-color: rgba(255,107,0,.28); }
.cs-style-pills button.active {
  color: #ffb27c;
  border-color: rgba(255,107,0,.52);
  background: rgba(255,107,0,.11);
  box-shadow: 0 0 18px rgba(255,107,0,.1);
}

.cs-caption-canvas .cs-caption-lines { transition: background .32s ease, padding .32s ease, bottom .32s ease; }
.cs-caption-canvas.is-caption-transition .cs-caption-lines { animation: csCaptionSwap .46s cubic-bezier(.2,.8,.2,1); }

@keyframes csCaptionSwap {
  0% { opacity: .18; transform: translate(-50%, 10px) scale(.96); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.cs-caption-canvas[data-caption-style="pop"] .cs-caption-lines span {
  color: #fff;
  font-weight: 800;
}

.cs-caption-canvas[data-caption-style="pop"] .cs-caption-lines strong {
  color: var(--cs-orange-bright);
  font-size: 20px;
  letter-spacing: -.03em;
}

.cs-caption-canvas[data-caption-style="karaoke"] .cs-caption-hook {
  border-left: 0;
  border-radius: 4px;
  color: #15110b;
  background: #ffd400;
  box-shadow: 0 5px 15px rgba(255,212,0,.25);
}

.cs-caption-canvas[data-caption-style="karaoke"] .cs-caption-lines {
  bottom: 52px;
  width: 86%;
}

.cs-caption-canvas[data-caption-style="karaoke"] .cs-caption-lines span,
.cs-caption-canvas[data-caption-style="karaoke"] .cs-caption-lines strong {
  display: inline;
  padding: 4px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: #16120c;
  background: #ffd400;
  box-shadow: 5px 0 #ffd400, -5px 0 #ffd400;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.85;
  text-shadow: none;
}

.cs-caption-canvas[data-caption-style="karaoke"] .cs-caption-lines strong {
  color: #fff;
  background: #f05b1a;
  box-shadow: 5px 0 #f05b1a, -5px 0 #f05b1a;
}

.cs-caption-canvas[data-caption-style="clean"] .cs-caption-hook {
  opacity: 0;
  transform: translate(-50%, -10px);
  animation: none;
}
.cs-caption-canvas[data-caption-style="clean"] .cs-caption-lines {
  bottom: 22px;
  width: 100%;
  padding: 13px 12px 14px;
  background: rgba(7,7,8,.78);
  box-shadow: 0 -1px rgba(255,255,255,.12);
}

.cs-caption-canvas[data-caption-style="clean"] .cs-caption-lines span,
.cs-caption-canvas[data-caption-style="clean"] .cs-caption-lines strong {
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-shadow: none;
  text-transform: none;
}

.cs-caption-canvas[data-caption-style="clean"] .cs-caption-lines strong { margin: 2px 0 0; color: #ffb17a; }

.cs-caption-canvas[data-caption-style="impact"] .cs-caption-hook {
  top: 24px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #f22f20;
  transform: translateX(-50%) rotate(-2deg);
  animation: none;
}

.cs-caption-canvas[data-caption-style="impact"] .cs-caption-lines { bottom: 58px; width: 96%; }
.cs-caption-canvas[data-caption-style="impact"] .cs-caption-lines span {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: .95;
  text-transform: uppercase;
}

.cs-caption-canvas[data-caption-style="impact"] .cs-caption-lines strong {
  margin-top: 7px;
  color: #f22f20;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: .84;
  text-shadow: 2px 2px 0 #fff, 5px 5px 0 rgba(0,0,0,.3);
}

/* Smooth subject tracking over the actual speaker, instead of a fixed target box. */
.cs-source-frame .cs-focus-box {
  top: 14%;
  left: 60%;
  width: 28%;
  height: 69%;
  transform-origin: center;
  border-width: 2px;
  animation: csFocusTrack 4.8s cubic-bezier(.45,.02,.25,1) infinite;
  will-change: transform, left, top;
}

/* Keep the confidence label as UI chrome while the tracking box is baked into
   the real source-video footage. This avoids two competing animated targets. */
.cs-source-frame .cs-focus-box-live {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  animation: none;
  will-change: auto;
}

.cs-source-frame .cs-focus-box-live small {
  position: static;
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

.cs-source-frame .cs-focus-box-live > span { display: none; }

.cs-focus-box small {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.cs-focus-box small b {
  padding: 1px 3px;
  border-radius: 2px;
  color: #312012;
  background: #ffe0c6;
  font-size: 5px;
}

.cs-focus-box > span {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: rgba(255,255,255,.68);
  font-size: 5px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@keyframes csFocusTrack {
  0%, 100% { transform: translate3d(-1%, 1%, 0) scale(.98); box-shadow: 0 0 11px rgba(255,107,0,.16); }
  18% { transform: translate3d(1.3%, -1%, 0) scale(1.025); box-shadow: 0 0 25px rgba(255,107,0,.45); }
  49% { transform: translate3d(.2%, .5%, 0) scale(1.01); box-shadow: 0 0 17px rgba(255,107,0,.28); }
  73% { transform: translate3d(-1.1%, -1.4%, 0) scale(.995); box-shadow: 0 0 24px rgba(255,107,0,.38); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-caption-canvas.is-caption-transition .cs-caption-lines,
  .cs-source-frame .cs-focus-box { animation: none !important; }
}

/* ======================================
   REAL CAPTION STYLE PREVIEWS
   Each card mirrors its final video treatment
   ====================================== */
body.app-mode .style-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

body.app-mode .style-card {
  position: relative;
}

body.app-mode .style-card-preview {
  height: 154px;
  padding: 12px;
  background: #080808;
}

body.app-mode .style-mini-phone.caption-preview {
  width: 100%;
  height: 130px;
  padding: 18px 14px;
  align-items: center;
  border-radius: 13px;
  border-color: rgba(255,255,255,.08);
  background: #090909;
  isolation: isolate;
}

body.app-mode .caption-preview::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,107,0,.18), transparent 55%),
    linear-gradient(155deg, #171717, #070707);
}

body.app-mode .caption-preview::after {
  z-index: -1;
  height: 100%;
  opacity: .82;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 18px 18px;
}

body.app-mode .caption-preview .style-mini-caption {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 3px;
  color: #fff;
  font-size: 16px;
  line-height: 1.02;
  letter-spacing: -.55px;
  text-shadow: none;
}

body.app-mode .caption-preview .style-mini-caption strong,
body.app-mode .caption-preview .style-mini-caption span {
  display: block;
  width: fit-content;
  max-width: 100%;
}

body.app-mode .style-card.active .caption-preview .style-mini-caption {
  color: #fff;
}

body.app-mode .style-card-effect {
  min-height: 15px;
  margin: 4px 0 9px;
  color: #716a64;
  font-size: 9px;
  line-height: 1.35;
}

body.app-mode .style-tag--storytelling {
  color: #FF9B50;
  background: rgba(255,107,0,.1);
}

/* Hormozi: yellow active word with a hard black base */
body.app-mode .caption-preview--hormozi .style-mini-caption {
  font-family: Montserrat, Impact, sans-serif;
  font-weight: 900;
}

body.app-mode .caption-preview--hormozi strong {
  padding: 3px 7px;
  border-radius: 4px;
  color: #080808;
  background: #FFE600;
  box-shadow: 0 4px 0 #000, 0 8px 18px rgba(255,230,0,.24);
}

body.app-mode .caption-preview--hormozi span {
  color: #fff;
  -webkit-text-stroke: 1px #000;
}

/* Beast Pop: loud, bouncy, two-tone */
body.app-mode .caption-preview--beast::before {
  background:
    radial-gradient(circle at 35% 32%, rgba(255,230,0,.22), transparent 38%),
    radial-gradient(circle at 70% 67%, rgba(255,48,85,.18), transparent 40%),
    #090909;
}

body.app-mode .caption-preview--beast .style-mini-caption {
  font-family: Montserrat, Impact, sans-serif;
  font-weight: 900;
  transform: rotate(-2deg);
}

body.app-mode .caption-preview--beast strong {
  color: #FFE600;
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 3px 0 #000;
  animation: caption-preview-bounce 1.7s ease-in-out infinite;
}

body.app-mode .caption-preview--beast span {
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  background: #FF3158;
  box-shadow: 0 3px 0 #000;
}

/* Impact: red alert with controlled shake */
body.app-mode .caption-preview--impact .style-mini-caption {
  font-family: Poppins, Impact, sans-serif;
  font-weight: 900;
}

body.app-mode .caption-preview--impact strong {
  color: #FF2929;
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 3px 0 #000, 0 0 12px rgba(255,41,41,.45);
  animation: caption-preview-shake 1.9s ease-in-out infinite;
}

body.app-mode .caption-preview--impact span {
  color: #fff;
  -webkit-text-stroke: 1px #000;
}

/* Neo: multi-colour neon glow */
body.app-mode .caption-preview--neo::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,242,234,.14), transparent 48%),
    #050509;
}

body.app-mode .caption-preview--neo .style-mini-caption {
  font-family: Poppins, sans-serif;
  font-weight: 900;
}

body.app-mode .caption-preview--neo strong,
body.app-mode .caption-preview--neo span {
  color: transparent;
  background: linear-gradient(90deg, #00F2EA, #FF4FD8, #FFE66D);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 6px rgba(0,242,234,.7));
  animation: caption-preview-glow 1.8s ease-in-out infinite;
}

/* TikTok: rounded word bubbles */
body.app-mode .caption-preview--bubble .style-mini-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

body.app-mode .caption-preview--bubble strong,
body.app-mode .caption-preview--bubble span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
}

body.app-mode .caption-preview--bubble strong {
  color: #fff;
  background: #E040FB;
  box-shadow: 0 6px 18px rgba(224,64,251,.3);
}

body.app-mode .caption-preview--bubble span {
  color: #fff;
  background: rgba(0,0,0,.66);
}

/* Minimal: restrained white typography */
body.app-mode .caption-preview--minimal .style-mini-caption {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
}

body.app-mode .caption-preview--minimal strong {
  color: #fff;
}

body.app-mode .caption-preview--minimal span {
  color: #9e9e9e;
}

/* Karaoke: one spoken segment highlighted */
body.app-mode .caption-preview--karaoke .style-mini-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: Montserrat, Impact, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

body.app-mode .caption-preview--karaoke strong,
body.app-mode .caption-preview--karaoke span {
  padding: 4px 7px;
  border-radius: 5px;
}

body.app-mode .caption-preview--karaoke strong {
  color: #080808;
  background: #FFE600;
  box-shadow: 0 4px 0 #000;
}

body.app-mode .caption-preview--karaoke span {
  color: #fff;
  -webkit-text-stroke: 1px #000;
}

/* Podcast: highly readable lower-third treatment */
body.app-mode .caption-preview--podcast .style-mini-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 9px 10px;
  border-left: 4px solid #FF6B00;
  border-radius: 7px;
  color: #fff;
  background: rgba(0,0,0,.72);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

body.app-mode .caption-preview--podcast strong {
  padding: 2px 5px;
  border-radius: 4px;
  color: #080808;
  background: #FF6B00;
}

/* Luxury: serif, gold and breathing room */
body.app-mode .caption-preview--luxury::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(201,168,76,.12), transparent 48%),
    #070707;
}

body.app-mode .caption-preview--luxury .style-mini-caption {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .6px;
}

body.app-mode .caption-preview--luxury strong {
  color: #C9A84C;
  font-style: italic;
}

body.app-mode .caption-preview--luxury span {
  padding-bottom: 5px;
  color: #fff;
  border-bottom: 1px solid rgba(201,168,76,.65);
}

/* Education: keywords become clear green chips */
body.app-mode .caption-preview--education .style-mini-caption {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

body.app-mode .caption-preview--education strong {
  padding: 4px 7px;
  border-radius: 5px;
  color: #06120a;
  background: #4ADE80;
  box-shadow: 0 4px 0 #0f6b32;
}

body.app-mode .caption-preview--education span {
  color: #fff;
}

@keyframes caption-preview-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.04); }
}

@keyframes caption-preview-shake {
  0%, 82%, 100% { transform: translateX(0) rotate(0); }
  86% { transform: translateX(-2px) rotate(-1deg); }
  90% { transform: translateX(2px) rotate(1deg); }
  94% { transform: translateX(-1px) rotate(0); }
}

@keyframes caption-preview-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(0,242,234,.55)); }
  50% { filter: drop-shadow(0 0 10px rgba(255,79,216,.75)); }
}

@media (prefers-reduced-motion: reduce) {
  body.app-mode .caption-preview * {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  body.app-mode .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-mode .style-card-preview {
    height: 128px;
    padding: 8px;
  }

  body.app-mode .style-mini-phone.caption-preview {
    height: 110px;
  }
}

@media (max-width: 460px) {
  body.app-mode .style-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================
   CLIPPINGCUT — PRODUCT UI V5
   Shared visual language for every app page
   ====================================== */

body {
  background:
    radial-gradient(circle at 50% -180px, rgba(255, 107, 0, .12), transparent 520px),
    var(--bg);
}

#page-auth,
#page-create,
#page-processing,
#page-results,
#page-my-clips,
#page-profile,
#page-mobile {
  position: relative;
  isolation: isolate;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -200px, rgba(255, 107, 0, .1), transparent 480px),
    radial-gradient(circle at 100% 15%, rgba(255, 255, 255, .025), transparent 360px),
    var(--bg);
}

#page-auth::before,
#page-processing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Premium product navigation */
.app-nav {
  position: sticky;
  top: 14px;
  z-index: 500;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(17,17,19,.78);
  box-shadow: 0 18px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.app-nav-inner {
  max-width: none;
  height: 58px;
  gap: 20px;
}

.app-nav-logo,
#page-auth .nav-logo,
.mobile-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.app-nav-logo::before,
#page-auth .nav-logo::before,
.mobile-header .nav-logo::before {
  content: "";
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: url('/assets/clippingcut-profile.png') center / cover no-repeat;
  box-shadow: 0 6px 18px rgba(255,107,0,.22);
}

.app-nav-links {
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

.app-nav-link {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #8d8c94;
  font-size: 12px;
  font-weight: 650;
}

.app-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.app-nav-link.active {
  color: #111;
  background: #f4f2ee;
  box-shadow: 0 5px 18px rgba(0,0,0,.24);
}

.app-nav-link.active svg {
  color: var(--accent);
}

.app-nav-right {
  gap: 9px;
}

.credits-display {
  min-height: 38px;
  padding: 7px 13px;
  border-color: rgba(255,107,0,.3);
  background: rgba(255,107,0,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.credits-display:hover {
  border-color: rgba(255,107,0,.55);
  background: rgba(255,107,0,.13);
}

.user-display {
  max-width: 130px;
  overflow: hidden;
  color: #9b9aa2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-nav-logout {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-color: rgba(255,255,255,.09);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
}

.btn-nav-logout:hover {
  color: #fff;
  border-color: rgba(255,107,0,.42);
  background: rgba(255,107,0,.08);
}

.plan-badge {
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .9px;
}

.plan-badge--free {
  color: #a9a8b0;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}

.plan-badge--pro {
  color: #fff;
  background: linear-gradient(135deg, #ff8533, var(--accent));
}

.subscription-alert {
  width: min(1100px, calc(100% - 48px));
  margin: 26px auto -2px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(18,18,20,.92);
}

/* Authentication */
#page-auth {
  min-height: 100vh;
}

#page-auth .nav {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 10;
  width: min(960px, calc(100% - 40px));
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(17,17,19,.72);
  box-shadow: 0 18px 60px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

#page-auth .nav-inner {
  width: 100%;
  height: 58px;
  padding: 7px 9px 7px 18px;
}

.auth-back {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #bbb9be;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: .2s ease;
}

.auth-back:hover {
  color: #fff;
  border-color: rgba(255,107,0,.38);
  background: rgba(255,107,0,.08);
}

.auth-center {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 126px 28px 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .8fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.auth-story {
  max-width: 590px;
}

.auth-eyebrow,
.auth-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.auth-eyebrow::before,
.auth-card-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.auth-story h1 {
  margin: 20px 0;
  color: #f7f6f3;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: .98;
  letter-spacing: -4px;
}

.auth-story h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.auth-story > p {
  max-width: 530px;
  color: #aaa9b2;
  font-size: 17px;
  line-height: 1.7;
}

.auth-proof {
  margin-top: 34px;
  display: grid;
  gap: 10px;
}

.auth-proof span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  color: #c4c2c6;
  border-bottom: 1px solid rgba(255,255,255,.075);
  font-size: 13px;
}

.auth-proof b {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1px;
}

.auth-micro {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f6e74;
  font-size: 11px;
}

.auth-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 0 5px rgba(88,214,141,.08);
}

.auth-card {
  max-width: none;
  padding: 34px;
  border-color: rgba(255,255,255,.11);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24,24,27,.96), rgba(13,13,15,.96));
  box-shadow: 0 32px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 28px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(255,107,0,.45);
}

.auth-form h2 {
  margin: 12px 0 7px;
  color: #f7f6f3;
  font-size: 29px;
  letter-spacing: -1px;
}

.auth-sub {
  margin-bottom: 26px;
  color: #8f8e96;
  line-height: 1.6;
}

.auth-field {
  margin-bottom: 17px;
}

.auth-field label,
.personalize-field label,
.cta-field label,
.profile-field label {
  color: #b8b7bd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}

.field-input,
.field-select,
.ce-text {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #f1efec;
  background: rgba(7,7,8,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field-input:hover,
.field-select:hover,
.ce-text:hover {
  border-color: rgba(255,255,255,.18);
}

.field-input:focus,
.field-select:focus,
.ce-text:focus {
  border-color: var(--accent);
  background: #0b0b0c;
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}

.field-input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.field-input::placeholder,
.ce-text::placeholder {
  color: #55545a;
}

.btn-auth,
.btn-primary,
.btn-primary-sm,
.btn-generate,
.btn-wizard--next,
.btn-clip.download,
.btn-mc.download,
.btn-mobile.download,
.btn-mobile.accent,
.btn-ce.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff8533, var(--accent));
  box-shadow: 0 10px 26px rgba(255,107,0,.2), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-auth {
  min-height: 52px;
  margin-top: 5px;
  border-radius: 12px;
}

.btn-auth:hover,
.btn-primary:hover,
.btn-primary-sm:hover,
.btn-generate:hover,
.btn-wizard--next:hover,
.btn-clip.download:hover,
.btn-mc.download:hover,
.btn-mobile.download:hover,
.btn-mobile.accent:hover,
.btn-ce.primary:hover {
  background: linear-gradient(135deg, #ff954d, #ff6b00);
  box-shadow: 0 14px 34px rgba(255,107,0,.3), inset 0 1px 0 rgba(255,255,255,.3);
  transform: translateY(-1px);
}

.auth-switch {
  color: #77767e;
  font-size: 12px;
}

.auth-switch button {
  color: var(--accent);
  font-size: 12px;
}

/* Creation cockpit */
.cockpit {
  width: 100%;
  max-width: 1600px;
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  grid-template-columns: 220px minmax(0, 1fr) 310px;
}

.cockpit-sidebar,
.cockpit-preview {
  top: 92px;
  height: calc(100vh - 112px);
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(15,15,17,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}

.cockpit-sidebar {
  margin-left: 18px;
  padding: 12px;
  border-right: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
}

.sidebar-steps {
  gap: 5px;
}

.sidebar-step {
  min-height: 48px;
  padding: 9px 11px;
  border-radius: 12px;
  color: #69686f;
  font-size: 12px;
  font-weight: 650;
}

.sidebar-step:hover {
  color: #bbb9bf;
  background: rgba(255,255,255,.035);
}

.sidebar-step .ss-num {
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 9px;
  color: #85848b;
  background: #18181a;
}

.sidebar-step.active {
  color: #fff;
  border-color: rgba(255,107,0,.35);
  background: linear-gradient(90deg, rgba(255,107,0,.14), rgba(255,107,0,.035));
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-step.active .ss-num {
  border-color: transparent;
  background: linear-gradient(145deg, #ff8735, var(--accent));
  box-shadow: 0 7px 18px rgba(255,107,0,.22);
}

.sidebar-step.done {
  color: #7fcf9e;
}

.sidebar-step.done .ss-num {
  color: #08140d;
  background: #58d68d;
}

.sidebar-credits {
  padding: 13px;
  border-color: rgba(255,107,0,.16);
  border-radius: 13px;
  background: rgba(255,107,0,.055);
}

.cockpit-main {
  max-width: 930px;
  justify-self: center;
  padding: 42px clamp(28px, 4vw, 58px) 130px;
}

.wizard-progress {
  height: 5px;
  margin-bottom: 36px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 99px;
  background: #151517;
}

.wizard-progress-fill {
  background: linear-gradient(90deg, #ff5c00, #ff9b50);
  box-shadow: 0 0 22px rgba(255,107,0,.34);
}

.wizard-step.active {
  animation: appStepIn .38s cubic-bezier(.22,.8,.22,1);
}

@keyframes appStepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  gap: 18px;
  margin-bottom: 34px;
}

.step-number {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: linear-gradient(145deg, #ff8735, var(--accent) 68%, #bd4500);
  box-shadow: 0 12px 30px rgba(255,107,0,.22), inset 0 1px 0 rgba(255,255,255,.28);
}

.step-title {
  color: #f7f6f3;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.step-desc {
  margin-top: 7px;
  color: #8c8b93;
  font-size: 14px;
  line-height: 1.6;
}

.wizard-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  right: auto;
  z-index: 250;
  width: max-content;
  padding: 7px;
  transform: translateX(-50%);
  gap: 7px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(17,17,19,.82);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.btn-wizard {
  min-width: 150px;
  min-height: 46px;
  padding: 11px 27px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.btn-wizard--back,
.btn-secondary,
.btn-clip,
.btn-mc,
.btn-ce,
.btn-save-brand,
.btn-mobile {
  border-color: rgba(255,255,255,.1);
  color: #b0afb6;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.btn-wizard--back:hover,
.btn-secondary:hover,
.btn-clip:hover,
.btn-mc:hover,
.btn-ce:hover,
.btn-save-brand:hover,
.btn-mobile:hover {
  color: #fff;
  border-color: rgba(255,107,0,.4);
  background: rgba(255,107,0,.07);
}

.btn-wizard--next:disabled {
  color: #777;
  background: #2d190f;
  box-shadow: none;
}

.upload-zone,
.multi-upload-zone {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,107,0,.055), transparent 180px),
    rgba(255,255,255,.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.multi-upload-zone {
  min-height: 230px;
}

.upload-zone:hover,
.upload-zone.dragover,
.multi-upload-zone:hover {
  border-color: rgba(255,107,0,.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,107,0,.11), transparent 190px),
    rgba(255,107,0,.025);
  box-shadow: 0 0 0 4px rgba(255,107,0,.045), inset 0 1px 0 rgba(255,255,255,.03);
}

.upload-icon-wrap {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255,107,0,.18);
  border-radius: 22px;
  color: var(--accent);
  background: rgba(255,107,0,.07);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.upload-text {
  color: #f2f0ed;
  font-size: 20px;
}

.upload-hint {
  color: #77767e;
  line-height: 1.7;
}

.video-preview {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.progress-bar-track,
.score-bar,
.viral-score-display .vs-bar {
  background: #1a1a1d;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--accent), #ff9b50);
  box-shadow: 0 0 18px rgba(255,107,0,.3);
}

.objective-grid {
  gap: 12px;
}

.objective-card,
.format-card,
.style-card,
.personalize-field,
.adv-panel,
.summary-card {
  border-color: rgba(255,255,255,.085);
  background: linear-gradient(145deg, rgba(22,22,25,.9), rgba(14,14,16,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.objective-card {
  min-height: 118px;
  align-items: center;
  padding: 22px;
}

.objective-card:hover,
.format-card:hover,
.style-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.objective-card.active,
.format-card.active {
  border-color: rgba(255,107,0,.75);
  background: linear-gradient(135deg, rgba(255,107,0,.12), rgba(18,18,20,.95) 58%);
  box-shadow: 0 18px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,107,0,.12);
}

.objective-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  color: #77767e;
  background: rgba(255,255,255,.035);
}

.objective-card.active .objective-icon {
  color: var(--accent);
  background: rgba(255,107,0,.1);
}

.objective-info h3 {
  color: #efeeeb;
  font-size: 17px;
}

.objective-info p {
  color: #85848c;
  line-height: 1.55;
}

.adv-panel {
  margin-top: 26px;
  padding: 24px;
}

.adv-panel-header {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  color: #aaa9b0;
  letter-spacing: 1.2px;
}

.adv-group {
  gap: 3px;
}

.adv-row {
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.adv-row:last-child {
  border-bottom: 0;
}

.adv-row label {
  color: #aaa9b0;
}

.adv-chip,
.filter-btn,
.format-badge,
.tag {
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.035);
}

.adv-chip {
  min-height: 34px;
  color: #85848c;
}

.adv-chip:hover,
.filter-btn:hover {
  color: #ddd;
  border-color: rgba(255,255,255,.2);
}

.adv-chip.active,
.filter-btn.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 7px 20px rgba(255,107,0,.18);
}

.adv-chip.is-plan-locked,
.adv-chip:disabled {
  cursor: not-allowed;
  opacity: .34;
  filter: grayscale(1);
}

.adv-chip.is-plan-locked:hover,
.adv-chip:disabled:hover {
  color: #85848c;
  border-color: rgba(255,255,255,.075);
}

.toggle-switch {
  width: 46px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.07);
  background: #1b1b1e;
}

.toggle-switch::after {
  width: 18px;
  height: 18px;
  background: #77767f;
}

.toggle-label input:checked + .toggle-switch {
  border-color: rgba(255,107,0,.4);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255,107,0,.16);
}

.format-grid {
  gap: 18px;
}

.format-card {
  min-height: 340px;
  padding: 30px 22px;
}

.format-preview {
  border: 1px solid rgba(255,255,255,.075);
  color: #77767e;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.06), transparent 55%),
    #18181b;
}

.format-card.active .format-preview {
  border-color: rgba(255,107,0,.22);
  color: var(--accent);
  background:
    radial-gradient(circle at 50% 30%, rgba(255,107,0,.14), transparent 60%),
    #1b1410;
}

.format-card h3 {
  color: #f0efec;
  font-size: 16px;
}

.style-filters {
  gap: 7px;
  padding-bottom: 5px;
}

.filter-btn {
  min-height: 38px;
  padding: 8px 17px;
}

.style-grid {
  gap: 16px;
}

.style-card {
  border-radius: 18px;
}

.style-card.active {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(0,0,0,.32), 0 0 0 3px rgba(255,107,0,.06);
}

.style-card-preview {
  height: 142px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,107,0,.09), transparent 90px),
    linear-gradient(145deg, #18181b, #101012);
}

.style-mini-phone,
.lp-bg,
.sp-bg {
  background:
    radial-gradient(circle at 60% 24%, rgba(255,107,0,.26), transparent 32%),
    linear-gradient(160deg, #282015 0%, #151516 50%, #09090a 100%);
}

.style-card-info {
  padding: 15px;
}

.personalize-grid {
  gap: 18px;
}

.personalize-field {
  padding: 20px;
}

.field-hint {
  color: #626168;
}

.color-picker {
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: #111;
}

.btn-save-brand {
  min-height: 48px;
  border-radius: 12px;
}

.toggle-label--main {
  width: fit-content;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.platform-btn {
  min-height: 45px;
  border-color: rgba(255,255,255,.09);
  border-radius: 12px;
  color: #aaa9b1;
  background: rgba(255,255,255,.03);
}

.platform-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.platform-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,107,0,.08);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.summary-card {
  padding: 22px;
}

.summary-row {
  min-height: 48px;
  border-color: rgba(255,255,255,.065);
}

.summary-icon {
  color: var(--accent);
}

.summary-label {
  color: #77767e;
}

.summary-phone,
.lp-phone-inner {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.44), inset 0 0 0 5px #0b0b0c;
}

.btn-generate {
  min-height: 58px;
  border-radius: 14px;
  font-size: 16px;
}

.cockpit-preview {
  margin-right: 18px;
  padding: 20px;
  border-left: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
}

.lp-header {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.lp-title {
  color: #a8a7ae;
  letter-spacing: 1.8px;
}

.lp-phone {
  padding: 6px 0;
}

.lp-meta {
  border-color: rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

.lp-meta-row {
  min-height: 38px;
  border-color: rgba(255,255,255,.055);
}

/* Processing */
#page-processing > .nav {
  display: none;
}

.processing-center {
  min-height: calc(100vh - 86px);
  padding: 70px 24px;
}

.processing-card {
  max-width: 590px;
  padding: 50px;
  border-color: rgba(255,255,255,.1);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(23,23,26,.94), rgba(12,12,14,.94));
  box-shadow: 0 36px 100px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05);
}

.processing-anim {
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
}

.pulse-core {
  inset: 10px;
  background: linear-gradient(145deg, #ff9145, var(--accent));
  box-shadow: 0 18px 45px rgba(255,107,0,.25), inset 0 1px 0 rgba(255,255,255,.3);
}

.pulse-ring {
  border-color: rgba(255,107,0,.7);
}

.processing-title {
  font-size: 31px;
  letter-spacing: -1px;
}

.processing-mode {
  margin-bottom: 30px;
}

.steps-list {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}

.step-row {
  min-height: 46px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.step-row:last-child {
  border-bottom: 0;
}

.processing-meta {
  width: fit-content;
  margin: 24px auto 0;
  padding: 7px 14px;
  border: 1px solid rgba(255,107,0,.25);
  border-radius: 999px;
  background: rgba(255,107,0,.07);
  font-size: 14px;
}

/* Results and library */
.results-container,
.myclips-container {
  max-width: 1280px;
  padding: 66px 32px 100px;
}

.results-header,
.myclips-header {
  margin-bottom: 36px;
}

.results-header h1,
.myclips-header h1,
.profile-container > h1 {
  color: #f7f6f3;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -2.2px;
}

.results-header h1::before,
.myclips-header h1::before,
.profile-container > h1::before {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.results-header h1::before { content: "Rendu terminé"; }
.myclips-header h1::before { content: "Bibliothèque"; }
.profile-container > h1::before { content: "Espace personnel"; }

.results-sub,
.myclips-sub,
.profile-sub {
  margin-top: 10px;
  color: #8c8b93;
  font-size: 14px;
}

.results-actions {
  align-items: center;
}

.btn-secondary,
.btn-primary-sm {
  min-height: 44px;
  border-radius: 999px;
}

.clips-grid,
.myclips-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.clip-card,
.mc-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22,22,25,.94), rgba(13,13,15,.94));
  box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.clip-card:hover,
.mc-card:hover {
  border-color: rgba(255,107,0,.28);
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
}

.clip-video,
.mc-video {
  border-bottom: 1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,107,0,.12), transparent 38%),
    #050505;
}

.clip-body,
.mc-body {
  padding: 20px;
}

.clip-title,
.mc-title {
  color: #f0efec;
  font-size: 15px;
}

.viral-score-display,
.mc-score {
  color: var(--accent);
}

.vs-criterion,
.tag,
.mc-meta span {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

.vs-criterion {
  padding: 4px 8px;
}

.clip-hook,
.mc-hook {
  padding: 12px;
  border-left: 2px solid var(--accent);
  border-radius: 0 9px 9px 0;
  color: #dbd9d5;
  background: rgba(255,107,0,.055);
  font-style: normal;
  line-height: 1.5;
}

.clip-details,
.social-export {
  border-color: rgba(255,255,255,.07);
}

.clip-actions,
.mc-actions {
  gap: 7px;
}

.btn-clip,
.btn-mc {
  min-height: 36px;
  border-radius: 9px;
}

.social-card {
  border-color: rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.myclips-notice {
  width: fit-content;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  color: #66656c;
  background: rgba(255,255,255,.02);
  font-style: normal;
}

.myclips-empty {
  min-height: 430px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(255,255,255,.018);
}

/* Profile */
.profile-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 66px 28px 110px;
}

.profile-sub {
  margin-bottom: 34px;
}

.profile-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22,22,25,.9), rgba(13,13,15,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.profile-section h3 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #dddcd9;
  font-size: 11px;
  letter-spacing: 1.6px;
}

.profile-field {
  margin: 0;
}

.profile-field label {
  margin-bottom: 8px;
}

.profile-row {
  grid-column: 1 / -1;
  gap: 18px;
}

.field-color {
  width: 100%;
  height: 48px;
  padding: 4px;
  border-color: rgba(255,255,255,.1);
  border-radius: 11px;
  background: #0b0b0c;
}

.field-check {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.profile-actions {
  justify-content: flex-end;
}

.profile-actions .btn-primary {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}

/* Mobile companion page */
.mobile-clip-page {
  max-width: 560px;
  padding: 24px 18px 60px;
}

.mobile-header {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(17,17,19,.78);
  box-shadow: var(--shadow);
}

.mobile-content {
  gap: 14px;
}

.mobile-video {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.mobile-title {
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -.8px;
}

.mobile-meta span {
  border: 1px solid rgba(255,255,255,.07);
  color: #8d8c94;
  background: rgba(255,255,255,.03);
}

.mobile-instructions,
.mobile-caption-box,
.btn-mobile-social {
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22,22,25,.92), rgba(13,13,15,.92));
}

.mobile-instructions {
  border-left: 3px solid var(--accent);
}

.btn-mobile {
  min-height: 48px;
  border-radius: 12px;
}

/* Modals and editor */
.modal-overlay {
  padding: 22px;
  background: rgba(3,3,4,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-card {
  padding: 34px;
  border-color: rgba(255,255,255,.11);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24,24,27,.98), rgba(12,12,14,.98));
  box-shadow: 0 38px 110px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.05);
}

.modal-close {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
}

.modal-close:hover {
  border-color: rgba(255,107,0,.38);
  background: rgba(255,107,0,.07);
}

.modal-card h2 {
  color: #f7f6f3;
  font-size: 28px;
  letter-spacing: -1px;
}

.modal-plan,
.modal-status,
.ce-clip-section {
  border-color: rgba(255,255,255,.085);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.modal-plan--pro {
  border-color: rgba(255,107,0,.52);
  background: linear-gradient(145deg, rgba(255,107,0,.1), rgba(255,255,255,.02));
}

.btn-checkout-pro {
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8533, var(--accent));
}

.caption-editor {
  max-width: 780px;
}

.ce-clip-section {
  padding: 18px;
}

.ce-text {
  min-height: 42px;
}

.ce-footer {
  border-color: rgba(255,255,255,.08);
}

.copy-toast {
  border-color: rgba(255,107,0,.55);
  border-radius: 999px;
  background: rgba(18,18,20,.95);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(18px);
}

/* Responsive application */
@media (max-width: 1180px) {
  .cockpit {
    display: block;
  }

  .cockpit-sidebar {
    position: sticky;
    top: 88px;
    z-index: 80;
    width: auto;
    height: auto;
    margin: 18px 24px 0;
    padding: 7px;
    display: flex;
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(17,17,19,.84);
  }

  .sidebar-steps {
    min-width: 700px;
    flex: 1;
    flex-direction: row;
  }

  .sidebar-step {
    flex: 1;
    justify-content: center;
  }

  .sidebar-credits,
  .cockpit-preview {
    display: none;
  }

  .cockpit-main {
    max-width: 1020px;
    margin: 0 auto;
    padding-top: 34px;
  }
}

@media (max-width: 920px) {
  .auth-center {
    max-width: 620px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .auth-story {
    max-width: 560px;
    text-align: center;
  }

  .auth-story h1 {
    font-size: 50px;
  }

  .auth-story > p {
    margin: 0 auto;
  }

  .auth-proof {
    display: none;
  }

  .auth-micro {
    justify-content: center;
  }

  .auth-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .app-nav {
    width: calc(100% - 24px);
  }

  .app-nav-right .user-display {
    display: none;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .summary-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-nav {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    padding-left: 9px;
  }

  .app-nav-inner {
    height: 56px;
    gap: 7px;
  }

  .app-nav-logo {
    width: 31px;
    overflow: hidden;
    gap: 10px;
  }

  .app-nav-links {
    gap: 2px;
    padding: 3px;
  }

  .app-nav-link {
    width: 38px;
    height: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .app-nav-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .app-nav-right {
    gap: 5px;
  }

  .app-nav-right .plan-badge {
    display: none;
  }

  .credits-display {
    min-height: 36px;
    padding: 6px 10px;
  }

  .btn-nav-logout {
    width: 36px;
    height: 36px;
  }

  .cockpit-sidebar {
    top: 78px;
    margin: 14px 12px 0;
  }

  .sidebar-steps {
    min-width: 0;
    width: 100%;
  }

  .sidebar-step {
    min-width: 41px;
    min-height: 41px;
    padding: 5px;
  }

  .sidebar-step .ss-label {
    display: none;
  }

  .sidebar-step .ss-num {
    width: 29px;
    height: 29px;
  }

  .cockpit-main {
    padding: 28px 16px 120px;
  }

  .wizard-progress {
    margin-bottom: 28px;
  }

  .step-header {
    gap: 13px;
    margin-bottom: 28px;
  }

  .step-number {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }

  .step-title {
    font-size: 25px;
  }

  .step-desc {
    font-size: 13px;
  }

  .wizard-nav {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .btn-wizard {
    min-width: 0;
    flex: 1;
  }

  .upload-zone {
    min-height: 290px;
    padding: 42px 18px;
  }

  .objective-card {
    align-items: flex-start;
    padding: 18px;
  }

  .adv-panel {
    padding: 18px;
  }

  .adv-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .adv-chips {
    width: 100%;
  }

  .adv-chip {
    flex: 1;
  }

  .format-grid,
  .personalize-grid,
  .cta-grid,
  .profile-section,
  .profile-row {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: auto;
  }

  .profile-row {
    display: grid;
  }

  .results-container,
  .myclips-container,
  .profile-container {
    padding: 48px 16px 90px;
  }

  .results-header h1,
  .myclips-header h1,
  .profile-container > h1 {
    font-size: 36px;
  }

  .clips-grid,
  .myclips-grid {
    grid-template-columns: 1fr;
  }

  .results-actions .btn-secondary,
  .results-actions .btn-primary-sm {
    flex: 1;
    justify-content: center;
  }

  .profile-section {
    padding: 19px;
  }

  .processing-card {
    padding: 38px 22px;
  }

  .processing-title {
    font-size: 27px;
  }

  .modal-card {
    padding: 28px 20px;
  }
}

@media (max-width: 560px) {
  #page-auth .nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  #page-auth .nav-inner {
    padding-left: 9px;
  }

  .auth-back {
    width: 42px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    gap: 0;
  }

  .auth-back span {
    color: #ddd;
    font-size: 17px;
  }

  .auth-center {
    padding: 104px 14px 40px;
    gap: 28px;
  }

  .auth-story h1 {
    margin: 13px 0;
    font-size: 38px;
    letter-spacing: -2.5px;
  }

  .auth-story > p,
  .auth-micro {
    display: none;
  }

  .auth-card {
    padding: 27px 20px;
    border-radius: 20px;
  }

  .auth-card::before {
    margin-bottom: 22px;
  }

  .auth-form h2 {
    font-size: 26px;
  }

  .myclips-notice {
    width: 100%;
    border-radius: 12px;
    line-height: 1.5;
  }

  .mobile-social-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-auth *,
  #page-create *,
  #page-processing *,
  #page-results *,
  #page-my-clips *,
  #page-profile *,
  #page-mobile *,
  .app-nav *,
  .modal-overlay * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ======================================
   YOUTUBE LINK IMPORT
   ====================================== */

.input-source-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.input-source-tab {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: #85848c;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.input-source-tab:hover {
  color: #e5e3df;
  background: rgba(255,255,255,.035);
}

.input-source-tab.active {
  color: #111;
  background: #f5f3ef;
  box-shadow: 0 8px 24px rgba(0,0,0,.26);
}

.input-source-tab.active svg {
  color: #f44336;
}

.input-source-badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8533, var(--accent));
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.input-source-panel[hidden] {
  display: none !important;
}

.youtube-import-card {
  min-height: 360px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,107,0,.09), transparent 220px),
    linear-gradient(145deg, rgba(22,22,25,.94), rgba(12,12,14,.96));
  box-shadow: 0 24px 70px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}

.youtube-import-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.youtube-import-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,107,0,.24);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #ff4f43, #d51f15);
  box-shadow: 0 12px 30px rgba(230,35,25,.2), inset 0 1px 0 rgba(255,255,255,.25);
}

.youtube-import-heading h3 {
  color: #f3f1ee;
  font-size: 19px;
  letter-spacing: -.4px;
}

.youtube-import-heading p {
  margin-top: 3px;
  color: #77767e;
  font-size: 12px;
}

.youtube-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.youtube-url-field {
  min-height: 56px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: #5f5e65;
  background: rgba(5,5,6,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.youtube-url-field:focus-within {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}

.youtube-url-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f3f1ee;
  background: transparent;
  font-size: 14px;
}

.youtube-url-field input::placeholder {
  color: #4f4e54;
}

.youtube-inspect-btn,
.youtube-import-btn {
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ff8533, var(--accent));
  box-shadow: 0 10px 26px rgba(255,107,0,.2), inset 0 1px 0 rgba(255,255,255,.25);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.youtube-inspect-btn:hover,
.youtube-import-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255,107,0,.3), inset 0 1px 0 rgba(255,255,255,.3);
}

.youtube-inspect-btn:disabled,
.youtube-import-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}

.youtube-import-note {
  margin-top: 11px;
  color: #5f5e65;
  font-size: 10px;
  line-height: 1.55;
}

.youtube-import-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(239,68,68,.28);
  border-radius: 11px;
  color: #fca5a5;
  background: rgba(239,68,68,.075);
  font-size: 12px;
  line-height: 1.5;
}

.youtube-preview {
  margin-top: 24px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1fr);
  gap: 22px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.youtube-preview[hidden] {
  display: none !important;
}

.youtube-preview-thumb {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  align-self: start;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
}

.youtube-preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.youtube-preview-thumb > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.78);
  font-size: 10px;
  font-weight: 750;
}

.youtube-preview-content {
  min-width: 0;
}

.youtube-preview-label,
.youtube-progress-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.youtube-preview-content h4 {
  margin: 6px 0 4px;
  overflow: hidden;
  color: #efede9;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.youtube-preview-content > p {
  color: #77767e;
  font-size: 11px;
}

.youtube-rights-check {
  margin-top: 15px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  color: #8d8c94;
  background: rgba(255,255,255,.022);
  font-size: 10px;
  line-height: 1.45;
  cursor: pointer;
}

.youtube-rights-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.youtube-preview-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.youtube-preview-actions button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
}

.youtube-change-btn {
  border: 1px solid rgba(255,255,255,.09);
  color: #aaa9b0;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.youtube-change-btn:hover {
  color: #fff;
  border-color: rgba(255,107,0,.35);
}

.youtube-import-btn {
  min-height: 40px;
}

.youtube-import-progress {
  margin-top: 24px;
  padding: 21px;
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 15px;
  background: rgba(255,107,0,.045);
}

.youtube-import-progress[hidden] {
  display: none !important;
}

.youtube-progress-top,
.youtube-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.youtube-progress-top {
  margin-bottom: 13px;
}

.youtube-progress-top > div {
  display: grid;
  gap: 3px;
}

.youtube-progress-top strong {
  color: #e7e5e1;
  font-size: 13px;
}

#youtube-progress-percent {
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
}

.youtube-progress-meta {
  margin-top: 10px;
  color: #77767e;
  font-size: 10px;
}

.youtube-progress-meta button {
  border: 0;
  color: #99989f;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.youtube-progress-meta button:hover {
  color: #fff;
}

.youtube-import-progress.ready {
  border-color: rgba(88,214,141,.28);
  background: rgba(88,214,141,.055);
}

.youtube-import-progress.ready .youtube-progress-kicker,
.youtube-import-progress.ready #youtube-progress-percent {
  color: #58d68d;
}

@media (max-width: 720px) {
  .input-source-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .input-source-tabs::-webkit-scrollbar {
    display: none;
  }

  .input-source-tab {
    flex: 0 0 auto;
    padding-inline: 10px;
  }

  .input-source-badge {
    display: none;
  }

  .youtube-import-card {
    min-height: 330px;
    padding: 20px;
  }

  .youtube-url-row {
    grid-template-columns: 1fr;
  }

  .youtube-inspect-btn {
    min-height: 48px;
  }

  .youtube-preview {
    grid-template-columns: 1fr;
  }

  .youtube-preview-actions {
    flex-direction: column-reverse;
  }

  .youtube-preview-actions button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .input-source-tab {
    font-size: 11px;
  }

  .youtube-import-heading {
    align-items: flex-start;
  }

  .youtube-import-heading h3 {
    font-size: 17px;
  }

  .youtube-import-note {
    font-size: 9px;
  }
}

/* ======================================
   CLIPPINGCUT — APPLICATION STUDIO V6
   Navigation SaaS, workspace and product polish
   ====================================== */

body.app-mode {
  --accent: #FF6B00;
  --accent-dim: #CC5500;
  --accent-glow: rgba(255, 107, 0, .28);
  --accent-subtle: rgba(255, 107, 0, .1);
  --app-orange: #FF6B00;
  --app-orange-2: #FF9345;
  --app-surface: #0F0D0C;
  --app-surface-2: #15120F;
  --app-stroke: rgba(255, 201, 166, .105);
  min-height: 100vh;
  overflow-x: hidden;
  color: #F7F4F0;
  background:
    radial-gradient(circle at 35% -8%, rgba(255,107,0,.13), transparent 34rem),
    radial-gradient(circle at 94% 40%, rgba(255,122,50,.045), transparent 28rem),
    #080808;
}

body.app-mode::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 20%, #000, transparent 70%);
}

.app-nav[hidden],
.app-topbar[hidden],
.app-sidebar-backdrop[hidden] {
  display: none !important;
}

/* Application sidebar */
body.app-mode .app-nav {
  position: fixed;
  z-index: 900;
  inset: 0 auto 0 0;
  width: 248px;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--app-stroke);
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,107,0,.13), transparent 18rem),
    rgba(12,10,8,.965);
  box-shadow: 28px 0 80px rgba(0,0,0,.18), inset -1px 0 0 rgba(255,255,255,.012);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

body.app-mode .app-nav-inner {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.app-nav-brandline {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px;
}

body.app-mode .app-nav-logo {
  min-width: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  color: #FAF8F5;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

body.app-mode .app-nav-logo::before {
  display: none;
}

.app-brand-symbol {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #FF9B50 0%, #E95D00 54%, #A83C00 100%);
  box-shadow: 0 10px 30px rgba(255,107,0,.36), inset 0 1px 0 rgba(255,255,255,.38);
  font-size: 15px;
  font-weight: 900;
}

.app-brand-symbol.cc-brand-logo-mark {
  display: block;
  border: 0;
  background: transparent;
  box-shadow: 0 10px 30px rgba(255,107,0,.28);
  object-fit: cover;
}

.app-brand-word {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-brand-word > span {
  color: var(--app-orange-2);
}

.app-sidebar-close {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #ACA6A0;
  background: rgba(255,255,255,.025);
  font-size: 21px;
  cursor: pointer;
}

.app-workspace-card {
  min-height: 64px;
  margin: 20px 0 24px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,165,101,.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,0,.11), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.app-workspace-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #FFC197;
  background: rgba(255,107,0,.15);
}

.app-workspace-card div {
  min-width: 0;
  display: grid;
}

.app-workspace-card small {
  color: #807973;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.app-workspace-card strong {
  overflow: hidden;
  color: #E2DDD8;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-workspace-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55d68b;
  box-shadow: 0 0 0 4px rgba(85,214,139,.08), 0 0 15px rgba(85,214,139,.4);
}

.app-nav-section-label {
  margin: 0 10px 8px;
  color: #5D5853;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

body.app-mode .app-nav-links {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.app-mode .app-nav-link {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8B847D;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

body.app-mode .app-nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #69625C;
}

body.app-mode .app-nav-link span {
  min-width: 0;
  flex: 1;
}

body.app-mode .app-nav-link kbd {
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: #625B55;
  background: rgba(255,255,255,.025);
  font: 700 8px/1.4 Inter, sans-serif;
  text-align: center;
}

body.app-mode .app-nav-link:hover {
  color: #DFDAD5;
  border-color: rgba(255,255,255,.055);
  background: rgba(255,255,255,.028);
  transform: translateX(2px);
}

body.app-mode .app-nav-link.active {
  color: #fff;
  border-color: rgba(255,130,37,.22);
  background: linear-gradient(90deg, rgba(255,107,0,.2), rgba(255,107,0,.055));
  box-shadow: inset 3px 0 0 var(--app-orange), 0 8px 24px rgba(0,0,0,.16);
}

body.app-mode .app-nav-link.active svg {
  color: #FFAD70;
  filter: drop-shadow(0 0 9px rgba(255,107,0,.4));
}

body.app-mode .app-nav-link.active kbd {
  color: #FFC6A3;
  border-color: rgba(255,149,75,.2);
  background: rgba(255,107,0,.09);
}

.app-nav-spacer {
  flex: 1;
  min-height: 16px;
}

.app-upgrade-card {
  padding: 14px;
  border: 1px solid rgba(255,123,42,.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,0,.14), transparent 7rem),
    rgba(255,107,0,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.app-upgrade-head,
.app-upgrade-plan,
body.app-mode .credits-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-upgrade-head {
  color: #F68A3E;
}

.app-upgrade-head small {
  flex: 1;
  color: #77706A;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.app-upgrade-plan {
  margin: 8px 0 12px;
}

.app-upgrade-plan button {
  padding: 0;
  border: 0;
  color: #FFA260;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.app-upgrade-plan button:hover {
  color: #fff;
}

body.app-mode .plan-badge {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .9px;
}

body.app-mode .plan-badge--free {
  color: #C0B8B0;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
}

body.app-mode .plan-badge--pro {
  color: #fff;
  background: linear-gradient(135deg, #FF9345, #DD5900);
}

body.app-mode .credits-display {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: #908983;
  background: rgba(5,5,5,.35);
  box-shadow: none;
  font-size: 9px;
  cursor: pointer;
}

body.app-mode .credits-display:hover {
  border-color: rgba(255,149,75,.3);
  background: rgba(255,107,0,.08);
}

body.app-mode .credits-display b {
  color: #F4F0EB;
  font-size: 13px;
}

.credits-flash {
  color: #f7bd45;
}

body.app-mode .app-nav-right {
  min-height: 60px;
  margin-top: 10px;
  padding: 10px 4px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.app-user-card {
  min-width: 0;
  flex: 1;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.app-user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #ff9a57, #ff6f24);
  box-shadow: 0 7px 18px rgba(255,111,36,.16);
  font-size: 12px;
  font-weight: 850;
}

.app-user-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

body.app-mode .user-display {
  max-width: 130px;
  overflow: hidden;
  color: #DED9D4;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-copy small {
  color: #68615B;
  font-size: 8px;
}

body.app-mode .btn-nav-logout {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-color: rgba(255,255,255,.065);
  border-radius: 10px;
  color: #736D67;
  background: rgba(255,255,255,.02);
}

body.app-mode .btn-nav-logout:hover {
  color: #fff;
  border-color: rgba(255,122,50,.28);
  background: rgba(255,122,50,.07);
}

/* Application top bar */
.app-topbar {
  position: fixed;
  z-index: 800;
  top: 0;
  right: 0;
  left: 248px;
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--app-stroke);
  background: rgba(8,8,8,.82);
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.app-topbar-left,
.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.app-page-heading {
  display: grid;
  gap: 1px;
}

.app-page-heading > span {
  color: #665F58;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.app-page-heading h1 {
  color: #EEEAE6;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.35px;
}

.app-menu-toggle {
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.app-menu-toggle span {
  width: 16px;
  height: 1.5px;
  display: block;
  border-radius: 2px;
  background: #AEA8A2;
}

.app-engine-status {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(85,214,139,.12);
  border-radius: 999px;
  color: #7d8a82;
  background: rgba(85,214,139,.035);
  font-size: 8px;
  font-weight: 700;
}

.app-engine-status i,
.profile-header-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55d68b;
  box-shadow: 0 0 11px rgba(85,214,139,.55);
}

.app-topbar-library,
.app-topbar-primary {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.app-topbar-library {
  border: 1px solid rgba(255,255,255,.08);
  color: #A19A94;
  background: rgba(255,255,255,.025);
}

.app-topbar-library:hover {
  color: #fff;
  border-color: rgba(255,149,75,.25);
}

.app-topbar-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #FF7926, #E05B00);
  box-shadow: 0 9px 24px rgba(255,107,0,.22), inset 0 1px 0 rgba(255,255,255,.28);
}

.app-topbar-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(255,107,0,.3), inset 0 1px 0 rgba(255,255,255,.3);
}

.app-sidebar-backdrop {
  position: fixed;
  z-index: 850;
  inset: 0;
  background: rgba(3,3,3,.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Shared application workspace */
body.app-mode #page-create,
body.app-mode #page-processing,
body.app-mode #page-results,
body.app-mode #page-my-clips,
body.app-mode #page-profile {
  min-height: 100vh;
  margin-left: 248px;
  padding-top: 72px;
  isolation: isolate;
  background:
    radial-gradient(circle at 48% -10%, rgba(255,107,0,.07), transparent 32rem),
    linear-gradient(180deg, rgba(255,255,255,.006), transparent 24rem),
    #080808;
}

body.app-mode #page-create::after,
body.app-mode #page-my-clips::after,
body.app-mode #page-profile::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -190px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,107,0,.045);
  filter: blur(70px);
}

body.app-mode .subscription-alert {
  width: auto;
  margin: 88px 24px 0 272px;
  border-color: rgba(255,255,255,.08);
  background: rgba(18,15,12,.95);
}

/* Creation studio */
body.app-mode .cockpit {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  margin: 0;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 286px;
}

body.app-mode .cockpit-sidebar,
body.app-mode .cockpit-preview {
  position: sticky;
  top: 92px;
  height: calc(100vh - 112px);
  margin-top: 20px;
  border: 1px solid var(--app-stroke);
  background: rgba(14,12,10,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 22px 70px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.app-mode .cockpit-sidebar {
  margin-left: 18px;
  padding: 11px;
  border-radius: 18px;
}

body.app-mode .sidebar-steps {
  display: grid;
  gap: 5px;
}

body.app-mode .sidebar-step {
  min-height: 45px;
  padding: 8px 9px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #625B55;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

body.app-mode .sidebar-step .ss-num {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 9px;
  color: #807973;
  background: #181410;
  font-size: 9px;
}

body.app-mode .sidebar-step:hover {
  color: #B1ABA4;
  background: rgba(255,255,255,.022);
}

body.app-mode .sidebar-step.active {
  color: #F8F5F1;
  border-color: rgba(255,119,26,.26);
  background: linear-gradient(90deg, rgba(255,107,0,.18), rgba(255,107,0,.045));
  box-shadow: inset 3px 0 0 var(--app-orange);
}

body.app-mode .sidebar-step.active .ss-num {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #FF9345, #DD5900);
  box-shadow: 0 7px 18px rgba(255,107,0,.28);
}

body.app-mode .sidebar-step.done {
  color: #70c993;
}

body.app-mode .sidebar-step.done .ss-num {
  color: #09150e;
  border-color: transparent;
  background: #55d68b;
}

body.app-mode .sidebar-credits {
  padding: 12px;
  border-color: rgba(255,107,0,.15);
  border-radius: 12px;
  color: #7B756F;
  background: rgba(255,107,0,.05);
  font-size: 9px;
}

body.app-mode .sidebar-credits svg {
  stroke: #FF8D3B !important;
}

body.app-mode .cockpit-main {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px clamp(24px, 3.2vw, 48px) 126px;
}

body.app-mode .wizard-progress {
  height: 4px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

body.app-mode .wizard-progress-fill {
  background: linear-gradient(90deg, #DF5A00, #FFA15B 72%, #ff8b49);
  box-shadow: 0 0 24px rgba(255,107,0,.46);
}

body.app-mode .step-header {
  margin-bottom: 18px;
  gap: 15px;
}

body.app-mode .step-number {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #FF8430, #D95800);
  box-shadow: 0 11px 28px rgba(255,107,0,.28), inset 0 1px 0 rgba(255,255,255,.3);
  font-size: 16px;
}

body.app-mode .step-title {
  color: #F6F3EF;
  font-size: clamp(25px, 2.5vw, 33px);
  letter-spacing: -1.3px;
}

body.app-mode .step-desc {
  margin-top: 5px;
  color: #8A837C;
  font-size: 12px;
}

.creation-benefits {
  margin: 0 0 26px 59px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
}

.creation-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #77706A;
  font-size: 9px;
  font-weight: 600;
}

.creation-benefits i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF842F;
  box-shadow: 0 0 9px rgba(255,133,45,.55);
}

body.app-mode .input-source-tabs {
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

body.app-mode .input-source-tab {
  min-height: 39px;
  border-radius: 9px;
  color: #7D766F;
}

body.app-mode .input-source-tab.active {
  color: #F7F4F0;
  background: rgba(255,107,0,.16);
  box-shadow: inset 0 0 0 1px rgba(255,143,64,.2), 0 7px 22px rgba(0,0,0,.14);
}

body.app-mode .input-source-tab.active svg {
  color: #ff5656;
}

body.app-mode .input-source-badge {
  color: #FFE1CE;
  background: rgba(255,107,0,.2);
}

body.app-mode .youtube-import-card,
body.app-mode .upload-zone,
body.app-mode .multi-upload-zone,
body.app-mode .video-preview-wrap {
  border-color: rgba(255,201,166,.11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,107,0,.09), transparent 15rem),
    linear-gradient(145deg, rgba(21,17,13,.92), rgba(10,9,8,.95));
  box-shadow: 0 24px 70px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.03);
}

body.app-mode .youtube-import-card {
  min-height: 342px;
}

body.app-mode .youtube-import-heading h3 {
  color: #F4F1ED;
}

body.app-mode .youtube-import-heading p,
body.app-mode .youtube-import-note {
  color: #706962;
}

body.app-mode .youtube-url-field,
body.app-mode .field-input,
body.app-mode .field-select,
body.app-mode .ce-text {
  border-color: rgba(255,255,255,.085);
  color: #F6F3EF;
  background: rgba(5,5,5,.58);
}

body.app-mode .youtube-url-field:focus-within,
body.app-mode .field-input:focus,
body.app-mode .field-select:focus,
body.app-mode .ce-text:focus {
  border-color: #FF7720;
  box-shadow: 0 0 0 3px rgba(255,107,0,.11);
}

body.app-mode .youtube-inspect-btn,
body.app-mode .youtube-import-btn,
body.app-mode .btn-auth,
body.app-mode .btn-primary,
body.app-mode .btn-primary-sm,
body.app-mode .btn-generate,
body.app-mode .btn-wizard--next,
body.app-mode .btn-clip.download,
body.app-mode .btn-mc.download,
body.app-mode .btn-ce.primary {
  color: #fff;
  background: linear-gradient(135deg, #FF8430, #E25B00);
  box-shadow: 0 10px 28px rgba(255,107,0,.24), inset 0 1px 0 rgba(255,255,255,.28);
}

body.app-mode .youtube-inspect-btn:hover,
body.app-mode .youtube-import-btn:hover:not(:disabled),
body.app-mode .btn-primary:hover,
body.app-mode .btn-primary-sm:hover,
body.app-mode .btn-generate:hover,
body.app-mode .btn-wizard--next:hover,
body.app-mode .btn-clip.download:hover,
body.app-mode .btn-mc.download:hover,
body.app-mode .btn-ce.primary:hover {
  background: linear-gradient(135deg, #FFA15B, #FF7B1A);
  box-shadow: 0 14px 34px rgba(255,107,0,.34), inset 0 1px 0 rgba(255,255,255,.3);
}

body.app-mode .youtube-preview,
body.app-mode .youtube-import-progress {
  border-color: rgba(255,149,75,.15);
}

body.app-mode .youtube-preview-label,
body.app-mode .youtube-progress-kicker,
body.app-mode #youtube-progress-percent {
  color: #FF9345;
}

body.app-mode .progress-bar-fill {
  background: linear-gradient(90deg, #E85E00, #FFA15B);
  box-shadow: 0 0 18px rgba(255,107,0,.34);
}

body.app-mode .objective-card,
body.app-mode .format-card,
body.app-mode .style-card,
body.app-mode .personalize-field,
body.app-mode .adv-panel,
body.app-mode .summary-card {
  border-color: rgba(255,201,166,.09);
  background: linear-gradient(145deg, rgba(21,17,13,.9), rgba(12,10,8,.92));
}

body.app-mode .objective-card.active,
body.app-mode .format-card.active,
body.app-mode .style-card.active {
  border-color: rgba(255,113,13,.72);
  background: linear-gradient(135deg, rgba(255,107,0,.14), rgba(17,14,11,.96) 62%);
  box-shadow: 0 18px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,149,75,.12);
}

body.app-mode .objective-card.active .objective-icon,
body.app-mode .format-card.active .format-preview {
  color: #FF974B;
  background-color: rgba(255,107,0,.11);
}

body.app-mode .adv-chip.active,
body.app-mode .filter-btn.active {
  border-color: #FF7720;
  background: #FF6B00;
  box-shadow: 0 7px 20px rgba(255,107,0,.22);
}

body.app-mode .toggle-label input:checked + .toggle-switch {
  border-color: rgba(255,149,75,.45);
  background: #FF6B00;
  box-shadow: 0 0 18px rgba(255,107,0,.2);
}

body.app-mode .platform-btn.active {
  color: #FFA465;
  border-color: #FF7A1A;
  background: rgba(255,107,0,.09);
}

body.app-mode .wizard-nav {
  position: fixed;
  z-index: 780;
  right: auto;
  bottom: 16px;
  left: calc(248px + (100vw - 248px) / 2);
  width: max-content;
  padding: 6px;
  gap: 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,201,166,.13);
  border-radius: 16px;
  background: rgba(15,12,10,.86);
  box-shadow: 0 22px 65px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.045);
}

body.app-mode .btn-wizard {
  min-width: 142px;
  min-height: 44px;
  border-radius: 11px;
}

body.app-mode .btn-wizard--back,
body.app-mode .btn-secondary,
body.app-mode .btn-clip,
body.app-mode .btn-mc,
body.app-mode .btn-ce,
body.app-mode .btn-save-brand {
  border-color: rgba(255,255,255,.085);
  color: #A39C96;
  background: rgba(255,255,255,.025);
}

body.app-mode .btn-wizard--back:hover,
body.app-mode .btn-secondary:hover,
body.app-mode .btn-clip:hover,
body.app-mode .btn-mc:hover,
body.app-mode .btn-ce:hover,
body.app-mode .btn-save-brand:hover {
  color: #fff;
  border-color: rgba(255,149,75,.34);
  background: rgba(255,107,0,.07);
}

body.app-mode .btn-wizard--next:disabled {
  color: #665F58;
  background: rgba(255,107,0,.13);
  box-shadow: none;
}

body.app-mode .cockpit-preview {
  margin-right: 18px;
  padding: 18px;
  border-radius: 18px;
}

body.app-mode .lp-title {
  color: #8D867F;
}

body.app-mode .lp-cost,
body.app-mode .lp-meta-value--accent {
  color: #FFA465;
}

body.app-mode .lp-phone-inner,
body.app-mode .summary-phone {
  border-color: rgba(255,177,126,.22);
  box-shadow: 0 25px 65px rgba(0,0,0,.48), 0 0 42px rgba(255,107,0,.055), inset 0 0 0 5px #090909;
}

body.app-mode .lp-bg,
body.app-mode .sp-bg,
body.app-mode .style-mini-phone {
  background:
    radial-gradient(circle at 62% 23%, rgba(255,107,0,.28), transparent 34%),
    radial-gradient(circle at 32% 60%, rgba(255,122,50,.12), transparent 40%),
    linear-gradient(160deg, #26190F 0%, #14110F 52%, #070707 100%);
}

body.app-mode .lp-progress-fill {
  background: linear-gradient(90deg, #FF7F2C, #ff7a32);
}

/* Processing */
body.app-mode .processing-center {
  min-height: calc(100vh - 72px);
  padding: 70px 24px;
}

body.app-mode .processing-card {
  max-width: 600px;
  padding: 48px;
  border-color: rgba(255,201,166,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,107,0,.12), transparent 16rem),
    linear-gradient(145deg, rgba(23,18,13,.96), rgba(10,9,8,.97));
  box-shadow: 0 38px 110px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.04);
}

.processing-eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
  color: #FF8A37;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.processing-progress-head {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #807973;
  font-size: 9px;
}

.processing-progress-head strong {
  color: #FFA15B;
  font-size: 10px;
}

.processing-progress-track {
  height: 5px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

#processing-progress-bar {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #DC5900, #FFA15B, #ff8a47);
  box-shadow: 0 0 18px rgba(255,107,0,.36);
  transition: width .55s cubic-bezier(.22,.8,.22,1);
}

body.app-mode .pulse-core {
  background: linear-gradient(145deg, #FF8D3A, #D95700);
  box-shadow: 0 18px 45px rgba(255,107,0,.3), inset 0 1px 0 rgba(255,255,255,.32);
}

body.app-mode .pulse-ring {
  border-color: rgba(255,123,31,.72);
}

body.app-mode .steps-list {
  border-color: rgba(255,201,166,.09);
  background: rgba(255,255,255,.015);
}

body.app-mode .processing-meta {
  border-color: rgba(255,149,75,.24);
  color: #FFC19C;
  background: rgba(255,107,0,.07);
}

/* Results and library */
body.app-mode .results-container,
body.app-mode .myclips-container {
  width: min(1320px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 54px clamp(24px, 4vw, 58px) 100px;
}

body.app-mode .results-header,
body.app-mode .myclips-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

body.app-mode .results-header h1,
body.app-mode .myclips-header h1,
.profile-header h1 {
  color: #F6F3EF;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -2.2px;
}

body.app-mode .results-header h1::before,
body.app-mode .myclips-header h1::before {
  color: #FF8A38;
}

body.app-mode .myclips-header h1::before {
  content: "Bibliothèque créateur";
}

body.app-mode .myclips-sub,
body.app-mode .results-sub {
  margin-top: 10px;
  color: #857E77;
}

.myclips-overview {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.myclips-overview article {
  min-height: 126px;
  padding: 19px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255,201,166,.09);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,0,.1), transparent 9rem),
    rgba(255,255,255,.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.myclips-overview article > span {
  color: #807973;
  font-size: 9px;
  font-weight: 700;
}

.myclips-overview strong {
  margin-top: 10px;
  color: #F4F1ED;
  font-size: 27px;
  letter-spacing: -1px;
}

.myclips-overview small {
  color: #5C5651;
  font-size: 8px;
}

body.app-mode .myclips-notice {
  margin: 0 0 25px;
  color: #6C655F;
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
}

body.app-mode .clips-grid,
body.app-mode .myclips-grid {
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  gap: 18px;
}

body.app-mode .clip-card,
body.app-mode .mc-card {
  border-color: rgba(255,201,166,.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21,17,13,.94), rgba(10,9,8,.95));
  box-shadow: 0 18px 55px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.025);
}

body.app-mode .clip-card:hover,
body.app-mode .mc-card:hover {
  border-color: rgba(255,129,38,.32);
  transform: translateY(-4px);
  box-shadow: 0 28px 75px rgba(0,0,0,.34), 0 0 0 1px rgba(255,107,0,.04);
}

body.app-mode .clip-video,
body.app-mode .mc-video {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,107,0,.14), transparent 42%),
    #050505;
}

body.app-mode .clip-hook,
body.app-mode .mc-hook {
  border-left-color: #FF7926;
  background: rgba(255,107,0,.055);
}

body.app-mode .vs-criterion,
body.app-mode .tag,
body.app-mode .mc-meta span {
  border-color: rgba(255,255,255,.065);
  background: rgba(255,255,255,.025);
}

body.app-mode .myclips-empty {
  border-color: rgba(255,201,166,.13);
  background: rgba(255,107,0,.02);
}

/* Profile */
body.app-mode .profile-container {
  width: min(1080px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 54px clamp(24px, 4vw, 58px) 110px;
}

.profile-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.profile-header > div:first-child > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #FF8A38;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

body.app-mode .profile-sub {
  max-width: 650px;
  margin: 10px 0 0;
  color: #857E77;
}

.profile-header-badge {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(85,214,139,.12);
  border-radius: 999px;
  color: #77867c;
  background: rgba(85,214,139,.035);
  font-size: 8px;
  white-space: nowrap;
}

body.app-mode .profile-section {
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px;
  border-color: rgba(255,201,166,.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21,17,13,.9), rgba(10,9,8,.92));
}

body.app-mode .profile-section h3 {
  color: #C4BDB6;
  border-bottom-color: rgba(255,255,255,.065);
}

body.app-mode .profile-account-section .profile-sub {
  grid-column: 1 / -1;
  margin: -4px 0 2px;
}

body.app-mode .profile-account-actions,
body.app-mode .profile-password-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.app-mode .profile-password-grid .profile-field { margin: 0; }

.profile-danger-zone {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(232, 92, 70, .28);
  border-radius: 14px;
  background: rgba(122, 37, 27, .14);
}
.profile-danger-zone b { display: block; color: #f2dfd8; font-size: 14px; }
.profile-danger-zone span { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; }
.btn-danger {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(232, 92, 70, .55);
  border-radius: 10px;
  color: #ffb7aa;
  background: rgba(122, 37, 27, .22);
  cursor: pointer;
}
.btn-danger:hover { background: rgba(176, 54, 37, .35); color: #fff; }

@media (max-width: 720px) {
  body.app-mode .profile-account-actions,
  body.app-mode .profile-password-grid { grid-template-columns: 1fr; }
  .profile-danger-zone { align-items: flex-start; flex-direction: column; }
}

body.app-mode .field-color {
  border-color: rgba(255,255,255,.09);
  background: #080808;
}

body.app-mode .field-check {
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.02);
}

/* Welcome experience */
.welcome-modal {
  background: rgba(4,4,4,.84);
}

.welcome-card {
  width: min(580px, 100%);
  max-width: 580px;
  padding: 36px;
  overflow: hidden;
  text-align: center;
  border-color: rgba(255,177,126,.2);
  background:
    radial-gradient(circle at 50% -30%, rgba(255,107,0,.22), transparent 20rem),
    linear-gradient(155deg, #1C160F, #100D0B 72%);
}

.welcome-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -130px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(255,122,50,.08);
  filter: blur(35px);
}

.welcome-kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 17px;
  padding: 6px 10px;
  display: inline-flex;
  border: 1px solid rgba(255,149,75,.24);
  border-radius: 999px;
  color: #FFAF72;
  background: rgba(255,107,0,.08);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.welcome-orbit {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #FF964A, #D95800);
  box-shadow: 0 18px 50px rgba(255,107,0,.3), 0 0 0 9px rgba(255,107,0,.055);
  font-size: 19px;
  font-weight: 900;
}

.welcome-card h2 {
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.welcome-card h2 em {
  color: #FF9345;
  font-style: normal;
}

.welcome-card > p {
  position: relative;
  z-index: 1;
  max-width: 450px;
  margin: 9px auto 22px;
  color: #918A84;
  font-size: 12px;
  line-height: 1.6;
}

.welcome-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.welcome-features article {
  min-height: 96px;
  padding: 14px;
  display: flex;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.welcome-features article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #FFA768;
  background: rgba(255,107,0,.13);
}

.welcome-features b,
.welcome-features small {
  display: block;
}

.welcome-features b {
  margin-bottom: 4px;
  color: #E3DED9;
  font-size: 10px;
}

.welcome-features small {
  color: #79726C;
  font-size: 8px;
  line-height: 1.5;
}

.welcome-actions {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 9px;
}

.welcome-primary,
.welcome-secondary {
  min-height: 47px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.welcome-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #FF8430, #DA5900);
  box-shadow: 0 12px 28px rgba(255,107,0,.26), inset 0 1px 0 rgba(255,255,255,.25);
}

.welcome-secondary {
  border: 1px solid rgba(255,255,255,.08);
  color: #A29B95;
  background: rgba(255,255,255,.025);
}

.welcome-foot {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 17px;
  color: #635C56;
  font-size: 8px;
}

/* Auth matches the product identity */
#page-auth {
  --accent: #FF6B00;
  --accent-dim: #CC5500;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,107,0,.15), transparent 30rem),
    radial-gradient(circle at 90% 80%, rgba(255,122,50,.055), transparent 28rem),
    #080808;
}

#page-auth .nav-logo span,
#page-auth .auth-story h1 em,
#page-auth .auth-switch button,
#page-auth .auth-eyebrow,
#page-auth .auth-card-kicker {
  color: #FF8A37;
}

#page-auth .nav-logo::before {
  background: url('/assets/clippingcut-profile.png') center / cover no-repeat;
  box-shadow: 0 8px 24px rgba(255,107,0,.25);
}

#page-auth .auth-card {
  border-color: rgba(255,201,166,.13);
  background: linear-gradient(145deg, rgba(25,20,14,.97), rgba(12,10,8,.97));
}

#page-auth .auth-card::before {
  background: #FF6B00;
  box-shadow: 0 0 24px rgba(255,107,0,.48);
}

#page-auth .btn-auth {
  background: linear-gradient(135deg, #FF8733, #DB5800);
  box-shadow: 0 12px 30px rgba(255,107,0,.25), inset 0 1px 0 rgba(255,255,255,.27);
}

#page-auth .field-input:focus {
  border-color: #FF7720;
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}

/* Responsive application shell */
@media (max-width: 1360px) {
  body.app-mode .cockpit {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  body.app-mode .cockpit-preview {
    display: none;
  }

  body.app-mode .cockpit-main {
    max-width: 1020px;
  }
}

@media (max-width: 1040px) {
  body.app-mode .app-nav {
    width: 228px;
  }

  .app-topbar {
    left: 228px;
  }

  body.app-mode #page-create,
  body.app-mode #page-processing,
  body.app-mode #page-results,
  body.app-mode #page-my-clips,
  body.app-mode #page-profile {
    margin-left: 228px;
  }

  body.app-mode .subscription-alert {
    margin-left: 252px;
  }

  body.app-mode .cockpit {
    display: block;
  }

  body.app-mode .cockpit-sidebar {
    position: sticky;
    z-index: 90;
    top: 84px;
    width: auto;
    height: auto;
    margin: 15px 18px 0;
    padding: 6px;
    display: block;
    overflow-x: auto;
    border-radius: 14px;
  }

  body.app-mode .sidebar-steps {
    min-width: 690px;
    display: flex;
    flex-direction: row;
  }

  body.app-mode .sidebar-step {
    flex: 1;
    justify-content: center;
  }

  body.app-mode .sidebar-credits {
    display: none;
  }

  body.app-mode .cockpit-main {
    padding-top: 30px;
  }

  body.app-mode .wizard-nav {
    left: calc(228px + (100vw - 228px) / 2);
  }
}

@media (max-width: 900px) {
  body.app-mode .app-nav {
    width: 276px;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.22,.8,.22,1);
  }

  body.app-sidebar-open .app-nav {
    transform: translateX(0);
  }

  .app-sidebar-close,
  .app-menu-toggle {
    display: grid;
  }

  .app-topbar {
    left: 0;
    padding-inline: 18px;
  }

  body.app-mode #page-create,
  body.app-mode #page-processing,
  body.app-mode #page-results,
  body.app-mode #page-my-clips,
  body.app-mode #page-profile {
    margin-left: 0;
  }

  body.app-mode .subscription-alert {
    margin-left: 18px;
  }

  body.app-mode .wizard-nav {
    left: 50%;
  }
}

@media (max-width: 720px) {
  .app-topbar {
    height: 64px;
    padding-inline: 12px;
  }

  .app-page-heading > span,
  .app-engine-status,
  .app-topbar-library {
    display: none;
  }

  .app-page-heading h1 {
    font-size: 13px;
  }

  .app-topbar-primary {
    min-height: 34px;
    padding-inline: 11px;
  }

  body.app-mode #page-create,
  body.app-mode #page-processing,
  body.app-mode #page-results,
  body.app-mode #page-my-clips,
  body.app-mode #page-profile {
    padding-top: 64px;
  }

  body.app-mode .cockpit-sidebar {
    top: 72px;
    margin: 10px 10px 0;
  }

  body.app-mode .sidebar-steps {
    min-width: 0;
  }

  body.app-mode .sidebar-step {
    min-width: 40px;
    padding: 5px;
  }

  body.app-mode .sidebar-step .ss-label {
    display: none;
  }

  body.app-mode .cockpit-main {
    padding: 24px 14px 116px;
  }

  body.app-mode .step-header {
    margin-bottom: 16px;
  }

  body.app-mode .step-title {
    font-size: 24px;
  }

  .creation-benefits {
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .creation-benefits span {
    white-space: nowrap;
  }

  body.app-mode .youtube-import-card {
    padding: 19px;
  }

  body.app-mode .wizard-nav {
    bottom: 9px;
    width: calc(100% - 18px);
  }

  body.app-mode .btn-wizard {
    min-width: 0;
    flex: 1;
  }

  body.app-mode .results-container,
  body.app-mode .myclips-container,
  body.app-mode .profile-container {
    padding: 38px 15px 90px;
  }

  body.app-mode .results-header,
  body.app-mode .myclips-header,
  .profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .myclips-overview {
    grid-template-columns: 1fr;
  }

  .myclips-overview article {
    min-height: 104px;
  }

  .profile-header-badge {
    display: none;
  }

  .welcome-card {
    padding: 29px 20px;
  }

  .welcome-features,
  .welcome-actions {
    grid-template-columns: 1fr;
  }

  .welcome-features article {
    min-height: 82px;
  }
}

@media (max-width: 480px) {
  .app-topbar-primary {
    width: 36px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .app-topbar-primary span {
    font-size: 16px;
  }

  body.app-mode .input-source-tab {
    font-size: 10px;
  }

  body.app-mode .step-desc {
    font-size: 11px;
  }

  body.app-mode .youtube-url-row {
    grid-template-columns: 1fr;
  }

  body.app-mode .results-header h1,
  body.app-mode .myclips-header h1,
  .profile-header h1 {
    font-size: 34px;
  }
}

/* ======================================
   SMART ADVANCED SETTINGS — CLIPPINGCUT
   ====================================== */
body.app-mode .adv-panel {
  overflow: visible;
  padding: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 107, 0, .09), transparent 31%),
    linear-gradient(145deg, rgba(24, 18, 13, .98), rgba(13, 11, 9, .98));
}

body.app-mode .adv-panel-header--smart {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  padding: 27px 28px 23px;
  border-bottom: 1px solid rgba(255, 219, 190, .1);
  text-transform: none;
}

.adv-panel-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.adv-panel-icon,
.adv-recommendation-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #ff9a52;
  background: rgba(255, 107, 0, .12);
  border: 1px solid rgba(255, 133, 47, .23);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 28px rgba(0, 0, 0, .18);
}

.adv-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 19px;
}

.adv-kicker {
  display: block;
  margin-bottom: 5px;
  color: #ff974b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.adv-heading {
  margin: 0;
  color: #f7f4f1;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.adv-subheading {
  max-width: 590px;
  margin: 7px 0 0;
  color: #9e9891;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.adv-help-wrap { position: relative; }

.adv-help-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  color: #d7d0c9;
  border: 1px solid rgba(255, 221, 193, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.adv-help-button:hover,
.adv-help-button[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(255, 132, 43, .43);
  background: rgba(255, 107, 0, .09);
}

.adv-help-button span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #1a120c;
  border-radius: 50%;
  background: #ff8b35;
  font-size: 10px;
  font-style: italic;
  font-weight: 900;
}

.adv-help-popover {
  position: absolute;
  z-index: 9;
  top: calc(100% + 9px);
  right: 0;
  width: min(310px, 72vw);
  padding: 13px 14px;
  color: #c8c1bb;
  border: 1px solid rgba(255, 139, 54, .25);
  border-radius: 14px;
  background: #181310;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.adv-recommendation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin: 23px 26px 25px;
  padding: 16px;
  border: 1px solid rgba(255, 117, 23, .45);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(255, 107, 0, .13), rgba(255, 107, 0, .035) 56%, rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px rgba(255, 219, 184, .07);
}

.adv-recommendation-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffb070;
  font-size: 24px;
  font-weight: 700;
}

.adv-recommendation-copy { min-width: 0; }
.adv-recommendation-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #ff9b52;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.adv-recommendation-copy strong { display: block; color: #fff7f1; font-size: 15px; }
.adv-recommendation-copy p { margin: 4px 0 0; color: #b2a9a1; font-size: 12px; line-height: 1.4; }

.adv-recommendation-apply {
  min-height: 40px;
  padding: 0 15px;
  color: #201109;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffa05b, #ff6500);
  box-shadow: 0 8px 20px rgba(255, 103, 0, .2);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.adv-recommendation-apply:hover { filter: brightness(1.08); transform: translateY(-1px); }

body.app-mode .adv-group {
  gap: 0;
  padding: 0 26px 25px;
}

body.app-mode .adv-row--choice {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) auto;
  gap: 10px 20px;
  align-items: center;
  min-height: 72px;
  padding: 15px 0;
}

body.app-mode .adv-row--choice > label {
  color: #ede8e3;
  font-size: 13px;
  font-weight: 700;
}

.adv-choice-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.adv-current-choice { min-width: 62px; color: #ff9b55; font-size: 13px; text-align: right; }
.adv-choice-edit {
  min-height: 28px;
  padding: 0 10px;
  color: #c7beb6;
  border: 1px solid rgba(255, 234, 214, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.adv-choice-edit:hover { color: #fff; border-color: rgba(255, 133, 44, .44); }

body.app-mode .adv-row--choice .adv-chips {
  grid-column: 1 / -1;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 220, 189, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}
body.app-mode .adv-row--choice .adv-chips[hidden] { display: none; }
body.app-mode .adv-row--choice.is-editing { padding-bottom: 17px; }
body.app-mode .adv-row--choice.is-editing .adv-choice-edit { color: #ffad71; border-color: rgba(255, 128, 34, .35); }

.adv-smart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 9px;
}
.adv-smart-heading strong { color: #f1ece7; font-size: 13px; }
.adv-smart-heading span { color: #8e8780; font-size: 11px; }

body.app-mode .adv-row--enhancement {
  min-height: 50px;
  margin: 4px 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 224, 195, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}
body.app-mode .adv-row--enhancement:last-child { border-bottom: 1px solid rgba(255, 224, 195, .09); }
body.app-mode .adv-row--enhancement > label:first-child { color: #ddd6cf; font-size: 12px; font-weight: 700; }

.adv-more-controls {
  margin-top: 14px;
  border: 1px solid rgba(255, 133, 42, .26);
  border-radius: 13px;
  background: rgba(255, 107, 0, .035);
}
.adv-more-controls summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 0 14px;
  color: #ffac71;
  cursor: pointer;
  list-style: none;
}
.adv-more-controls summary::-webkit-details-marker { display: none; }
.adv-more-controls summary::after { content: '⌄'; color: #ff8d40; font-size: 18px; transition: transform .18s ease; }
.adv-more-controls[open] summary::after { transform: rotate(180deg); }
.adv-more-controls summary strong { font-size: 12px; }
.adv-more-controls summary span { margin-left: auto; color: #91877f; font-size: 11px; }
.adv-more-controls-body { padding: 0 14px 10px; }
.adv-more-controls-body .adv-row:last-child { border-bottom: 0; }

@media (max-width: 700px) {
  body.app-mode .adv-panel-header--smart { padding: 22px 18px 19px; }
  .adv-heading { font-size: 19px; }
  .adv-help-button { width: 36px; padding: 0; justify-content: center; font-size: 0; }
  .adv-recommendation { grid-template-columns: 38px minmax(0, 1fr); margin: 18px; padding: 14px; }
  .adv-recommendation-apply { grid-column: 1 / -1; width: 100%; }
  body.app-mode .adv-group { padding: 0 18px 20px; }
  .adv-smart-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 480px) {
  .adv-panel-title-wrap { gap: 10px; }
  .adv-panel-icon { width: 31px; height: 31px; font-size: 16px; }
  .adv-subheading { font-size: 11px; }
  body.app-mode .adv-row--choice { grid-template-columns: 1fr; gap: 5px; }
  .adv-choice-summary { justify-content: space-between; }
  .adv-current-choice { text-align: left; }
  .adv-more-controls summary span { display: none; }
}

/* ══════════════════════════════════════
   STUDIO — Timeline / non-destructive edit
   ══════════════════════════════════════ */
body.app-mode[data-app-page="studio"] { overflow-x: hidden; }
#page-studio { min-height: calc(100vh - 80px); background: #080807; }
.studio-empty-state {
  display: grid; place-items: center; align-content: center; min-height: calc(100vh - 180px);
  padding: 40px 24px; text-align: center;
}
.studio-empty-state > span { margin-top: 19px; color: #ff934a; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.studio-empty-state h1 { max-width: 560px; margin: 12px 0; color: #f8f3ef; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.studio-empty-state p { max-width: 430px; margin: 0 0 24px; color: #8f8881; line-height: 1.55; }
.studio-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255, 121, 28, .35); border-radius: 20px; color: #ff8628; font-size: 30px; background: radial-gradient(circle at 32% 22%, rgba(255, 107, 0, .26), rgba(255, 107, 0, .06) 60%); box-shadow: 0 16px 45px rgba(255, 92, 0, .16); }
.studio-shell { width: min(1640px, calc(100% - 34px)); margin: 18px auto 28px; border: 1px solid rgba(255, 237, 216, .11); border-radius: 23px; overflow: hidden; background: linear-gradient(150deg, rgba(29, 21, 16, .93), rgba(10, 10, 9, .98) 31%, #0a0a09 100%); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.studio-topbar { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 21px; border-bottom: 1px solid rgba(255, 237, 216, .09); background: rgba(11, 11, 10, .7); }
.studio-project-heading { display: flex; align-items: center; min-width: 0; gap: 12px; }
.studio-project-heading > div { min-width: 0; }
.studio-project-heading span { display: block; margin-bottom: 4px; color: #80776e; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.studio-project-heading strong { display: block; overflow: hidden; max-width: 460px; color: #eee9e4; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.studio-back, .studio-icon-control, .studio-timeline-play { display: inline-grid; place-items: center; border: 1px solid rgba(255, 233, 210, .13); color: #cec6bf; background: rgba(255, 255, 255, .025); cursor: pointer; transition: .18s ease; }
.studio-back { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.studio-back:hover, .studio-icon-control:hover { border-color: rgba(255, 125, 36, .55); color: #ffa15e; background: rgba(255, 107, 0, .08); }
.studio-top-actions { display: flex; align-items: center; gap: 9px; }
.studio-save-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 5px; color: #958c84; font-size: 11px; white-space: nowrap; }
.studio-save-state i { width: 7px; height: 7px; border-radius: 50%; background: #4ed188; box-shadow: 0 0 14px #38c875; }
.studio-save-state.is-saving i { background: #ff9d4e; animation: studioPulse .9s infinite alternate; }
.studio-save-state.is-error i { background: #f15f5f; box-shadow: 0 0 12px #e14d4d; }
.studio-ghost-btn, .studio-export-btn { min-height: 40px; padding: 0 14px; border-radius: 11px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.studio-ghost-btn { border: 1px solid rgba(255, 235, 215, .14); color: #d1c9c2; background: rgba(255, 255, 255, .025); }
.studio-ghost-btn:hover { border-color: rgba(255, 142, 53, .46); color: #fff; }
.studio-export-btn { border: 1px solid #f97112; color: #211008; background: linear-gradient(135deg, #ff9b4c, #ff5e00 70%); box-shadow: 0 11px 27px rgba(255, 86, 0, .22); }
.studio-export-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.studio-export-btn:disabled, .studio-ghost-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.studio-export-btn span { margin-right: 5px; font-size: 16px; }
.studio-workspace { display: grid; grid-template-columns: 225px minmax(420px, 1fr) 285px; min-height: 617px; }
.studio-panel { background: rgba(13, 13, 12, .87); }
.studio-layers-panel { padding: 20px 14px; border-right: 1px solid rgba(255, 237, 216, .08); }
.studio-inspector { padding: 20px 16px; border-left: 1px solid rgba(255, 237, 216, .08); }
.studio-panel-title { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 17px; color: #8d8279; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.studio-mini-btn, .studio-info { display: grid; place-items: center; width: 21px; height: 21px; padding: 0; border: 1px solid rgba(255, 235, 215, .16); border-radius: 50%; color: #9c9188; background: transparent; font: inherit; font-size: 11px; cursor: help; }
.studio-media-card { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 9px; border: 1px solid rgba(255, 237, 216, .1); border-radius: 13px; background: linear-gradient(135deg, rgba(255, 102, 0, .11), rgba(255,255,255,.018)); }
.studio-media-poster { display: grid; place-items: center; flex: 0 0 39px; height: 49px; border-radius: 8px; color: #ff923e; background: linear-gradient(150deg, #553017, #171311); font-size: 13px; }
.studio-media-card strong, .studio-media-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-media-card strong { max-width: 130px; color: #e5ded8; font-size: 12px; }
.studio-media-card small { margin-top: 5px; color: #887f77; font-size: 10px; }
.studio-layer-list { display: grid; gap: 5px; }
.studio-layer { display: grid; grid-template-columns: 30px minmax(0,1fr) 16px; align-items: center; gap: 8px; min-height: 54px; padding: 7px; border: 1px solid transparent; border-radius: 11px; color: #9d948c; }
.studio-layer.active { border-color: rgba(255, 123, 31, .35); color: #f4ede7; background: rgba(255, 102, 0, .08); }
.studio-layer-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #b8afa8; background: rgba(255,255,255,.055); font-size: 12px; font-weight: 800; }
.studio-layer-icon--caption { color: #e4b992; font-family: Georgia, serif; }
.studio-layer-icon--cta { color: #ff9750; }
.studio-layer strong, .studio-layer small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-layer strong { font-size: 11px; font-weight: 750; }
.studio-layer small { margin-top: 3px; color: #746b64; font-size: 9px; }
.studio-layer b { color: #ad9f95; font-size: 10px; }
.studio-source-note { display: flex; align-items: flex-start; gap: 7px; margin-top: auto; padding: 15px 8px 3px; color: #847a72; font-size: 10px; line-height: 1.4; }
.studio-source-note i { color: #53d190; font-style: normal; font-weight: 900; }
.studio-stage-area { display: flex; flex-direction: column; min-width: 0; padding: 19px 24px 16px; background: radial-gradient(circle at 50% 44%, rgba(255, 104, 0, .08), transparent 44%), #0a0a09; }
.studio-stage-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.studio-stage-format { display: flex; align-items: baseline; gap: 7px; }
.studio-stage-format span { color: #706761; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.studio-stage-format strong { color: #e4ddd7; font-size: 12px; }
.studio-stage-format small { color: #837970; font-size: 10px; }
.studio-preview-actions { display: flex; gap: 6px; }
.studio-icon-control { width: 31px; height: 31px; border-radius: 9px; font-size: 16px; }
.studio-canvas-wrap { display: grid; flex: 1; min-height: 485px; place-items: center; padding: 17px 0 12px; }
.studio-canvas { position: relative; aspect-ratio: 9 / 16; width: min(100%, 288px); overflow: hidden; border: 1px solid rgba(255, 234, 215, .25); border-radius: 19px; background: linear-gradient(160deg, #2a180d, #0d0d0d 40%, #1c110c); box-shadow: 0 22px 58px rgba(0,0,0,.62), 0 0 0 7px rgba(255,255,255,.018); }
.studio-canvas video { display: block; width: 100%; height: 100%; object-fit: contain; background: #020202; }
.studio-canvas::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 26%, transparent 63%, rgba(0,0,0,.58)); }
.studio-safe-zone { position: absolute; z-index: 2; right: 8%; left: 8%; height: 12%; border: 1px dashed rgba(255,255,255,.15); border-left: 0; border-right: 0; opacity: .45; pointer-events: none; }
.studio-safe-zone--top { top: 8%; }.studio-safe-zone--bottom { bottom: 8%; }
.studio-caption-preview { position: absolute; z-index: 3; right: 8%; bottom: 22%; left: 8%; color: white; font-size: clamp(13px, 2vw, 17px); font-weight: 900; line-height: 1.13; text-align: center; text-shadow: 0 2px 6px #000, 0 0 12px #000; }
.studio-caption-preview span { display: block; }.studio-caption-preview b { color: #ff7920; }
.studio-cta-preview { position: absolute; z-index: 4; right: 8%; bottom: 6%; left: 8%; padding: 10px 11px; border: 1px solid rgba(255, 143, 64, .6); border-radius: 9px; color: white; background: rgba(17, 8, 3, .82); box-shadow: 0 8px 26px rgba(0,0,0,.34); text-align: center; }
.studio-cta-preview.is-top { top: 6%; bottom: auto; }.studio-cta-preview span { display: block; margin-bottom: 4px; color: #ff9b54; font-size: 7px; font-weight: 800; letter-spacing: .13em; }.studio-cta-preview strong { display: block; overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.studio-play-overlay { position: absolute; z-index: 5; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: white; background: rgba(0,0,0,.5); box-shadow: 0 8px 20px rgba(0,0,0,.36); cursor: pointer; transform: translate(-50%, -50%); transition: .18s ease; }.studio-play-overlay:hover { background: #ff6b00; border-color: #ff862b; transform: translate(-50%, -50%) scale(1.06); }.studio-play-overlay.is-playing { opacity: 0; pointer-events: none; }
.studio-stage-footer { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 20px; color: #777069; font-size: 10px; }.studio-stage-footer > span:first-child { position: absolute; left: 0; display: none; }.studio-stage-footer i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4bd18b; }.studio-stage-footer strong { color: #c3bab3; font-weight: 700; }.studio-stage-footer b { font-weight: 500; }
.studio-live-dot { color: #62d796; font-size: 8px; letter-spacing: .12em; }.studio-live-dot::before { display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: currentColor; content: ''; }
.studio-setting-section { padding: 14px 0; border-bottom: 1px solid rgba(255, 237, 216, .09); }.studio-setting-section:first-of-type { padding-top: 0; }.studio-setting-section:last-child { border-bottom: 0; }
.studio-setting-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.studio-setting-heading strong, .studio-setting-heading small { display: block; }.studio-setting-heading strong { color: #e6dfd8; font-size: 12px; }.studio-setting-heading small { margin-top: 4px; color: #837972; font-size: 10px; line-height: 1.35; }
.studio-trim-values { display: flex; justify-content: space-between; margin: 14px 0 7px; color: #7c736c; font-size: 10px; }.studio-trim-values b { margin-left: 3px; color: #e5dcd5; font-weight: 700; }
.studio-dual-range { position: relative; height: 22px; }.studio-dual-range::before { position: absolute; top: 10px; right: 2px; left: 2px; height: 3px; border-radius: 4px; background: #302d2a; content: ''; }.studio-dual-range input { position: absolute; inset: 0; width: 100%; margin: 0; pointer-events: none; appearance: none; background: transparent; }.studio-dual-range input::-webkit-slider-thumb { width: 15px; height: 15px; pointer-events: auto; border: 2px solid #fff1e5; border-radius: 50%; appearance: none; background: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,.22); cursor: ew-resize; }.studio-dual-range input::-moz-range-thumb { width: 12px; height: 12px; pointer-events: auto; border: 2px solid #fff1e5; border-radius: 50%; background: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,.22); cursor: ew-resize; }
.studio-setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.studio-setting-grid > label, .studio-field-label { display: block; color: #988e86; font-size: 10px; font-weight: 700; }.studio-setting-grid select, .studio-field-label input { width: 100%; height: 35px; margin-top: 7px; padding: 0 9px; border: 1px solid rgba(255, 235, 215, .13); border-radius: 9px; outline: none; color: #ded6cf; background: rgba(255,255,255,.035); font: inherit; font-size: 11px; }.studio-setting-grid select:focus, .studio-field-label input:focus { border-color: rgba(255, 127, 39, .66); }
.studio-volume-control { display: flex; align-items: center; gap: 6px; height: 35px; margin-top: 7px; padding: 0 7px; border: 1px solid rgba(255, 235, 215, .13); border-radius: 9px; background: rgba(255,255,255,.035); }.studio-volume-control input { min-width: 0; width: 100%; accent-color: #ff6b00; }.studio-volume-control b { min-width: 29px; color: #d8cec5; font-size: 9px; text-align: right; }
.studio-switch { position: relative; display: inline-block; flex: 0 0 37px; width: 37px; height: 22px; }.studio-switch input { width: 0; height: 0; opacity: 0; }.studio-switch span { position: absolute; inset: 0; border-radius: 20px; background: #34312e; cursor: pointer; transition: .18s; }.studio-switch span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #b3aaa3; content: ''; transition: .18s; }.studio-switch input:checked + span { background: #ff6b00; box-shadow: 0 0 15px rgba(255,107,0,.3); }.studio-switch input:checked + span::after { left: 18px; background: white; }
.studio-cta-controls { display: grid; gap: 10px; margin-top: 13px; }.studio-platform-picker, .studio-position-picker { display: grid; gap: 5px; }.studio-platform-picker { grid-template-columns: repeat(3, 1fr); }.studio-position-picker { grid-template-columns: 1fr 1fr; }.studio-platform-picker button, .studio-position-picker button { min-height: 31px; border: 1px solid rgba(255, 235, 215, .12); border-radius: 8px; color: #9f958d; background: rgba(255,255,255,.025); font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }.studio-platform-picker button.active, .studio-position-picker button.active { border-color: rgba(255, 110, 10, .65); color: #ffd1a8; background: rgba(255, 107, 0, .13); }
.studio-caption-bridge { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.studio-caption-bridge strong, .studio-caption-bridge small { display: block; }.studio-caption-bridge strong { color: #e4ddd6; font-size: 12px; }.studio-caption-bridge small { max-width: 170px; margin-top: 4px; color: #837972; font-size: 10px; line-height: 1.4; }.studio-caption-bridge button { min-height: 32px; padding: 0 9px; border: 1px solid rgba(255, 131, 41, .35); border-radius: 8px; color: #ffac6e; background: rgba(255, 107, 0, .07); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.studio-timeline { padding: 15px 24px 18px; border-top: 1px solid rgba(255, 237, 216, .09); background: #0b0b0a; }.studio-timeline-topline { display: grid; grid-template-columns: 160px 1fr 55px; align-items: center; min-height: 28px; }.studio-transport { display: flex; align-items: center; gap: 8px; color: #b7aea6; font-size: 10px; }.studio-transport button { display: grid; place-items: center; width: 25px; height: 25px; padding-left: 2px; border: 1px solid rgba(255,235,215,.14); border-radius: 7px; color: #e9e0d8; background: #171512; cursor: pointer; }.studio-timeline-title { text-align: center; }.studio-timeline-title strong { display: block; color: #b9afa7; font-size: 9px; letter-spacing: .14em; }.studio-timeline-title span { color: #6f6760; font-size: 9px; }.studio-zoom-label { justify-self: end; border: 0; color: #887e75; background: transparent; font: inherit; font-size: 10px; cursor: default; }
.studio-ruler { display: flex; justify-content: space-between; margin: 13px 0 4px 160px; color: #625a54; font-size: 9px; }.studio-tracks { display: grid; grid-template-columns: 160px 1fr; grid-auto-rows: minmax(34px, auto); gap: 5px 12px; }.studio-track-label { display: flex; align-items: center; gap: 8px; padding-left: 4px; }.studio-track-label strong, .studio-track-label small { display: block; }.studio-track-label strong { color: #bfb5ad; font-size: 10px; }.studio-track-label small { margin-top: 2px; color: #625a53; font-size: 8px; }.studio-track-swatch { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; font-size: 8px; font-weight: 900; }.studio-track-swatch--video { background: #422411; }.studio-track-swatch--captions { color: #cba981; background: #3b3028; }.studio-track-swatch--cta { color: #ff9860; background: #402013; }.studio-track-lane { position: relative; min-width: 0; overflow: hidden; border-radius: 7px; background-color: #161514; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(255,255,255,.07) calc(12.5% - 1px), rgba(255,255,255,.07) 12.5%); }.studio-track-lane--video { min-height: 42px; }.studio-track-lane--caption, .studio-track-lane--cta { min-height: 30px; }.studio-clip-segment { position: absolute; top: 4px; bottom: 4px; left: 0; display: flex; align-items: center; width: 100%; padding: 0 12px; border: 1px solid rgba(255, 126, 29, .55); border-radius: 5px; color: #ffd3aa; background: linear-gradient(90deg, rgba(255,107,0,.35), rgba(128,50,12,.35)); font-size: 9px; font-weight: 800; letter-spacing: .06em; }.studio-playhead { position: absolute; z-index: 3; top: -2px; bottom: -2px; left: 0; width: 2px; background: #ff9150; box-shadow: 0 0 10px rgba(255,110,0,.8); pointer-events: none; }.studio-playhead::before { position: absolute; top: -2px; left: -4px; width: 10px; height: 7px; clip-path: polygon(0 0,100% 0,50% 100%); background: #ff9150; content: ''; }.studio-caption-segments { display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 6px; }.studio-caption-segments i { height: 15px; border-radius: 3px; background: linear-gradient(90deg, #7e6757, #b98154); }.studio-caption-segments i:nth-child(1) { width: 18%; }.studio-caption-segments i:nth-child(2) { width: 12%; }.studio-caption-segments i:nth-child(3) { width: 21%; }.studio-caption-segments i:nth-child(4) { width: 16%; }.studio-caption-segments i:nth-child(5) { width: 25%; }.studio-cta-segment { position: absolute; top: 5px; right: 1.5%; bottom: 5px; display: flex; align-items: center; width: 32%; padding: 0 10px; border-radius: 4px; color: #ffbf8e; background: rgba(255, 94, 0, .31); font-size: 8px; font-weight: 850; letter-spacing: .08em; }.studio-scrubber { width: calc(100% - 172px); height: 16px; margin: 8px 0 0 172px; accent-color: #ff6b00; cursor: pointer; }
.studio-bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 67px; padding: 11px 23px; border-top: 1px solid rgba(255, 237, 216, .09); background: rgba(15,14,13,.97); }.studio-bottom-bar p { margin: 0; color: #847a72; font-size: 10px; }.studio-bottom-bar p i { margin-right: 5px; color: #4ed18a; font-style: normal; font-weight: 900; }.studio-bottom-bar > div { display: flex; gap: 8px; }
@keyframes studioPulse { from { opacity: .55; } to { opacity: 1; } }

@media (max-width: 1180px) {
  .studio-workspace { grid-template-columns: 190px minmax(360px, 1fr) 250px; }
  .studio-stage-area { padding-right: 15px; padding-left: 15px; }
  .studio-layers-panel { padding-right: 10px; padding-left: 10px; }
  .studio-inspector { padding-right: 12px; padding-left: 12px; }
  .studio-timeline { padding-right: 15px; padding-left: 15px; }
  .studio-ruler { margin-left: 135px; }.studio-tracks { grid-template-columns: 123px 1fr; }.studio-scrubber { width: calc(100% - 135px); margin-left: 135px; }
}
@media (max-width: 900px) {
  .studio-shell { width: min(100% - 20px, 760px); }
  .studio-workspace { grid-template-columns: 1fr 260px; }.studio-layers-panel { display: none; }.studio-stage-area { min-height: 570px; }.studio-canvas-wrap { min-height: 475px; }
}
@media (max-width: 680px) {
  #page-studio { min-height: auto; }.studio-shell { width: 100%; margin: 0; border-right: 0; border-left: 0; border-radius: 0; }.studio-topbar { align-items: flex-start; padding: 13px; }.studio-project-heading strong { max-width: 175px; }.studio-top-actions { flex-wrap: wrap; justify-content: flex-end; }.studio-save-state, .studio-top-actions > .studio-ghost-btn { display: none; }.studio-export-btn { min-height: 38px; padding: 0 10px; font-size: 11px; }.studio-workspace { grid-template-columns: 1fr; }.studio-stage-area { min-height: 0; padding: 14px 15px 13px; }.studio-canvas-wrap { min-height: 480px; }.studio-canvas { width: min(100%, 280px); }.studio-inspector { border-top: 1px solid rgba(255,237,216,.09); border-left: 0; }.studio-setting-grid { max-width: 100%; }.studio-timeline { overflow: hidden; padding: 14px 12px 16px; }.studio-timeline-topline { grid-template-columns: 76px 1fr 32px; }.studio-timeline-title { text-align: left; }.studio-timeline-title span { display: none; }.studio-ruler { margin-left: 78px; }.studio-tracks { grid-template-columns: 68px 1fr; gap: 5px 6px; }.studio-track-label { padding-left: 0; gap: 4px; }.studio-track-label small { display: none; }.studio-track-label strong { font-size: 9px; }.studio-track-swatch { width: 18px; height: 18px; }.studio-scrubber { width: calc(100% - 74px); margin-left: 74px; }.studio-bottom-bar { position: sticky; bottom: 0; z-index: 8; padding: 10px 13px; }.studio-bottom-bar p { display: none; }.studio-bottom-bar > div { width: 100%; }.studio-bottom-bar .studio-ghost-btn { flex: 0 0 auto; }.studio-bottom-bar .studio-export-btn { flex: 1; }
}

/* ══════════════════════════════════════
   STUDIO — interaction-first editor
   The rules below intentionally supersede the first Studio pass. They keep
   the controls large enough to be edited, and keep every timeline label in
   its own bounded area rather than letting source filenames escape the UI.
   ══════════════════════════════════════ */
body.app-mode .cc-locale-switcher-global { display: none !important; }
body[data-route="studio"] .app-topbar-primary { min-width: 118px; }
.studio-empty-state[hidden], .studio-shell[hidden] { display: none !important; }
body.app-mode #page-studio {
  min-height: 100vh;
  margin-left: 248px;
  padding-top: 72px;
  isolation: isolate;
  background: radial-gradient(circle at 48% -10%, rgba(255,107,0,.07), transparent 32rem), #080808;
}

.studio-shell { width: min(1720px, calc(100% - 36px)); margin-top: 18px; border-radius: 24px; }
.studio-topbar { min-height: 86px; padding: 16px 24px; }
.studio-project-heading strong { max-width: 520px; font-size: 16px; }
.studio-save-state { font-size: 12px; }
.studio-ghost-btn, .studio-export-btn { min-height: 42px; padding: 0 16px; font-size: 12px; }
.studio-workspace { grid-template-columns: 234px minmax(500px, 1fr) 338px; min-height: 666px; }
.studio-layers-panel { display: flex; flex-direction: column; padding: 23px 16px; }
.studio-inspector { padding: 23px 19px 15px; overflow: auto; }
.studio-panel-title { margin-bottom: 19px; font-size: 10px; }
.studio-media-card { padding: 10px; }
.studio-media-card strong { max-width: 145px; font-size: 12px; }
.studio-layer { width: 100%; border: 1px solid transparent; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.studio-layer:hover { border-color: rgba(255, 132, 39, .27); color: #f5ebe3; background: rgba(255, 103, 0, .055); }
.studio-layer:focus-visible, .studio-track-lane:focus-visible, .studio-cut-actions button:focus-visible, .studio-look-picker button:focus-visible { outline: 2px solid #ff8b35; outline-offset: 2px; }
.studio-source-note { margin-top: auto; padding: 20px 8px 4px; font-size: 11px; }

.studio-stage-area { padding: 20px 30px 15px; }
.studio-stage-toolbar { min-height: 42px; }
.studio-stage-format strong { font-size: 13px; }
.studio-stage-format small { font-size: 11px; }
.studio-canvas-wrap { min-height: 535px; padding: 12px 0 8px; }
.studio-canvas { width: min(100%, 328px); border-radius: 22px; }
.studio-play-overlay { width: 58px; height: 58px; }
.studio-stage-footer { min-height: 25px; font-size: 11px; }

.studio-setting-section { padding: 16px 0; }
.studio-setting-heading strong { font-size: 13px; }
.studio-setting-heading small { font-size: 11px; }
.studio-trim-values { margin: 13px 0 9px; font-size: 11px; }
.studio-dual-range { height: 25px; }
.studio-dual-range::before { top: 11px; height: 4px; }
.studio-dual-range input::-webkit-slider-thumb { width: 17px; height: 17px; }
.studio-cut-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.studio-cut-actions button, .studio-look-picker button { min-height: 34px; padding: 0 7px; border: 1px solid rgba(255, 233, 210, .13); border-radius: 9px; color: #bdb3aa; background: rgba(255,255,255,.025); font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; transition: .18s ease; }
.studio-cut-actions button:hover, .studio-look-picker button:hover { border-color: rgba(255, 116, 18, .55); color: #fff0e4; background: rgba(255, 107, 0, .1); }
.studio-setting-grid { gap: 12px; }
.studio-setting-grid > label, .studio-field-label { font-size: 11px; }
.studio-setting-grid select, .studio-field-label input { height: 38px; font-size: 12px; }
.studio-volume-control { height: 38px; }
.studio-volume-control b { font-size: 10px; }
.studio-look-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.studio-look-picker button.active { border-color: #ff7114; color: #fff6f0; background: linear-gradient(135deg, rgba(255, 121, 31, .30), rgba(255, 95, 0, .13)); box-shadow: inset 0 0 0 1px rgba(255, 163, 91, .12); }
.studio-text-action { padding: 0; border: 0; color: #ffac6e; background: transparent; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.studio-text-action:hover { color: #fff1e7; text-decoration: underline; }
.studio-framing-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; padding: 9px 10px; border: 1px solid rgba(255,235,215,.09); border-radius: 11px; background: rgba(255,255,255,.018); }
.studio-framing-control strong, .studio-framing-control small { display: block; }.studio-framing-control strong { color: #ddd4cd; font-size: 11px; }.studio-framing-control small { margin-top: 3px; color: #82776e; font-size: 9px; }
.studio-framing-picker, .studio-cta-mode-picker { display: grid; grid-auto-flow: column; gap: 5px; }.studio-framing-picker button, .studio-cta-mode-picker button { min-height: 30px; padding: 0 8px; border: 1px solid rgba(255,235,215,.13); border-radius: 8px; color: #aba099; background: rgba(255,255,255,.025); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }.studio-framing-picker button.active, .studio-cta-mode-picker button.active { border-color: rgba(255, 110, 10, .66); color: #fff1e5; background: rgba(255, 107, 0, .17); }
.studio-inline-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 10px; border: 1px solid rgba(255, 235, 215, .09); border-radius: 11px; background: rgba(255,255,255,.018); }
.studio-inline-toggle strong, .studio-inline-toggle small { display: block; }
.studio-inline-toggle strong { color: #ddd4cd; font-size: 11px; }
.studio-inline-toggle small { margin-top: 3px; color: #82776e; font-size: 10px; }
.studio-cta-controls { gap: 11px; }
.studio-cta-mode-picker { grid-template-columns: 1fr 1fr; grid-auto-flow: initial; }.studio-cta-mode-picker button { min-height: 34px; font-size: 10px; }
.studio-cta-preview img { display: block; width: auto; max-width: min(84%, 250px); max-height: 74px; margin: 5px auto 3px; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,.42)); }
.studio-cta-image-controls { display: grid; gap: 8px; }.studio-cta-upload { display: grid; gap: 4px; padding: 11px 12px; border: 1px dashed rgba(255, 136, 52, .45); border-radius: 10px; color: #ffc18f; background: rgba(255, 107, 0, .055); cursor: pointer; transition: .18s ease; }.studio-cta-upload:hover { border-color: #ff7b20; background: rgba(255, 107, 0, .1); }.studio-cta-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.studio-cta-upload span { font-size: 11px; font-weight: 800; }.studio-cta-upload small { color: #8d7d70; font-size: 9px; line-height: 1.35; }
.studio-cta-image-status { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; min-height: 48px; padding: 5px; border: 1px solid rgba(255,235,215,.10); border-radius: 10px; background: rgba(0,0,0,.16); }.studio-cta-image-status img { width: 42px; height: 36px; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#24211e 0 25%, #191714 0 50%) 50% / 10px 10px; }.studio-cta-image-status span { overflow: hidden; color: #d9cec5; font-size: 10px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }.studio-cta-image-status button { min-height: 28px; padding: 0 7px; border: 1px solid rgba(255,122,36,.33); border-radius: 7px; color: #ffad72; background: transparent; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.studio-platform-picker button, .studio-position-picker button { min-height: 34px; font-size: 10px; }
.studio-cta-note { margin: 0; color: #80756c; font-size: 10px; line-height: 1.4; }
.studio-caption-bridge strong { font-size: 13px; }
.studio-caption-bridge small { font-size: 10px; }
.studio-caption-bridge button { min-height: 35px; padding: 0 11px; font-size: 11px; }

.studio-timeline { padding: 19px 26px 17px; background: linear-gradient(180deg, #0d0d0c, #090909); }
.studio-timeline-topline { grid-template-columns: 190px 1fr 70px; min-height: 34px; }
.studio-transport { gap: 7px; font-size: 12px; }
.studio-transport button { width: 31px; height: 31px; font-size: 11px; }
.studio-transport button:first-child { color: #ffb27b; border-color: rgba(255, 120, 24, .38); }
.studio-timeline-title strong { font-size: 10px; letter-spacing: .16em; }
.studio-timeline-title span { display: block; margin-top: 3px; font-size: 10px; }
.studio-zoom-label { min-height: 30px; padding: 0 8px; border: 1px solid rgba(255, 235, 215, .13); border-radius: 8px; color: #ffa15b; background: rgba(255, 107, 0, .07); font-size: 10px; font-weight: 800; cursor: pointer; }
.studio-ruler { margin: 17px 0 5px 190px; padding: 0 3px; font-size: 10px; }
.studio-tracks { grid-template-columns: 190px 1fr; grid-auto-rows: minmax(42px, auto); gap: 7px 14px; }
.studio-track-label { gap: 9px; padding-left: 6px; }
.studio-track-label strong { font-size: 11px; }
.studio-track-label small { margin-top: 3px; font-size: 9px; }
.studio-track-swatch { width: 25px; height: 25px; font-size: 9px; }
.studio-track-lane { overflow: visible; border: 1px solid rgba(255,255,255,.045); border-radius: 9px; cursor: crosshair; transition: border-color .18s ease, background-color .18s ease; }
.studio-track-lane:hover { border-color: rgba(255, 133, 43, .38); background-color: #1a1714; }
.studio-track-lane--video { min-height: 54px; }
.studio-track-lane--caption, .studio-track-lane--cta { min-height: 38px; }
.studio-clip-segment { top: 5px; bottom: 5px; min-width: 30px; padding: 0 28px; justify-content: center; border-radius: 7px; cursor: grab; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 5px 16px rgba(0,0,0,.18); }
.studio-clip-segment span { display: block; max-width: 100%; overflow: hidden; color: #ffe1c7; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; text-align: center; text-overflow: ellipsis; }
.studio-trim-handle { position: absolute; z-index: 4; top: -1px; bottom: -1px; width: 17px; padding: 0; border: 0; border-radius: 5px; background: #ff7a18; box-shadow: 0 0 0 1px rgba(255,222,194,.35), 0 0 14px rgba(255, 100, 0, .42); cursor: ew-resize; }
.studio-trim-handle::before { position: absolute; top: 50%; left: 50%; width: 5px; height: 18px; border-right: 1px solid rgba(52,22,7,.84); border-left: 1px solid rgba(52,22,7,.84); content: ''; transform: translate(-50%, -50%); }
.studio-trim-handle--start { left: -8px; }
.studio-trim-handle--end { right: -8px; }
.studio-playhead { z-index: 6; top: -8px; bottom: -8px; width: 2px; background: #ff9a57; box-shadow: 0 0 0 1px rgba(0,0,0,.48), 0 0 14px rgba(255, 105, 0, .9); }
.studio-playhead::before { top: -1px; left: -6px; width: 14px; height: 9px; }
.studio-caption-segments { gap: 6px; padding: 0 9px; }
.studio-caption-segments i { height: 19px; border-radius: 4px; }
.studio-cta-segment { top: 6px; right: 1.5%; bottom: 6px; width: 25%; padding: 0 12px; border: 1px solid rgba(255, 122, 36, .28); color: #ffd2af; font-size: 9px; }
.studio-scrubber-row { display: grid; grid-template-columns: 190px 1fr 56px; align-items: center; gap: 14px; margin-top: 12px; color: #887d74; font-size: 10px; }
.studio-scrubber { width: 100%; height: 19px; margin: 0; accent-color: #ff6b00; }
.studio-scrubber-duration { color: #d3c9c1; text-align: right; font-variant-numeric: tabular-nums; }
.studio-shortcuts { margin: 12px 0 0 204px; color: #766c64; font-size: 10px; }
.studio-shortcuts kbd { margin-right: 4px; padding: 2px 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; color: #c7bdb4; background: rgba(255,255,255,.04); font: inherit; font-size: 9px; }
.studio-bottom-bar { min-height: 73px; padding: 13px 25px; }
.studio-bottom-bar p { font-size: 11px; }

@media (max-width: 1280px) {
  body.app-mode #page-studio { margin-left: 228px; }
  .studio-workspace { grid-template-columns: 204px minmax(390px, 1fr) 306px; }
  .studio-stage-area { padding-right: 20px; padding-left: 20px; }
  .studio-canvas { width: min(100%, 300px); }
  .studio-timeline-topline { grid-template-columns: 160px 1fr 60px; }
  .studio-ruler { margin-left: 160px; }
  .studio-tracks { grid-template-columns: 160px 1fr; }
  .studio-scrubber-row { grid-template-columns: 160px 1fr 50px; }
  .studio-shortcuts { margin-left: 174px; }
}
@media (max-width: 1020px) {
  body.app-mode #page-studio { margin-left: 0; }
  .studio-workspace { grid-template-columns: minmax(380px, 1fr) 296px; }
  .studio-layers-panel { display: none; }
  .studio-canvas-wrap { min-height: 520px; }
}
@media (max-width: 680px) {
  body.app-mode #page-studio { padding-top: 64px; }
  .studio-topbar { align-items: center; min-height: 72px; }
  .studio-canvas-wrap { min-height: 510px; }
  .studio-timeline { padding: 15px 12px 14px; overflow: hidden; }
  .studio-timeline-topline { grid-template-columns: 132px 1fr 43px; }
  .studio-transport button { width: 29px; height: 29px; }
  .studio-transport button:nth-child(2) { display: none; }
  .studio-timeline-title span { display: none; }
  .studio-ruler { margin-left: 84px; }
  .studio-tracks { grid-template-columns: 84px 1fr; gap: 6px 7px; }
  .studio-track-label { gap: 5px; padding-left: 0; }
  .studio-track-label small { display: none; }
  .studio-track-label strong { font-size: 10px; }
  .studio-track-swatch { width: 20px; height: 20px; }
  .studio-clip-segment { padding: 0 21px; }
  .studio-clip-segment span { font-size: 9px; }
  .studio-scrubber-row { grid-template-columns: 56px 1fr 40px; gap: 7px; }
  .studio-shortcuts { display: none; }
  .studio-cut-actions button { font-size: 9px; }
}

/* The inspector deliberately has its own scroll area on larger screens. This
   keeps the preview and the timeline stable while every CTA and export control
   remains reachable instead of being cut off below the fold. */
@media (min-width: 681px) {
  .studio-inspector {
    align-self: start;
    max-height: calc(100vh - 194px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 116, 22, .72) transparent;
  }
  .studio-inspector::-webkit-scrollbar { width: 7px; }
  .studio-inspector::-webkit-scrollbar-track { background: transparent; }
  .studio-inspector::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 116, 22, .5); }
}

/* Timeline caption editing: each real caption is a focused, keyboard-accessible block. */
.studio-track-lane--caption { isolation: isolate; cursor: default; }
.studio-caption-segments { position: relative; display: block; height: 100%; padding: 0; }
.studio-caption-segment {
  position: absolute;
  z-index: 1;
  top: 5px;
  bottom: 5px;
  display: flex;
  align-items: center;
  min-width: 34px;
  max-width: calc(100% - 2px);
  gap: 5px;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid rgba(255, 188, 130, .26);
  border-radius: 6px;
  color: #f9dfc8;
  background: linear-gradient(90deg, rgba(174, 93, 36, .82), rgba(107, 52, 24, .88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.16);
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .015em;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.studio-caption-segment:hover,
.studio-caption-segment:focus-visible,
.studio-caption-segment.is-active {
  z-index: 2;
  border-color: rgba(255, 132, 43, .98);
  color: #fff4e9;
  background: linear-gradient(90deg, #c95a15, #74350f);
  box-shadow: 0 0 0 2px rgba(255, 108, 0, .17), 0 8px 20px rgba(0,0,0,.28), 0 0 18px rgba(255,95,0,.2);
  outline: none;
  transform: translateY(-1px);
}
.studio-caption-segment-index {
  display: grid;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 4px;
  color: #301508;
  background: #ffc18c;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.studio-caption-segment-text { overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.studio-caption-empty {
  position: absolute;
  inset: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border: 1px dashed rgba(255, 174, 108, .28);
  border-radius: 6px;
  color: #aa9685;
  background: rgba(255,255,255,.018);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
button.studio-caption-empty { color: #ffc08a; cursor: pointer; }
button.studio-caption-empty:hover,
button.studio-caption-empty:focus-visible { border-color: rgba(255, 117, 21, .75); color: #fff0df; outline: none; }

.caption-editor.is-timeline-editor { max-width: 930px; }
.ce-timeline-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 117, 21, .28);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(255, 101, 0, .11), rgba(255,255,255,.02));
}
.ce-timeline-context strong,
.ce-timeline-context span { display: block; }
.ce-timeline-context strong { color: #ffe2c9; font-size: 12px; }
.ce-timeline-context span { margin-top: 3px; color: #9f8d80; font-size: 10px; }
.ce-timeline-context button {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255, 191, 140, .22);
  border-radius: 8px;
  color: #ffc08a;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ce-timeline-context button:hover { border-color: rgba(255, 117, 21, .75); background: rgba(255, 107, 0, .11); }
.ce-clip-section.is-focused { border-color: rgba(255, 119, 24, .35); box-shadow: 0 0 0 1px rgba(255,107,0,.06), 0 18px 45px rgba(0,0,0,.17); }
.ce-block { position: relative; padding: 8px; border: 1px solid transparent; border-radius: 11px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.ce-block:hover { background: rgba(255,255,255,.018); }
.ce-block.is-focused { border-color: rgba(255, 117, 21, .65); background: rgba(255, 107, 0, .075); box-shadow: 0 0 0 3px rgba(255, 107, 0, .06); }
.ce-block.is-modified { border-color: rgba(255, 182, 71, .52); }
.ce-block.is-invalid { border-color: rgba(255, 91, 91, .8); background: rgba(255, 58, 58, .06); }
.ce-timestamp { display: flex; align-items: center; gap: 5px; width: 154px; padding-top: 1px; color: #9b8d81; font-family: inherit; font-size: 9px; }
.ce-timestamp label { display: grid; gap: 4px; color: #776a60; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ce-time-input {
  width: 52px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 7px;
  color: #e7ddd4;
  background: rgba(0,0,0,.28);
  font: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ce-time-input:focus { border-color: #ff7720; outline: none; box-shadow: 0 0 0 3px rgba(255,107,0,.1); }
.ce-block.is-invalid .ce-time-input { border-color: rgba(255, 91, 91, .7); }

@media (max-width: 680px) {
  .studio-caption-segment { min-width: 25px; padding: 0 5px; }
  .studio-caption-segment-index { display: none; }
  .studio-caption-segment-text { font-size: 8px; }
  .ce-timeline-context { align-items: flex-start; flex-direction: column; }
  .ce-timestamp { width: 100%; padding: 0; }
  .ce-block { padding: 9px; }
}
