/* ============================================================
   NEXUS — Secure Video  |  Dark Luxury Theme
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

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

:root {
  --bg:        #080810;
  --surface:   #0f0f1a;
  --surface2:  #151525;
  --surface3:  #1c1c30;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --accent:    #6366f1;
  --accent2:   #818cf8;
  --green:     #10b981;
  --red:       #ef4444;
  --amber:     #f59e0b;
  --cyan:      #06b6d4;
  --text:      #e8e8f0;
  --muted:     #6b6b80;
  --muted2:    #9292a8;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  --glow:      0 0 40px rgba(99,102,241,0.15);
}

html { scroll-behavior: smooth; }

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

/* ── Background ambient orbs ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}
.orb-1 { width: 600px; height: 600px; background: #6366f1; top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: #06b6d4; bottom: -100px; right: -100px; }
.orb-3 { width: 400px; height: 400px; background: #10b981; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.08; }

.container { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(8,8,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }

.logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

.brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.05em; }

.navbar-menu { display: flex; gap: 2rem; }
.nav-link { color: var(--muted2); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

.nav-status { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.8rem; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); }
.btn-primary.full { width: 100%; margin-top: 1rem; padding: 1rem; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: transparent; color: var(--muted2); font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: 0.95rem; padding: 0.85rem 1.8rem;
  border: 1px solid var(--border2); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.25s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(99,102,241,0.08); }

/* ── Landing Page ── */
#landing-page { padding-top: 3rem; }

.hero-section {
  max-width: 620px; margin: 0 auto 5rem;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}

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

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent2); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 2rem; text-transform: uppercase;
}
.badge-dot { width: 6px; height: 6px; background: var(--accent2); border-radius: 50%; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff 30%, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle { font-size: 1.05rem; color: var(--muted2); line-height: 1.7; margin-bottom: 2.5rem; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; animation: fadeUp 0.6s 0.15s ease both;
}

.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb,99,102,241),0.05), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1rem;
}
.feature-card h3 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.85rem; color: var(--muted2); line-height: 1.6; }

/* ── Forms ── */
#room-form, #create-room-form {
  display: flex; justify-content: center; padding-top: 2rem;
  animation: fadeUp 0.4s ease both;
}

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.4rem;
  width: 100%; max-width: 480px; box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted2); text-decoration: none; font-size: 0.875rem;
  margin-bottom: 1.8rem; transition: color 0.2s;
}
.back-link:hover { color: var(--accent2); }

.form-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.form-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: var(--c); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.form-header h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.2rem; }
.form-header p  { font-size: 0.85rem; color: var(--muted2); }

.field-group { margin-bottom: 1.2rem; }
.field-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted2); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.6; }

.field-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color 0.2s;
}
.field-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.field-icon { position: absolute; left: 1rem; color: var(--muted); font-size: 0.85rem; pointer-events: none; }

.field-wrap input[type="text"],
.field-wrap input[type="password"] {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
}
.field-wrap input::placeholder { color: var(--muted); }

.field-wrap-textarea { align-items: stretch; }
.field-wrap textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  padding: 0.85rem 1rem; resize: vertical; min-height: 90px;
}

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0; border-top: 1px solid var(--border);
}
.toggle-row:last-of-type { margin-bottom: 0.5rem; }
.toggle-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--muted2); cursor: pointer; }
.toggle-label i { color: var(--accent2); }

.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--surface3); border-radius: 999px; transition: 0.3s;
  border: 1px solid var(--border2);
}
.slider::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  left: 2px; bottom: 2px; background: var(--muted2);
  border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; }

/* ── Video Chat ── */
#video-chat { animation: fadeUp 0.4s ease both; }

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

.room-meta { display: flex; align-items: center; gap: 1rem; }
.room-tag {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.room-tag i { color: var(--accent); font-size: 0.8rem; }

.status-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25);
  color: #34d399; font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  transition: all 0.3s;
}
.status-pill.error { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.25); color: #f87171; }

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }

.room-timer { display: flex; align-items: center; gap: 0.5rem; color: var(--muted2); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.timer-pulse { color: var(--red); animation: pulse-dot 1.5s infinite; font-size: 0.6rem; }

/* ── Call layout ── */
.call-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.2rem;
  align-items: start;
}

/* ── Video area ── */
.video-area { display: flex; flex-direction: column; gap: 1rem; }

.video-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; height: 560px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-tile { position: absolute; border-radius: inherit; overflow: hidden; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile-remote { inset: 0; }
.tile-screen { inset: 0; z-index: 5; }

.tile-local {
  bottom: 1rem; right: 1rem; width: 200px; height: 150px;
  z-index: 10; border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: all 0.3s;
}
.tile-local:hover { width: 240px; height: 180px; }

.tile-label {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 15;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 500;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  display: flex; align-items: center; gap: 0.4rem;
}

.tile-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: var(--surface); z-index: 2;
}
.empty-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface3); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--muted);
}
.tile-empty p { font-size: 0.875rem; color: var(--muted2); }
.tile-empty.hidden { display: none; }

/* ── Controls bar ── */
.controls-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1.2rem;
}
.controls-group { display: flex; gap: 0.6rem; }

.ctrl-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; padding: 0.6rem 1rem; min-width: 64px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--muted2);
  cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.ctrl-btn i { font-size: 1.05rem; }
.ctrl-btn span { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.ctrl-btn:hover { background: var(--surface3); border-color: var(--border2); color: var(--text); transform: translateY(-1px); }
.ctrl-btn.active { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); color: #f87171; }
.ctrl-btn.active i { color: #f87171; }
.ctrl-btn.screen-active { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: var(--accent2); }

.ctrl-record { color: var(--green); border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.08); }
.ctrl-record:hover { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: var(--green); }
.ctrl-record.recording { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: var(--red); animation: rec-pulse 1.5s infinite; }

@keyframes rec-pulse {
  0%,100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(239,68,68,0.4); }
}

.ctrl-leave { color: var(--red); border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.08); }
.ctrl-leave:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.45); color: var(--red); }

/* ── Sidebar ── */
.sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column;
  height: 638px; /* matches video + controls height */
  overflow: hidden;
}

.sidebar-tabs { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.stab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem; background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.stab:hover { color: var(--text); }
.stab.active { color: var(--accent2); border-bottom-color: var(--accent); }

.tab-badge {
  background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.stab-content { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.stab-content.active { display: flex; }

/* Chat */
.messages-wrap { flex: 1; overflow-y: auto; padding: 1rem; scroll-behavior: smooth; }
.messages-wrap::-webkit-scrollbar { width: 3px; }
.messages-wrap::-webkit-scrollbar-track { background: transparent; }
.messages-wrap::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.chat-message { margin-bottom: 1rem; animation: msg-in 0.25s ease; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-sender { font-size: 0.78rem; font-weight: 700; color: var(--accent2); margin-bottom: 0.3rem; }
.message-text {
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.55rem 0.85rem; border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  font-size: 0.88rem; line-height: 1.5; word-break: break-word;
}
.chat-message.self .message-sender { color: var(--green); text-align: right; }
.chat-message.self .message-text { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.2); border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm); }
.message-time { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }
.chat-message.self .message-time { text-align: right; }

.message-input-wrap {
  display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--border); flex-shrink: 0;
}
.message-input-wrap input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  padding: 0.65rem 0.9rem; outline: none; transition: border-color 0.2s;
}
.message-input-wrap input:focus { border-color: var(--accent); }
.message-input-wrap input::placeholder { color: var(--muted); }

.send-btn {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  transition: all 0.2s;
}
.send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }

/* Files */
.files-upload-area {
  margin: 0.8rem; border: 2px dashed var(--border2); border-radius: var(--radius-sm);
  padding: 1.5rem 1rem; text-align: center; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
}
.files-upload-area:hover { border-color: var(--accent); background: rgba(99,102,241,0.05); }
.files-upload-area i { font-size: 1.8rem; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.files-upload-area p { font-size: 0.85rem; color: var(--muted2); margin-bottom: 0.2rem; }
.files-upload-area span { font-size: 0.75rem; color: var(--muted); }
.files-upload-area input[type="file"] { display: none; }

.file-list { flex: 1; overflow-y: auto; padding: 0 0.8rem 0.8rem; }
.file-list::-webkit-scrollbar { width: 3px; }
.file-list::-webkit-scrollbar-thumb { background: var(--border2); }

.file-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.7rem 0.8rem;
  margin-bottom: 0.5rem; animation: msg-in 0.25s ease;
}
.file-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent2); display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.73rem; color: var(--muted2); margin-top: 0.1rem; }
.file-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

.file-action-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--surface3); border: 1px solid var(--border);
  color: var(--muted2); cursor: pointer; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.file-action-btn:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.file-action-btn.download:hover { background: rgba(16,185,129,0.12); color: var(--green); border-color: rgba(16,185,129,0.3); }

/* ── Modals ── */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; z-index: 1000;
  animation: fade-bg 0.2s ease;
}
.modal.show { display: flex; }
@keyframes fade-bg { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 420px; width: 90%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: card-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes card-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.modal-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: color-mix(in srgb, var(--mc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--mc) 30%, transparent);
  color: var(--mc); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.modal-top h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.modal-top p  { font-size: 0.83rem; color: var(--muted2); }
.modal-close {
  margin-left: auto; flex-shrink: 0; width: 28px; height: 28px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; color: var(--muted2); cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { color: var(--text); background: var(--surface3); }

.otp-grid { display: flex; gap: 0.5rem; justify-content: center; margin: 1.2rem 0; }
.otp-box {
  width: 46px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); outline: none;
  font-family: 'Syne', sans-serif; transition: border-color 0.2s;
}
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.modal-footer-text { text-align: center; font-size: 0.83rem; color: var(--muted2); margin-top: 1rem; }
.modal-footer-text a { color: var(--accent2); text-decoration: none; }
.modal-footer-text a:hover { text-decoration: underline; }

/* ── Toast ── */
.toast {
  position: fixed; top: 1.5rem; right: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.2rem; border-radius: var(--radius-sm);
  display: none; align-items: center; gap: 0.8rem;
  font-size: 0.875rem; max-width: 340px; z-index: 9999;
  box-shadow: var(--shadow);
  animation: toast-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { display: flex; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.toast-icon { color: var(--accent2); font-size: 1rem; flex-shrink: 0; }

/* ── Scrollbars ── */
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .call-layout { grid-template-columns: 1fr; }
  .sidebar { height: 400px; }
  .video-stage { height: 480px; }
}

@media (max-width: 768px) {
  .container { padding: 1.5rem 1rem; }
  .navbar-menu { display: none; }
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .video-stage { height: 360px; }
  .tile-local { width: 120px; height: 90px; }
  .tile-local:hover { width: 140px; height: 105px; }
  .controls-bar { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .ctrl-btn span { display: none; }
  .ctrl-btn { min-width: 44px; padding: 0.7rem; }
  .toast { top: auto; bottom: 1rem; right: 1rem; left: 1rem; max-width: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; }
}
