/* ==========================================================================
   NDReel AI - Modern 2026 Glassmorphic Design System & Bento Grid
   Created for NDTechHub / NAVDIVA Group (CEO: Manoj Singh)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #06070a;
  --bg-secondary: #0c0e14;
  --bg-tertiary: #131722;
  --bg-surface: rgba(19, 23, 34, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --bg-glass-active: rgba(255, 255, 255, 0.12);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(147, 51, 234, 0.5);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-glass: 1px solid rgba(255, 255, 255, 0.09);

  /* Gradients & Accents */
  --primary-gradient: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --amber-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --dark-gradient: linear-gradient(180deg, rgba(13, 16, 26, 0.8) 0%, rgba(7, 9, 15, 0.95) 100%);

  /* Neon Accents */
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #020617;

  /* Shadows & Glows */
  --shadow-bento: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glow-brand: 0 0 40px rgba(121, 40, 202, 0.25);
  --glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);
  --glow-indigo: 0 0 30px rgba(99, 102, 241, 0.2);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  selection-background-color: var(--accent-purple);
  selection-color: #fff;
}

/* Background Ambient Lights */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  animation: pulseOrb 12s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  top: 35%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(0,0,0,0) 70%);
  filter: blur(90px);
  animation: pulseOrb 15s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  position: absolute;
  bottom: 10%;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
}

@keyframes pulseOrb {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(40px, 30px) scale(1.1); opacity: 1; }
  100% { transform: translate(-30px, 50px) scale(0.95); opacity: 0.7; }
}

/* Background Grid Overlay */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

/* Container */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan-gradient-text {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass Card / Bento Base */
.bento-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-bento);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* ==========================================================================
   BENTO NAVBAR
   ========================================================================== */
.bento-navbar-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.bento-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(12, 14, 20, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 8px 14px 8px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 1200px;
  width: 100%;
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
}

.nav-brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

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

.credit-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e9d5ff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credit-badge:hover {
  background: rgba(168, 85, 247, 0.25);
  transform: scale(1.03);
}

.credit-icon {
  color: #fbbf24;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(121, 40, 202, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(121, 40, 202, 0.55);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION & MULTIMODAL PROMPT NEXUS
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 70px;
  text-align: center;
  position: relative;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 950px;
  margin: 0 auto 20px auto;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

/* Glowing Bento Prompt Nexus */
.prompt-nexus-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 18, 28, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(121, 40, 202, 0.2);
  text-align: left;
  transition: all 0.3s ease;
}

.prompt-nexus-card:focus-within {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(121, 40, 202, 0.35);
}

.prompt-textarea-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.prompt-textarea {
  width: 100%;
  min-height: 100px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.15rem;
  line-height: 1.5;
  resize: none;
}

.prompt-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-option-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-opt.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pill-opt:hover:not(.active) {
  color: var(--text-secondary);
}

.btn-generate-hero {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 22px rgba(236, 72, 153, 0.4);
  transition: all 0.25s ease;
}

.btn-generate-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
}

.prompt-presets-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.prompt-preset-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-preset-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   INTERACTIVE AI STUDIO WORKSPACE (FOCAL-INSPIRED WORKFLOW)
   ========================================================================== */
.studio-section {
  padding: 60px 0 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.studio-wrapper {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7);
}

/* Studio Nav Tabs */
.studio-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(8, 10, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}

.studio-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.studio-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-tab-btn.active {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.4);
}

.studio-tab-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.studio-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main Studio Layout Grid */
.studio-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 620px;
  background: #080a0f;
}

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

/* Left Canvas & Scene Area */
.studio-canvas-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Video Canvas Display */
.video-preview-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

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

.canvas-overlay-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.scene-num-badge {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.model-active-badge {
  background: rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #e0e7ff;
}

.canvas-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.play-pause-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: #fff;
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-pause-btn:hover {
  transform: scale(1.08);
}

.scrubber-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timecode-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.custom-range {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-purple);
}

/* Scene Quick Thumbnails Carousel */
.scenes-thumbnail-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .scenes-thumbnail-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scene-thumb-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.scene-thumb-card.active {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.scene-thumb-img {
  width: 100%;
  height: 60px;
  border-radius: 6px;
  background: #111;
  object-fit: cover;
  margin-bottom: 6px;
  display: block;
}

.scene-thumb-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-thumb-dur {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Right Studio Panel: Dynamic Content (Story, Cast, Scene Director, AI Chat) */
.studio-side-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: rgba(14, 17, 26, 0.95);
  overflow-y: auto;
  max-height: 800px;
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tab View 1: Story / Script Breakdown */
.story-chapter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.story-chapter-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.chapter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.chapter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.chapter-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Tab View 2: Character Consistency Vault */
.character-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.character-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  align-items: center;
}

.char-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
}

.char-info {
  flex: 1;
}

.char-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.char-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.char-tag {
  display: inline-block;
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Tab View 3: Scene Director Controls */
.director-control-group {
  margin-bottom: 16px;
}

.director-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.director-input, .director-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.director-input:focus, .director-select:focus {
  border-color: var(--accent-indigo);
}

/* Tab View 5: "Edit with AI" Chat Copilot */
.ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

.ai-messages-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
  margin-bottom: 14px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 90%;
}

.chat-bubble.ai {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #f1f5f9;
  align-self: flex-start;
}

.chat-bubble.user {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  align-self: flex-end;
}

.ai-chat-input-box {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 14px;
}

.ai-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
}

.btn-ai-send {
  background: var(--brand-gradient);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MULTI-TRACK TIMELINE EDITOR
   ========================================================================== */
.timeline-editor-wrapper {
  background: #0a0c13;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

.timeline-tracks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow-x: auto;
}

/* Time Ruler Header */
.timeline-ruler {
  display: flex;
  justify-content: space-between;
  padding: 0 110px 6px 110px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.track-row {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 12px;
  position: relative;
}

.track-header {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.track-timeline-lane {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  gap: 6px;
}

.timeline-clip {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: grab;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.clip-video {
  background: linear-gradient(90deg, #4338ca 0%, #6366f1 100%);
}

.clip-voice {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.clip-music {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.clip-sfx {
  background: linear-gradient(90deg, #be185d 0%, #ec4899 100%);
}

/* ==========================================================================
   BENTO GRID SHOWCASE / INNOVATION TILES
   ========================================================================== */
.bento-features-section {
  padding: 80px 0;
}

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

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .col-8, .col-4, .col-6 {
    grid-column: span 12;
  }
}

.bento-feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.bento-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #fff;
}

.bento-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* AI Model Router Showcase */
.model-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.model-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* ==========================================================================
   DISCOVER / COMMUNITY CREATIONS FEED
   ========================================================================== */
.discover-section {
  padding: 80px 0;
}

.discover-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active, .filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.creation-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: var(--border-glass);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.creation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 14px 35px rgba(0,0,0,0.6), 0 0 20px rgba(121, 40, 202, 0.2);
}

.creation-media-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
}

.creation-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.creation-card:hover .creation-media {
  transform: scale(1.05);
}

.creation-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: #fff;
}

.creation-card-info {
  padding: 16px;
}

.creation-prompt-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.creation-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.creator-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

.btn-remix {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remix:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* ==========================================================================
   PRICING SECTION (BENTO PRICING TIERS)
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pricing-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(180deg, rgba(28, 20, 48, 0.75) 0%, rgba(13, 16, 26, 0.9) 100%);
  box-shadow: 0 16px 45px rgba(121, 40, 202, 0.25);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-check {
  color: var(--accent-emerald);
}

/* ==========================================================================
   FOOTER (NDTechHub / NAVDIVA Group)
   ========================================================================== */
.footer-section {
  padding: 60px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050608;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 860px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.5;
}

.footer-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MODALS & TOASTS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 540px;
  width: 100%;
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 18, 26, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out;
}

/* ==========================================================================
   HOW IT WORKS / STEP-BY-STEP CREATION BLUEPRINT
   ========================================================================== */
.how-it-works-section {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.step-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-prompt-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.step-prompt-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.step-prompt-box code {
  color: #e2e8f0;
  font-family: var(--font-mono);
  display: block;
  line-height: 1.4;
}

.step-feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.step-tip {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent-purple);
  padding: 8px 12px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-top: auto;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

