/* ==========================================================================
   Brainstorm Live - Modern Interactive Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);

  --primary: #6366F1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --primary-dark: #4F46E5;
  --primary-light: #818CF8;
  
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-purple: #8B5CF6;
  --accent-rose: #F43F5E;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --gradient-brand: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35), 0 2px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(99, 102, 241, 0.2);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.35);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.2);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

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

body.brainstorm-app {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: var(--gradient-glow),
                    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Header & Nav */
.bs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bs-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.bs-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  color: white;
  font-size: 1.2rem;
}

.bs-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn-bs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  outline: none;
  white-space: nowrap;
}

.btn-bs:active {
  transform: scale(0.97);
}

.btn-primary-bs {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}
.btn-primary-bs:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.btn-secondary-bs {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-secondary-bs:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-ai {
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-ai::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  animation: shine 4s infinite;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  25%, 100% { transform: translateX(100%); }
}

.btn-ai:hover {
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6);
  transform: translateY(-1px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Hero & Hub Layout */
.bs-hero {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.bs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.bs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bs-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Hub Cards Grid (Join / Create) */
.bs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto 4rem;
}

.bs-action-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  text-align: left;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.bs-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.bs-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.icon-join {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.icon-create {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  color: #D946EF;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.bs-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bs-card-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Forms & Inputs */
.bs-input-group {
  margin-bottom: 1.25rem;
}

.bs-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bs-input, .bs-select, .bs-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.bs-input:focus, .bs-select:focus, .bs-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(15, 23, 42, 0.9);
}

.bs-input-code {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* Presenter Session View */
.bs-session-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 90;
}

.bs-room-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bs-code-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.bs-code-badge:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

.bs-code-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #A5B4FC;
}

.bs-question-banner {
  max-width: 1400px;
  margin: 1.5rem auto 1rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bs-question-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #FFFFFF;
}

/* Canvas / Ideas Wall */
.bs-board-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
}

.bs-board-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.bs-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.bs-filter-tab {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bs-filter-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Grid of Ideas */
.bs-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Idea Card Styling */
.bs-idea-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  position: relative;
  transition: all var(--transition-bounce);
  animation: slideUpIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}

.bs-idea-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.15);
}

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

/* Card Color Variations */
.bs-idea-card[data-color="cyan"] {
  border-left: 4px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, var(--bg-card) 60%);
}
.bs-idea-card[data-color="purple"] {
  border-left: 4px solid var(--accent-purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-card) 60%);
}
.bs-idea-card[data-color="emerald"] {
  border-left: 4px solid var(--accent-emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 60%);
}
.bs-idea-card[data-color="amber"] {
  border-left: 4px solid var(--accent-amber);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 60%);
}
.bs-idea-card[data-color="pink"] {
  border-left: 4px solid var(--accent-pink);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, var(--bg-card) 60%);
}

.bs-idea-card.is-highlighted {
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}
.bs-idea-card.is-highlighted::before {
  content: '★ DESTACADO';
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--accent-amber);
  color: #0F172A;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.bs-card-content {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

.bs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: auto;
}

.bs-author-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.bs-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
  font-weight: 700;
}

.bs-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* React Button on card */
.btn-react {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-react:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.btn-react.active {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
  border-color: rgba(236, 72, 153, 0.4);
}

/* Modals */
.bs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.bs-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bs-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
  overflow: hidden;
}

.bs-modal-backdrop.open .bs-modal {
  transform: scale(1);
}

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

.bs-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bs-modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
}

.bs-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

/* AI Prompt Output Box */
.ai-prompt-box {
  background: #090D16;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #E2E8F0;
  white-space: pre-wrap;
  max-height: 340px;
  overflow-y: auto;
  line-height: 1.6;
}

/* AI Template Selector */
.ai-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ai-template-card {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.ai-template-card:hover, .ai-template-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
}

.ai-template-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.ai-template-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* QR Code Container in Modal or Drawer */
.bs-qr-wrapper {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin: 1rem auto;
}

/* Participant Submission Floating / Fixed Mobile Layout */
.bs-participant-container {
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 0 1rem 6rem;
}

.bs-participant-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.color-dot.active {
  border-color: white;
  transform: scale(1.15);
}

.color-cyan { background: var(--accent-cyan); }
.color-purple { background: var(--accent-purple); }
.color-emerald { background: var(--accent-emerald); }
.color-amber { background: var(--accent-amber); }
.color-pink { background: var(--accent-pink); }

/* Fullscreen Projector Mode Tweaks */
body.projector-mode {
  background: #060911;
}

body.projector-mode .bs-idea-card {
  font-size: 1.25rem;
  padding: 1.75rem;
}
body.projector-mode .bs-card-content {
  font-size: 1.25rem;
}

/* Toast Notifications */
.bs-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-bounce);
}

.bs-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Empty State */
.bs-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.bs-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Timer, Floating Reactions, Podium & Gamification Styles
   ========================================================================== */

/* Synchronized Timer Widget */
.bs-timer-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  transition: all var(--transition-fast);
}

.bs-timer-widget.warning {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.bs-timer-digits {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.bs-timer-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.bs-timer-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  transition: width 1s linear;
}

/* Floating Reactions Overlay */
.bs-floating-container {
  position: fixed;
  bottom: 20px;
  right: 40px;
  width: 180px;
  height: 400px;
  pointer-events: none;
  z-index: 999;
  overflow: visible;
}

.floating-emoji {
  position: absolute;
  bottom: 0;
  font-size: 2.2rem;
  opacity: 1;
  pointer-events: none;
  animation: floatUpBurst 3.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

@keyframes floatUpBurst {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.6) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translateY(-40px) scale(1.3) rotate(8deg);
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-380px) scale(1) rotate(-15deg);
  }
}

/* Participant Floating Reaction Bottom Dock */
.bs-participant-reaction-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.8rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1rem;
}

.btn-float-react {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-full);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.btn-float-react:active {
  transform: scale(1.4);
}

/* Podium & Top 3 Styles */
.bs-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: flex-end;
  margin: 1.5rem 0;
}

.bs-podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
}

.bs-podium-card.rank-1 {
  border-color: #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, var(--bg-card) 100%);
  transform: translateY(-15px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.bs-podium-card.rank-2 {
  border-color: #94A3B8;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.15) 0%, var(--bg-card) 100%);
}

.bs-podium-card.rank-3 {
  border-color: #D97706;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.15) 0%, var(--bg-card) 100%);
}

.bs-podium-medal {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Roulette / Random Picker Modal */
.roulette-box {
  background: #090D16;
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
}

.roulette-box.spinning {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
  animation: pulseBorder 0.2s infinite alternate;
}

@keyframes pulseBorder {
  0% { border-color: var(--accent-cyan); }
  100% { border-color: var(--accent-pink); }
}

/* Switch / Toggle Checkbox */
.bs-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.bs-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bs-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

.bs-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .bs-slider {
  background-color: var(--primary);
}

input:checked + .bs-slider:before {
  transform: translateX(20px);
}

/* Responsive */
@media (max-width: 768px) {
  .bs-nav {
    padding: 0.75rem 1rem;
  }
  .bs-session-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .bs-board-container {
    padding: 1rem;
  }
  .bs-ideas-grid {
    grid-template-columns: 1fr;
  }
  .bs-podium-grid {
    grid-template-columns: 1fr;
  }
  .bs-podium-card.rank-1 {
    transform: none;
  }
}

