/* 
  =========================================
  MIRAI STUDIO - ULTRA PREMIUM DESIGN SYSTEM
  =========================================
  Theme: Dark Gloss Space & High Glassmorphism
  Colors: Neon Cyan, Cyber Violet, Soft Emerald & Hot Pink
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #0a0714;
  --bg-studio: #0e091d;
  --glass-bg: rgba(18, 11, 35, 0.65);
  --glass-bg-hover: rgba(35, 20, 65, 0.8);
  --glass-border: rgba(255, 0, 127, 0.12);
  --glass-border-glow: rgba(255, 0, 127, 0.35);
  
  /* Brand Colors - Default: Japanese VTuber Neon Magenta Pink & Cyber Violet */
  --primary-cyan: #ff007f; /* Neon Magenta Pink */
  --primary-violet: #a855f7; /* Cyber Violet */
  --accent-pink: #ff2a8d; /* Electric Hot Pink */
  --accent-cyan: #ff007f;
  --accent-green: #00f2fe; /* Cyber Sky */
  --accent-orange: #a855f7; /* Purple Glow */
  
  /* Text */
  --text-main: #fcfcfd;
  --text-muted: #c8b9dd;
  --text-dark: #0d091a;
  
  /* Shadows & Neon Glows */
  --glow-cyan: 0 0 25px rgba(255, 0, 127, 0.5);
  --glow-violet: 0 0 25px rgba(168, 85, 247, 0.5);
  --glow-pink: 0 0 25px rgba(255, 42, 141, 0.5);
  --glow-green: 0 0 25px rgba(0, 242, 254, 0.5);
  --shadow-main: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* 🎨 DYNAMIC THEME ENGINE CLASSES */
body.theme-magenta {
  --bg-deep: #0a0714;
  --bg-studio: #0e091d;
  --glass-bg: rgba(18, 11, 35, 0.65);
  --glass-border: rgba(255, 0, 127, 0.2);
  --glass-border-glow: rgba(255, 0, 127, 0.4);
  --primary-cyan: #ff007f;
  --primary-violet: #a855f7;
  --accent-cyan: #ff007f;
  --accent-pink: #ff2a8d;
  --accent-green: #ff007f;
  --accent-orange: #a855f7;
  --glow-cyan: 0 0 25px rgba(255, 0, 127, 0.5);
  --glow-violet: 0 0 25px rgba(168, 85, 247, 0.5);
  --glow-pink: 0 0 25px rgba(255, 42, 141, 0.5);
  --glow-green: 0 0 25px rgba(255, 0, 127, 0.5);
}

body.theme-cyan {
  --bg-deep: #030a10;
  --bg-studio: #06111a;
  --glass-bg: rgba(6, 20, 32, 0.65);
  --glass-border: rgba(0, 245, 212, 0.2);
  --glass-border-glow: rgba(0, 245, 212, 0.4);
  --primary-cyan: #00f5d4;
  --primary-violet: #00f2fe;
  --accent-cyan: #00f5d4;
  --accent-pink: #00f2fe;
  --accent-green: #00f5d4;
  --accent-orange: #00f2fe;
  --glow-cyan: 0 0 25px rgba(0, 245, 212, 0.5);
  --glow-violet: 0 0 25px rgba(0, 242, 254, 0.5);
  --glow-pink: 0 0 25px rgba(0, 245, 212, 0.5);
  --glow-green: 0 0 25px rgba(0, 245, 212, 0.5);
}

body.theme-gold {
  --bg-deep: #080705;
  --bg-studio: #0e0d0a;
  --glass-bg: rgba(22, 19, 14, 0.75);
  --glass-border: rgba(245, 158, 11, 0.3);
  --glass-border-glow: rgba(245, 158, 11, 0.6);
  --primary-cyan: #f59e0b;
  --primary-violet: #d97706;
  --accent-cyan: #fbbf24;
  --accent-pink: #d97706;
  --accent-green: #f59e0b;
  --accent-orange: #b45309;
  --glow-cyan: 0 0 25px rgba(245, 158, 11, 0.5);
  --glow-violet: 0 0 25px rgba(217, 119, 6, 0.5);
  --glow-pink: 0 0 25px rgba(217, 119, 6, 0.5);
  --glow-green: 0 0 25px rgba(245, 158, 11, 0.5);
}

/* 🌟 Universal Crisp White Text for All Buttons & Dropdowns */
.lang-dropdown-trigger,
.lang-dropdown-trigger span,
.lang-dropdown-trigger i,
#current-lang-txt,
#current-theme-txt,
#btn-toggle-ai-host,
#btn-toggle-ai-txt,
.hud-btn,
.hud-btn span,
.hud-btn i {
  color: #ffffff !important;
}

#btn-toggle-ai-host {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.8) !important;
  font-weight: 800 !important;
}

body.theme-violet {
  --bg-deep: #0b0518;
  --bg-studio: #110826;
  --glass-bg: rgba(22, 10, 45, 0.65);
  --glass-border: rgba(147, 51, 234, 0.2);
  --glass-border-glow: rgba(147, 51, 234, 0.4);
  --primary-cyan: #9333ea;
  --primary-violet: #ec4899;
  --accent-cyan: #9333ea;
  --accent-pink: #ec4899;
  --accent-green: #9333ea;
  --accent-orange: #ec4899;
  --glow-cyan: 0 0 25px rgba(147, 51, 234, 0.5);
  --glow-violet: 0 0 25px rgba(236, 72, 153, 0.5);
  --glow-pink: 0 0 25px rgba(236, 72, 153, 0.5);
  --glow-green: 0 0 25px rgba(147, 51, 234, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.15) transparent;
}

/* cyber-thin scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.1);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  background-image: 
    radial-gradient(at 0% 0%, rgba(170, 124, 17, 0.12) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.08) 0px, transparent 40%),
    radial-gradient(at 50% 50%, rgba(5, 6, 9, 1) 0px, rgba(9, 11, 18, 0.98) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Neon grid backplate */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.005) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   LAYOUT STRUCTURE
   ========================================= */

.app-container {
  display: grid;
  grid-template-columns: 86px 1fr 380px;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  position: relative;
}

/* --- SIDEBAR --- */
.sidebar {
  background: rgba(6, 8, 14, 0.7);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  justify-content: space-between;
  z-index: 10;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  margin-bottom: 40px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
  transform: scale(1.15) rotate(8deg);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  width: 100%;
  align-items: center;
}

.nav-item {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.nav-item:hover i {
  transform: scale(1.1);
}

/* Capsule Glowing active bar on sidebar left */
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item.active::before {
  opacity: 1;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-cyan);
  background: var(--glass-bg-hover);
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(138, 43, 226, 0.12));
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 75px;
  background: #0b0d16;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-main);
}

.nav-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.user-profile {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-profile:hover {
  transform: scale(1.08);
  border-color: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
}

/* --- MAIN STUDIO SECTION --- */
.main-studio {
  display: grid;
  grid-template-rows: 76px 1fr 186px;
  height: 100vh;
  padding: 0 28px 24px 28px;
  overflow: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.studio-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-title h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff, #b0b8c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-badge {
  background: rgba(255, 42, 95, 0.08);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--accent-pink);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse-red 2s infinite;
  box-shadow: inset 0 0 10px rgba(255, 42, 95, 0.05);
}

.live-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: var(--accent-pink);
  border-radius: 50%;
}

.quick-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.stat-item i {
  color: var(--primary-cyan);
  font-size: 14px;
}

.stat-item .value {
  color: var(--text-main);
  font-weight: 700;
}

/* Language Dropdown Selector (Ultra Premium Glassmorphism) */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 100;
  margin-left: 15px;
}

.lang-dropdown-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
}

.lang-dropdown-trigger i {
  font-size: 14px;
  color: var(--primary-cyan);
  transition: transform 0.3s ease;
}

.lang-dropdown-trigger i.arrow {
  font-size: 10px;
  color: var(--text-muted);
}

.lang-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.lang-dropdown.active .lang-dropdown-trigger {
  border-color: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
}

.lang-dropdown.active .lang-dropdown-trigger i.arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 13, 24, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 101;
}

.lang-dropdown.active .lang-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-opt-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  outline: none;
}

.lang-opt-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary-cyan);
}

.lang-opt-btn.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
  font-weight: 700;
  box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.05);
}

/* Dynamic Scanner Viewport Container */
.viewport-container {
  margin: 18px 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-studio);
  box-shadow: var(--shadow-main);
  /* Elegant slow pulse in ambient mode */
  animation: border-glow-ambient 8s infinite ease-in-out;
}

@keyframes border-glow-ambient {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(255, 255, 255, 0.01);
  }
  50% {
    border-color: rgba(0, 242, 254, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 242, 254, 0.03), inset 0 0 20px rgba(0, 242, 254, 0.02);
  }
}

.viewport-container.recording {
  border-color: var(--accent-pink);
  box-shadow: 0 0 25px rgba(255, 42, 95, 0.25), var(--shadow-main);
  animation: none;
}

/* 3D Canvas space */
.avatar-canvas {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #111422 0%, #050609 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-canvas.chromakey {
  background: #00ff00 !important;
}

/* Canvas Overlays */
.canvas-overlay-top {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.stream-timer {
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.recording .timer-dot {
  background-color: var(--accent-pink);
  animation: blink 1s infinite;
}

.fps-badge {
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 160, 0.25);
  letter-spacing: 0.5px;
}

/* Countdown Overlay screen */
.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.countdown-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 130px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scale-up-out 1s infinite ease-in-out;
}

/* Floating PIP webcam */
.webcam-pip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 170px;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  z-index: 4;
  background: #000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Force iOS Safari GPU acceleration and clipping */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  isolation: isolate;
}

.webcam-pip:hover {
  width: 250px;
  height: 188px;
}

.webcam-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  border-radius: inherit;
}

.mesh-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
}

.pip-status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(5, 6, 9, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.1);
}

/* Floating Viewport HUD Controls */
.viewport-hud {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 12, 20, 0.68);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 28px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 4;
  box-shadow: var(--shadow-main), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  max-width: 95vw;
  box-sizing: border-box;
}

.hud-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hud-btn i,
.hud-btn span {
  color: #ffffff !important;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hud-btn.active {
  background: var(--primary-cyan);
  color: #ffffff !important;
  border-color: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
}

.hud-btn.active i,
.hud-btn.active span {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

#btn-mode-toggle.active {
  background: var(--primary-violet);
  color: #ffffff !important;
  border-color: var(--primary-violet);
  box-shadow: var(--glow-violet);
}

#btn-fullbody.active {
  background: var(--accent-pink);
  color: #ffffff !important;
  border-color: var(--accent-pink);
  box-shadow: var(--glow-pink);
}

.hud-btn.btn-rec {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #ffffff !important;
  width: 54px;
  height: 54px;
  font-size: 21px;
}

.hud-btn.btn-rec i {
  color: #ffffff !important;
}

.hud-btn.btn-rec:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--glow-pink);
}

.hud-btn.btn-rec.recording {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-pink) !important;
  animation: pulse-red-bg 1.5s infinite;
}

.hud-btn.btn-rec.recording i {
  color: var(--accent-pink) !important;
}

.hud-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

/* Bottom Drawer Asset Selection Drawer */
.bottom-drawer {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-main), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.section-header h3 i {
  color: var(--primary-cyan);
}

.tab-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--glass-border);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.05);
}

.avatar-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.avatar-card {
  flex: 0 0 106px;
  height: 98px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.avatar-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: transform 0.3s ease;
}

.avatar-card span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.avatar-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.avatar-card:hover img {
  transform: scale(1.08);
}

.avatar-card.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.06), rgba(138, 43, 226, 0.06));
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15), inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.avatar-card.active img {
  border-color: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
}

.avatar-card.active span {
  color: var(--primary-cyan);
  font-weight: 700;
}

.avatar-card .pro-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #ffb703 0%, #ff007f 50%, #a855f7 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.7), 0 2px 5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  animation: proBadgePulse 2s infinite ease-in-out;
}

@keyframes proBadgePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.3); }
}

/* =========================================
   RIGHT CONTROL PANEL
   ========================================= */

.control-panel {
  background: rgba(6, 8, 14, 0.75);
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 28px;
  display: flex;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 26px;
  overflow-y: auto;
  height: 100vh;
  z-index: 10;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.panel-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 18px;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff, #9da8be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel-header p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--primary-cyan);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Add a glowing neon dot left of panel titles */
.section-title::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
}

.control-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.select-dropdown {
  background: #0b0d16;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
}

.select-dropdown:focus, .select-dropdown:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Sliders */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.slider-name {
  color: var(--text-main);
  font-weight: 600;
}

.slider-val {
  color: var(--primary-cyan);
  font-family: var(--font-display);
  font-weight: 700;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: background 0.3s ease;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--bg-deep);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.35);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.7);
}

/* Calibration Button */
.btn-calibrate {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--glow-cyan);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 10px;
}

.btn-calibrate:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6), 0 0 25px rgba(138, 43, 226, 0.6);
}

.btn-calibrate:active {
  transform: translateY(0);
}

/* Shimmering Premium locked cards (Metallic shine on hover) */
.premium-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 42, 95, 0.02);
  border: 1px solid rgba(255, 42, 95, 0.1);
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Shimmer reflection */
.premium-feature-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: rotate(45deg);
  transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-feature-item:hover {
  background: rgba(255, 42, 95, 0.05);
  border-color: var(--accent-pink);
  box-shadow: 0 5px 15px rgba(255, 42, 95, 0.15);
  transform: translateY(-2px);
}

.premium-feature-item:hover::after {
  left: 120%;
}

.premium-feature-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.premium-feature-info i {
  color: var(--accent-pink);
  font-size: 14px;
}

.premium-lock-icon {
  color: var(--primary-violet);
  font-size: 12px;
}

/* =========================================
   ANIMATIONS & KEYFRAMES
   ========================================= */

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 42, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0);
  }
}

@keyframes pulse-red-bg {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 42, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scale-up-out {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

i {
  font-style: normal;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */
@media (max-width: 992px) {
  body {
    overflow-y: auto;
  }

  .app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .sidebar {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  .nav-menu {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
  
  .nav-item {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  
  .nav-item i {
    font-size: 16px;
  }
  
  .nav-item::before {
    display: none;
  }
  
  .nav-item::after {
    display: none !important;
  }
  
  .sidebar-footer {
    margin-top: 0 !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: auto !important;
  }
  
  .main-studio {
    padding: 16px;
    height: auto;
    min-height: 650px;
    grid-template-rows: auto 1fr auto;
  }
  
  .topbar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
  }
  
  .lang-dropdown {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .quick-stats {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    font-size: 11px;
  }
  
  .viewport-container {
    height: 50vh;
    min-height: 380px;
    margin: 12px 0;
  }
  
  .control-panel {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    padding: 24px;
  }
  
  .webcam-pip {
    width: 100px;
    height: 75px;
    top: 70px;
    bottom: auto;
    right: 15px;
  }
  
  .webcam-pip:hover {
    width: 130px;
    height: 98px;
  }

  .fps-badge {
    display: none !important;
  }

  .pip-status {
    font-size: 6px;
    bottom: 4px;
    left: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    letter-spacing: 0.4px;
  }

  
  .viewport-hud {
    bottom: 16px;
    padding: 8px 14px;
    gap: 8px;
    max-width: 95vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 40px;
  }

  .viewport-hud::-webkit-scrollbar {
    display: none;
  }
  
  .hud-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  .hud-btn.btn-rec {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .hud-divider {
    height: 20px;
    flex-shrink: 0;
    margin: 0 1px;
  }
}

@media (max-width: 480px) {
  .viewport-hud {
    bottom: 10px;
    padding: 6px 10px;
    gap: 5px;
    max-width: 96vw;
    border-radius: 30px;
  }

  .hud-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 12px;
  }

  .hud-btn.btn-rec {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
  }

  .hud-divider {
    height: 16px;
    margin: 0;
  }
}

/* =========================================
   FIREBASE AUTH & PREMIUM USER SYSTEMS
   ========================================= */

.auth-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input:focus {
  border-color: var(--primary-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
  background: rgba(255, 255, 255, 0.05) !important;
}

.auth-tab-btn {
  transition: all 0.2s ease;
}

.auth-tab-btn:not(.active):hover {
  color: var(--text-main) !important;
}

#google-login-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#google-login-btn:hover {
  transform: translateY(-2px);
  background: #f9fafb !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

#google-login-btn:active {
  transform: translateY(0);
}

#logout-btn {
  transition: all 0.2s ease;
}

#logout-btn:hover {
  background: rgba(255, 42, 95, 0.2) !important;
  box-shadow: var(--glow-pink);
}

#pro-upgrade-btn {
  transition: all 0.3s ease;
}

#pro-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.6);
}

#pro-upgrade-btn:active {
  transform: translateY(0);
}

/* SaaS Premium Lock System Unlocked Styles */
.premium-feature-item.unlocked {
  border-color: rgba(0, 245, 160, 0.35) !important;
  background: rgba(0, 245, 160, 0.05) !important;
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.08);
}

.premium-feature-item.unlocked.active {
  border-color: var(--primary-cyan) !important;
  background: rgba(0, 242, 254, 0.12) !important;
  box-shadow: var(--glow-cyan) !important;
}

/* =========================================
   LANDING PAGE STYLES
   ========================================= */

.landing-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  scroll-behavior: smooth;
}

.landing-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 0 40px;
  height: 80px;
}

.landing-nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.landing-nav-menu a:hover {
  color: var(--primary-cyan);
  text-shadow: var(--glow-cyan);
}

.landing-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-cyan);
  box-shadow: var(--glow-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.landing-nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-launch-header {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.btn-launch-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}

/* Hero Section */
.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: calc(80vh - 80px);
  padding: 80px 8%;
  align-items: center;
  gap: 50px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 20%, var(--primary-cyan) 65%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px var(--glass-border-glow)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.95));
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: var(--font-body);
  color: #e0e6ed;
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-btn-group {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
  text-align: center;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.8);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-3px);
}

/* Hero Graphic */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.circle-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
}

.glow-cyan {
  background: var(--primary-cyan);
  top: -50px;
  left: -50px;
}

.glow-violet {
  background: var(--primary-violet);
  bottom: -50px;
  right: -50px;
}

.graphic-mockup {
  width: 320px;
  height: 380px;
  background: rgba(10, 13, 24, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow-main), var(--glow-cyan);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: float-mockup 6s ease-in-out infinite;
}

@keyframes float-mockup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.mockup-header {
  display: flex;
  gap: 6px;
  margin-bottom: 25px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mockup-avatar-circle {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--shadow-main);
  position: relative;
}

.mockup-mesh-dots {
  width: 120px;
  height: 10px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0.6;
  border-radius: 10px;
  box-shadow: var(--glow-green);
}

.floating-icon {
  position: absolute;
  font-size: 28px;
  color: var(--primary-cyan);
  text-shadow: var(--glow-cyan);
  animation: spin-pulse 4s infinite ease-in-out;
}

.icon-video {
  bottom: 40px;
  left: -20px;
  color: var(--accent-pink);
  text-shadow: var(--glow-pink);
  animation-delay: 1.5s;
}

.icon-shield {
  top: 60px;
  right: -25px;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  animation-delay: 3s;
}

@keyframes spin-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

/* AdSense Banner Container on Landing */
.landing-ad-section {
  display: flex;
  justify-content: center;
  padding: 20px 8%;
}

.ad-container-landing {
  width: 100%;
  max-width: 960px;
  background: rgba(10, 13, 24, 0.4);
  border: 1px dashed rgba(0, 242, 254, 0.15);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.ad-badge-label {
  font-size: 9px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
  opacity: 0.6;
}

/* General Sections */
.landing-section {
  padding: 80px 8%;
  position: relative;
}

.bg-alt {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-center-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-center-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  background: linear-gradient(135deg, #fff, #b0b8c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-main);
}

.feature-icon-wrapper.cyan {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.feature-icon-wrapper.violet {
  background: rgba(138, 43, 226, 0.1);
  color: var(--primary-violet);
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.feature-icon-wrapper.pink {
  background: rgba(255, 42, 95, 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 42, 95, 0.2);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Manual steps */
.manual-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.manual-step-item {
  display: flex;
  gap: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  align-items: center;
  transition: border 0.3s ease;
}

.manual-step-item:hover {
  border-color: rgba(0, 242, 254, 0.25);
}

.step-number-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.manual-step-item:hover .step-number-badge {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  text-shadow: var(--glow-cyan);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.2);
}

.step-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-text-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.step-text-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Section */
.pricing-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  flex: 1 1 380px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.price-card.pro-featured {
  border-color: rgba(255, 42, 95, 0.3);
  box-shadow: 0 10px 30px rgba(255, 42, 95, 0.05);
}

.price-card.pro-featured:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 15px 40px rgba(255, 42, 95, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-pink), var(--primary-violet));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  box-shadow: var(--glow-pink);
}

.price-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-badge-free {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.price-badge-pro {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-pink);
  text-shadow: var(--glow-pink);
  letter-spacing: 1.5px;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
}

.price-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.price-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.price-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.price-features-list li i {
  color: var(--accent-green);
  margin-top: 3px;
}

.price-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.price-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pro-action {
  background: linear-gradient(135deg, var(--accent-pink), var(--primary-violet)) !important;
  border: none !important;
  box-shadow: var(--glow-pink);
}

.btn-pro-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 42, 95, 0.7);
}

/* FAQ Accordion */
.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.faq-answer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer on Landing */
.landing-footer {
  background: rgba(5, 6, 9, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 50px 8%;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-section .logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.05);
}

.footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 10px;
}

/* Fully responsive adjustments */
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 8%;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-btn-group {
    justify-content: center;
    width: 100%;
  }
  
  .landing-nav-menu {
    display: none; /* Hide header menus on mobile/tablet for simple clean design */
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 20%, var(--primary-cyan) 65%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px var(--glass-border-glow)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.95));
  }

  .hero-subtitle {
    font-size: 15px;
    color: #e2e8f0 !important;
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  }
  
  .landing-section {
    padding: 60px 5%;
  }
  
  .manual-step-item {
    flex-direction: column;
    text-align: center;
  }
}

/* Transparent checkerboard styling */
.transparent-bg {
  background-image: linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%), 
                    linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%), 
                    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
  background-size: 20px 20px !important;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px !important;
  background-color: transparent !important;
}

/* Captions animation */
#caption-overlay {
  animation: slide-up-fade 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slide-up-fade {
  from {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Chat HUD Animations */
.chat-hud-msg {
  animation: chat-fade-in 0.25s ease-out;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 4px;
  word-break: break-all;
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Mobile Chat HUD Fix - Prevent blocking avatar face */
@media (max-width: 768px) {
  #chat-hud-overlay {
    top: 10px !important;
    left: 10px !important;
    width: 160px !important;
    max-height: 110px !important;
    opacity: 0.85 !important;
    transform: scale(0.85);
    transform-origin: top left;
  }

  #chat-hud-messages {
    font-size: 10px !important;
    padding: 6px !important;
  }
}


