/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800;900&display=swap');

/* ── Root Design System: Glassmorphism + Electric Neon Blue & Obsidian Black ── */
:root {
  --bg-deep: #020612;
  --bg-card: rgba(8, 16, 36, 0.78);
  --bg-card-hover: rgba(12, 24, 52, 0.90);
  --bg-card-active: rgba(15, 33, 70, 0.96);
  
  /* Luminous Neon Blue & Cyber Cyan Palette */
  --teal-neon: #00d4ff;
  --teal-bright: #38bdf8;
  --neon-cyan: #00f0ff;
  --neon-royal: #2563eb;
  --teal-glow: rgba(0, 212, 255, 0.45);
  --teal-subtle: rgba(0, 212, 255, 0.10);
  --teal-border: rgba(0, 212, 255, 0.28);
  --teal-border-hover: rgba(0, 240, 255, 0.80);
  --teal-gradient: linear-gradient(135deg, #00f0ff 0%, #00b4d8 45%, #0284c7 100%);
  
  --sky-blue: #38bdf8;
  --emerald: #06b6d4;
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Shadows & Glass */
  --glass-border: 1px solid rgba(0, 212, 255, 0.22);
  --glass-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 212, 255, 0.22), 0 0 1px 1px rgba(0, 212, 255, 0.35);
  --glass-blur: blur(24px) saturate(190%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

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

html, body {
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ── Textured Background: Cyber Grid & Ambient Glowing Orbs ── */
body {
  background-color: #020612;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(37, 99, 235, 0.18), transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.10), transparent 45%),
    radial-gradient(circle, rgba(0, 212, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Ambient Floating Background Mesh */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glow-orb-1 {
  position: absolute;
  top: -10vw;
  right: -10vw;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22) 0%, transparent 70%);
  filter: blur(70px);
  animation: floatOrb 22s ease-in-out infinite alternate;
}
.glow-orb-2 {
  position: absolute;
  bottom: -15vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
  100% { transform: translate(20px, -30px) scale(0.95); }
}

/* ── Header & Glass Navigation ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 0 16px var(--teal-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brand-icon:hover {
  transform: scale(1.05);
  border-color: var(--teal-neon);
  box-shadow: 0 0 24px var(--teal-glow);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px var(--teal-neon));
}
.login-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(0, 212, 255, 0.1);
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0 auto 16px;
  box-shadow: 0 0 35px var(--teal-glow);
}
.radar-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 12px var(--teal-neon));
  animation: pulseLogo 3s ease-in-out infinite alternate;
}
@keyframes pulseLogo {
  0% { transform: scale(0.94); opacity: 0.85; filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--teal-neon)); }
  100% { transform: scale(1.06); opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 22px var(--teal-neon)); }
}
.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal-neon);
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-neon);
  box-shadow: 0 0 8px var(--teal-neon);
  animation: beaconPulse 1.8s infinite ease-in-out;
}
.pulse-dot.closed {
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
}
@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ── Container Layout ── */
.main-stage {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3.5vw, 40px) clamp(16px, 3vw, 32px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Glassmorphic Cards ── */
.glass-panel {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: clamp(20px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
/* Specular Glass Highlight Line */
.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.65), transparent);
  pointer-events: none;
}

/* ── Question & Category Typography ── */
.poll-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kicker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-neon);
  background: var(--teal-subtle);
  border: 1px solid rgba(0, 212, 255, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
}
.kicker-chip.multi {
  color: var(--sky-blue);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}
.poll-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.poll-question span {
  color: var(--teal-neon);
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
}

/* ── Interactive Poll Option List ── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 22px);
  border-radius: var(--radius-md);
  background: rgba(8, 17, 36, 0.78);
  border: 1.5px solid rgba(0, 212, 255, 0.18);
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.option-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--teal-border-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 212, 255, 0.28);
}

.option-item.selected {
  background: var(--bg-card-active);
  border-color: var(--teal-neon);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 212, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.4);
  background: rgba(2, 6, 18, 0.6);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.option-item.multi .radio-indicator {
  border-radius: 6px;
}
.option-item.selected .radio-indicator {
  border-color: var(--teal-neon);
  background: var(--teal-neon);
  box-shadow: 0 0 14px var(--teal-neon);
}
.radio-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #020612;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.option-item.multi .radio-indicator::after {
  border-radius: 2px;
}
.option-item.selected .radio-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.option-text {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--teal-gradient);
  color: #020612;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 240, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 10px var(--teal-glow);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 212, 255, 0.32);
  background: rgba(7, 15, 32, 0.88);
  color: var(--teal-neon);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--teal-neon);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  color: #ff6b81;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.16s;
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: #ff6b81;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

/* ── Waiting Screen State ── */
.waiting-container {
  text-align: center;
  padding: clamp(30px, 4vw, 50px) 20px;
}
.radar-orb {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--teal-neon);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
  display: grid;
  place-items: center;
  font-size: 36px;
  box-shadow: 0 0 40px var(--teal-glow);
  position: relative;
}
.radar-orb::before, .radar-orb::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  animation: radarPulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.radar-orb::after {
  inset: -28px;
  animation-delay: 1.2s;
}
@keyframes radarPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── Thank You / Voted Confirmation State ── */
.voted-card {
  text-align: center;
  padding: 10px 0;
  animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.voted-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-gradient);
  color: #020612;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px var(--teal-glow);
}
.voted-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 8px;
}
.voted-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 20px;
}

/* ── Results Page Visualizations & Graphs ── */
.results-header-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
}
.metric-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--teal-neon);
}

/* Dynamic Graph Bar Item */
.graph-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.graph-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(7, 15, 33, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.24s ease;
}
.graph-row:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.18);
}
.graph-row.leading {
  border-color: var(--teal-neon);
  background: rgba(10, 25, 58, 0.88);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 212, 255, 0.32);
}

.graph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.graph-option-name {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.leading-crown {
  font-size: 14px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.18);
  border: 1px solid var(--teal-neon);
  color: var(--teal-neon);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.graph-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.graph-percent {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  color: var(--teal-neon);
}
.graph-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Animated Progress Bar */
.progress-track {
  width: 100%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(2, 6, 18, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.15);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--teal-gradient);
  box-shadow: 0 0 16px var(--teal-glow);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Donut Chart Layout */
.chart-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(5, 11, 26, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.18);
  padding: 20px;
}
@media (max-width: 640px) {
  .chart-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
.donut-svg-wrap {
  width: 200px;
  height: 200px;
  position: relative;
  display: grid;
  place-items: center;
}
.donut-center-stats {
  position: absolute;
  text-align: center;
}
.donut-center-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--teal-neon);
  line-height: 1;
}
.donut-center-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Fullscreen & Presenter Controls on Results Page ── */
.results-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* ── Admin Dashboard Styles ── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}
@media (min-width: 860px) {
  .admin-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.admin-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.admin-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  margin-bottom: 16px;
}

/* Live Controller Banner */
.live-controller-card {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(10, 22, 50, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.22);
}
.live-control-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Template Cards inside Library */
.template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.template-card {
  background: rgba(7, 15, 33, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.template-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(11, 24, 52, 0.92);
}
.template-card.is-live {
  border-color: var(--teal-neon);
  background: rgba(13, 29, 64, 0.96);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.28);
}

.template-q {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}
.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}
.template-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-golive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--teal-gradient);
  color: #020612;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 850;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 16px var(--teal-glow);
  transition: all 0.16s ease;
}
.btn-golive:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 24px var(--teal-glow);
}
.btn-golive.current {
  background: rgba(0, 212, 255, 0.2);
  color: var(--teal-neon);
  border: 1px solid var(--teal-neon);
  box-shadow: none;
  cursor: default;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-neon);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(5, 12, 28, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--teal-neon);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.option-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.btn-remove-opt {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  color: #ff6b81;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.btn-remove-opt:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* ── Login Shield Modal ── */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 18, 0.92);
  backdrop-filter: blur(25px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(8, 17, 38, 0.95);
  border: 1.5px solid var(--teal-neon);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px var(--teal-glow);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  background: var(--teal-gradient);
  color: #020612;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 850;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px var(--teal-glow);
  z-index: 200;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* QR Code Modal for Public Screen */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(20px);
  display: none;
  place-items: center;
  padding: 20px;
}
.qr-modal.open {
  display: grid;
}
.qr-card {
  background: rgba(8, 17, 38, 0.96);
  border: 1.5px solid var(--teal-neon);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 40px var(--teal-glow);
}
.qr-img {
  width: 200px;
  height: 200px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  margin: 16px auto;
  display: block;
}

/* ── Secret Presenter Invisible Switch & HUD ── */
.invisible-switch-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 55px;
  height: 55px;
  z-index: 9999;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.invisible-switch-trigger:hover {
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.2), transparent 70%);
}
.presenter-hud-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 18, 0.9);
  backdrop-filter: blur(25px);
  display: none;
  place-items: center;
  padding: 20px;
  animation: fadeInHud 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.presenter-hud-overlay.active {
  display: grid;
}
@keyframes fadeInHud {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.presenter-hud-box {
  width: 100%;
  max-width: 440px;
  background: rgba(8, 17, 38, 0.96);
  border: 1.5px solid var(--teal-neon);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px var(--teal-glow);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}
.hud-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hud-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.hud-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hud-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.hud-nav-item:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--teal-neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
  color: #ffffff;
}
.hud-nav-item .hni-icon {
  font-size: 18px;
  margin-right: 10px;
}
.hud-nav-item .hni-left {
  display: flex;
  align-items: center;
}
.hud-nav-item .hni-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--teal-neon);
  background: rgba(0, 212, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.28);
}
.hud-close-btn {
  margin-top: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.hud-close-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

