/* ═══════════════════════════════════════════════════════════
   AZIZI — Premium Voice Social App
   Design System: Luxury Neon-Purple / Gold Glassmorphic
   Font: Syne (Display) + Plus Jakarta Sans (Body)
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg-deep:       #080612;
  --bg-card:       #0f0a1e;
  --bg-glass:      rgba(255,255,255,0.05);
  --bg-glass-2:    rgba(255,255,255,0.08);
  --border-glass:  rgba(255,255,255,0.10);
  --border-glow:   rgba(155,89,182,0.4);

  --purple-deep:   #1a0533;
  --purple-mid:    #4a0080;
  --purple-bright: #9B59B6;
  --purple-neon:   #C77DFF;
  --purple-glow:   rgba(199,125,255,0.25);

  --gold:          #FFD700;
  --gold-soft:     #F0C040;
  --gold-dim:      rgba(255,215,0,0.15);

  --pink-neon:     #FF6EC7;
  --cyan-neon:     #00F5FF;
  --green-neon:    #39FF14;

  --text-primary:  #F0EAF8;
  --text-secondary:#A89BC2;
  --text-muted:    #6B5F80;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   999px;

  --shadow-card:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 20px rgba(155,89,182,0.4);
  --shadow-gold:   0 0 16px rgba(255,215,0,0.3);

  --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;

  --nav-height:    70px;
  --topbar-height: 60px;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── Screen System ── */
.screen {
  position: fixed; inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}
.screen.active { display: flex; }

/* ═══════════════════════════════════════════════════════════
   SPLASH SCREEN
═══════════════════════════════════════════════════════════ */
#splash-screen {
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.splash-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 6s ease-in-out infinite;
}
.orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(155,89,182,0.5), transparent);
  top: -80px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(199,125,255,0.3), transparent);
  bottom: -60px; right: -60px;
  animation-delay: 2s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,215,0,0.15), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-20px) scale(1.05); }
}

.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
}

.splash-logo {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}

.logo-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, #9B59B6, #6C3483);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(155,89,182,0.6), 0 0 80px rgba(155,89,182,0.2);
  animation: logoPulse 2s ease-in-out infinite;
}
.logo-icon.small {
  width: 40px; height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(155,89,182,0.5);
}

@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 40px rgba(155,89,182,0.6), 0 0 80px rgba(155,89,182,0.2); }
  50% { box-shadow: 0 0 60px rgba(155,89,182,0.9), 0 0 120px rgba(155,89,182,0.4); }
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, #C77DFF, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.logo-tagline {
  font-size: 13px; color: var(--text-secondary);
  letter-spacing: 3px; text-transform: uppercase;
}

.splash-loader { width: 200px; }
.loader-bar {
  height: 3px; background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full); overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-bright), var(--gold));
  border-radius: var(--radius-full);
  animation: loadFill 2s ease-in-out forwards;
}
@keyframes loadFill {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH SCREEN
═══════════════════════════════════════════════════════════ */
#auth-screen {
  background: var(--bg-deep);
  overflow-y: auto;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 40px;
}

.auth-bg {
  position: fixed; inset: 0;
  overflow: hidden; pointer-events: none;
}

.auth-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(155,89,182,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,89,182,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-container {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex; flex-direction: column; gap: 24px;
}

.auth-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
}
.auth-logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #C77DFF, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Auth Tabs */
.auth-tabs {
  display: flex; position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px;
}
.auth-tab {
  flex: 1; padding: 10px;
  background: none; border: none;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: var(--radius-full);
  transition: var(--transition); position: relative; z-index: 2;
}
.auth-tab.active { color: var(--text-primary); }
.auth-tab-indicator {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-bright));
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 0 16px rgba(155,89,182,0.4);
}
.auth-tab-indicator.right { left: calc(50%); }

/* Auth Forms */
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; animation: fadeSlideUp 0.4s ease; }

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

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 14px;
  font-size: 16px; pointer-events: none;
}
.form-input {
  width: 100%; padding: 14px 14px 14px 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--purple-bright);
  background: var(--bg-glass-2);
  box-shadow: 0 0 0 3px rgba(155,89,182,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input[type="date"] { color-scheme: dark; }

.toggle-pass {
  position: absolute; right: 14px;
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  color: var(--text-muted);
}

.form-row {
  display: flex; align-items: center;
  justify-content: space-between;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--purple-bright);
}
.checkbox-label a { color: var(--purple-neon); text-decoration: none; }
.forgot-link {
  font-size: 13px; color: var(--purple-neon);
  text-decoration: none;
}

/* Primary Button */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #9B59B6, #6C3483);
  border: none; border-radius: var(--radius-md);
  color: white; font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(155,89,182,0.4);
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(155,89,182,0.6);
}
.btn-primary:active { transform: translateY(0); }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border-glass);
}

/* Social Buttons */
.social-btns { display: flex; gap: 12px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.social-btn:hover {
  background: var(--bg-glass-2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* Gender Select */
.gender-select { display: flex; flex-direction: column; gap: 8px; }
.gender-select label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.5px;
  text-transform: uppercase;
}
.gender-options { display: flex; gap: 8px; }
.gender-btn {
  flex: 1; padding: 10px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.gender-btn.active {
  background: rgba(155,89,182,0.2);
  border-color: var(--purple-bright);
  color: var(--purple-neon);
}

.terms-row { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════════════════ */
#app-shell {
  background: var(--bg-deep);
  flex-direction: column;
}

/* ── Top Bar ── */
.top-bar {
  height: var(--topbar-height);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(8,6,18,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: relative; z-index: 100;
  flex-shrink: 0;
}

.top-bar-left, .top-bar-right {
  display: flex; align-items: center; gap: 12px;
}

.app-logo-small {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, #C77DFF, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.icon-btn {
  background: none; border: none;
  cursor: pointer; color: var(--text-primary);
  display: flex; align-items: center;
  padding: 6px; border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-glass); }

.coin-display {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px; font-weight: 700;
  color: var(--gold);
}

.notif-btn { position: relative; }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--pink-neon);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.avatar-btn {
  position: relative; background: none; border: none;
  cursor: pointer; padding: 0;
}
.top-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--purple-bright);
}
.vip-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--purple-neon), var(--gold));
  z-index: -1;
  animation: vipSpin 3s linear infinite;
}
@keyframes vipSpin { to { transform: rotate(360deg); } }

/* ── Page Content ── */
.page-content {
  flex: 1; overflow: hidden;
  position: relative;
}

.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  display: none;
  padding-bottom: calc(var(--nav-height) + 16px);
  scroll-behavior: smooth;
}
.page.active { display: block; animation: pageIn 0.3s ease; }

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

/* Scrollbar */
.page::-webkit-scrollbar { width: 3px; }
.page::-webkit-scrollbar-track { background: transparent; }
.page::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 2px; }

/* ── Bottom Nav ── */
.bottom-nav {
  height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(8,6,18,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 0 8px;
  flex-shrink: 0;
  position: relative; z-index: 100;
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: none; border: none;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  cursor: pointer; padding: 8px 4px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-item.active { color: var(--purple-neon); }
.nav-item.active svg { stroke: var(--purple-neon); }
.nav-item svg { transition: var(--transition); }

.nav-center { flex: 0 0 70px; }
.nav-center-btn {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #9B59B6, #6C3483);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(155,89,182,0.5);
  transition: var(--transition);
  margin-bottom: 2px;
}
.nav-center:hover .nav-center-btn {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(155,89,182,0.8);
}
.nav-center svg { stroke: white; }

/* ═══════════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════════ */

/* Search Bar */
.search-bar-wrap {
  display: flex; gap: 10px;
  padding: 16px 16px 8px;
}
.search-bar {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 16px;
}
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: none; border: none;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.filter-btn {
  width: 44px; height: 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--purple-bright); color: var(--purple-neon); }

/* Category Pills */
.category-scroll {
  display: flex; gap: 8px;
  padding: 8px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.cat-pill.active {
  background: linear-gradient(135deg, rgba(155,89,182,0.3), rgba(108,52,131,0.3));
  border-color: var(--purple-bright);
  color: var(--purple-neon);
}
.cat-pill:hover { border-color: var(--purple-bright); color: var(--text-primary); }

/* Featured Banner */
.featured-banner {
  margin: 8px 16px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 160px;
  position: relative;
}
.featured-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 20px;
}
.featured-bg {
  position: absolute; inset: 0;
}
.featured-content {
  position: relative; z-index: 2;
  flex: 1;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,50,50,0.2);
  border: 1px solid rgba(255,50,50,0.4);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  color: #FF6B6B; letter-spacing: 1px;
  margin-bottom: 8px;
}
.live-badge.pulse { animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.featured-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  color: white; margin-bottom: 4px;
}
.featured-content p {
  font-size: 12px; color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.btn-join-featured {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-mid));
  border: none; border-radius: var(--radius-full);
  color: white; font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(155,89,182,0.4);
}
.btn-join-featured:hover { transform: scale(1.05); }

.featured-avatars {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: -8px;
}
.featured-avatars img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  margin-bottom: -12px;
}

/* Section Header */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
}
.see-all {
  font-size: 12px; color: var(--purple-neon);
  text-decoration: none; font-weight: 600;
  cursor: pointer;
}

/* Rooms Grid */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 0 16px;
}
.rooms-grid.full { padding-bottom: 16px; }

.room-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer; transition: var(--transition);
  position: relative;
}
.room-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.room-card-cover {
  height: 80px;
  position: relative; overflow: hidden;
}
.room-card-cover-bg {
  position: absolute; inset: 0;
}
.room-card-live {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,50,50,0.85);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 10px; font-weight: 700;
  color: white; letter-spacing: 1px;
}
.room-card-body { padding: 10px; }
.room-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-card-meta {
  display: flex; align-items: center;
  justify-content: space-between;
}
.room-card-listeners {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.room-card-avatars {
  display: flex;
}
.room-card-avatars img {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--bg-deep);
  margin-left: -6px;
}
.room-card-avatars img:first-child { margin-left: 0; }

/* Hosts Scroll */
.hosts-scroll {
  display: flex; gap: 12px;
  padding: 0 16px 8px;
  overflow-x: auto; scrollbar-width: none;
}
.hosts-scroll::-webkit-scrollbar { display: none; }

.host-card {
  flex-shrink: 0; width: 80px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer;
}
.host-card-avatar {
  position: relative; width: 60px; height: 60px;
}
.host-card-avatar img {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--purple-bright);
}
.host-card-live-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  background: var(--green-neon);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
}
.host-card-name {
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; width: 100%;
}

/* Games Preview */
.games-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 0 16px 16px;
}
.game-preview-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer;
}
.game-preview-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: var(--transition);
}
.game-preview-item:hover .game-preview-icon { transform: scale(1.1); }
.game-preview-name {
  font-size: 10px; font-weight: 600;
  color: var(--text-secondary); text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ROOMS PAGE
═══════════════════════════════════════════════════════════ */
.page-title-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.page-title-bar h2 {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
}
.btn-create-room {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-mid));
  border: none; border-radius: var(--radius-full);
  color: white; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(155,89,182,0.3);
}
.btn-create-room:hover { transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════
   GAMES PAGE
═══════════════════════════════════════════════════════════ */
.games-banner {
  margin: 8px 16px;
  background: linear-gradient(135deg, #1a0533, #4a0080, #1a0533);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid rgba(155,89,182,0.3);
  position: relative; overflow: hidden;
}
.games-banner::before {
  content: '🎮';
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 60px; opacity: 0.3;
}
.games-banner-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  color: white; margin-bottom: 4px;
}
.games-banner-content p {
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.prize-pool {
  font-size: 13px; color: var(--gold);
  font-weight: 700;
}

.games-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 8px 16px 16px;
}
.game-tile {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 10px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.game-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.game-tile-icon { font-size: 32px; }
.game-tile-name {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--text-primary); text-align: center;
}
.game-tile-players {
  font-size: 10px; color: var(--text-muted);
}
.game-tile-hot {
  position: absolute; top: 6px; right: 6px;
  background: rgba(255,100,0,0.2);
  border: 1px solid rgba(255,100,0,0.4);
  border-radius: var(--radius-full);
  padding: 2px 6px;
  font-size: 9px; font-weight: 700;
  color: #FF6400;
}

/* ═══════════════════════════════════════════════════════════
   LEADERBOARD PAGE
═══════════════════════════════════════════════════════════ */
.lb-tabs {
  display: flex; gap: 0;
  padding: 0 16px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tab {
  flex-shrink: 0; padding: 8px 16px;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.lb-tab:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.lb-tab:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.lb-tab.active {
  background: rgba(155,89,182,0.2);
  border-color: var(--purple-bright);
  color: var(--purple-neon);
}

.lb-podium {
  display: flex; align-items: flex-end;
  justify-content: center; gap: 8px;
  padding: 0 16px 20px;
}
.podium-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  flex: 1;
}
.podium-avatar-wrap { position: relative; }
.podium-avatar {
  border-radius: 50%;
  border: 3px solid var(--border-glass);
}
.podium-item:nth-child(1) .podium-avatar { width: 70px; height: 70px; border-color: var(--gold); }
.podium-item:nth-child(2) .podium-avatar { width: 56px; height: 56px; border-color: #C0C0C0; }
.podium-item:nth-child(3) .podium-avatar { width: 50px; height: 50px; border-color: #CD7F32; }
.podium-rank {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
}
.podium-item:nth-child(1) .podium-rank { color: var(--gold); font-size: 24px; }
.podium-item:nth-child(2) .podium-rank { color: #C0C0C0; }
.podium-item:nth-child(3) .podium-rank { color: #CD7F32; }
.podium-name {
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary); text-align: center;
}
.podium-score {
  font-size: 11px; color: var(--gold);
  font-weight: 700;
}
.podium-base {
  width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex; align-items: center; justify-content: center;
}
.podium-item:nth-child(1) .podium-base { height: 60px; background: linear-gradient(180deg, rgba(255,215,0,0.2), rgba(255,215,0,0.05)); border: 1px solid rgba(255,215,0,0.3); }
.podium-item:nth-child(2) .podium-base { height: 44px; background: linear-gradient(180deg, rgba(192,192,192,0.15), rgba(192,192,192,0.03)); border: 1px solid rgba(192,192,192,0.2); }
.podium-item:nth-child(3) .podium-base { height: 32px; background: linear-gradient(180deg, rgba(205,127,50,0.15), rgba(205,127,50,0.03)); border: 1px solid rgba(205,127,50,0.2); }

.lb-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
}
.lb-rank {
  width: 28px; text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--text-muted);
}
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border-glass); }
.lb-info { flex: 1; }
.lb-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.lb-sub { font-size: 11px; color: var(--text-muted); }
.lb-score { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════════════════ */
.profile-header-bg { position: relative; height: 180px; }
.profile-cover {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a0533, #4a0080, #2d0060);
}
.profile-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239B59B6' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.back-btn-profile {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white;
}
.profile-avatar-wrap {
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.profile-avatar-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--gold), var(--purple-neon), var(--gold));
  animation: vipSpin 3s linear infinite;
}
.profile-avatar-img {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 3px solid var(--bg-deep);
}
.vip-crown {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
}

.profile-body {
  padding: 52px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.profile-name-row {
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
}
.profile-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
}
.vip-badge {
  background: linear-gradient(135deg, var(--gold), #FF8C00);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11px; font-weight: 800;
  color: #1a0533;
}
.profile-id {
  text-align: center; font-size: 12px;
  color: var(--text-muted);
}
.online-dot { color: var(--green-neon); }
.profile-bio {
  text-align: center; font-size: 13px;
  color: var(--text-secondary);
  padding: 0 20px;
}
.profile-stats {
  display: flex; gap: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 14px 8px;
  border-right: 1px solid var(--border-glass);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800;
  color: var(--text-primary);
}
.stat-label { font-size: 10px; color: var(--text-muted); }

.profile-actions { display: flex; gap: 10px; }
.btn-follow {
  flex: 1; padding: 12px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-mid));
  border: none; border-radius: var(--radius-md);
  color: white; font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.btn-message {
  flex: 1; padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary); font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.btn-gift-profile {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-md);
  color: var(--gold); font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}

.badges-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
}
.badges-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.badge-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.badge-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border-glass);
}
.badge-name { font-size: 9px; color: var(--text-muted); text-align: center; }

.level-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.level-header {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 8px;
}
.level-bar {
  height: 6px; background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full); overflow: hidden;
}
.level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-bright), var(--gold));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ═══════════════════════════════════════════════════════════
   WALLET PAGE
═══════════════════════════════════════════════════════════ */
.wallet-card {
  margin: 16px;
  background: linear-gradient(135deg, #1a0533, #4a0080);
  border: 1px solid rgba(155,89,182,0.4);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative; overflow: hidden;
}
.wallet-bg-glow {
  position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,215,0,0.2), transparent);
  border-radius: 50%;
}
.wallet-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.wallet-label { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }
.wallet-icon { font-size: 24px; }
.wallet-balance {
  font-family: 'Syne', sans-serif;
  font-size: 36px; font-weight: 800;
  color: white; margin-bottom: 20px;
}
.wallet-balance span { font-size: 16px; color: rgba(255,255,255,0.6); }
.wallet-actions { display: flex; gap: 12px; }
.wallet-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: white; font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.wallet-btn:hover { background: rgba(255,255,255,0.25); }
.wallet-btn.outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
}

.coin-packages {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 0 16px;
}
.coin-pkg {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; transition: var(--transition);
  position: relative;
}
.coin-pkg:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.coin-pkg.popular {
  border-color: var(--gold);
  background: rgba(255,215,0,0.05);
}
.coin-pkg-popular-tag {
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 9px; font-weight: 800;
  color: #1a0533; white-space: nowrap;
}
.coin-pkg-icon { font-size: 28px; }
.coin-pkg-amount {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 800;
  color: var(--gold);
}
.coin-pkg-price {
  font-size: 12px; color: var(--text-secondary);
  font-weight: 600;
}

.gift-catalog {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 0 16px;
}
.gift-catalog-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  cursor: pointer; transition: var(--transition);
}
.gift-catalog-item:hover {
  border-color: var(--purple-bright);
  transform: scale(1.05);
}
.gift-catalog-icon { font-size: 28px; }
.gift-catalog-name { font-size: 10px; color: var(--text-secondary); text-align: center; }
.gift-catalog-price {
  font-size: 10px; color: var(--gold);
  font-weight: 700; display: flex; align-items: center; gap: 2px;
}

.transactions-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.tx-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
}
.tx-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.tx-info { flex: 1; }
.tx-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.tx-date { font-size: 11px; color: var(--text-muted); }
.tx-amount { font-size: 14px; font-weight: 700; }
.tx-amount.credit { color: var(--green-neon); }
.tx-amount.debit { color: var(--pink-neon); }

/* ═══════════════════════════════════════════════════════════
   VOICE ROOM OVERLAY
═══════════════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
}
.overlay.active { display: block; animation: overlayIn 0.4s cubic-bezier(0.4,0,0.2,1); }
@keyframes overlayIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.room-screen {
  position: absolute; inset: 0;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.room-bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.room-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
}
.room-bg-orb.r1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(155,89,182,0.3), transparent);
  top: -100px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.room-bg-orb.r2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,215,0,0.1), transparent);
  bottom: 100px; right: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

/* Room Header */
.room-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(8,6,18,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: relative; z-index: 10;
  flex-shrink: 0;
}
.room-back {
  width: 36px; height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-primary);
  flex-shrink: 0;
}
.room-title-info { flex: 1; min-width: 0; }
.room-title-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-meta {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.live-dot { color: #FF4444; animation: livePulse 1.5s ease-in-out infinite; }
.room-header-actions { display: flex; gap: 8px; }
.room-icon-btn {
  width: 36px; height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  transition: var(--transition);
}
.room-icon-btn:hover { border-color: var(--purple-bright); }

/* Host Area */
.host-area {
  display: flex; justify-content: center;
  padding: 20px 16px 10px;
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.host-seat {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  position: relative;
}
.host-avatar-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: var(--border-glass);
  position: relative;
}
.host-avatar-ring.speaking {
  background: conic-gradient(var(--purple-neon), var(--cyan-neon), var(--purple-neon));
  animation: speakingRing 1s linear infinite;
}
@keyframes speakingRing { to { transform: rotate(360deg); } }
.host-avatar-ring img {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
}
.host-crown {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
}
.seat-name {
  font-size: 12px; font-weight: 700;
  color: var(--text-primary);
}
.host-label {
  font-size: 10px; color: var(--purple-neon);
  background: rgba(155,89,182,0.2);
  border: 1px solid rgba(155,89,182,0.3);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

/* Co-host Grid */
.cohost-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0 16px;
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.cohost-seat {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  cursor: pointer;
}
.cohost-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  background: var(--bg-glass);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: var(--transition);
}
.cohost-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.cohost-avatar.empty {
  border-style: dashed;
  border-color: rgba(155,89,182,0.3);
}
.cohost-avatar.empty::after {
  content: '+';
  font-size: 20px; color: rgba(155,89,182,0.5);
}
.cohost-avatar.speaking {
  border-color: var(--purple-neon);
  box-shadow: 0 0 12px rgba(199,125,255,0.5);
}
.cohost-mic {
  position: absolute; bottom: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--bg-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
}
.cohost-name {
  font-size: 10px; color: var(--text-muted);
  text-align: center; max-width: 60px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Gift Animation Zone */
.gift-animation-zone {
  position: absolute;
  top: 180px; left: 0; right: 0;
  height: 120px;
  pointer-events: none; z-index: 50;
  overflow: hidden;
}
.gift-anim {
  position: absolute;
  font-size: 40px;
  animation: giftFly 2.5s ease-out forwards;
}
@keyframes giftFly {
  0% { bottom: -50px; opacity: 1; transform: scale(0.5) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(5deg); }
  100% { bottom: 120px; opacity: 0; transform: scale(0.8) rotate(10deg); }
}

/* Room Chat */
.room-chat {
  flex: 1; overflow: hidden;
  position: relative; z-index: 2;
  padding: 8px 16px 0;
  min-height: 0;
}
.chat-messages {
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: none;
}
.chat-messages::-webkit-scrollbar { display: none; }
.chat-msg {
  display: flex; align-items: flex-start; gap: 8px;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.chat-msg-avatar {
  width: 24px; height: 24px;
  border-radius: 50%; flex-shrink: 0;
}
.chat-msg-content {
  background: rgba(255,255,255,0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 6px 10px; max-width: 80%;
}
.chat-msg-name {
  font-size: 10px; font-weight: 700;
  color: var(--purple-neon); margin-bottom: 2px;
}
.chat-msg-text { font-size: 12px; color: var(--text-primary); }
.chat-msg.system .chat-msg-content {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
}
.chat-msg.system .chat-msg-text { color: var(--gold); font-size: 11px; }

/* Room Controls */
.room-controls {
  background: rgba(8,6,18,0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 12px 16px;
  flex-shrink: 0; position: relative; z-index: 10;
}
.room-controls-top {
  display: flex; justify-content: space-around;
  margin-bottom: 12px;
}
.ctrl-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  min-width: 52px;
}
.ctrl-btn:hover { border-color: var(--purple-bright); color: var(--purple-neon); }
.ctrl-btn.active {
  background: rgba(155,89,182,0.2);
  border-color: var(--purple-bright);
  color: var(--purple-neon);
}
.ctrl-btn.muted {
  background: rgba(255,50,50,0.1);
  border-color: rgba(255,50,50,0.3);
  color: #FF6B6B;
}
.ctrl-emoji { font-size: 20px; }

.chat-input-row {
  display: flex; gap: 10px; align-items: center;
}
.chat-input {
  flex: 1; padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; outline: none;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--purple-bright); }
.chat-input::placeholder { color: var(--text-muted); }
.send-btn {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-mid));
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white;
  transition: var(--transition);
  flex-shrink: 0;
}
.send-btn:hover { transform: scale(1.1); box-shadow: 0 0 16px rgba(155,89,182,0.5); }

/* ═══════════════════════════════════════════════════════════
   BOTTOM SHEETS (Gift Panel, Game Panel, etc.)
═══════════════════════════════════════════════════════════ */
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #0f0a1e;
  border-top: 1px solid var(--border-glass);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.bottom-sheet::-webkit-scrollbar { display: none; }
.bottom-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}
.sheet-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}
.sheet-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
}
.close-sheet {
  width: 28px; height: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  font-size: 12px;
}
.my-coins {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--gold);
}

/* Gift Tabs */
.gift-tabs {
  display: flex; gap: 0;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border-glass);
}
.gift-tab {
  flex: 1; padding: 8px;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.gift-tab:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.gift-tab:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.gift-tab.active {
  background: rgba(155,89,182,0.2);
  border-color: var(--purple-bright);
  color: var(--purple-neon);
}

/* Gift Grid */
.gift-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 12px 16px;
}
.gift-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  background: var(--bg-glass);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 6px;
  cursor: pointer; transition: var(--transition);
}
.gift-item:hover { border-color: var(--purple-bright); transform: scale(1.05); }
.gift-item.selected {
  border-color: var(--gold);
  background: rgba(255,215,0,0.08);
  box-shadow: 0 0 12px rgba(255,215,0,0.2);
}
.gift-item-icon { font-size: 30px; }
.gift-item-name { font-size: 10px; color: var(--text-secondary); text-align: center; }
.gift-item-price {
  font-size: 10px; color: var(--gold);
  font-weight: 700; display: flex; align-items: center; gap: 2px;
}

.gift-send-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px 24px;
  border-top: 1px solid var(--border-glass);
}
.selected-gift-info { font-size: 13px; color: var(--text-muted); }
.btn-send-gift {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold), #FF8C00);
  border: none; border-radius: var(--radius-full);
  color: #1a0533; font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}
.btn-send-gift:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(255,215,0,0.5); }

/* In-Room Games */
.in-room-games {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 8px 16px 24px;
}
.in-room-game {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; transition: var(--transition);
}
.in-room-game:hover {
  border-color: var(--purple-bright);
  transform: translateY(-2px);
}
.in-room-game-icon { font-size: 28px; }
.in-room-game-name {
  font-size: 11px; font-weight: 700;
  color: var(--text-primary); text-align: center;
}
.in-room-game-players { font-size: 10px; color: var(--text-muted); }

/* Notifications */
.notif-list { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
}
.notif-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-time { font-size: 11px; color: var(--text-muted); }
.notif-unread { border-left: 3px solid var(--purple-neon); }

/* Sheet Backdrop */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 290;
  display: none;
}
.sheet-backdrop.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,10,30,0.95);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  z-index: 500;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(20px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .cohost-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .games-full-grid { grid-template-columns: repeat(3, 1fr); }
  .gift-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 480px) {
  #auth-screen { justify-content: center; }
  .auth-container { padding: 40px 24px; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
  .games-full-grid { grid-template-columns: repeat(4, 1fr); }
  .coin-packages { grid-template-columns: repeat(4, 1fr); }
}

/* ── Utility ── */
.hidden { display: none !important; }