/* ==========================================================
   COUPLE VIP HUB - FULL ROMANTIC DESIGN SYSTEM & STYLES
   ========================================================== */

:root {
  --bg-color: #080c14;
  --panel-bg: rgba(18, 24, 38, 0.8);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(24, 32, 50, 0.7);
  
  --primary-accent: #ec4899; /* Romantic Rose / Pink Neon */
  --primary-glow: rgba(236, 72, 153, 0.4);
  --success-neon: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);
  --danger-accent: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.35);
  --warning-accent: #f59e0b;
  --purple-neon: #a855f7;
  --cyan-neon: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  --font-family: 'Vazirmatn', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

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

.bg-glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
}

/* ==========================================================
   SECURE IN-EAR SLIDE-TO-UNLOCK SCREEN
   ========================================================== */
.ear-lock-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 60px 24px 45px;
  user-select: none;
  touch-action: none;
  animation: fadeIn 0.25s ease;
}

.lock-top-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lock-pulse-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 20px;
  box-shadow: 0 0 30px var(--primary-glow);
  animation: heartPulse 1.8s infinite;
}

.lock-top-meta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.call-timer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--success-neon);
  margin-bottom: 12px;
}

.timer-dot {
  width: 8px;
  height: 8px;
  background: var(--success-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-neon);
  animation: pulseDot 1.5s infinite;
}

.speaker-state-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lock-mid-controls {
  display: flex;
  gap: 32px;
  margin: auto 0;
}

.lock-ctrl-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lock-ctrl-btn span {
  font-size: 0.68rem;
}

.lock-ctrl-btn.active-state {
  background: rgba(236, 72, 153, 0.25);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

/* Slide to Unlock Slider */
.slider-container {
  width: 100%;
  max-width: 320px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-track-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  pointer-events: none;
  animation: shimmerText 2.5s infinite;
}

.slider-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, var(--primary-accent), var(--purple-neon));
  border-radius: var(--radius-full);
  opacity: 0.5;
  pointer-events: none;
}

.slider-knob {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fff, #e2e8f0);
  color: #0b0f19;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: grab;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  touch-action: pan-x;
  z-index: 10;
}

.slider-knob:active {
  cursor: grabbing;
  transform: scale(0.96);
}

/* ==========================================================
   APP CONTAINER & GLASS PANELS
   ========================================================== */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}

.app-container {
  width: 100%;
  max-width: 1000px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-accent), var(--purple-neon));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.12rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Outfit', var(--font-family);
  direction: ltr;
  display: block;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge.connected .status-dot {
  background-color: var(--success-neon);
  box-shadow: 0 0 10px var(--success-neon);
}

.status-badge.connected .status-text {
  color: var(--success-neon);
}

.status-badge.disconnected .status-dot {
  background-color: var(--danger-accent);
}

.status-badge.disconnected .status-text {
  color: var(--text-muted);
}

.ping-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
}

.ping-badge i {
  color: var(--warning-accent);
}

/* ==========================================================
   ROMANTIC NAVIGATION TABS BAR
   ========================================================== */
.hub-tabs-bar {
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.hub-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

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

.hub-tab.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid var(--primary-accent);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.hub-tab.btn-lock-tab {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.06);
}

.hub-tab.btn-lock-tab:hover {
  background: rgba(236, 72, 153, 0.2);
}

.hub-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  flex: 1;
}

.hub-tab-content.active {
  display: block;
}

/* ==========================================================
   TAB 1: VIDEO CALL GRID
   ========================================================== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 90px;
}

.couple-video-card {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.couple-video-card:hover {
  border-color: var(--panel-border-hover);
}

.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Soft Glow Beauty Filter Effect */
body.soft-glow-active .video-wrapper video {
  filter: contrast(105%) brightness(108%) saturate(115%) blur(0.2px);
  box-shadow: inset 0 0 40px rgba(236, 72, 153, 0.25);
}

#localVideoEl {
  transform: scaleX(-1); /* Mirror selfie cam */
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #0b0f19);
  gap: 12px;
}

.avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-accent), var(--purple-neon));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.video-overlay-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.wave-canvas-mini {
  width: 110px;
  height: 20px;
}

.btn-cam-flip {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ==========================================================
   TAB 2: CINEMA & MUSIC WATCH PARTY
   ========================================================== */
.cinema-panel {
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 90px;
}

.cinema-controls-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.cinema-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0 14px;
}

.cinema-input-wrapper i {
  color: #ff0000;
  font-size: 20px;
}

.cinema-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 0;
  font-size: 0.92rem;
  outline: none;
}

.btn-cinema-load {
  background: linear-gradient(135deg, var(--primary-accent), var(--purple-neon));
  border: none;
  color: #fff;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-screen-share {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-screen-share:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cinema-player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-idle-placeholder {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.cinema-idle-placeholder i {
  font-size: 48px;
  color: var(--primary-accent);
  margin-bottom: 14px;
}

.cinema-idle-placeholder h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.cinema-idle-placeholder p {
  font-size: 0.88rem;
  max-width: 400px;
  margin: 0 auto;
}

.cinema-player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#youtubePlayerContainer {
  width: 100%;
  height: 100%;
}

/* ==========================================================
   TAB 3: LIVE ROMANTIC TOUCH CANVAS
   ========================================================== */
.canvas-panel {
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 90px;
  display: flex;
  flex-direction: column;
}

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

.color-palette {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

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

.btn-canvas-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-canvas-tool:hover {
  background: rgba(255, 255, 255, 0.15);
}

.canvas-board-wrapper {
  width: 100%;
  height: 480px;
  background: #0d131f;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  position: relative;
  touch-action: none;
}

#sharedTouchCanvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.canvas-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ==========================================================
   VOICE & VIDEO DOCK
   ========================================================== */
.voice-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 860px;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-left {
  display: flex;
  align-items: center;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.user-pill-name {
  font-size: 0.88rem;
  font-weight: 500;
}

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

.dock-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--panel-border-hover);
}

.dock-btn.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--primary-accent);
  color: #fbcfe8;
}

.dock-btn.ear-mode-active {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--purple-neon);
  color: #e9d5ff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.dock-btn.muted {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger-accent);
  color: #f87171;
}

.dock-btn.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger-accent);
  color: #f87171;
}

.dock-btn.btn-danger:hover {
  background: var(--danger-accent);
  color: #fff;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.settings-card {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: scaleUp 0.25s ease;
}

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

.settings-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-header h3 i {
  color: var(--primary-accent);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-border);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 65%;
}

.setting-title {
  font-size: 0.92rem;
  font-weight: 600;
}

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

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Join Screen Form Styles */
.join-screen {
  max-width: 440px;
  margin: auto;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  animation: fadeIn 0.4s ease;
}

.join-header {
  text-align: center;
  margin-bottom: 28px;
}

.lock-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.join-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.join-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group label i {
  margin-left: 6px;
  color: var(--primary-accent);
}

.input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-group input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(255, 255, 255, 0.07);
}

.device-preview-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
}

.device-select-row label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.styled-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 9px 12px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.styled-select option {
  background: #1e293b;
  color: #fff;
}

.mic-test-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.meter-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.meter-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-accent), var(--success-neon));
  border-radius: var(--radius-full);
  transition: width 0.08s ease;
}

.error-banner {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger-accent);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 18px;
  text-align: center;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-accent), #db2777);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 25px var(--primary-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px var(--primary-glow);
}

/* Utilities & Animations */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translate(-50%, 30px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes heartPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 25px rgba(236, 72, 153, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes shimmerText {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.output-devices-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.output-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: var(--transition-fast);
}

.output-device-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--panel-border-hover);
}

.output-device-card.is-active-sink {
  border-color: var(--primary-accent);
  background: rgba(236, 72, 153, 0.12);
}

.device-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary-accent);
}

.device-card-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
}

.device-card-actions {
  display: flex;
  gap: 6px;
}

.btn-test-sound {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--cyan-neon);
  color: #a5f3fc;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-test-sound:hover {
  background: var(--cyan-neon);
  color: #0b0f19;
}

.btn-select-sink {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid var(--primary-accent);
  color: #fbcfe8;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-select-sink:hover {
  background: var(--primary-accent);
  color: #fff;
}

.device-loading-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

.btn-scan-outputs {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid var(--primary-accent);
  color: #fbcfe8;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-scan-outputs:hover {
  background: var(--primary-accent);
  color: #fff;
}

/* PWA Install Card on Join Screen */
.pwa-install-card {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-app-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--neon-glow);
}

.pwa-card-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.pwa-card-text strong {
  font-size: 0.84rem;
  color: #fff;
}

.pwa-card-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-install-app {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--neon-glow);
  transition: var(--transition-fast);
}

.btn-install-app:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* iOS Install Guide Modal */
.ios-install-card {
  width: 100%;
  max-width: 440px;
  background: #111422;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.ios-install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
}

.ios-install-header h3 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.ios-install-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-desc {
  line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .app-container {
    padding: 10px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .couple-video-card {
    aspect-ratio: 16 / 10;
  }

  .dock-btn-label {
    display: none;
  }

  .cinema-controls-bar {
    flex-direction: column;
  }

  .canvas-board-wrapper {
    height: 380px;
  }
}
