/* ===== VARIABLES ===== */
:root {
  --bg: #08090f;
  --bg2: #0d0f1a;
  --bg3: #12152a;
  --surface: #1a1d2e;
  --surface2: #222540;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --primary: #5B6CF9;
  --primary2: #8B5CF6;
  --accent: #06B6D4;
  --green: #10B981;
  --red: #EF4444;
  --yellow: #F59E0B;
  --text: #f0f0f8;
  --text2: #a0a3c4;
  --text3: #6b6f94;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --grad: linear-gradient(135deg, var(--primary), var(--primary2));
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img, video { max-width: 100%; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem; height: 68px;
  display: flex; align-items: center;
  background: rgba(8,9,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(8,9,15,0.95); }
.nav-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { display: flex; align-items: center; justify-content: center; }
.logo-text { color: var(--text); }
.logo-by { color: var(--text2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-link { padding: 6px 14px; color: var(--text2); font-size: .92rem; border-radius: 8px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-btn-outline {
  padding: 7px 16px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--border2); color: var(--text2);
  transition: border-color .2s, color .2s;
}
.nav-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.nav-btn-primary {
  padding: 8px 18px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  background: var(--grad); color: white;
  box-shadow: 0 2px 12px rgba(91,108,249,.35);
  transition: opacity .2s, transform .15s;
}
.nav-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding: 120px 2rem 80px;
  display: flex; align-items: center; justify-content: center;
  gap: 4rem; position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; animation: float1 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--primary2); bottom: -100px; right: -80px; animation: float2 10s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 40%; animation: float3 12s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,40px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-30px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }

.hero-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(91,108,249,.12); border: 1px solid rgba(91,108,249,.3);
  color: #a0abff; padding: 6px 14px; border-radius: 100px; font-size: .82rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot { width: 7px; height: 7px; background: #5B6CF9; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.hero-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: var(--text2); font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; }

.quick-meet { display: flex; gap: .5rem; }
.meet-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: .95rem;
  outline: none; transition: border-color .2s;
}
.meet-input:focus { border-color: var(--primary); }
.meet-input::placeholder { color: var(--text3); }
.btn-start {
  display: flex; align-items: center; gap: 8px;
  background: var(--grad); color: white; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(91,108,249,.4); transition: opacity .2s, transform .15s;
}
.btn-start:hover { opacity: .9; transform: translateY(-1px); }
.hero-or { text-align: center; color: var(--text3); font-size: .85rem; margin: .75rem 0; }
.btn-ghost-lg {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text2); font-size: .95rem; padding: 10px 0; font-weight: 500;
  transition: color .2s;
}
.btn-ghost-lg:hover { color: var(--primary); }

.hero-stats { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: .75rem; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }
.stat-div { width: 1px; height: 32px; background: var(--border2); }

/* ===== MEETING PREVIEW WIDGET ===== */
.hero-visual { flex: 0 0 400px; position: relative; z-index: 1; }
.meeting-preview {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(91,108,249,.15);
  animation: float-card 6s ease-in-out infinite;
}
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.preview-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bg3); border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #EF4444; } .dot.yellow { background: #F59E0B; } .dot.green { background: #22C55E; }
.preview-title-bar { flex: 1; text-align: center; font-size: .78rem; color: var(--text3); font-weight: 500; }
.rec-pill { font-size: .7rem; color: var(--red); font-weight: 600; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; background: var(--bg); }
.ptile {
  background: var(--bg3); border-radius: 10px; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; position: relative; transition: box-shadow .3s;
}
.ptile.main-tile { box-shadow: 0 0 0 2px var(--primary); }
.av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: white; }
.pname { font-size: .68rem; color: var(--text2); font-weight: 500; }
.mic-on { position: absolute; top: 6px; right: 6px; font-size: .65rem; }
.preview-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; background: var(--bg3); border-top: 1px solid var(--border);
}
.tbtn {
  width: 36px; height: 36px; border-radius: 10px; font-size: .9rem;
  background: var(--surface2); color: var(--text2); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.tbtn:hover { background: var(--border2); transform: scale(1.08); }
.tbtn.on { background: rgba(91,108,249,.2); color: var(--primary); }
.tbtn.danger { background: rgba(239,68,68,.15); color: var(--red); }

/* ===== SECTIONS SHARED ===== */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-tag { display: inline-block; background: rgba(91,108,249,.12); border: 1px solid rgba(91,108,249,.25); color: #a0abff; padding: 4px 12px; border-radius: 100px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; margin-bottom: .75rem; }
.section-sub { color: var(--text2); font-size: 1rem; }

/* ===== FEATURES ===== */
.features { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.fcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.fcard:hover { border-color: rgba(91,108,249,.4); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.ficon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.fcard h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.fcard p { color: var(--text2); font-size: .88rem; line-height: 1.6; }

/* ===== SECURITY ===== */
.security { padding: 6rem 2rem; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.security-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; }
.security-text { flex: 1; min-width: 280px; }
.security-text p { color: var(--text2); margin: 1rem 0 1.5rem; font-size: .98rem; }
.sec-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.sec-list li { color: var(--text2); font-size: .92rem; }
.shield-card {
  flex: 0 0 300px; background: var(--surface); border: 1px solid rgba(91,108,249,.25);
  border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
  box-shadow: 0 8px 40px rgba(91,108,249,.1);
}
.shield-emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.shield-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.sec-badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sbadge { background: var(--bg3); border: 1px solid var(--border2); border-radius: 100px; padding: 5px 12px; font-size: .78rem; color: var(--text2); }

/* ===== CTA ===== */
.cta-section { padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; margin-bottom: .75rem; }
.cta-section p { color: var(--text2); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: white; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(91,108,249,.4);
  transition: opacity .2s, transform .15s;
}
.btn-primary-lg:hover { opacity: .9; transform: translateY(-2px); }
.btn-outline-lg {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border2); color: var(--text2); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 12px;
  transition: border-color .2s, color .2s;
}
.btn-outline-lg:hover { border-color: var(--primary); color: var(--primary); }
.full-width { width: 100%; justify-content: center; }
.pulse { animation: pulse-shadow 2.5s ease-in-out infinite; }
@keyframes pulse-shadow { 0%,100%{box-shadow:0 6px 24px rgba(91,108,249,.4)} 50%{box-shadow:0 6px 40px rgba(91,108,249,.7)} }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-tag { color: var(--text3); font-size: .85rem; margin-top: .75rem; line-height: 1.7; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.fcol { display: flex; flex-direction: column; gap: .6rem; min-width: 120px; }
.fcol h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: .2rem; }
.fcol a { color: var(--text2); font-size: .88rem; transition: color .2s; }
.fcol a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text3); font-size: .8rem; flex-wrap: wrap; gap: .5rem; }

/* ===== LOBBY (Pre-join) ===== */
.room-page { background: var(--bg); }
.lobby {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: radial-gradient(ellipse at 50% 0%, rgba(91,108,249,.12) 0%, transparent 60%);
}
.lobby-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); position: relative;
}
.lobby-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text3); font-size: .85rem; margin-bottom: 1.5rem;
  transition: color .2s;
}
.lobby-back:hover { color: var(--text); }
.lobby-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; margin-bottom: 1.75rem; color: var(--text2); }
.lobby-preview-wrap {
  position: relative; background: var(--bg3); border-radius: 14px;
  aspect-ratio: 16/9; overflow: hidden; margin-bottom: 1.5rem;
}
#localPreview { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-avatar {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.preview-overlay { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.prev-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15);
  color: white; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.prev-btn:hover { background: rgba(0,0,0,.8); }
.prev-btn.off { background: rgba(239,68,68,.6); }
.lobby-room-name { font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: .4rem; }
.lobby-subtitle { color: var(--text3); font-size: .85rem; text-align: center; margin-bottom: 1.5rem; }
.lobby-fields { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.lobby-input {
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: .9rem; outline: none;
  transition: border-color .2s; width: 100%;
}
.lobby-input:focus { border-color: var(--primary); }
.lobby-input::placeholder { color: var(--text3); }
.lobby-toggle-row { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.toggle-label { display: flex; align-items: center; gap: 6px; color: var(--text2); font-size: .85rem; cursor: pointer; }
.btn-join-now {
  width: 100%; padding: 13px; border-radius: 12px;
  background: var(--grad); color: white; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(91,108,249,.4); transition: opacity .2s, transform .15s;
  margin-bottom: 1.25rem;
}
.btn-join-now:hover { opacity: .9; transform: translateY(-1px); }
.lobby-info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.meeting-id-pill { background: var(--bg3); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; font-size: .78rem; color: var(--text3); font-family: monospace; }
.copy-link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--primary); font-size: .82rem; font-weight: 500;
  transition: opacity .2s;
}
.copy-link-btn:hover { opacity: .7; }

/* ===== ACTIVE ROOM ===== */
.meeting-room { display: flex; flex-direction: column; height: 100vh; }
.room-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 1.5rem; background: var(--bg2); border-bottom: 1px solid var(--border);
  height: 56px; flex-shrink: 0;
}
.room-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--text2); }
.room-meta { display: flex; align-items: center; gap: 1rem; }
.room-name-top { font-size: .9rem; font-weight: 600; color: var(--text); }
.room-timer { font-size: .85rem; color: var(--text3); font-variant-numeric: tabular-nums; font-family: monospace; }
.room-topbar-actions { display: flex; gap: .5rem; }
.tb-action {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px; font-size: .82rem; font-weight: 500;
  border: 1px solid var(--border2); color: var(--text2);
  transition: background .2s, border-color .2s;
}
.tb-action:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.jitsi-container { flex: 1; background: #000; }
.jitsi-container iframe { width: 100%; height: 100%; border: none; }

/* ===== MODALS ===== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 20px; padding: 2rem; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.modal-card p { color: var(--text2); font-size: .9rem; margin-bottom: 1rem; }
.invite-link-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.invite-link-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text2); font-size: .82rem; outline: none; }
.copy-btn { background: var(--grad); color: white; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: .85rem; transition: opacity .2s; }
.copy-btn:hover { opacity: .85; }
.modal-close { width: 100%; margin-top: 1rem; padding: 10px; border-radius: 8px; border: 1px solid var(--border2); color: var(--text2); font-size: .9rem; transition: background .2s; }
.modal-close:hover { background: var(--bg3); }
.sec-option { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.sec-option label { color: var(--text2); font-size: .9rem; }
.toggle-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); padding: 5px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600; transition: background .2s, border-color .2s; }
.toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.toggle-btn.active { background: rgba(91,108,249,.2); border-color: var(--primary); color: var(--primary); }
.hidden { display: none !important; }

/* ===== JOIN PAGE ===== */
.simple-page { background: var(--bg); }
.simple-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 2rem 3rem; }
.join-card, .schedule-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg);
}
.join-icon, .schedule-icon { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.join-card h1, .schedule-card h1 { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: .4rem; }
.join-sub { color: var(--text2); font-size: .92rem; text-align: center; margin-bottom: 2rem; }
.join-form, .schedule-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.optional { text-transform: none; font-weight: 400; color: var(--text3); }
.form-input {
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: .93rem; outline: none;
  transition: border-color .2s; width: 100%;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text3); }
.form-textarea { min-height: 90px; resize: vertical; }
.form-options { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 7px; color: var(--text2); font-size: .88rem; cursor: pointer; }
.check-label input { accent-color: var(--primary); }
.join-footer { text-align: center; margin-top: 1.25rem; color: var(--text3); font-size: .85rem; display: flex; justify-content: center; gap: .5rem; }
.join-footer a { color: var(--primary); font-weight: 500; }

/* ===== SCHEDULE PAGE ===== */
.schedule-card { max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-with-action { display: flex; gap: .5rem; }
.inline-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); padding: 0 12px; border-radius: 8px; font-size: .82rem; font-weight: 600; white-space: nowrap; transition: border-color .2s, color .2s; }
.inline-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ===== SCHEDULE RESULT ===== */
.schedule-result { text-align: center; padding: 2rem 0 1rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.result-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.schedule-result h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.result-meta { background: var(--bg3); border-radius: 12px; padding: 1rem 1.25rem; text-align: left; margin-bottom: 1.5rem; font-size: .88rem; color: var(--text2); line-height: 1.9; }
.result-actions { display: flex; flex-direction: column; gap: .75rem; }

/* ===== PAST MEETINGS ===== */
.past-meetings { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.past-meetings h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text2); }
.meetings-list { display: flex; flex-direction: column; gap: .6rem; }
.meeting-item {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: border-color .2s;
}
.meeting-item:hover { border-color: rgba(91,108,249,.3); }
.mi-info { flex: 1; min-width: 0; }
.mi-title { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-meta { font-size: .78rem; color: var(--text3); margin-top: 2px; }
.mi-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.mi-btn { padding: 5px 12px; border-radius: 7px; font-size: .78rem; font-weight: 600; border: 1px solid var(--border2); color: var(--text2); transition: border-color .2s, color .2s; }
.mi-btn:hover { border-color: var(--primary); color: var(--primary); }
.mi-btn.start { background: var(--grad); color: white; border: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: 12px 24px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow); z-index: 9999; animation: slide-up .3s ease;
}
@keyframes slide-up { from{transform:translateX(-50%) translateY(20px);opacity:0} to{transform:translateX(-50%) translateY(0);opacity:1} }

/* ===== QR PLACEHOLDER ===== */
.qr-placeholder { width: 120px; height: 120px; background: white; border-radius: 8px; margin: 1rem auto; display: flex; align-items: center; justify-content: center; color: #333; font-size: .75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 3rem; padding-top: 100px; }
  .hero-visual { width: 100%; }
  .security-inner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--bg2); flex-direction: column; padding: 2rem; gap: 1rem; align-items: flex-start; z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { gap: .6rem; }
  .quick-meet { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
  .room-topbar-actions { display: none; }
  .lobby-card, .join-card, .schedule-card { padding: 1.5rem; border-radius: 16px; }
}

/* ===== SETTINGS PAGE ===== */
.settings-card { max-width: 600px; }
.settings-icon { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.settings-card h1 { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: .4rem; }
.settings-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.settings-actions { display: flex; flex-direction: column; gap: .75rem; }
.clear-btn { background: none; border: 1px solid rgba(239,68,68,.3); color: #EF4444; padding: 10px; border-radius: 10px; font-size: .88rem; font-weight: 600; transition: background .2s; }
.clear-btn:hover { background: rgba(239,68,68,.1); }
.field-hint { font-size: .75rem; color: var(--text3); margin-top: 2px; }
.key-textarea { min-height: 140px; font-family: monospace; font-size: .78rem; line-height: 1.5; }
.how-to { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; margin: 1rem 0; }
.how-to h3 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; color: var(--text2); }
.steps-list { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; list-style: decimal; }
.steps-list li { color: var(--text2); font-size: .87rem; }
.steps-list a { color: var(--primary); }
.status-banner { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 10px; font-size: .88rem; font-weight: 500; margin-bottom: .5rem; }
.status-configured { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #10B981; }
.status-unconfigured { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #F59E0B; }
.test-result { margin-top: 1rem; padding: 1rem; border-radius: 10px; font-size: .88rem; font-weight: 500; }
.test-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #10B981; }
.test-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #EF4444; }
