/* ================================================
   Le Professor™ — Webinaire Live
   Design System & Complete Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --bg: #0d1f15;
  --surface: #132b1e;
  --surface-light: #1a3828;
  --gold: #e8c44a;
  --green: #4a9e6e;
  --green-light: #5bb87e;
  --text: #f5f2eb;
  --text-muted: #a8a295;
  --danger: #e85454;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.3s ease;
}

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

html { font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

input, textarea, button, select {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}

button { cursor: pointer; }
a { color: var(--gold); text-decoration: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 3px; }

/* ================================================
   WELCOME SCREEN
   ================================================ */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(ellipse at center, var(--surface) 0%, var(--bg) 70%);
}

.welcome-card {
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.welcome-card .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.welcome-card .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.welcome-card input[type="text"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.welcome-card input[type="text"]:focus {
  border-color: var(--gold);
}

.welcome-card input[type="text"]::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold), #d4a830);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 196, 74, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ================================================
   WAITING / COUNTDOWN SCREEN
   ================================================ */
.waiting-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: radial-gradient(ellipse at center, var(--surface) 0%, #080f0b 80%);
  position: relative;
  overflow: hidden;
}

.waiting-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.waiting-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.waiting-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.waiting-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-value {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  min-width: 80px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
}

.countdown-sep {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1.2rem;
}

.waiting-confirmed {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.waiting-date {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.waiting-tip {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.waiting-divider {
  width: 60px;
  height: 1px;
  background: rgba(232,196,74,0.25);
  margin: 0 auto 1.2rem;
}

.waiting-promise {
  color: rgba(232,196,74,0.6);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.waiting-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.waiting-pulse {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 auto;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74, 158, 110, 0.4);
}

.waiting-screen.live-starting .waiting-subtitle {
  color: var(--green);
  font-weight: 600;
}

.waiting-screen.live-starting .countdown-value {
  color: var(--green);
  border-color: var(--green);
}

.play-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), #d4a830);
  color: var(--bg);
  border: none;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulseBtn 2s ease-in-out infinite;
  margin-top: 0.5rem;
}

.play-live-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(232, 196, 74, 0.4);
}

.play-live-btn .play-icon {
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .waiting-content { padding: 0.6rem 1rem; }
  .waiting-brand { font-size: 0.85rem; margin-bottom: 0.2rem; letter-spacing: 1px; }
  .waiting-title { font-size: 1.1rem; margin-bottom: 0.2rem; }
  .waiting-confirmed { font-size: 0.95rem; margin-bottom: 0.3rem; }
  .waiting-date { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .countdown { margin-bottom: 0.5rem; gap: 0.2rem; }
  .countdown-value { font-size: 1.6rem; min-width: 45px; padding: 0.25rem 0.35rem; }
  .countdown-block { min-width: 45px; }
  .countdown-sep { font-size: 1.2rem; margin-bottom: 0.6rem; }
  .countdown-label { font-size: 0.55rem; margin-top: 0.15rem; }
  .waiting-tip { display: none; }
  .waiting-divider { display: none; }
  .waiting-promise { display: none; }
  .waiting-subtitle { font-size: 0.9rem; margin-bottom: 0.8rem; }
  .waiting-info { font-size: 0.8rem; }
}

/* ================================================
   WEBINAR LAYOUT
   ================================================ */
.webinar-container {
  display: none;
  height: 100vh;
  overflow: hidden;
}

.webinar-container.active {
  display: flex;
}

.video-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  background: #000;
}

.video-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
}

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

/* --- Social Proof Banner --- */
.social-proof-banner {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.social-proof-notification {
  background: rgba(19, 43, 30, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--green);
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
  animation: socialProofIn 0.5s ease, socialProofOut 0.5s ease 4s forwards;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.social-proof-notification .name {
  color: var(--gold);
  font-weight: 600;
}

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

@keyframes socialProofOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* --- Floating Reactions --- */
.floating-reaction {
  position: absolute;
  bottom: 60px;
  font-size: 2rem;
  animation: floatUp 2s ease-out forwards;
  pointer-events: none;
  z-index: 15;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 0.8; transform: translateY(-120px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-250px) scale(0.8); }
}

/* --- Buy Button Overlay --- */
.buy-button-container {
  display: none;
  padding: 0.8rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--surface-light);
  text-align: center;
}

.buy-button-container.visible { display: block; }

.buy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), #d4a830);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  animation: pulseBtn 2s ease-in-out infinite;
}

.buy-button:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(232, 196, 74, 0.4);
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 196, 74, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(232, 196, 74, 0); }
}

/* --- Scarcity Counter --- */
.scarcity-bar {
  display: none;
  padding: 0.5rem 1.5rem;
  background: rgba(232, 84, 84, 0.15);
  border-top: 1px solid rgba(232, 84, 84, 0.3);
  text-align: center;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
  animation: scarcityPulse 1.5s ease-in-out infinite;
}

.scarcity-bar.visible { display: block; }

@keyframes scarcityPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ================================================
   CHAT SECTION
   ================================================ */
.chat-section {
  width: 380px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--surface-light);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--surface-light);
  background: var(--surface);
}

.chat-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0;
}

/* --- Live Timer --- */
.live-timer {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.live-timer .timer-icon {
  font-size: 0.75rem;
}

.participant-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 500;
}

.participant-count .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Pinned Message --- */
.pinned-message {
  display: none;
  padding: 0.7rem 1.2rem;
  background: rgba(232, 196, 74, 0.1);
  border-bottom: 1px solid rgba(232, 196, 74, 0.2);
  font-size: 0.88rem;
  color: var(--gold);
}

.pinned-message.visible { display: flex; align-items: center; gap: 0.5rem; }
.pinned-message .pin-icon { font-size: 0.8rem; }

/* --- Chat Messages --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.chat-msg {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  animation: msgIn 0.3s ease;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg:hover {
  background: rgba(255,255,255,0.03);
}

.chat-msg .author {
  font-weight: 600;
  color: var(--green-light);
  margin-right: 0.4rem;
}

.chat-msg .text {
  color: var(--text);
  font-size: 0.92rem;
}

.chat-msg .time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-msg:hover .time { opacity: 1; }

.chat-msg.admin-msg {
  background: rgba(232,196,74,0.06);
  border-left: 2px solid var(--gold);
  padding-left: 0.7rem;
}
.chat-msg.admin-msg .author { color: var(--gold); }
.chat-msg.admin-msg .badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(232,196,74,0.12);
  border: 1px solid rgba(232,196,74,0.25);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chat-msg.mod-msg {
  background: rgba(74,158,110,0.06);
  border-left: 2px solid var(--green);
  padding-left: 0.7rem;
}
.chat-msg.mod-msg .author { color: var(--green-light); }
.chat-msg .badge-mod {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(74,158,110,0.12);
  border: 1px solid rgba(74,158,110,0.25);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chat-msg.system-msg {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: 0.3rem;
}

.chat-msg.deleted {
  opacity: 0.3;
  text-decoration: line-through;
}

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

/* --- Chat Input --- */
.chat-input-area {
  padding: 0.8rem;
  border-top: 1px solid var(--surface-light);
  background: var(--surface);
}

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

.chat-input-row input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input-row input:focus { border-color: var(--green); }
.chat-input-row input::placeholder { color: var(--text-muted); }

.chat-input-row button#sendBtn {
  padding: 0.7rem 1.2rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}

.chat-input-row button#sendBtn:hover { background: var(--green-light); }

/* --- Input with emoji icon --- */
.input-with-emoji {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-emoji input {
  width: 100%;
  padding-right: 2.5rem !important;
}

.emoji-toggle {
  position: absolute;
  right: 6px;
  background: none !important;
  border: none !important;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem !important;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.emoji-toggle:hover {
  opacity: 1;
}

/* --- Emoji Picker Panel --- */
.emoji-picker {
  background: var(--bg);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-top: 0.4rem;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.15rem;
}

.emoji-item {
  font-size: 1.2rem;
  padding: 0.25rem;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}

.emoji-item:hover {
  background: var(--surface-light);
}

/* ================================================
   POPUP OVERLAY
   ================================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-overlay.visible { display: flex; }

.popup-content {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: popupIn 0.4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.popup-content h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.popup-content p {
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.popup-close:hover { color: var(--text); }

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ================================================
   NOTIFICATION SOUND INDICATOR
   ================================================ */
.sound-toggle {
  background: none;
  border: 1px solid var(--surface-light);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.sound-toggle:hover { border-color: var(--gold); color: var(--gold); }
.sound-toggle.active { color: var(--gold); border-color: var(--gold); }

/* ================================================
   ADMIN PAGE
   ================================================ */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.admin-login .welcome-card input[type="password"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.admin-login .welcome-card input[type="password"]:focus {
  border-color: var(--gold);
}

.admin-panel {
  display: none;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-panel.active { display: block; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-light);
}

.admin-header h1 {
  font-size: 1.6rem;
  color: var(--gold);
}

.admin-header .live-clock {
  font-size: 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--green);
  background: var(--surface);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-light);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

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

.admin-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--surface-light);
}

.admin-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}

.admin-card label:first-of-type { margin-top: 0; }

.admin-card input[type="text"],
.admin-card input[type="number"],
.admin-card input[type="url"],
.admin-card input[type="time"],
.admin-card textarea,
.admin-card select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
  border-color: var(--gold);
}

.admin-card textarea {
  resize: vertical;
  min-height: 60px;
}

.admin-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.6rem;
}

.admin-row > * { flex: 1; }

.btn-admin {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover { background: #d4a830; }

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

.btn-green:hover { background: var(--green-light); }

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

.btn-danger:hover { background: #d04444; }

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

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg);
  border: 1px solid var(--surface-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-switch.active {
  background: var(--green);
  border-color: var(--green);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* --- Scheduled items list --- */
.scheduled-list {
  margin-top: 0.8rem;
  max-height: 200px;
  overflow-y: auto;
}

.scheduled-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.scheduled-item .time-badge {
  background: var(--surface-light);
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 0.6rem;
}

.scheduled-item .sent { color: var(--green); font-size: 0.75rem; }

/* --- Chat log in admin --- */
.admin-chat-log {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.admin-chat-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  gap: 0.5rem;
}

.admin-chat-item .msg-content { flex: 1; }
.admin-chat-item .msg-author { color: var(--green-light); font-weight: 600; }
.admin-chat-item .msg-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

/* --- Status indicator --- */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  display: inline-block;
}

.status-dot.connected { background: var(--green); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .webinar-container.active {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .video-section {
    height: 56vw;
    min-height: 220px;
    flex: none;
  }

  .chat-section {
    width: 100%;
    min-width: auto;
    flex: 1;
    min-height: 50vh;
    border-left: none;
    border-top: 1px solid var(--surface-light);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .chat-header h3 { font-size: 0.95rem; }
  .reactions-bar { gap: 0.2rem; }
  .reaction-btn { padding: 0.3rem 0.5rem; font-size: 1rem; }
}
