/* =====================================================
   THE DROP — Main Stylesheet
   Dark mode, mobile-first
   ===================================================== */

:root {
  --bg: #0a0a0f;
  --bg2: #13131a;
  --bg3: #1c1c26;
  --surface: #1e1e2e;
  --surface2: #252535;
  --border: #2a2a3d;
  --accent: #009900;        /* Jamaican Green */
  --accent2: #FFCC00;       /* Jamaican Gold */
  --accent-glow: rgba(0, 153, 0, 0.3);
  --gold: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 20px var(--accent-glow);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

/* =====================================================
   NAV
   ===================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent2), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--surface);
  color: var(--text);
}

.nav-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: pulse-red 2s infinite;
}

.nav-live-badge .dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
@keyframes pulse-live {
  0%,100% { box-shadow: 0 0 8px rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 20px rgba(239,68,68,0.9), 0 0 40px rgba(239,68,68,0.3); }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ef4444;
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: pulse-live 2s infinite;
  vertical-align: middle;
}
.live-pill-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent2);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface2);
}

.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover {
  background: #fbbf24;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* =====================================================
   FORMS
   ===================================================== */

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 0, 0.15);
}

.form-input::placeholder { color: var(--text3); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-sm { padding: 1rem; }

/* =====================================================
   PAGE CONTAINERS
   ===================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-section {
  padding: 3rem 0;
}

/* =====================================================
   AUTH PAGES
   ===================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: radial-gradient(ellipse at top, rgba(0, 153, 0, 0.08) 0%, transparent 60%);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .logo-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent2), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo .logo-sub {
  font-size: 0.85rem;
  color: var(--text3);
  margin-top: 0.25rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text3);
}

/* =====================================================
   LIVE PAGE
   ===================================================== */

/* Desktop: grid layout with chat sidebar */
.live-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: calc(100vh - 60px);
  overflow: hidden;
  position: relative;
}

.live-video-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.live-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.live-title {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.viewer-count {
  font-size: 0.85rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jitsi-container {
  flex: 1 1 0;
  min-height: 0;
  background: #000;
  overflow: hidden;
  position: relative; /* REQUIRED — iframe inside uses position:absolute */
}

#jitsi-inner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
}

#jitsi-inner iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.live-actions {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* Donation button */
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #00d632;
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.15s;
  text-decoration: none;
}
.donate-btn:hover {
  background: #00ff3e;
  color: #000;
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(0, 214, 50, 0.4);
}

/* =====================================================
   CHAT SIDEBAR
   ===================================================== */

.chat-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pinned-message {
  padding: 0.6rem 1rem;
  background: rgba(0, 153, 0, 0.12);
  border-left: 3px solid var(--accent);
  margin: 0.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
}

.pinned-label {
  font-size: 0.7rem;
  color: var(--accent2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
  transition: background 0.1s;
}

.chat-msg:hover { background: var(--surface); }

.chat-msg .author {
  font-weight: 700;
  margin-right: 0.4rem;
}

.chat-msg .author.host { color: var(--gold); }
.chat-msg .author.mod { color: var(--green); }
.chat-msg .author.viewer { color: var(--accent2); }

.chat-msg .text { color: var(--text); }

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}

.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text3); }

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.chat-send-btn:hover { background: var(--accent2); }

/* =====================================================
   FLOATING HEARTS
   ===================================================== */

#hearts-container {
  position: fixed;
  bottom: 80px;
  right: 380px;
  width: 60px;
  pointer-events: none;
  z-index: 200;
}

.heart {
  position: absolute;
  bottom: 0;
  font-size: 1.4rem;
  animation: float-up 3s ease-out forwards;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes float-up {
  0% { opacity: 1; bottom: 0; transform: translateX(calc(-50% + var(--drift))); }
  80% { opacity: 1; }
  100% { opacity: 0; bottom: 200px; transform: translateX(calc(-50% + var(--drift))); }
}

.react-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.react-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
  transform: scale(1.05);
}

/* =====================================================
   EVENTS BOARD
   ===================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.event-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.event-card-img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.85rem;
}

.event-card-body {
  padding: 1rem;
}

.event-card-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.event-card-meta {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text3);
}

/* =====================================================
   BLOG
   ===================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.blog-card-img {
  height: 180px;
  background: var(--bg3);
  overflow: hidden;
}

.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-body { padding: 1.25rem; }

.blog-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent2);
  border: 1px solid var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =====================================================
   COMMENTS
   ===================================================== */

.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.comments-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comment {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.comment-body { flex: 1; }

.comment-author {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text3);
  margin-left: 0.5rem;
  font-weight: 400;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.5;
}

.comment-input-area {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.comment-textarea {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  min-height: 70px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.comment-textarea:focus { border-color: var(--accent); }
.comment-textarea::placeholder { color: var(--text3); }

/* =====================================================
   ARCHIVE PAGE
   ===================================================== */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

.archive-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.yt-embed-wrapper {
  aspect-ratio: 16/9;
  background: #000;
}

.yt-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.archive-card-body { padding: 1rem; }

.archive-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.archive-card-meta {
  font-size: 0.8rem;
  color: var(--text3);
}

/* =====================================================
   HOST DASHBOARD
   ===================================================== */

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}

.dashboard-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.dashboard-nav a:hover, .dashboard-nav a.active {
  background: var(--surface);
  color: var(--text);
  border-left-color: var(--accent);
}

.dashboard-content {
  padding: 2rem;
  overflow-y: auto;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 500;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */

.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text2);
  font-size: 1.05rem;
}

/* =====================================================
   BADGE
   ===================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-live { background: var(--red); color: #fff; }
.badge-upcoming { background: var(--surface2); color: var(--text2); }
.badge-archived { background: var(--bg3); color: var(--text3); }

/* =====================================================
   DIVIDER
   ===================================================== */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* =====================================================
   TOASTS / ALERTS
   ===================================================== */

.toast-container {
  position: fixed;
  top: 70px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  min-width: 280px;
  animation: slide-in 0.2s ease-out;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* =====================================================
   EMPTY STATE
   ===================================================== */

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text3);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text2); }
.empty-state-text { font-size: 0.9rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {

  /* ══════════════════════════════════════════════════════
     LIVE PAGE — TikTok-style fullscreen mobile layout
     Video fills entire 9:16 viewport, everything overlaid
     ══════════════════════════════════════════════════════ */

  /* Entire live layout = one fullscreen container, NO grid */
  .live-layout {
    display: block !important;
    grid-template-columns: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #000 !important;
    z-index: 100;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Video area = fullscreen layer behind all overlays */
  .live-video-area {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: block !important;
    z-index: 1;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Jitsi fills entire screen — from top to bottom, no gaps */
  .jitsi-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: none !important;
    background: #000 !important;
    overflow: hidden !important;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  #jitsi-inner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #jitsi-inner iframe {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: none !important;
    display: block !important;
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ── TikTok-style chat overlay ──
     Floats over the bottom-left of the video
     Semi-transparent, no background, just floating messages */
  .chat-sidebar {
    position: absolute !important;
    bottom: 120px !important; /* above action bar */
    left: 0 !important;
    right: auto !important;
    width: 75% !important;
    max-width: 320px !important;
    height: 40vh !important;
    max-height: 320px !important;
    background: transparent !important;
    border: none !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
    overflow: visible !important;
  }

  /* Hide chat header on mobile — TikTok shows no header */
  .chat-sidebar .chat-header { display: none !important; }

  /* Pinned message — subtle floating pill */
  .chat-sidebar .pinned-message {
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin: 0 0.5rem 0.25rem;
    font-size: 0.75rem;
    border-radius: 10px;
  }

  /* Messages list — fade at top, float at bottom */
  .chat-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0.5rem 0.75rem !important;
    gap: 0.15rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background: transparent !important;
    /* Fade mask — messages appear to emerge from nothing */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%) !important;
    pointer-events: none !important;
    scrollbar-width: none !important;
  }
  .chat-messages::-webkit-scrollbar { display: none !important; }

  /* Individual messages — TikTok style: floating pills */
  .chat-msg {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-radius: 100px !important;
    padding: 0.3rem 0.7rem !important;
    margin-bottom: 0.15rem !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    color: #fff !important;
    clear: both !important;
    float: left !important;
  }
  .chat-msg:hover { background: rgba(0,0,0,0.5) !important; }
  .chat-msg .author { font-size: 0.78rem !important; }
  .chat-msg .delete-btn { display: none !important; }

  /* ── Chat input — fixed bottom bar ── */
  .chat-input-area {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0.5rem 0.75rem !important;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
    border: none !important;
    pointer-events: auto !important;
    z-index: 130 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .chat-input-row {
    flex: 1 !important;
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 100px !important;
    padding: 0.15rem 0.15rem 0.15rem 0.85rem !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    display: flex !important;
    align-items: center !important;
  }

  .chat-input {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    font-size: 0.88rem !important;
    color: #fff !important;
    flex: 1 !important;
  }
  .chat-input:focus { border: none !important; box-shadow: none !important; outline: none !important; }
  .chat-input::placeholder { color: rgba(255,255,255,0.5) !important; }

  .chat-send-btn {
    background: rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }

  #login-prompt {
    pointer-events: auto !important;
  }
  #login-prompt a { color: var(--accent2) !important; }

  /* ── Reaction bar — right side, vertical column (TikTok style) ── */
  .live-actions {
    position: fixed !important;
    bottom: 70px !important;
    right: 0.5rem !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    padding: 0.4rem !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    z-index: 150 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .live-actions > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: center !important;
    pointer-events: auto !important;
  }

  .react-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
  }

  .donate-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    background: rgba(0,214,50,0.2) !important;
    border: 1px solid rgba(0,214,50,0.3) !important;
    border-radius: 50% !important;
    color: #fff !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
  .donate-btn .donate-label { display: none !important; }

  .share-circle-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  /* ── Hearts — right side, above action buttons ── */
  #hearts-container {
    position: fixed !important;
    right: 0.75rem !important;
    bottom: 200px !important;
    z-index: 200 !important;
    width: 50px !important;
  }

  /* ── Live header — hidden on mobile, replaced by TikTok-style pills ── */
  .live-header {
    display: none !important;
  }

  /* ── Host panel — scrollable bar at very top, transparent over video ── */
  .host-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0.35rem 0.5rem !important;
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px)) !important;
    background: rgba(0,0,0,0.45) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.35rem !important;
    z-index: 30 !important;
    border: none !important;
  }
  .host-panel::-webkit-scrollbar { display: none !important; }
  .host-panel .btn { flex-shrink: 0 !important; font-size: 0.68rem !important; padding: 0.25rem 0.5rem !important; }

  /* When host panel visible, push live-header down */
  .host-panel.visible ~ .live-video-area .live-header {
    top: 38px !important;
  }

  /* ── Share bar — hidden on mobile TikTok view (use share icon in action bar) ── */
  .share-bar {
    display: none !important;
  }

  /* ── Logo overlay on mobile — positioned over Jitsi watermark (large) ── */
  #jitsi-logo-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    padding: 8px 10px !important;
  }
  #jitsi-logo-overlay img {
    height: 44px !important;
  }

  /* ── Offline state — centered fullscreen ── */
  .offline-state {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    min-height: 0 !important;
  }

  /* ── Go Live Modal ── */
  .go-live-modal { padding: 0 !important; align-items: flex-end !important; }
  .go-live-box { border-radius: 20px 20px 0 0 !important; max-height: 95vh !important; padding: 1.25rem 1rem 2rem !important; }
  #host-go-live-btn { display: block !important; }

  /* ── Hide desktop nav on live page ── */
  body.live-page .nav { display: none !important; }
  body.live-page .mobile-bottom-nav { display: none !important; }
  body.live-page { padding-bottom: 0 !important; overflow: hidden !important; }

  /* ── Close/back button (injected via JS) ── */
  .tiktok-close-btn {
    position: fixed !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    z-index: 35 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* ── Viewer count badge (TikTok style) ── */
  .tiktok-viewer-badge {
    position: fixed;
    top: 0.75rem;
    right: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 100px;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    z-index: 35;
  }

  /* ── Host info pill (TikTok style top-left) ── */
  .tiktok-host-pill {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 100px;
    padding: 0.25rem 0.65rem 0.25rem 0.25rem;
    z-index: 35;
    max-width: 65%;
  }
  .tiktok-host-pill .host-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
  }
  .tiktok-host-pill .host-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tiktok-host-pill .live-tag {
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }

  /* ── Join notification in chat ── */
  .join-notification {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    padding: 0.1rem 0.6rem;
    display: block;
    clear: both;
  }
  .join-notification .join-name { color: rgba(255,255,255,0.7); font-weight: 600; }

  /* ══════════════════════════════════════════════════════
     MULTI-GUEST LAYOUT — Grid & Panel modes (TikTok-style)
     ══════════════════════════════════════════════════════ */

  /* Container wraps the jitsi-container when multi-guest is active */
  .multigrid-container {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: grid;
    gap: 2px;
    background: #000;
  }

  /* Grid mode: equal tiles (up to 8 + host = 9 max) */
  .multigrid-container.layout-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }
  .multigrid-container.layout-grid.guests-1 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .multigrid-container.layout-grid.guests-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .multigrid-container.layout-grid.guests-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .multigrid-container.layout-grid.guests-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
  .multigrid-container.layout-grid.guests-5,
  .multigrid-container.layout-grid.guests-6 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .multigrid-container.layout-grid.guests-7,
  .multigrid-container.layout-grid.guests-8 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

  /* Panel mode: host = big main, guests = small sidebar/bottom strip */
  .multigrid-container.layout-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .multigrid-tile {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
  }
  .multigrid-tile iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }
  .multigrid-tile .tile-label {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.4);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    z-index: 3;
  }
  .multigrid-tile.is-host { border: 2px solid rgba(0,153,0,0.6); }

  /* Panel mode: host tile fills top, guests strip at bottom */
  .multigrid-container.layout-panel .multigrid-tile.is-host {
    grid-column: 1 / -1;
  }
  .multigrid-guest-strip {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 120px;
    flex-shrink: 0;
  }
  .multigrid-guest-strip::-webkit-scrollbar { display: none; }
  .multigrid-guest-strip .multigrid-tile {
    flex: 0 0 100px;
    height: 100%;
  }

  /* Layout toggle button (host only) */
  .layout-toggle-btn {
    position: fixed;
    top: 50px;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 35;
  }

  /* ══════════════════════════════════════════════════════
     GIFT/COIN SYSTEM
     ══════════════════════════════════════════════════════ */

  /* Gift button in action column */
  .gift-circle-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.3rem !important;
    background: rgba(255,215,0,0.15) !important;
    border: 1px solid rgba(255,215,0,0.3) !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
  }

  /* Gift picker panel */
  .gift-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20,20,30,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px 20px 0 0;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .gift-picker.open { transform: translateY(0); }

  .gift-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }
  .gift-picker-title { font-size: 0.9rem; font-weight: 800; color: #fff; }
  .gift-picker-coins {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent2);
  }
  .gift-picker-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
  }

  .gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .gift-grid::-webkit-scrollbar { display: none; }

  .gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.3rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
  }
  .gift-item:active,
  .gift-item.selected { border-color: var(--accent2); background: rgba(255,204,0,0.1); }
  .gift-item .gift-emoji { font-size: 1.5rem; }
  .gift-item .gift-name { font-size: 0.6rem; color: rgba(255,255,255,0.7); font-weight: 600; }
  .gift-item .gift-cost { font-size: 0.6rem; color: var(--accent2); font-weight: 700; }

  /* Gift animation overlay */
  .gift-fly {
    position: fixed;
    z-index: 60;
    font-size: 3rem;
    pointer-events: none;
    animation: gift-fly-up 2.5s ease-out forwards;
  }
  @keyframes gift-fly-up {
    0% { opacity: 1; transform: scale(0.5) translateY(0); }
    30% { opacity: 1; transform: scale(1.2) translateY(-60px); }
    100% { opacity: 0; transform: scale(0.8) translateY(-200px); }
  }

  /* Gift message in chat */
  .chat-gift-msg {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: rgba(255,204,0,0.1) !important;
    border: 1px solid rgba(255,204,0,0.2) !important;
    padding: 0.3rem 0.7rem !important;
    border-radius: 100px !important;
    font-size: 0.78rem !important;
    color: var(--accent2) !important;
    clear: both !important;
    float: left !important;
    margin-bottom: 0.15rem !important;
  }
  .chat-gift-msg .gift-sender { font-weight: 700; color: #fff; }

  /* Request to join button for viewers */
  .request-join-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    background: rgba(0,153,0,0.2) !important;
    border: 1px solid rgba(0,153,0,0.3) !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    position: relative;
  }

  /* Host: pending requests badge */
  .request-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Join requests panel (host sees) */
  .join-requests-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20,20,30,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px 20px 0 0;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 50vh;
    overflow-y: auto;
  }
  .join-requests-panel.open { transform: translateY(0); }

  .join-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .join-request-item .req-name { font-size: 0.88rem; font-weight: 600; color: #fff; }
  .join-request-item .req-actions { display: flex; gap: 0.5rem; }
  .join-request-item .req-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
  }
  .join-request-item .req-decline {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
  }

  /* ── Dashboard ── */
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dashboard-sidebar::-webkit-scrollbar { display: none; }
  .dashboard-nav { display: flex; }
  .dashboard-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
  .dashboard-nav a.active { border-bottom-color: var(--accent); border-left-color: transparent; }
  .dashboard-content { padding: 1rem; }
  .dashboard-title { font-size: 1.2rem; margin-bottom: 1.25rem; }

  /* ── Nav ── */
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1.1rem; }

  /* ── Go Live Modal ── */
  .go-live-box { padding: 1.25rem; border-radius: 14px; }

  /* ── Pages ── */
  .page-header { padding: 1.5rem 0 1rem; }
  .page-header h1 { font-size: 1.6rem; }
  .events-grid, .blog-grid, .archive-grid { grid-template-columns: 1fr; }

  /* ── Auth ── */
  .auth-card { padding: 1.5rem; }

  /* ── Upload progress — full width bottom ── */
  #upload-progress-overlay {
    bottom: 1rem !important;
    right: 1rem !important;
    left: 1rem !important;
    min-width: unset !important;
  }

  /* ── Session ended / host ended screen ── */
  #session-ended-screen {
    padding: 1.5rem 1rem !important;
    gap: 1rem !important;
  }
  #session-ended-screen input {
    min-width: unset !important;
    width: 100% !important;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .host-panel .btn { font-size: 0.65rem; padding: 0.28rem 0.5rem; }
  .live-title { font-size: 0.8rem; }
  .chat-msg { font-size: 0.75rem; }
}


/* ============================================================
   MOBILE — BOTTOM TAB NAV (iOS/Android app style)
   ============================================================ */

/* ====== DESKTOP HIDE (min-width only) ====== */
@media (min-width: 769px) {
  html body .mobile-bottom-nav { display: none !important; }
  html body #hamburger-btn { display: none !important; }
  html body #hamburger-menu { display: none !important; }
  html body #hamburger-backdrop { display: none !important; }
}

@media (max-width: 768px) {

  /* ===== BOTTOM TAB BAR ===== */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0f0f18;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 9999;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mbn-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    gap: 3px;
    transition: color .15s;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    padding: 6px 0 4px;
  }

  /* Active indicator — green dot above icon */
  .mbn-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: #009900;
    border-radius: 0 0 3px 3px;
  }

  .mbn-tab.active { color: #009900; }

  .mbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }
  .mbn-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }

  .mbn-label {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .02em;
    display: block;
    white-space: nowrap;
  }

  /* Push body content up so it's not hidden behind tab bar */
  body { padding-bottom: 72px !important; }

  /* ===== HAMBURGER BUTTON (top-right of nav) ===== */
  #hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    margin-left: .5rem;
    -webkit-tap-highlight-color: transparent;
    z-index: 10001;
    flex-shrink: 0;
  }
  #hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f1f5f9;
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }
  #hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ===== SLIDE-IN MENU (right side, like a drawer) ===== */
  #hamburger-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: #0f0f18;
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding-top: 64px;
    padding-bottom: 80px;
    box-shadow: -8px 0 32px rgba(0,0,0,.5);
  }
  #hamburger-menu.open { transform: translateX(0); }

  /* Backdrop */
  #hamburger-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    backdrop-filter: blur(2px);
  }
  #hamburger-backdrop.open { display: block; }

  .hmenu-inner {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
  }
  .hmenu-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background .12s, color .12s;
  }
  .hmenu-link:active, .hmenu-link:hover { background: rgba(0,153,0,.1); color: #009900; }
  .hmenu-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: .4rem 0; }
  .hmenu-signout { color: #ef4444 !important; }
  .hmenu-signout:hover { background: rgba(239,68,68,.1) !important; }

  /* ===== TOP NAV — mobile: logo + hamburger only ===== */
  .nav-links { display: none !important; }
  .nav { padding: 0 .75rem !important; }
  .nav-logo img { height: 30px !important; }
  .nav-user .btn { font-size: .72rem; padding: .28rem .55rem; }

  /* ===== LIVE PAGE — see main responsive block above ===== */
  /* All TikTok-style mobile live layout is in the first @media block */

  /* ===== ADMIN ===== */
  .admin-layout { flex-direction: column !important; }
  .admin-sidebar {
    width: 100% !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: .4rem !important;
    gap: .25rem !important;
    height: auto !important;
    min-height: 0 !important;
    flex-shrink: 0;
  }
  .admin-sidebar a { white-space: nowrap !important; padding: .5rem .85rem !important; border-radius: 8px !important; font-size: .78rem !important; }
  .admin-content { padding: .85rem !important; }

  /* ===== MESSAGES ===== */
  .messages-layout { flex-direction: column !important; }
  .messages-sidebar {
    width: 100% !important;
    max-height: 220px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    flex-shrink: 0;
  }

  /* ===== HOST PROFILE ===== */
  .about-grid { grid-template-columns: 1fr !important; }
  .sessions-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .profile-tabs { overflow-x: auto !important; }
  .cover-wrap { height: 200px !important; overflow: visible !important; }
  .profile-avatar, .profile-avatar-placeholder { width: 100px !important; height: 100px !important; }
  .profile-row { margin-top: -50px !important; position: relative !important; z-index: 5 !important; }
  .profile-name { font-size: 1.25rem !important; }

  /* ===== MODALS ===== */
  .modal-box { margin: .75rem !important; width: calc(100vw - 1.5rem) !important; max-width: none !important; }

  /* ===== TABLES (admin users grid) ===== */
  .admin-table-wrap, .table-scroll { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; display: block !important; }

}