:root {
  /* Colors (Light Theme Default) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-dark: #0f172a;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --primary-50: #faf5ff;
  --primary-100: #f3e8ff;
  --primary-200: #e9d5ff;
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  
  --success-50: #ecfdf5;
  --success-600: #059669;
  --success-700: #047857;
  
  --warning-50: #fffbeb;
  --warning-600: #d97706;
  
  --danger-50: #fef2f2;
  --danger-600: #dc2626;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing */
  --container-max: 1200px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg-main: #0b0813;
  --bg-surface: #130f21;
  --bg-surface-elevated: #1c1630;
  --bg-surface-subtle: #231b3d;
  --bg-dark: #06040a;
  
  --border-subtle: #292048;
  --border-strong: #3f326e;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --primary-50: rgba(124, 58, 237, 0.15);
  --primary-100: rgba(124, 58, 237, 0.25);
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  
  --success-50: rgba(16, 185, 129, 0.15);
  --warning-50: rgba(245, 158, 11, 0.15);
  --danger-50: rgba(239, 68, 68, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

/* Custom In-App Confirm/Alert Modal */
.confirm-modal-overlay,
.modal-overlay,
.qr-scanner-overlay,
#profile-onboarding-modal,
#first-login-discovery-modal,
#create-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn 0.15s ease-out;
}

[data-theme="dark"] .confirm-modal-overlay,
[data-theme="dark"] .modal-overlay,
[data-theme="dark"] .qr-scanner-overlay,
[data-theme="dark"] #profile-onboarding-modal,
[data-theme="dark"] #first-login-discovery-modal,
[data-theme="dark"] #create-modal {
  background-color: rgba(4, 2, 9, 0.85) !important;
  backdrop-filter: blur(8px) !important;
}

.confirm-modal-overlay.closing {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.confirm-modal-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: modalZoomIn 0.15s ease-out;
}

.confirm-modal-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.confirm-modal-message {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* HIGH-CONTRAST POPUP & MODAL RULES FOR DARK MODE: 100% WHITE TEXT */
[data-theme="dark"] .confirm-modal-card,
[data-theme="dark"] .qr-scanner-card,
[data-theme="dark"] #otp-modal-backdrop .card,
[data-theme="dark"] #profile-onboarding-modal .card,
[data-theme="dark"] #first-login-discovery-modal .card,
[data-theme="dark"] #create-modal .card {
  background-color: #1e1838 !important;
  border: 1px solid #5a4996 !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .confirm-modal-card *,
[data-theme="dark"] .qr-scanner-card *,
[data-theme="dark"] #otp-modal-backdrop .card *:not(.btn):not(#otp-input),
[data-theme="dark"] #profile-onboarding-modal .card *:not(.btn):not(input):not(select):not(textarea),
[data-theme="dark"] #first-login-discovery-modal .card *:not(.btn):not(input):not(select):not(textarea),
[data-theme="dark"] #create-modal .card *:not(.btn):not(input):not(select):not(textarea) {
  color: #ffffff !important;
}

[data-theme="dark"] .confirm-modal-title,
[data-theme="dark"] .qr-scanner-card h2,
[data-theme="dark"] .qr-scanner-card h3,
[data-theme="dark"] #otp-modal-backdrop h2,
[data-theme="dark"] #otp-modal-backdrop h3,
[data-theme="dark"] #profile-onboarding-modal .card-title,
[data-theme="dark"] #first-login-discovery-modal .card-title,
[data-theme="dark"] #create-modal .card-title,
[data-theme="dark"] #otp-target-email {
  color: #ffffff !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .confirm-modal-message,
[data-theme="dark"] #qr-status-msg,
[data-theme="dark"] #otp-modal-backdrop p,
[data-theme="dark"] #profile-onboarding-modal p,
[data-theme="dark"] #first-login-discovery-modal p,
[data-theme="dark"] #create-modal p,
[data-theme="dark"] #otp-modal-backdrop span,
[data-theme="dark"] #otp-modal-backdrop strong {
  color: #ffffff !important;
}

[data-theme="dark"] #profile-onboarding-modal .form-label,
[data-theme="dark"] #first-login-discovery-modal .form-label,
[data-theme="dark"] #create-modal .form-label,
[data-theme="dark"] .form-label {
  color: #ffffff !important;
  font-weight: 600 !important;
}

[data-theme="dark"] #profile-onboarding-modal .form-helper,
[data-theme="dark"] #create-modal .form-helper,
[data-theme="dark"] .form-helper {
  color: #f1f5f9 !important;
}

[data-theme="dark"] #profile-onboarding-modal span[style*="text-transform: uppercase"],
[data-theme="dark"] span[style*="color: var(--text-muted)"] {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background-color: #120d24 !important;
  color: #ffffff !important;
  border: 1px solid #4a3b7d !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #a78bfa !important;
  background-color: #181230 !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3) !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #94a3b8 !important;
}

[data-theme="dark"] button[onclick*="dismiss"],
[data-theme="dark"] button[onclick*="toggleModal"],
[data-theme="dark"] button[onclick*="closeQRScanner"] {
  color: #cbd5e1 !important;
}
[data-theme="dark"] button[onclick*="dismiss"]:hover,
[data-theme="dark"] button[onclick*="toggleModal"]:hover,
[data-theme="dark"] button[onclick*="closeQRScanner"]:hover {
  color: #ffffff !important;
}

/* Danger Zone Card High Contrast */
.danger-card {
  border: 1px solid #fecaca;
  background-color: #fffaf0;
}
[data-theme="dark"] .danger-card {
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  background-color: rgba(239, 68, 68, 0.12) !important;
}
[data-theme="dark"] .danger-card p {
  color: #fecaca !important;
}
[data-theme="dark"] .danger-card h2 {
  color: #f87171 !important;
}

/* OTP Confirmation Modal Contrast Hardening */
.otp-card {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
}

.otp-input-field {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 12px !important;
  text-align: center !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  padding: 0.75rem 1rem !important;
  width: 100% !important;
  border: 2px solid var(--primary-400) !important;
  border-radius: var(--radius-md) !important;
  outline: none !important;
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.otp-input-field:focus {
  border-color: var(--primary-600) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25) !important;
}

[data-theme="dark"] .otp-input-field {
  background-color: #161224 !important;
  color: #ffffff !important;
  border-color: #8b5cf6 !important;
  -webkit-text-fill-color: #ffffff !important;
}

[data-theme="dark"] .otp-input-field::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

[data-theme="dark"] #otp-timer {
  color: #c084fc !important;
}

.otp-error-alert {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .otp-error-alert {
  background-color: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalZoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Utility Toggles (Theme & Language) */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  height: 36px;
  box-sizing: border-box;
}

#lang-toggle-btn {
  min-width: 76px;
  text-align: center;
}

#theme-toggle-btn {
  min-width: 38px;
  width: 38px;
  padding: 0;
  font-size: 1rem;
}

.toggle-btn:hover {
  background: var(--border-subtle);
  border-color: var(--border-strong);
}

/* CSS-Native Multi-Language Visibility Rules */
html[lang="en"] [data-lang="fr"] {
  display: none !important;
}
html[lang="en"] [data-lang="en"] {
  display: block !important;
}
html[lang="fr"] [data-lang="en"] {
  display: none !important;
}
html[lang="fr"] [data-lang="fr"] {
  display: block !important;
}
html:not([lang="en"]) [data-lang="en"] {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding: 2rem 1rem;
}

.site-main.participant-mode {
  padding: 0.5rem 0.5rem 0.75rem;
}

@media (max-width: 640px) {
  .site-main.participant-mode {
    padding: 0.35rem 0.35rem 0.5rem;
  }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 680px;
}

.container-wide {
  max-width: 1400px;
}

/* Header & Navigation */
.site-header {
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.logo-dark {
  display: none !important;
}

.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  justify-content: flex-end;
}

.nav-btn-icon {
  display: none;
}

.nav-btn-text {
  display: inline;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  text-align: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.nav-menu .btn-sm {
  min-width: 145px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary-600);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: #ffffff !important;
}

.btn:disabled,
.btn[disabled],
.btn.btn-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(100%) !important;
  background-color: var(--bg-surface-subtle, #94a3b8) !important;
  border-color: var(--border-subtle, #94a3b8) !important;
  color: var(--text-muted, #64748b) !important;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-muted);
}

.btn-danger {
  background-color: var(--danger-50);
  color: var(--danger-600);
  border-color: #fecaca;
}

.btn-danger:hover {
  background-color: #fee2e2;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Cards & Containers */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.card-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pro {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

.badge-primary {
  background-color: var(--primary-600);
  color: #ffffff !important;
}

.badge-trial {
  background-color: var(--warning-50);
  color: var(--warning-600);
  border: 1px solid #fde68a;
}

.badge-success {
  background-color: var(--success-50);
  color: var(--success-700);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-helper {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.typewriter-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 850px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.typewriter-cursor {
  color: var(--primary-600);
  font-weight: 700;
  display: inline-block;
  margin-left: 2px;
  animation: typewriterBlink 0.6s infinite;
}

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

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 960px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  text-align: center;
}

/* Modern Join Room Card */
.join-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.join-card-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.join-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.join-input-row .slug-input {
  flex: 1;
  min-width: 0;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 3px;
  min-height: 64px;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-main);
  box-sizing: border-box;
}

.join-input-row .slug-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
  outline: none;
}

.join-input-row .btn-join {
  width: 135px;
  flex-shrink: 0;
  background-color: var(--primary-600);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
}

.join-input-row .btn-join:hover {
  background-color: var(--primary-700);
}

.join-input-row .btn-join:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .join-card {
    padding: 18px 14px;
  }
  .join-input-row {
    gap: 8px;
  }
  .join-input-row .slug-input {
    font-size: 1.15rem;
    letter-spacing: 2px;
    padding: 10px 8px;
    min-height: 56px;
  }
  .join-input-row .btn-join {
    width: 110px;
    font-size: 13px;
    padding: 8px 6px;
  }
}

/* Fast Dual-Action Auth Card (Homepage) */
.fast-auth-card {
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
  margin: 2.25rem auto 0;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.fast-auth-header {
  margin-bottom: 16px;
  text-align: center;
}

.fast-auth-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: stretch;
}

.fast-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.fast-input-mail {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9375rem;
  height: 46px;
  box-sizing: border-box;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.fast-submit-btn {
  width: 135px;
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  height: 46px;
  box-sizing: border-box;
  white-space: nowrap;
  background-color: var(--primary-600);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
}

.fast-submit-btn:hover {
  background-color: var(--primary-700);
}

.fast-submit-btn:active {
  transform: scale(0.98);
}

.fast-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  justify-content: center;
}

@media (max-width: 520px) {
  .fast-auth-card {
    padding: 18px 14px;
  }
  .fast-auth-input-group {
    gap: 8px;
  }
  .fast-google-btn {
    width: 44px;
    height: 44px;
  }
  .fast-input-mail {
    height: 44px;
    font-size: 0.875rem;
    padding: 10px 10px;
  }
  .fast-submit-btn {
    width: 110px;
    height: 44px;
    font-size: 13px;
    padding: 8px 6px;
  }
}

/* Segmented Sort Toggle Buttons */
.sort-toggle-group {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.sort-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  line-height: 1.2;
}

.sort-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.sort-toggle-btn.active {
  background-color: var(--primary-600);
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: default;
}

[data-theme="dark"] .sort-toggle-group {
  background-color: #161028;
  border-color: #4a3b7d;
}

[data-theme="dark"] .sort-toggle-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .sort-toggle-btn:hover:not(.active) {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sort-toggle-btn.active {
  background-color: var(--primary-600);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-export-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid #7c3aed;
  background-color: #8b5cf6;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(139, 92, 246, 0.25);
}

.btn-export-purple:hover {
  background-color: #7c3aed;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

[data-theme="dark"] .btn-export-purple {
  background-color: #7c3aed;
  border-color: #6d28d9;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-export-purple:hover {
  background-color: #6d28d9;
  border-color: #5b21b6;
}

/* Questions Live List */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.question-item.is-moving {
  z-index: 10;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

.question-item.answered {
  opacity: 0.55;
  background-color: var(--bg-surface-subtle);
}

.question-content {
  flex: 1;
  min-width: 0;
}

.question-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-primary);
  word-break: break-word;
}

.question-meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 3 Stacked Identical Squares Vote Widget (Flat Design) */
.vote-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  width: 38px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  flex-shrink: 0;
  padding: 0;
}

.vote-sub-btn {
  background-color: var(--bg-surface);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 38px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vote-sub-btn.upvote-btn {
  border-bottom: 1px solid var(--border-subtle);
}

.vote-sub-btn.downvote-btn {
  border-top: 1px solid var(--border-subtle);
}

.vote-sub-btn:hover:not(:disabled) {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.vote-sub-btn.active-up {
  color: var(--primary-600) !important;
  background-color: var(--primary-50) !important;
}

.vote-sub-btn.active-down {
  color: var(--danger-600) !important;
  background-color: var(--danger-50) !important;
}

.vote-sub-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vote-score-box,
.vote-score {
  width: 38px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  text-align: center;
  transition: color 0.15s ease;
}

.vote-score-box.score-positive,
.vote-score.score-positive {
  color: var(--primary-600);
}

.vote-score-box.score-negative,
.vote-score.score-negative {
  color: var(--danger-600);
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.vote-btn:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-500);
}

.vote-btn.voted {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff !important;
}

.vote-icon {
  font-size: 1.125rem;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.vote-count {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Presenter View Tools */
.presenter-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.presenter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qr-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.qr-box svg {
  margin: 0 auto 1rem;
}

.slug-display {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-600);
}

/* Character Counter */
.char-counter {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background-color: var(--bg-surface);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.toast {
  padding: 0.875rem 1.25rem;
  background-color: #0f172a;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.2s ease-out;
}

[data-theme="dark"] .toast {
  background-color: #231b42 !important;
  color: #ffffff !important;
  border: 1px solid #7c3aed !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.toast * {
  color: #ffffff !important;
}

.toast-error {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

[data-theme="dark"] .toast-error {
  background-color: #991b1b !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Ultra-Thin Single-Line Cookie & Privacy Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background-color: rgba(11, 8, 19, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(124, 58, 237, 0.3);
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 280px;
  color: #ffffff !important;
}

.cookie-banner-text a {
  color: #38bdf8 !important;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-btn {
  background-color: var(--primary-600);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.cookie-banner-btn:hover {
  background-color: var(--primary-700);
}

/* RGPD Banner */
.rgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 1rem 1.5rem;
  z-index: 900;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.rgpd-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rgpd-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .presenter-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.125rem;
  }
}

@media (max-width: 768px) {
  .site-header .brand-link span,
  .brand-link .brand-name {
    display: none !important;
  }
  .brand-link {
    gap: 0 !important;
    flex-shrink: 0;
  }
  .site-header {
    height: 54px !important;
  }
  .site-header .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    gap: 0.25rem !important;
  }
  .nav-menu {
    gap: 0.25rem !important;
    flex-shrink: 1;
  }
  /* Responsive transformation: button text turns into SVG icons */
  .nav-btn-text {
    display: none !important;
  }
  .nav-btn-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }
  .nav-btn-responsive {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .nav-link.nav-btn-responsive {
    background-color: var(--bg-surface-subtle) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
  }
  .nav-link.nav-btn-responsive:hover {
    background-color: var(--bg-surface) !important;
    border-color: var(--primary-500) !important;
  }
  .nav-menu .btn-sm {
    min-width: 36px !important;
    max-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }
  .toggle-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }
  .lang-toggle-btn span:not(.flag-icon) {
    display: none !important;
  }
  .lang-toggle-btn {
    gap: 0 !important;
  }
  .nav-badge-link {
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 4px !important;
    background: transparent !important;
    border: none !important;
  }
  .badge-trial {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 54px !important;
  }
  .rgpd-banner .container {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .join-card {
    padding: 1.25rem;
  }
}

/* QR Code Live Scanner Styles */
.qr-scanner-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.qr-scanner-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-laser {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  box-shadow: 0 0 8px #3b82f6;
  animation: scanMove 2s ease-in-out infinite alternate;
}

@keyframes scanMove {
  0% { top: 15%; }
  100% { top: 85%; }
}

.scanner-guide {
  position: absolute;
  inset: 15%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* --- Styles pour la Section de Confiance Mistral.ai (Carousel Infini Ultra-Stylé) --- */
.trust-section {
  padding: 60px 0 70px 0;
  background-color: var(--bg-surface);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 3.5rem 0;
  position: relative;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: rgba(255, 112, 0, 0.1);
  border: 1px solid rgba(255, 112, 0, 0.3);
  border-radius: var(--radius-full);
  color: #ff7000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.trust-header {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.trust-header h3 {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-primary);
}

.trust-header h3 a {
  color: #ff7000;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-header h3 a:hover {
  color: #ea580c;
  text-shadow: 0 0 12px rgba(255, 112, 0, 0.4);
}

.trust-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary-600);
}

.brand-smart,
.brand-feedback {
  color: var(--primary-600);
}

/* Drapeaux Français Premium */
.flag-fr {
  display: inline-flex;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Anti-Scraping / Anti-Bot Blur Reveal */
.reveal-blur {
  filter: blur(5px);
  user-select: none;
  cursor: pointer;
  background-color: var(--primary-100);
  color: var(--text-primary);
  padding: 1px 6px;
  border-radius: 4px;
  transition: filter 0.2s ease, background-color 0.2s ease;
  display: inline-block;
  vertical-align: baseline;
}
.reveal-blur:hover {
  filter: blur(2.5px);
}
.reveal-blur.revealed {
  filter: none !important;
  user-select: auto !important;
  background-color: transparent !important;
}

.flag-fr-blue {
  width: 33.33%;
  height: 100%;
  background-color: #002395;
}

.flag-fr-white {
  width: 33.33%;
  height: 100%;
  background-color: #ffffff;
}

.flag-fr-red {
  width: 33.34%;
  height: 100%;
  background-color: #ed2939;
}

/* Carousel Infini Ultra-Fluide */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 18px 0;
  user-select: none;
}

.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 10;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface) 15%, rgba(255, 255, 255, 0));
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface) 15%, rgba(255, 255, 255, 0));
}

[data-theme="dark"] .carousel-container::before {
  background: linear-gradient(to right, var(--bg-surface) 15%, rgba(19, 15, 33, 0));
}

[data-theme="dark"] .carousel-container::after {
  background: linear-gradient(to left, var(--bg-surface) 15%, rgba(19, 15, 33, 0));
}

.carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: infiniteScroll 30s linear infinite;
  gap: 20px;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

@keyframes infiniteScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.company-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.company-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff7000;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.company-tag:hover {
  transform: translateY(-4px) scale(1.02);
  background-color: var(--bg-surface);
  border-color: #ff7000;
  color: #ff7000;
  box-shadow: 0 10px 20px -5px rgba(255, 112, 0, 0.2);
}

.company-tag:hover::before {
  transform: scale(1.4);
  opacity: 1;
}

/* ==========================================================================
   Participant View — Clean & Generous Layout
   ========================================================================== */
.participant-container {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.site-main.participant-mode {
  padding: 0.3rem 0.5rem 0.75rem;
}

@media (max-width: 640px) {
  .site-main.participant-mode {
    padding: 0.2rem 0.25rem 0.5rem;
  }

  .participant-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .question-item {
    padding: 0.75rem 0.875rem !important;
    gap: 0.75rem;
  }

  .question-text {
    font-size: 1.05rem;
    line-height: 1.45;
  }
}

/* ==========================================================================
   Pricing Billing Toggle (Monthly / Annual with Discount)
   ========================================================================== */
.billing-toggle-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  user-select: none;
}

.billing-toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
  flex: 1;
}

#label-monthly {
  text-align: right;
}

#label-yearly {
  text-align: left;
}

.billing-toggle-label.active {
  color: var(--text-primary);
  font-weight: 700;
}

.billing-switch-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin: 0 0.35rem;
}

.billing-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.billing-switch-track {
  width: 44px;
  height: 24px;
  background-color: var(--border-subtle);
  border-radius: 24px;
  position: relative;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  border: 1px solid var(--border-color);
}

.billing-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.billing-switch-input:checked + .billing-switch-track {
  background-color: var(--primary-600);
  border-color: var(--primary-500);
}

.billing-switch-input:checked + .billing-switch-track .billing-switch-thumb {
  transform: translateX(20px);
}

.discount-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.35);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .discount-badge-pill {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

/* ==========================================================================
   Header & Navigation Responsive Icons
   ========================================================================== */
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logout-icon {
  display: none;
}
.logout-text {
  display: inline;
}

@media (max-width: 768px) {
  .logout-text {
    display: none !important;
  }
  .logout-icon {
    display: block !important;
  }
  .logout-btn {
    padding: 0.35rem 0.55rem !important;
  }
}

/* ==========================================================================
   Dashboard View — Desktop & Base Layout
   ========================================================================== */
.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.session-info-col {
  flex: 1;
  min-width: 0;
}

.session-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.session-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.session-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.dash-act-subgroup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stable Checkmark Checkbox for Presenter View */
.btn-action-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  min-width: 32px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid var(--border-strong, #cbd5e1);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-action-check:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.btn-action-check.is-checked {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff !important;
}
.btn-action-check.is-checked:hover {
  background: #059669;
  border-color: #059669;
}
[data-theme="dark"] .btn-action-check {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
[data-theme="dark"] .btn-action-check:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}
[data-theme="dark"] .btn-action-check.is-checked {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff !important;
}

/* ==========================================================================
   Dashboard View — Dedicated Native Mobile Optimization (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .dashboard-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: 0.75rem !important;
  }
  .dash-meetings-card {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .dash-meetings-card .card-header {
    padding: 0 0 0.5rem 0 !important;
    margin-bottom: 0.5rem !important;
  }
  .session-cards-wrapper {
    gap: 0.625rem !important;
  }
  .session-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0.75rem 0.875rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .session-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .session-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 2px !important;
  }
  .session-card-actions > .btn {
    width: 100% !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }
  .dash-act-subgroup {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    height: 38px !important;
  }
  .dash-act-subgroup > .btn {
    width: 100% !important;
    height: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 2px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }
}

/* ==========================================================================
   Presenter Room — Dedicated Native Mobile Optimization (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .presenter-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: 0.5rem !important;
  }
  .presenter-top-bar {
    padding: 0.75rem 0.875rem !important;
    gap: 0.625rem !important;
    margin-bottom: 0.75rem !important;
  }
  .pres-top-header-info {
    width: 100% !important;
  }
  .pres-top-header-info > div {
    justify-content: space-between !important;
    width: 100% !important;
  }
  .pres-top-actions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .pres-top-actions-grid > .btn:not(.pres-btn-fullscreen):not(.desktop-only),
  .pres-top-actions-grid > a.btn {
    width: 100% !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }
  .pres-top-actions-grid > .pres-btn-fullscreen,
  .pres-top-actions-grid > .desktop-only,
  .pres-btn-fullscreen,
  .desktop-only {
    display: none !important;
  }
  .mobile-pres-header-block {
    display: flex !important;
  }
  .presenter-grid {
    display: block !important;
  }
  .presenter-sidebar {
    display: none !important;
  }
  
  /* QR Split Banner (Left QR scaled to 150% = 165px + Right Stacked Actions) */
  .qr-split-banner {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    padding: 8px !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .qr-split-left {
    width: 165px !important;
    min-width: 165px !important;
    height: 165px !important;
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--border-subtle) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  .qr-split-left img,
  .qr-split-left svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .qr-split-right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .qr-split-right .qr-act-btn {
    width: 100% !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.775rem !important;
    font-weight: 600 !important;
    padding: 4px 6px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
  }

  /* Stats Trio (3 Columns) */
  .stats-trio {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .stat-item {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    padding: 6px 4px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
  }
  .stat-item.active {
    border-color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.15) !important;
    box-shadow: 0 0 0 1.5px #7c3aed !important;
  }
  .stat-item.active .caption {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
  }
  .stat-item .value {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }
  .stat-item .caption {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Questions list and items on mobile */
  .questions-list {
    margin-top: 0.5rem !important;
    gap: 0.5rem !important;
  }
  .question-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: var(--radius-md) !important;
  }
  .question-item .vote-btn {
    min-width: 36px !important;
    width: 36px !important;
    padding: 4px 2px !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-sm) !important;
  }
  .question-item .vote-btn .vote-icon {
    font-size: 0.75rem !important;
  }
  .question-item .vote-btn .q-score {
    font-size: 0.8125rem !important;
  }
  .question-item .question-content {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .question-item .question-text {
    font-size: 0.9375rem !important;
    line-height: 1.35 !important;
  }
  .question-item .question-meta {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 3px !important;
  }
  .question-item .question-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .btn-chip-answer {
    padding: 4px 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    height: 28px !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .btn-chip-delete {
    padding: 5px 8px !important;
    height: 28px !important;
    width: 32px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
  }
}

.btn-chip-delete {
  padding: 5px 8px;
  height: 28px;
  width: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

@media (min-width: 769px) {
  .pres-btn-fullscreen {
    display: inline-flex !important;
  }
  .mobile-only {
    display: none !important;
  }
}

/* ==========================================================================
   Dark Mode & Global Contrast: All Violet/Purple Buttons MUST Have White Text
   ========================================================================== */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary *,
.btn-primary:hover *,
.btn-export-purple,
.btn-export-purple:hover,
.btn-export-purple *,
.btn-join,
.btn-join:hover,
.btn-join *,
.vote-btn.voted,
.vote-btn.voted *,
.sort-toggle-btn.active,
.sort-toggle-btn.active *,
.tab-btn.btn-primary,
.tab-btn.btn-primary *,
.tab-btn.active,
.tab-btn.active *,
.fast-submit-btn,
.fast-submit-btn *,
.admin-btn,
.admin-btn * {
  color: #ffffff !important;
  fill: currentColor;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus,
[data-theme="dark"] .btn-primary:active,
[data-theme="dark"] .btn-primary *,
[data-theme="dark"] .btn-primary:hover *,
[data-theme="dark"] .btn-export-purple,
[data-theme="dark"] .btn-export-purple:hover,
[data-theme="dark"] .btn-export-purple *,
[data-theme="dark"] .btn-join,
[data-theme="dark"] .btn-join:hover,
[data-theme="dark"] .btn-join *,
[data-theme="dark"] .vote-btn.voted,
[data-theme="dark"] .vote-btn.voted *,
[data-theme="dark"] .sort-toggle-btn.active,
[data-theme="dark"] .sort-toggle-btn.active *,
[data-theme="dark"] .tab-btn.btn-primary,
[data-theme="dark"] .tab-btn.btn-primary *,
[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .tab-btn.active *,
[data-theme="dark"] .fast-submit-btn,
[data-theme="dark"] .fast-submit-btn *,
[data-theme="dark"] .admin-btn,
[data-theme="dark"] .admin-btn *,
[data-theme="dark"] .badge-primary,
[data-theme="dark"] .badge-primary *,
[data-theme="dark"] button.btn-primary,
[data-theme="dark"] a.btn-primary,
[data-theme="dark"] input[type="submit"].btn-primary,
[data-theme="dark"] button[style*="background-color: var(--primary-600)"],
[data-theme="dark"] button[style*="background-color: #7c3aed"],
[data-theme="dark"] button[style*="background-color: #8b5cf6"],
[data-theme="dark"] button[style*="background: var(--primary-600)"],
[data-theme="dark"] button[style*="background: #7c3aed"],
[data-theme="dark"] button[style*="background: #8b5cf6"],
[data-theme="dark"] a[style*="background-color: var(--primary-600)"],
[data-theme="dark"] a[style*="background-color: #7c3aed"],
[data-theme="dark"] a[style*="background-color: #8b5cf6"],
[data-theme="dark"] a[style*="background: var(--primary-600)"],
[data-theme="dark"] a[style*="background: #7c3aed"],
[data-theme="dark"] a[style*="background: #8b5cf6"] {
  color: #ffffff !important;
  fill: currentColor;
}

/* ==========================================
   Ultra-Simplified Join Page & Minimal Header (100% Fluid Flexbox, Zero Overflow)
   ========================================== */
body.minimal-join-page {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-wrapper.minimal-join-wrapper {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.site-header-minimal {
  flex-shrink: 0;
}

.site-header-minimal .brand-name {
  display: inline-block !important;
}

.site-main.minimal-join-mode {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  width: 100%;
}

.simple-join-container {
  width: 100%;
  max-width: min(540px, 94vw);
  margin: 0 auto;
  /* Positioned at the boundary between 1st and 2nd third of the screen (~33% from top) */
  margin-top: clamp(2.5rem, 14vh, 8.5rem);
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.simple-join-form {
  width: 100%;
  display: block;
}

.simple-join-row {
  display: flex;
  gap: clamp(8px, 1.8vw, 14px);
  align-items: stretch;
  width: 100%;
}

.simple-join-row .slug-input {
  flex: 1 1 auto;
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  letter-spacing: clamp(1.5px, 0.5vw, 3px);
  padding: clamp(10px, 1.8vw, 14px) clamp(10px, 2vw, 16px);
  min-height: clamp(54px, 7.5vh, 64px);
  text-align: center;
  text-transform: uppercase;
  color: var(--text-main);
  box-sizing: border-box;
}

.simple-join-row .slug-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
  outline: none;
}

.simple-join-row .btn-join {
  flex: 0 0 auto;
  min-width: clamp(110px, 24vw, 145px);
  min-height: clamp(54px, 7.5vh, 64px);
  padding: clamp(8px, 1.5vw, 12px);
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  line-height: 1.25;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.join-powered-by-wrapper {
  flex-shrink: 0;
  padding: 0.5rem 1rem clamp(1.25rem, 3.5vh, 2.25rem) 1rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.join-powered-by {
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0;
  letter-spacing: 0.01em;
}

.site-wrapper.minimal-join-wrapper .site-footer {
  flex-shrink: 0;
  padding: clamp(0.625rem, 1.8vh, 1.25rem) 0;
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
}

.site-wrapper.minimal-join-wrapper .footer-content {
  gap: 0.5rem 1.25rem;
}

.site-wrapper.minimal-join-wrapper .footer-links {
  gap: 0.5rem 1rem;
}

@media (max-width: 640px) {
  .site-wrapper.minimal-join-wrapper .footer-content {
    justify-content: center;
    text-align: center;
  }
  .site-wrapper.minimal-join-wrapper .footer-links {
    justify-content: center;
  }
}

/* ==========================================
   Spaces & Rooms (Salles & Espaces) Tab Styles
   ========================================== */
.parsed-session-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Responsive mobile optimization (clean 10px padding & compact cards) */
@media (max-width: 640px) {
  .container.dashboard-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  .dashboard-container .card {
    padding: 10px !important;
    border-radius: var(--radius-md) !important;
  }
  .dashboard-container .card-header {
    padding: 0.625rem 10px !important;
  }
  #tab-content-spaces {
    gap: 1rem !important;
  }
  .parsed-session-card {
    padding: 10px !important;
    gap: 0.5rem !important;
  }
}








