/* ========== BASE RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: #0a0a0f; color: #e2e8f0; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all 0.15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #7c3aed; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #6d28d9; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #e2e8f0; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.4); }
.btn-ghost { background: transparent; color: #94a3b8; }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; }

/* Google button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px; border-radius: 8px;
  background: #fff; color: #1a1a1a; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-google:hover { background: #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* ========== ALERTS ========== */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast-success { background: #059669; color: #fff; }
.toast-error { background: #dc2626; color: #fff; }

/* ========== LANDING ========== */
.landing-page { background: linear-gradient(135deg, #0a0a1a 0%, #1a0533 50%, #0a0a1a 100%); }

/* TV Mode - Only show QR widget */
.tv-mode .nav,
.tv-mode .features,
.tv-mode .templates-preview,
.tv-mode .how-it-works,
.tv-mode .footer {
  display: none !important;
}

.tv-mode .hero {
  min-height: 100vh;
  padding: 40px;
}

.tv-mode .hero-content {
  flex: 1;
}

.tv-mode .hero-visual {
  flex: 1;
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-mode .tv-mockup {
  display: none !important;
}

.tv-mode .qr-widget {
  width: 100%;
  max-width: 600px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px;
}

.tv-mode .qr-widget-label {
  font-size: 16px;
  text-align: center;
  margin-bottom: 32px;
  color: #94a3b8;
}

.tv-mode .qr-widget-content {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.tv-mode .qr-box {
  width: 340px;
  height: 340px;
  padding: 20px;
}

.tv-mode .qr-box img,
.tv-mode .qr-box canvas {
  width: 300px !important;
  height: 300px !important;
}

.tv-mode .qr-info {
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}

.tv-mode .qr-info-row {
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.tv-mode .qr-info-label {
  font-size: 16px;
  color: #64748b;
  min-width: auto;
}

.tv-mode .qr-info-value {
  font-size: 2.5rem;
  letter-spacing: 0.2em;
}

.tv-mode .qr-status {
  justify-content: center;
  font-size: 15px;
  margin-top: 12px;
}

.tv-mode .qr-status-dot {
  width: 10px;
  height: 10px;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-brand, .auth-logo { display: flex; align-items: center; gap: 8px; }
.brand-icon { font-size: 24px; }
.brand-name { font-size: 20px; font-weight: 700; color: #fff; }
.nav-actions { display: flex; gap: 8px; }

.hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 60px 40px; min-height: calc(100vh - 73px); gap: 48px;
  max-width: 1200px; margin: 0 auto;
}
.hero-content { flex: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #a78bfa; margin-bottom: 16px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px; padding: 4px 14px;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: #ffd700; font-family: 'Dancing Script', cursive; }
.hero-subtitle { font-size: 1.05rem; color: #94a3b8; margin-bottom: 32px; max-width: 440px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: #64748b; }

.hero-visual {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* ── TV Mockup (Simple & Clean) ───────────────────────── */
.tv-mockup {
  width: 360px;
  background: linear-gradient(145deg, #1e1e2e 0%, #2d2d44 100%);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 
    0 0 0 3px rgba(124,58,237,0.3),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(124,58,237,0.2);
}

.tv-screen {
  background: linear-gradient(135deg, #1a0533 0%, #2d1b4e 100%);
  border-radius: 12px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-demo-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.demo-text {
  color: #fff;
  margin-bottom: 12px;
}

.demo-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffd700;
}

.demo-name {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-confetti {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  margin-top: 8px;
}

/* ── QR Widget (Minimal & Elegant) ───────────────────── */
.qr-widget {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 360px;
}

.qr-widget-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.qr-widget-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.qr-box {
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 
    0 0 0 2px rgba(124,58,237,0.4),
    0 8px 24px rgba(0,0,0,0.4);
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img,
.qr-box canvas {
  border-radius: 4px;
  display: block;
  width: 90px !important;
  height: 90px !important;
}

.qr-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-info-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.qr-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  min-width: 42px;
}

.qr-info-value {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.qr-info-pwd {
  color: #c4b5fd;
}

.qr-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.qr-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
  flex-shrink: 0;
  transition: background 0.4s;
  animation: pulse 2s infinite;
}

/* Features */
.features, .templates-preview, .how-it-works { padding: 80px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 48px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px; transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.4); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; }

.templates-preview { background: rgba(255,255,255,0.02); text-align: center; }
.template-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.pill { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); border-radius: 50px; padding: 8px 20px; font-size: 0.9rem; color: #c4b5fd; }

.steps { display: flex; align-items: flex-start; justify-content: center; gap: 20px; flex-wrap: wrap; }
.step { text-align: center; max-width: 200px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: 1.2rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; }
.step-arrow { font-size: 1.5rem; color: #7c3aed; padding-top: 14px; }

.footer { padding: 40px 20px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-copy { color: #475569; font-size: 0.85rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: #64748b; font-size: 0.85rem; }
.footer-nav a:hover { color: #e2e8f0; }

/* ========== AUTH ========== */
.auth-page {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0533 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 28px; }
.auth-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 36px;
}
.auth-title { font-size: 1.6rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: #64748b; font-size: 0.9rem; margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #475569; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.auth-switch { text-align: center; color: #64748b; font-size: 14px; margin-top: 20px; }
.auth-switch a { color: #a78bfa; }
.auth-switch a:hover { color: #c4b5fd; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #94a3b8; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 14px; transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: #7c3aed; background: rgba(255,255,255,0.08);
}
.form-group input[type="color"] {
  padding: 4px 6px; height: 40px; width: 60px; cursor: pointer;
}
.form-group input::placeholder { color: #475569; }
.required { color: #f87171; }

/* ========== DASHBOARD ========== */
.dashboard-page { background: #0a0a0f; min-height: 100vh; }

.dash-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 50;
}
.nav-user { display: flex; align-items: center; gap: 16px; }
.user-name { font-size: 14px; color: #64748b; }

.dash-main { max-width: 1200px; margin: 0 auto; padding: 40px 32px; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; }
.dash-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.dash-subtitle { font-size: 0.9rem; color: #64748b; }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.event-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 22px; transition: all 0.2s;
}
.event-card:hover { border-color: rgba(124,58,237,0.3); background: rgba(255,255,255,0.06); }
.event-inactive { opacity: 0.6; }
.event-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.event-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.05em; }
.status-active { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.status-inactive { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.event-template-badge { font-size: 11px; color: #64748b; background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }
.event-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 14px; }

.event-access { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.access-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.access-row:last-child { margin-bottom: 0; }
.access-label { font-size: 11px; color: #475569; font-weight: 600; min-width: 68px; }
.access-code { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: #ffd700; letter-spacing: 0.12em; }
.access-pwd { font-family: monospace; font-size: 0.95rem; color: #94a3b8; letter-spacing: 0.08em; }
.access-url { font-size: 12px; color: #a78bfa; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-url:hover { color: #c4b5fd; }
.btn-copy { background: none; border: none; cursor: pointer; font-size: 14px; color: #475569; padding: 2px 4px; border-radius: 4px; }
.btn-copy:hover { background: rgba(255,255,255,0.08); color: #94a3b8; }

.event-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.event-meta { font-size: 11px; color: #334155; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.empty-state p { color: #64748b; margin-bottom: 24px; }

/* ========== EVENT NEW PAGE ========== */
.new-event-step { max-width: 900px; }
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 40px; }
.template-card {
  background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px; cursor: pointer; transition: all 0.2s; overflow: hidden;
}
.template-card:hover { border-color: #7c3aed; background: rgba(124,58,237,0.08); transform: translateY(-2px); }
.template-card-body { padding: 20px; }
.template-category { font-size: 11px; font-weight: 700; color: #7c3aed; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.template-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.template-desc { font-size: 0.85rem; color: #64748b; line-height: 1.5; margin-bottom: 10px; }
.template-effects { display: flex; gap: 4px; }
.effect-badge { font-size: 1rem; }

.form-card { max-width: 560px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 28px; }
.form-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.form-card-header h2 { font-size: 1.2rem; font-weight: 700; color: #fff; }
.form-actions { margin-top: 24px; }
.loading-state { color: #475569; padding: 40px; text-align: center; }

/* ========== EDITOR ========== */
.editor-page { background: #0a0a0f; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.editor-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0; height: 52px;
}
.editor-event-title { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; }
.editor-title-wrap { flex: 1; text-align: center; padding: 0 16px; }
.editor-topbar-actions { display: flex; gap: 8px; }

.editor-layout { flex: 1; display: flex; overflow: hidden; }

.editor-left-panel {
  width: 120px; flex-shrink: 0; background: #111827;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto; padding: 12px 8px;
}
.editor-right-panel {
  width: 220px; flex-shrink: 0; background: #111827;
  border-left: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto; padding: 12px;
}

.panel-section { margin-bottom: 16px; }
.panel-section-title { font-size: 10px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

.tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; padding: 10px 6px; border-radius: 8px; background: transparent;
  border: 1px solid transparent; color: #94a3b8; cursor: pointer;
  font-size: 11px; transition: all 0.15s;
}
.tool-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
.tool-icon { font-size: 1.2rem; font-weight: 700; }

.dec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dec-btn {
  padding: 8px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: #e2e8f0; cursor: pointer; font-size: 1.2rem;
  transition: all 0.15s;
}
.dec-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

.editor-canvas-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #1a1a2e; padding: 20px; overflow: hidden;
}
.editor-canvas-wrap canvas { box-shadow: 0 20px 60px rgba(0,0,0,0.6); border-radius: 4px; }

.props-empty { color: #334155; font-size: 13px; text-align: center; padding: 40px 10px; }
.prop-group { margin-bottom: 14px; }
.prop-group label { display: block; font-size: 11px; font-weight: 600; color: #64748b; margin-bottom: 5px; }
.prop-group input, .prop-group select {
  width: 100%; padding: 7px 10px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #e2e8f0; font-size: 13px;
}
.prop-group input[type="color"] { padding: 2px 4px; height: 36px; cursor: pointer; }
.prop-group input[type="range"] { padding: 0; background: none; border: none; }
.style-btns { display: flex; gap: 4px; }
.style-btn {
  flex: 1; padding: 6px; border-radius: 6px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); color: #94a3b8; cursor: pointer; font-size: 13px;
  transition: all 0.15s;
}
.style-btn:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
.style-btn.active { background: rgba(124,58,237,0.25); border-color: #7c3aed; color: #c4b5fd; }
.prop-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; }
.btn-full { width: 100%; }

.editor-bottombar {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 16px; background: #111827;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0; flex-wrap: wrap;
}
.bottom-section { display: flex; align-items: center; gap: 8px; }
.bottom-label { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; }
.eff-btn {
  padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer; font-size: 1.1rem;
  transition: all 0.15s;
}
.eff-btn:hover { background: rgba(255,255,255,0.12); }
.eff-btn.active { background: rgba(124,58,237,0.25); border-color: #7c3aed; }
#transition-select { padding: 5px 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #e2e8f0; font-size: 13px; }

.save-status { font-size: 12px; color: #475569; }
.save-ok { color: #4ade80; }
.save-warn { color: #fbbf24; }
.save-err { color: #f87171; }

@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .hero { flex-direction: column; padding: 40px 20px; align-items: center; gap: 36px; min-height: unset; }
  .hero-content { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: flex; width: 100%; max-width: 340px; }
  .tv-mockup { width: 100%; }
  .qr-widget { width: 100%; }
  .qr-widget-content { flex-direction: column; align-items: center; }
  .qr-info { align-items: center; text-align: center; }
  .dash-main { padding: 24px 16px; }
  .events-grid { grid-template-columns: 1fr; }
  .editor-left-panel, .editor-right-panel { display: none; }
  
  /* TV mode mobile adjustments */
  .tv-mode .hero { flex-direction: column; }
  .tv-mode .qr-widget { max-width: 100%; padding: 24px; }
  .tv-mode .qr-box { width: 240px; height: 240px; padding: 12px; }
  .tv-mode .qr-box img,
  .tv-mode .qr-box canvas { width: 216px !important; height: 216px !important; }
  .tv-mode .qr-info-value { font-size: 1.5rem; }
  .tv-mode .qr-info-label { font-size: 13px; }
}

/* ── Language Picker (YouTube-style) ─────────────────── */
.lpk { position: relative; display: inline-flex; align-items: center; }

.lpk-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 12px; font-weight: 700; font-family: inherit;
  letter-spacing: .04em;
  padding: 5px 9px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.lpk-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); color: #fff; }
.lpk--open .lpk-btn { background: rgba(124,58,237,0.2); border-color: #7c3aed; color: #fff; }

.lpk-globe { opacity: .75; flex-shrink: 0; }
.lpk-label { min-width: 20px; text-align: center; }
.lpk-chevron { opacity: .6; flex-shrink: 0; transition: transform .2s; }
.lpk--open .lpk-chevron { transform: rotate(180deg); }

.lpk-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-height: 360px;
  overflow-y: auto;
  background: #18182a;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.3);
  z-index: 9999;
}
.lpk--open .lpk-dropdown { display: block; animation: lpk-in .15s ease; }

@keyframes lpk-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.lpk-list { padding: 6px 0; }

.lpk-section {
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #475569;
  padding: 8px 14px 3px;
  pointer-events: none;
}

.lpk-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 5px 0; }

.lpk-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 8px 14px;
  background: none; border: none;
  color: #94a3b8; cursor: pointer; font-family: inherit;
  text-align: left; font-size: 13px;
  transition: background .1s;
}
.lpk-item:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.lpk-item--active { color: #fff; }

.lpk-item-display {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: #7c3aed; min-width: 26px;
}
.lpk-item--active .lpk-item-display { color: #a78bfa; }

.lpk-item-name { flex: 1; }

.lpk-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .05em;
  background: rgba(124,58,237,0.25); color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 4px; padding: 1px 5px;
}

.lpk-check { color: #a78bfa; font-weight: 900; font-size: 13px; margin-left: auto; }

/* shared input for /connect page */
.scw-input {
  flex: 1; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
  color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: .14em;
  padding: 10px 14px; font-family: 'Courier New', monospace;
  text-transform: uppercase; outline: none; transition: border-color .15s;
}
.scw-input:focus { border-color: #7c3aed; }
.scw-input::placeholder { color: #334155; letter-spacing: .08em; font-weight: 400; }

/* Floating notification */
.scw-notification {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e1e2e; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 10px 20px;
  color: #e2e8f0; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 9999; white-space: nowrap;
}
.scw-notification--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Connect entry page */
.connect-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: #4ade80;
}
.connect-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.connect-code-display { font-family: 'Courier New', monospace; color: #a78bfa; letter-spacing: .1em; }
.connect-user-info { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); border-radius: 10px; padding: 10px 16px; font-size: 13px; color: #c4b5fd; text-align: center; }
.connect-guest-note { font-size: 11px; color: #475569; text-align: center; margin: 4px 0 0; }

/* Session editor topbar badge */
.session-topbar-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #94a3b8; }
.session-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 1.5s infinite; }

@media (max-width: 640px) {
  .qr-card { min-width: unset; width: 100%; }
}
