/* ==========================================================================
   STREAMPARTY — CINEMA DARK MODE & STREAMING EXPERIENCE
   Ultra-modern, high-contrast, zero-AI palette
   ========================================================================== */

:root {
  --bg-main: #13161f;
  --bg-surface: #1a1f2c;
  --bg-card: rgba(26, 31, 44, 0.85);
  --bg-card-hover: rgba(34, 41, 58, 0.95);
  --border-color: rgba(255, 245, 230, 0.09);
  --border-hover: rgba(255, 245, 230, 0.18);
  --border-active: rgba(245, 158, 11, 0.45);
  --primary: #f59e0b;
  --primary-hover: #fbbf24;
  --primary-gradient: #f59e0b;
  --primary-glow: rgba(245, 158, 11, 0.22);
  --accent-gold: #f59e0b;
  --accent-honey: #f59e0b;
  --accent-red: #f59e0b;
  --accent-green: #34d399;
  --text-main: #fdfbf7;
  --text-muted: #9da5b4;
  --text-dim: #64748b;
  --header-height: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

body, .cinema-app-body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse at 50% -10%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(52, 211, 153, 0.04) 0%, transparent 45%);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ================== SVG ICONS ================== */
.svg-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.2s, transform 0.2s;
}

.svg-icon.sm { width: 14px; height: 14px; }
.svg-icon.md { width: 20px; height: 20px; }
.svg-icon.lg { width: 26px; height: 26px; }
.svg-icon.xl { width: 56px; height: 56px; }

/* Background Atmosphere */
.cinema-spotlight-top {
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.03) 45%, transparent 75%);
}

.cinema-mesh-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
}

.bg-glow, .bg-glow-2 {
  display: none !important;
}

/* ================== TOP NAVIGATION BAR ================== */
.cinema-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cinema-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
}
.cinema-brand-logo:hover {
  transform: scale(1.02);
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #1f2330 0%, #10121a 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.15);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-name span {
  color: #f59e0b;
}

.brand-tag {
  font-size: 10px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: radarPing 2s infinite;
}

.nav-btn-join {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.nav-btn-join:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

/* ================== HERO SECTION ================== */
.cinema-hero-section {
  position: relative;
  z-index: 1;
  padding: 50px 0 60px 0;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

/* Left Column */
.hero-content-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cinema-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #e2e8f0;
}

.pill-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.pill-text {
  color: #ffffff;
}

.hero-main-title {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #ffffff;
}

.cinema-highlight {
  color: #f59e0b;
  background: #f59e0b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

/* Feature Chips Row */
.hero-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: border-color 0.2s, background-color 0.2s;
}
.chip-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.chip-icon {
  font-size: 14px;
}

/* Simulated Cinema Player Mockup */
.cinema-player-mockup {
  position: relative;
  border-radius: 18px;
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.85);
  margin-top: 10px;
}

.mockup-header-bar {
  height: 42px;
  background: #0e111a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mockup-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-room-badge {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.mockup-live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.soundwave-bar {
  width: 3px;
  background: #f59e0b;
  border-radius: 2px;
  display: inline-block;
  animation: soundBounce 1.2s infinite ease-in-out;
}
.soundwave-bar.bar1 { height: 8px; animation-delay: 0s; }
.soundwave-bar.bar2 { height: 14px; animation-delay: 0.2s; }
.soundwave-bar.bar3 { height: 10px; animation-delay: 0.4s; }

@keyframes soundBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.2); }
}

.mockup-screen-area {
  position: relative;
  height: 230px;
  background: radial-gradient(circle at 50% 40%, #151a27 0%, #080a0f 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-cinema-glow {
  position: absolute;
  width: 300px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(229, 9, 20, 0.2), transparent 70%);
  filter: blur(50px);
}

.mockup-play-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mockup-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
  cursor: pointer;
  transition: transform 0.2s;
}
.mockup-play-btn:hover {
  transform: scale(1.08);
}
.mockup-play-btn .svg-icon {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.mockup-now-playing {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

/* Floating Avatars inside Mockup */
.mockup-floating-avatars {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.floating-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 17, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: 11px;
}
.floating-avatar.host {
  border-color: rgba(229, 9, 20, 0.4);
}
.avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.avatar-circle.green { background: #10b981; }
.avatar-circle.blue { background: #3b82f6; }

.avatar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.avatar-name {
  font-weight: 700;
  color: #fff;
}
.avatar-status {
  color: #94a3b8;
  font-size: 10px;
}

/* Floating Chat Reaction */
.mockup-chat-reaction {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(14, 17, 26, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  animation: floatReaction 3s infinite ease-in-out;
}
@keyframes floatReaction {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.chat-react-user {
  color: #f59e0b;
  font-weight: 700;
}
.chat-react-text {
  color: #ffffff;
}

/* Active Rooms Dock in Hero */
.active-rooms-dock {
  background: rgba(14, 17, 26, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dock-title {
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.dock-badge {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.dock-room-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dock-room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
}
.dock-room-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dock-room-code {
  color: #fff;
  font-size: 13.5px;
}
.dock-room-users {
  color: var(--text-muted);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-pill-tag {
  color: #ef4444;
  font-weight: 700;
  font-size: 10px;
  background: rgba(239, 68, 68, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.btn-dock-join {
  background: #f59e0b;
  border: none;
  color: #0f172a;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s;
}
.btn-dock-join:hover {
  transform: translateY(-1px);
}

/* Right Column (Control Deck / Ticket Card) */
.hero-control-col {
  position: relative;
}

.cinema-control-card {
  position: relative;
  background: rgba(14, 17, 26, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.card-glow-edge {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.control-card-header {
  margin-bottom: 22px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Segmented Tabs */
.cinema-segmented-tabs {
  display: flex;
  background: #08090d;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 4px;
}

.cinema-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinema-tab-btn:hover {
  color: #fff;
}
.cinema-tab-btn.active {
  background: #1c212e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.deck-tab-content {
  display: none;
  flex-direction: column;
  gap: 18px;
}
.deck-tab-content.active {
  display: flex;
}

/* Forms */
.cinema-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cinema-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.label-with-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.label-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.cinema-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.cinema-input-box.flex-1 {
  flex: 1;
}

.cinema-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s;
}

.cinema-input-box input[type="text"] {
  width: 100%;
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.cinema-input-box input[type="text"]::placeholder {
  color: #475569;
}

.cinema-input-box input[type="text"]:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.cinema-input-box input[type="text"]:focus {
  background: #0b0d14;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.cinema-input-box:focus-within .cinema-input-icon {
  color: #f59e0b;
}

.cinema-input-with-action {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* Random Dice Button */
.cinema-dice-btn {
  width: 48px;
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.cinema-dice-btn:hover {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cinema-dice-btn:active {
  transform: scale(0.94);
}
.dice-svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinema-dice-btn.rotating .dice-svg {
  transform: rotate(360deg) scale(1.1);
}

/* Quick Room Tags */
.quick-room-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.quick-tag-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.quick-tag-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-tag-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
}

/* Primary Action Button */
.cinema-primary-button {
  position: relative;
  width: 100%;
  background: #f59e0b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, filter 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  overflow: hidden;
}

.cinema-primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cinema-primary-button:active {
  transform: translateY(0);
  filter: brightness(0.96);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.button-shine-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
  pointer-events: none;
}

.cinema-primary-button:hover .button-shine-sweep {
  left: 150%;
}

.play-icon-btn {
  width: 14px;
  height: 14px;
}

.deck-trust-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.text-emerald {
  color: #10b981;
}

/* ================== HOW IT WORKS SECTION ================== */
.cinema-steps-section {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steps-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.steps-header {
  text-align: center;
  margin-bottom: 40px;
}

.steps-sub {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f59e0b;
  text-transform: uppercase;
}

.steps-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-top: 6px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: rgba(14, 17, 26, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 30px 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background-color 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  background: rgba(18, 22, 34, 0.8);
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.step-card.highlight {
  border-color: rgba(229, 9, 20, 0.35);
  background: rgba(229, 9, 20, 0.04);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -1px;
}

.step-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================== MAIN FOOTER ================== */
.cinema-main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
  background: #050608;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.footer-logo span {
  color: #f59e0b;
}

.footer-desc {
  font-size: 12px;
  color: #64748b;
}

.footer-meta-col {
  font-size: 12px;
  color: #64748b;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-main-title {
    font-size: 34px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ================== ROOM PAGE ================== */
.room-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #080a0f;
}

/* Header */
.room-header {
  height: 64px;
  background: rgba(10, 13, 22, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 30;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.room-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.room-brand:hover {
  transform: scale(1.02);
}
.room-brand .logo-icon-svg {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1c202b 0%, #0e1017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
  border: 1px solid rgba(229, 9, 20, 0.4);
}
.room-brand .logo-icon-svg .svg-icon {
  width: 20px;
  height: 20px;
}
.room-brand .logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.room-brand .logo-name span {
  background: #f59e0b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Room Badge Capsule */
.room-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.room-badge:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.badge-dot-wrapper {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.badge-dot-ping {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.badge-copy-hint {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.room-badge:hover .badge-copy-hint {
  opacity: 1;
  color: #10b981;
}
.svg-icon-mini {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Center Live Pill */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 20px;
  user-select: none;
}
.live-dot-wrapper {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}
.live-dot-ping {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.4);
  animation: radarPing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-text {
  text-transform: uppercase;
}
.live-tag {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fee2e2;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header User Profile Pill */
.header-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px 5px 6px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
  outline: none;
}
.header-user-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.2);
}
.header-user-pill:active {
  transform: translateY(0);
}
.user-pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-pill-name {
  font-size: 12.5px;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pill-edit-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.header-user-pill:hover .user-pill-edit-icon {
  opacity: 1;
  color: #f59e0b;
}

/* User edit button in participant list */
.btn-user-edit-name {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  margin-left: 2px;
}
.btn-user-edit-name:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

/* Invite Button */
.btn-action-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.15) 100%);
  border: 1px solid rgba(229, 9, 20, 0.35);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-action-copy:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.35) 0%, rgba(229, 9, 20, 0.3) 100%);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.35);
  color: #fff;
  transform: translateY(-2px);
}
.btn-action-copy:active {
  transform: translateY(0);
}

/* Users Counter */
.users-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.users-counter:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}
.users-counter:active {
  transform: translateY(0);
}
.users-counter-avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}
.users-counter-content {
  display: flex;
  align-items: center;
  gap: 4px;
}
.user-count-num {
  font-weight: 800;
  color: #fff;
}
.user-counter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.users-counter.pulse {
  animation: counterPulse 0.5s ease-out;
}
@keyframes counterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); background: rgba(16, 185, 129, 0.25); border-color: #10b981; }
  100% { transform: scale(1); }
}

/* Leave Button */
.btn-header-leave {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-header-leave:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}
.btn-header-leave:active {
  transform: translateY(0);
}

/* Main Room Layout */
.room-layout {
  flex: 1;
  display: flex;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  position: relative;
}

/* Stage / Video Area */
.stage-container {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#screenVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
#screenVideo.active {
  display: block;
}

/* ================== WEBCAM STRIP & DISCORD COMPACT OVERLAY ================== */
.cams-strip {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 25;
  max-height: calc(100% - 110px);
  overflow-y: auto;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cams-mode-bar {
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 2px;
}
.cams-strip:hover .cams-mode-bar,
.cams-mode-bar:hover {
  opacity: 1;
  transform: translateY(0);
}

.btn-cams-mode {
  background: rgba(10, 13, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}
.btn-cams-mode:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.cam-card {
  pointer-events: auto;
  position: relative;
  width: 190px;
  height: 120px;
  background: rgba(14, 18, 28, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-card:hover {
  transform: scale(1.02);
  border-color: var(--border-hover);
}

/* Speaking glow on card */
.cam-card.speaking {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px #22c55e, 0 0 20px rgba(34, 197, 94, 0.75) !important;
}
.cam-card.speaking .cam-avatar-circle {
  box-shadow: 0 0 0 3px #22c55e, 0 0 16px rgba(34, 197, 94, 0.85) !important;
  border: 2px solid #22c55e !important;
  animation: discordVoicePulse 1.2s infinite ease-in-out;
}
@keyframes discordVoicePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #22c55e); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 10px #22c55e); }
}

.cam-card.speaking .cam-name {
  color: #86efac !important;
  font-weight: 700;
}

.cam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  background: #0d1117;
  transform: scaleX(-1);
}
.cam-video.active {
  display: block;
}

.cam-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cam-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
  transition: all 0.2s ease;
}

.cam-meta {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  z-index: 5;
  transition: all 0.2s ease;
}

.cam-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  color: #f3f4f6;
  transition: color 0.2s;
}

.cam-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.cam-status-icons .active {
  color: var(--accent-green);
}

/* ==========================================================================
   DISCORD-STYLE COMPACT OVERLAY (WHEN SCREEN IS ENLARGED / FULLSCREEN / THEATER)
   "ekranı büyütünce küçük kutucuklara dönüşsün. discord gibi. fazla yer kaplamasın. biri konuşunca konuşan kişi yansın."
   ========================================================================== */

:fullscreen .cams-strip,
:-webkit-full-screen .cams-strip,
body.is-fullscreen .cams-strip,
#videoWrapper.is-fullscreen .cams-strip,
body.theater-mode .cams-strip,
body.streaming-active .cams-strip,
.cams-strip.compact-mode {
  top: 14px;
  right: 14px;
  gap: 6px;
  max-width: 220px;
}

:fullscreen .cams-mode-bar,
:-webkit-full-screen .cams-mode-bar,
body.is-fullscreen .cams-mode-bar,
#videoWrapper.is-fullscreen .cams-mode-bar,
body.theater-mode .cams-mode-bar,
body.streaming-active .cams-mode-bar,
.cams-strip.compact-mode .cams-mode-bar {
  display: none;
}

/* Discord Voice Pill (When camera is OFF) */
:fullscreen .cam-card:not(.has-camera),
:-webkit-full-screen .cam-card:not(.has-camera),
body.is-fullscreen .cam-card:not(.has-camera),
#videoWrapper.is-fullscreen .cam-card:not(.has-camera),
body.theater-mode .cam-card:not(.has-camera),
body.streaming-active .cam-card:not(.has-camera),
.cams-strip.compact-mode .cam-card:not(.has-camera) {
  width: auto;
  min-width: 105px;
  max-width: 185px;
  height: 38px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  background: rgba(10, 13, 22, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  margin-left: auto;
}

:fullscreen .cam-card:not(.has-camera) .cam-avatar-placeholder,
:-webkit-full-screen .cam-card:not(.has-camera) .cam-avatar-placeholder,
body.is-fullscreen .cam-card:not(.has-camera) .cam-avatar-placeholder,
#videoWrapper.is-fullscreen .cam-card:not(.has-camera) .cam-avatar-placeholder,
body.theater-mode .cam-card:not(.has-camera) .cam-avatar-placeholder,
body.streaming-active .cam-card:not(.has-camera) .cam-avatar-placeholder,
.cams-strip.compact-mode .cam-card:not(.has-camera) .cam-avatar-placeholder {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

:fullscreen .cam-card:not(.has-camera) .cam-avatar-circle,
:-webkit-full-screen .cam-card:not(.has-camera) .cam-avatar-circle,
body.is-fullscreen .cam-card:not(.has-camera) .cam-avatar-circle,
#videoWrapper.is-fullscreen .cam-card:not(.has-camera) .cam-avatar-circle,
body.theater-mode .cam-card:not(.has-camera) .cam-avatar-circle,
body.streaming-active .cam-card:not(.has-camera) .cam-avatar-circle,
.cams-strip.compact-mode .cam-card:not(.has-camera) .cam-avatar-circle {
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: none;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

:fullscreen .cam-card:not(.has-camera) .cam-meta,
:-webkit-full-screen .cam-card:not(.has-camera) .cam-meta,
body.is-fullscreen .cam-card:not(.has-camera) .cam-meta,
#videoWrapper.is-fullscreen .cam-card:not(.has-camera) .cam-meta,
body.theater-mode .cam-card:not(.has-camera) .cam-meta,
body.streaming-active .cam-card:not(.has-camera) .cam-meta,
.cams-strip.compact-mode .cam-card:not(.has-camera) .cam-meta {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  width: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

:fullscreen .cam-card:not(.has-camera) .cam-name,
:-webkit-full-screen .cam-card:not(.has-camera) .cam-name,
body.is-fullscreen .cam-card:not(.has-camera) .cam-name,
#videoWrapper.is-fullscreen .cam-card:not(.has-camera) .cam-name,
body.theater-mode .cam-card:not(.has-camera) .cam-name,
body.streaming-active .cam-card:not(.has-camera) .cam-name,
.cams-strip.compact-mode .cam-card:not(.has-camera) .cam-name {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:fullscreen .cam-card:not(.has-camera) .cam-status-icons svg,
:-webkit-full-screen .cam-card:not(.has-camera) .cam-status-icons svg,
body.is-fullscreen .cam-card:not(.has-camera) .cam-status-icons svg,
#videoWrapper.is-fullscreen .cam-card:not(.has-camera) .cam-status-icons svg,
body.theater-mode .cam-card:not(.has-camera) .cam-status-icons svg,
body.streaming-active .cam-card:not(.has-camera) .cam-status-icons svg,
.cams-strip.compact-mode .cam-card:not(.has-camera) .cam-status-icons svg {
  width: 13px;
  height: 13px;
}

/* User With Camera in Compact Mode */
:fullscreen .cam-card.has-camera,
:-webkit-full-screen .cam-card.has-camera,
body.is-fullscreen .cam-card.has-camera,
#videoWrapper.is-fullscreen .cam-card.has-camera,
body.theater-mode .cam-card.has-camera,
body.streaming-active .cam-card.has-camera,
.cams-strip.compact-mode .cam-card.has-camera {
  width: 116px;
  height: 72px;
  border-radius: 10px;
}

:fullscreen .cam-card.has-camera .cam-meta,
:-webkit-full-screen .cam-card.has-camera .cam-meta,
body.is-fullscreen .cam-card.has-camera .cam-meta,
#videoWrapper.is-fullscreen .cam-card.has-camera .cam-meta,
body.theater-mode .cam-card.has-camera .cam-meta,
body.streaming-active .cam-card.has-camera .cam-meta,
.cams-strip.compact-mode .cam-card.has-camera .cam-meta {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
}

/* Ambient Stage Frame (ThreeUI Fluid Visualizer) */
.ambient-stage-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}
.ambient-stage-frame.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* Placeholder */
.stream-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 38px;
  max-width: 500px;
  z-index: 10;
  background: rgba(19, 22, 31, 0.68);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 158, 11, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-placeholder.minimized {
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(19, 22, 31, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.stream-placeholder.minimized .placeholder-card-content {
  display: none;
}

.btn-toggle-placeholder {
  position: absolute;
  top: -13px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(19, 22, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.stream-placeholder.minimized .btn-toggle-placeholder {
  position: static;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.btn-toggle-placeholder:hover {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.placeholder-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.placeholder-art {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.glow-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  animation: pulse 3s infinite ease-in-out;
}

.cinema-icon-svg {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  z-index: 2;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

.placeholder-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.placeholder-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-hero-share {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #0f172a;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45);
}
.btn-hero-share:active {
  transform: translateY(0);
}

/* Floating Controls Overlay */
.video-controls-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 18, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 25;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.video-wrapper.hide-controls .video-controls-overlay {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(24px);
  pointer-events: none;
}

.video-wrapper.hide-controls {
  cursor: none;
}
.video-wrapper.hide-controls * {
  cursor: none !important;
}

.controls-left, .controls-center, .controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 9px 15px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.ctrl-btn.active-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.ctrl-btn.active-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.ctrl-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.ctrl-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

#volumeSlider {
  width: 80px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Quality Menu */
.quality-wrapper {
  position: relative;
}

.quality-menu {
  position: absolute;
  bottom: 52px;
  right: 0;
  background: rgba(18, 22, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 50;
}
.quality-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.quality-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  color: #fff;
}
.quality-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}
.quality-opt.active {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.5);
}
.quality-opt .opt-name {
  font-size: 13px;
  font-weight: 700;
}
.quality-opt .opt-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Reactions Canvas & Floating Animation */
.reactions-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}

.floating-reaction {
  position: absolute;
  bottom: 60px;
  font-size: 32px;
  user-select: none;
  animation: floatUp 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-200px) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-400px) scale(1) rotate(-15deg);
  }
}

/* ================== SIDEBAR (COMPACT & SCROLL-FREE) ================== */
.sidebar-container {
  width: 270px;
  background: rgba(13, 16, 24, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: width 0.3s, transform 0.3s;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-container::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  height: 42px;
}

.side-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.side-tab.active {
  color: #fff;
  border-bottom-color: var(--primary);
}
.side-tab .svg-icon {
  width: 14px;
  height: 14px;
}

.sidebar-view {
  display: none;
  flex: 1;
  flex-direction: column;
  height: calc(100% - 42px);
  overflow: hidden;
}
.sidebar-view.active {
  display: flex;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-messages::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  word-break: break-word;
  transition: background 0.15s ease;
}
.chat-bubble.mine {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  align-self: flex-end;
  max-width: 90%;
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.chat-bubble.mine .bubble-meta {
  color: #fcd34d;
}
.bubble-time {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 9.5px;
  margin-left: 6px;
}
.bubble-body {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #f1f5f9;
}

.bubble-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  word-break: break-word;
}
.bubble-line-text {
  flex: 1;
  word-break: break-word;
}
.bubble-line-time {
  font-size: 9px;
  color: #64748b;
  opacity: 0.6;
  flex-shrink: 0;
  user-select: none;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s;
}
.chat-bubble:hover .bubble-line-time {
  opacity: 0.95;
}

.system-bubble {
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin: 1px auto;
  max-width: 96%;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Typing Indicator Bar */
.typing-indicator-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(229, 9, 20, 0.08);
  border-top: 1px solid rgba(229, 9, 20, 0.2);
  min-height: 24px;
  animation: fadeInTyping 0.2s ease-out;
}
@keyframes fadeInTyping {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.35;
    background: #f59e0b;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
    background: #ff4b4b;
    box-shadow: 0 0 6px #ff4b4b;
  }
}

.typing-text {
  font-size: 11px;
  font-weight: 500;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quick Reactions Bar - Scroll-free & Compact */
.quick-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-reactions::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

.reaction-bubble {
  flex: 1;
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.reaction-bubble:hover {
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.15);
}

/* Chat Input Bar - Compact */
.chat-input-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border-color);
  background: rgba(13, 16, 24, 0.95);
}

.chat-input-bar input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-bar input:focus {
  border-color: var(--primary);
}

.btn-send {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.btn-send:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}
.btn-send .svg-icon {
  width: 15px;
  height: 15px;
}

/* Users List - Compact & Scroll-free */
.users-list {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.users-list::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(229, 9, 20, 0.2);
  color: #f1f5f9;
}

/* ================== THEATER MODE (CINEMA MODE) ================== */
body.theater-mode .room-header {
  display: none !important;
}
body.theater-mode .room-layout {
  height: 100vh !important;
}
body.theater-mode .sidebar-container,
.room-layout.theater .sidebar-container {
  display: none !important;
}
body.theater-mode #btnTheaterMode {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.5) !important;
}

/* Stage Participants Box (on Placeholder) */
.stage-participants-box {
  margin-top: 24px;
  background: rgba(18, 22, 34, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  width: 100%;
}

.stage-part-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-part-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stage-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #f3f4f6;
  transition: all 0.2s;
}
.stage-user-chip.is-me {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
}
.stage-chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

/* Top Center Join/Leave Banner */
.room-notif-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 22, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.room-notif-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.room-notif-banner.join {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}
.room-notif-banner.leave {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.25);
}
.notif-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.notif-badge.join {
  background: #10b981;
}
.notif-badge.leave {
  background: #ef4444;
}
.notif-badge .svg-icon {
  width: 16px;
  height: 16px;
}

/* Toast Popup */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 22, 34, 0.95);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
}
.toast-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================== MODALS ================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: rgba(18, 22, 34, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 9, 20, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUpModal {
  from { transform: scale(0.92) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}
.modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-avatar-preview {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}
.modal-title-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.modal-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
}
.modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.modal-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-input-wrapper .input-leading-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.modal-input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
}
.modal-input-wrapper input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}
.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-modal-save {
  background: var(--primary-gradient);
  border: none;
  color: #0f172a;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}
.btn-modal-save:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.btn-modal-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-modal-danger:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

.modal-danger-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}

/* ==========================================================================
   FULLSCREEN FLOATING CHAT OVERLAY (RIGHT SIDE TRANSPARENT 7s DISMISS)
   ========================================================================== */
.fullscreen-chat-overlay {
  position: absolute;
  right: 28px;
  bottom: 95px;
  width: 340px;
  max-width: calc(100% - 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 95;
  pointer-events: none;
}

.fs-chat-toast {
  pointer-events: auto;
  width: 100%;
  background: rgba(11, 17, 29, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: fsToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.fs-chat-toast.fade-out {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
  pointer-events: none;
}

.fs-toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-toast-avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.fs-toast-user {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-toast-user.mine {
  color: #38bdf8;
}

.fs-toast-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.fs-toast-body {
  font-size: 13.5px;
  line-height: 1.45;
  color: #f8fafc;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  padding-left: 30px;
}

.fs-toast-system {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
}

.fs-toast-body.system {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  font-size: 12px;
  color: #cbd5e1;
}

.fs-toast-icon {
  font-size: 14px;
}

/* Typing Toast */
.fs-typing-toast {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  width: auto;
  align-self: flex-end;
}

.fs-typing-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-typing-name {
  font-size: 12px;
  color: #cbd5e1;
}

.fs-typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.fs-typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  animation: fsTypingDot 1.4s infinite ease-in-out;
}

.fs-typing-dots span:nth-child(1) { animation-delay: 0s; }
.fs-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.fs-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fsTypingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fsToastSlideIn {
  from {
    opacity: 0;
    transform: translateX(35px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ==========================================================================
   AVATARS & PROFILE CUSTOMIZATION SYSTEM
   ========================================================================== */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.avatar-preset {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  line-height: 1;
  user-select: none;
}

.avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: inherit;
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.cam-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(245, 158, 11, 0.45);
  background: var(--bg-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s;
}

.cams-strip.compact-mode .cam-avatar-circle {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border-width: 1.5px;
}

/* Chat bubble avatar */
.bubble-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 4px;
}

.bubble-avatar-wrapper {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.chat-bubble.mine .bubble-avatar-wrapper {
  border-color: rgba(245, 158, 11, 0.4);
}

/* Fullscreen toast avatar */
.fs-toast-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Modal Avatar Section */
.modal-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--primary);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.avatar-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-avatar-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--primary);
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-avatar-upload:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-avatar-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-avatar-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.preset-avatars-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.preset-emojis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.btn-preset-emoji {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 22px;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-preset-emoji:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--primary);
  transform: scale(1.1);
}

.btn-preset-emoji.selected {
  background: rgba(245, 158, 11, 0.28);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}


