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

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0f131f;
  --bg-tertiary: #161c2d;
  --bg-card: rgba(15, 19, 31, 0.7);
  
  --accent-cyan: hsl(190, 100%, 45%);
  --accent-blue: hsl(215, 100%, 50%);
  --accent-purple: hsl(265, 80%, 55%);
  --accent-pink: hsl(330, 95%, 55%);
  --accent-green: hsl(140, 85%, 45%);
  --accent-red: hsl(355, 85%, 50%);
  
  --text-main: #f3f6fc;
  --text-muted: #8591b0;
  --text-dim: #54607a;
  
  --border-light: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(0, 212, 255, 0.15);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.2);
  --shadow-pink: 0 0 20px rgba(255, 0, 127, 0.2);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Ambient Background elements */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  top: -10%;
  left: 5%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: 5%;
  right: -5%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  pointer-events: none;
  z-index: -1;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 45%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(59, 130, 246, 0.4), 0 0 15px rgba(168, 85, 247, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline-pink {
  background: transparent;
  color: var(--accent-pink);
  border: 1px solid var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.05);
}

.btn-outline-pink:hover {
  background: var(--accent-pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
  transform: translateY(-2px);
}

/* Header Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(7, 9, 14, 0.92);
  padding: 8px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo-glow {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Sections */
section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Hero elements */
.hero {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 60px;
}

.hero-tag {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.8rem;
  max-width: 850px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

/* Hero visual device container styling */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 380px;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.device-mock {
  position: absolute;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.device-mock:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255,255,255,0.12);
}

.mock-iptv {
  width: 230px;
  height: 450px;
  left: 10%;
  bottom: 0;
  z-index: 2;
  box-shadow: -20px 20px 50px rgba(0,0,0,0.5), 0 0 25px rgba(0, 212, 255, 0.08);
  transform: rotate(-5deg);
}

.mock-player {
  width: 560px;
  height: 330px;
  bottom: 0;
  left: calc(50% - 280px);
  z-index: 3;
  box-shadow: 0 40px 70px rgba(0,0,0,0.7), 0 0 35px rgba(168, 85, 247, 0.1);
}

.mock-prank {
  width: 230px;
  height: 450px;
  right: 10%;
  bottom: 0;
  z-index: 1;
  box-shadow: 20px 20px 50px rgba(0,0,0,0.5), 0 0 25px rgba(255, 0, 127, 0.08);
  transform: rotate(5deg);
}

/* Feature grid */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.03);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
}

.card-iptv .feature-icon-wrapper {
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.25);
}

.card-ar .feature-icon-wrapper {
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
}

.card-prank .feature-icon-wrapper {
  color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.1);
  border-color: rgba(255, 0, 127, 0.25);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE PLAYGROUND
   ========================================================================== */
.playground-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

/* Tab Navigation buttons */
.playground-tabs {
  display: flex;
  background: rgba(7, 9, 14, 0.5);
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.01);
}

.tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active[data-tab="iptv"]::after {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.tab-btn.active[data-tab="ar"]::after {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}
.tab-btn.active[data-tab="prank"]::after {
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.playground-panel {
  display: none;
  min-height: 520px;
  padding: 30px;
  animation: fadeIn 0.4s ease;
}

.playground-panel.active {
  display: flex;
}

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

/* Playground Grids */
.panel-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  width: 100%;
}

/* Sidebar lists (History / Search / Categories) */
.iptv-sidebar {
  background: rgba(7, 9, 14, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iptv-sidebar h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.sidebar-search-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-input, .sidebar-select {
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
  transition: var(--transition-fast);
}

.sidebar-input:focus, .sidebar-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

/* Channel items scrollboard list */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 220px;
  padding-right: 2px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.channel-item:hover, .channel-item.active {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.25);
}

.channel-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-info {
  flex: 1;
  min-width: 0;
}

.channel-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* History block styling */
.history-section {
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
  margin-top: 5px;
  display: none; /* Managed by JS dynamically */
  flex-direction: column;
  gap: 10px;
}

.history-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--accent-red);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clear-btn:hover {
  opacity: 0.8;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

/* Loading spinner */
.loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Video viewport container */
.player-container {
  position: relative;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-container.web-fullscreen,
.player-container:fullscreen,
.player-container:-webkit-full-screen,
.player-container:-moz-full-screen,
.player-container:-ms-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border: none !important;
  border-radius: 0 !important;
  z-index: 999999 !important;
}

.iptv-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Wednesday/Avengers style overlay controls */
.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.player-container:hover .player-overlay,
.player-container.show-controls .player-overlay {
  opacity: 1;
  pointer-events: auto;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-back-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.player-show-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.player-actions-top {
  display: flex;
  gap: 8px;
}

.player-top-action {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.player-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: var(--accent-cyan);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-smooth);
}

.player-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.player-center-btn.playing {
  opacity: 0;
  pointer-events: none;
}

.player-container:hover .player-center-btn.playing {
  opacity: 0.75;
  pointer-events: auto;
}

.player-bottom-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar-filled {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.progress-bar-filled::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.player-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-left-group, .player-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-icon {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.control-icon:hover {
  opacity: 1;
  color: var(--accent-cyan);
}

.time-display {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 60px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  height: 3px;
}

/* CORS block player warning card */
.player-error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 14, 0.92);
  display: none; /* Managed by error listeners */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  z-index: 15;
}

.player-error-overlay svg {
  color: var(--accent-red);
  margin-bottom: 15px;
}

.player-error-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}

.player-error-overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 15px;
}

/* Face AR camera panel styles */
.ar-instructions {
  background: rgba(168, 85, 247, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ar-instructions h4 {
  color: var(--accent-purple);
}

.filter-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 5px;
}

.filter-item {
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-item.active, .filter-item:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
}

.camera-container {
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.camera-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}

.camera-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: move;
}

.camera-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  color: var(--text-muted);
  gap: 15px;
  padding: 30px;
  text-align: center;
  z-index: 5;
}

.camera-icon {
  color: var(--accent-purple);
  animation: pulse-purple 2s infinite ease-in-out;
}

@keyframes pulse-purple {
  0%, 100% { transform: scale(1); opacity: 0.6; filter: drop-shadow(0 0 5px rgba(168,85,247,0)); }
  50% { transform: scale(1.03); opacity: 1; filter: drop-shadow(0 0 12px rgba(168,85,247,0.3)); }
}

.sticker-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.sticker-item {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.sticker-item:hover, .sticker-item.active {
  background: rgba(168,85,247,0.06);
  border-color: var(--accent-purple);
  transform: scale(1.05);
}

/* Prank soundboard styles */
.prank-sidebar {
  background: rgba(255, 0, 127, 0.02);
  border: 1px solid rgba(255, 0, 127, 0.12);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prank-sidebar h4 {
  color: var(--accent-pink);
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  width: 100%;
}

.sound-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.sound-card:hover {
  background: rgba(255, 0, 127, 0.04);
  border-color: rgba(255, 0, 127, 0.25);
  transform: translateY(-3px);
}

.sound-card.active {
  background: rgba(255, 0, 127, 0.08);
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.15);
}

.sound-icon-wrapper {
  color: var(--accent-pink);
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

.sound-card:hover .sound-icon-wrapper {
  transform: scale(1.1);
}

.sound-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

/* Sound Waves */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 5px;
}

.sound-card.active .sound-wave {
  opacity: 1;
}

.wave-bar {
  width: 2px;
  background: var(--accent-pink);
  border-radius: 10px;
  height: 3px;
}

.sound-card.active .wave-bar:nth-child(1) { animation: wave 0.8s infinite alternate; }
.sound-card.active .wave-bar:nth-child(2) { animation: wave 0.8s infinite alternate 0.2s; }
.sound-card.active .wave-bar:nth-child(3) { animation: wave 0.8s infinite alternate 0.4s; }
.sound-card.active .wave-bar:nth-child(4) { animation: wave 0.8s infinite alternate 0.1s; }

@keyframes wave {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Fullscreen crack simulation overlays */
.crack-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.crack-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.crack-banner {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 9, 14, 0.95);
  border: 1px solid var(--accent-pink);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.3);
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 100000;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-border 1.5s infinite alternate;
}

@keyframes pulse-border {
  from { box-shadow: 0 0 10px rgba(255, 0, 127, 0.15); }
  to { box-shadow: 0 0 25px rgba(255, 0, 127, 0.45); }
}

/* Shake animations for clipper */
body.hair-clipper-vibrating {
  animation: shake 0.08s infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px); }
  25% { transform: translate(-1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, -1px); }
  100% { transform: translate(1px, 1px); }
}

/* Stats */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.stat-card {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px 20px;
}

.stat-card h4 {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Footer elements */
footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 24px;
  background: #040508;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-about p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: #fff;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive elements */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .device-mock {
    position: relative;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }
  
  .mock-player {
    width: 100%;
    max-width: 480px;
    height: 270px;
  }
  
  .panel-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}
