/* ==========================================================================
   Code_Moto - Design System: Rétro Brutalisme (Neo-Brutalism)
   ==========================================================================
   Charte Graphique Imposée :
   - Fond : Sable / Brun clair chaud (#f4ede4 / #efe6d8)
   - Accents : Noir profond (#000000), Blanc pur (#ffffff), Orange Fluo (#ff5500)
   - Style : Bordures épaisses (2px à 4px #000), Ombres portées dures (Hard Shadows)
   - Typographies affirmées, boutons mécaniques avec effet de clic décalé
   ========================================================================== */

:root {
  /* Colors */
  --bg-sand: #f4ede4;
  --bg-sand-darker: #ebe1d3;
  --bg-sand-light: #fbf7f0;
  --card-bg: #ffffff;
  --card-border: #000000;
  
  --black: #000000;
  --white: #ffffff;
  --text-primary: #000000;
  --text-secondary: #1f2937;
  --text-muted: #374151;
  
  /* Vibrant Retro Brutalist Accents */
  --neon-orange: #ff5500;
  --neon-orange-hover: #e04b00;
  --neon-orange-light: #fff0eb;
  --primary: #ff5500;
  --primary-hover: #e04b00;
  --primary-glow: #000000;
  
  --neon-green: #00c853;
  --neon-green-light: #e6f9ed;
  --success: #00c853;
  --success-bg: #e6f9ed;
  --success-border: #000000;
  
  --neon-red: #ff3b30;
  --neon-red-light: #ffebe9;
  --error: #ff3b30;
  --error-bg: #ffebe9;
  --error-border: #000000;
  
  --neon-yellow: #ffde00;
  --neon-yellow-light: #fffde0;
  --warning: #ffde00;
  
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-teal: #14b8a6;
  --neutral-gray: #f0ebe1;

  /* Typography */
  --font-title: 'Space Grotesk', 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Brutalist Borders & Hard Shadows */
  --border-sm: 2px solid #000000;
  --border-md: 3px solid #000000;
  --border-lg: 4px solid #000000;

  --shadow-sm: 2px 2px 0px #000000;
  --shadow-md: 4px 4px 0px #000000;
  --shadow-lg: 6px 6px 0px #000000;
  --shadow-xl: 8px 8px 0px #000000;
  --shadow-hover: 6px 6px 0px #000000;
  --shadow-active: 1px 1px 0px #000000;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-sand);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-sand);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  position: relative;
}

#app {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Subtle Retro Grid / Halftone Texture Overlay */
.retro-bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: 
    radial-gradient(#000000 0.75px, transparent 0.75px),
    radial-gradient(#000000 0.75px, var(--bg-sand) 0.75px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Hide legacy blob gradients */
.bg-blobs {
  display: none !important;
}

/* Text Selection */
::selection {
  background: var(--neon-orange);
  color: var(--white);
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--neon-orange);
}

/* Custom Brutalist Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-sand);
  border-left: 2px solid var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
  border: 2px solid var(--bg-sand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-orange);
}

/* ==========================================================================
   Helper Classes & Layout
   ========================================================================== */
.main-content {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  box-sizing: border-box;
}

.view {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neon-yellow);
  color: var(--black);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
}

/* Keyboard keys */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
}

/* ==========================================================================
   Components: Brutalist Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  color: var(--black);
}

.btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.btn-primary {
  background: var(--neon-orange);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover:not(:disabled) {
  background: var(--neon-orange-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-sand-darker);
  color: var(--black);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-light:hover:not(:disabled) {
  background: var(--bg-sand-light);
}

.btn-outline-accent {
  background: var(--white);
  border: var(--border-md);
  color: var(--black);
}

.btn-outline-accent:hover:not(:disabled) {
  background: var(--neon-yellow);
  color: var(--black);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-width: 2px;
  box-shadow: var(--shadow-sm);
}

.btn-sm:hover:not(:disabled) {
  box-shadow: 3px 3px 0px var(--black);
}

.btn-sm:active:not(:disabled) {
  box-shadow: 1px 1px 0px var(--black);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-width: 3px;
  box-shadow: var(--shadow-md);
}

.btn-icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  color: var(--black);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-only:hover:not(:disabled) {
  background: var(--neon-orange);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
header {
  background: var(--bg-sand);
  border-bottom: var(--border-md);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 4px 0px 0px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
}

.logo-icon {
  color: var(--white);
  background: var(--black);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--neon-orange);
}

.logo span span {
  color: var(--neon-orange);
  background: var(--black);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-user-settings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  height: 42px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-user-settings:hover {
  background: var(--bg-sand-light);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--black);
  border-color: var(--black);
}

.btn-user-settings:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-user-settings i {
  color: var(--neon-orange);
  font-size: 0.95rem;
}

.user-email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-nav-link {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-nav-link:hover {
  background: var(--neon-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--black);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1000;
  border: var(--border-md);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--black);
  background: var(--white);
}

.toast.success {
  background: var(--neon-green);
  color: var(--black);
}

.toast.error {
  background: var(--neon-red);
  color: var(--white);
}

/* ==========================================================================
   View 1: Authentication View
   ========================================================================== */
#view-auth {
  position: relative;
  min-height: calc(100vh - 120px);
  padding: 24px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-auth-home {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 100;
}

.btn-auth-home:hover {
  background: var(--neon-yellow);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
  .btn-auth-home {
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
}

.auth-wrapper {
  max-width: 440px;
  width: 100%;
  margin: 40px auto;
  text-align: center;
}

.auth-logo {
  font-size: 3rem;
  color: var(--black);
  background: var(--neon-orange);
  padding: 14px;
  border-radius: var(--radius-md);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
  display: inline-block;
}

.auth-header h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.auth-header h1 span {
  color: var(--neon-orange);
}

.auth-header p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-card {
  background: var(--white);
  border: var(--border-lg);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border: 2px solid var(--black);
  border-radius: var(--radius-sm);
  background: var(--bg-sand);
  padding: 4px;
  gap: 6px;
  box-shadow: 2px 2px 0px var(--black);
}

.auth-tab,
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: 2px solid transparent;
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  user-select: none;
}

.auth-tab:hover,
.auth-tab-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.auth-tab.active,
.auth-tab-btn.active {
  background: var(--neon-orange);
  color: var(--white);
  box-shadow: 2px 2px 0px var(--black);
  border: 2px solid var(--black);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.3s ease;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--black);
  font-size: 1.1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: var(--radius-sm);
  border: var(--border-sm);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--black);
  background: var(--bg-sand-light);
  box-shadow: 4px 4px 0px var(--neon-orange);
}

.password-requirements {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-item {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-item.invalid {
  color: var(--neon-red);
}

.req-item.valid {
  color: var(--neon-green);
}

/* ==========================================================================
   View 2: Dashboard View
   ========================================================================== */
#view-dashboard,
#view-session,
#view-summary {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  box-sizing: border-box;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.dashboard-main,
.dashboard-sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.welcome-box {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.welcome-box h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--black);
}

.welcome-box p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-weight: 500;
}

.badge-status-pill {
  background: var(--neon-green);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-family: var(--font-title);
}

.activation-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #eff6ff;
  border: var(--border-sm);
  border-left: 6px solid #2563eb;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.activation-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #1e3a8a;
}

.activation-banner-icon {
  font-size: 1.4rem;
  color: #2563eb;
}

.activation-banner-text strong {
  display: block;
  font-family: var(--font-title);
  color: #1e3a8a;
  margin-bottom: 2px;
}

.activation-banner-actions {
  display: flex;
  align-items: center;
}

.first-user-tips {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--neon-yellow-light);
  border: var(--border-sm);
  border-left: 6px solid var(--black);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--black);
}

.tip-icon {
  font-size: 1.3rem;
  color: var(--black);
  margin-top: 2px;
}

.tip-content strong {
  color: var(--black);
  display: block;
  font-family: var(--font-title);
  margin-bottom: 2px;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mode-card {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mode-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-xl);
}

.mode-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
}

.card-training .mode-icon {
  background: var(--neon-green);
  color: var(--black);
}

.card-exam .mode-icon {
  background: var(--neon-orange);
  color: var(--white);
}

.mode-card h3 {
  font-size: 1.35rem;
  color: var(--black);
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex-grow: 1;
  line-height: 1.55;
  font-weight: 500;
}

.mode-target-badge {
  background: var(--neon-yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
}

.quick-training-wrapper {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.25);
  width: 100%;
}

.btn-quick-training {
  background: var(--bg-sand-light);
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  color: var(--black);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 12px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-quick-training:hover {
  background: var(--neon-yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.stats-card, .recent-card {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.stats-card h3, .recent-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--black);
  border-left: 5px solid var(--neon-orange);
  padding-left: 10px;
}

.stats-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.stat-box {
  background: var(--bg-sand-light);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  font-family: var(--font-title);
  color: var(--black);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
}

.detailed-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 8px 10px;
  background: var(--bg-sand-light);
  border: 1px solid #000000;
  border-radius: 4px;
  font-weight: 600;
}

.d-stat-row span {
  color: var(--text-secondary);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.empty-list {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  border-left: 6px solid var(--neon-orange);
  font-size: 0.88rem;
}

.recent-item.exam-type {
  border-left-color: var(--neon-orange);
}

.recent-item.training-type {
  border-left-color: var(--neon-green);
}

.r-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.r-type {
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--black);
}

.r-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.r-score {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
}

.r-score.passed {
  color: var(--neon-green);
}

.r-score.failed {
  color: var(--neon-red);
}

/* ==========================================================================
   Dashboard Progression Card & Graph Styles
   ========================================================================== */
.welcome-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progression-card {
  margin-top: 24px;
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progression-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.progression-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progression-title-box i {
  font-size: 1.6rem;
  color: var(--neon-orange);
}

.progression-title-box h3 {
  font-size: 1.3rem;
  color: var(--black);
}

.progression-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.chart-filter-tabs {
  display: flex;
  background: var(--bg-sand);
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-tab {
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 0.82rem;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.chart-tab.active {
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
}

.chart-tab:hover:not(.active) {
  background: var(--bg-sand-darker);
}

.progression-kpi-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.kpi-pill {
  background: var(--bg-sand-light);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.kpi-pill.target-pill {
  background: var(--neon-yellow-light);
  border-color: var(--black);
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--font-title);
}

.kpi-val {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--black);
}

.text-success { color: var(--neon-green) !important; }
.text-error { color: var(--neon-red) !important; }
.text-accent { color: var(--neon-orange) !important; }

.chart-canvas-container {
  position: relative;
  width: 100%;
  height: 280px;
  min-height: 280px;
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.chart-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: var(--bg-sand-light);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.empty-chart-icon {
  font-size: 2.4rem;
  color: var(--black);
}

.chart-empty-state h4 {
  font-size: 1.15rem;
  color: var(--black);
}

.chart-empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 440px;
  font-weight: 500;
}

.chart-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  padding-top: 10px;
  border-top: 2px solid var(--bg-sand);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-line.target-line {
  width: 18px;
  height: 3px;
  background: var(--black);
  border-top: 2px dashed var(--black);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--black);
}
.legend-dot.dot-passed { background: var(--neon-green); }
.legend-dot.dot-failed { background: var(--neon-red); }

/* ==========================================================================
   View 3: Session Simulator View
   ========================================================================== */
.session-container {
  max-width: 1100px;
  width: 100%;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: var(--border-md);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 15px;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

#question-progress {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--black);
}

.progress-bar-container {
  flex-grow: 1;
  max-width: 480px;
  height: 14px;
  background: var(--bg-sand);
  border: 2px solid var(--black);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 16px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  height: 100%;
  background: var(--neon-orange);
  border-right: 2px solid var(--black);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: var(--font-title);
  font-size: 1rem;
}

.timer-box.urgent {
  background: var(--neon-red);
  color: var(--white);
  animation: pulse 0.8s infinite alternate;
}

.session-exam-banner {
  background: var(--neon-yellow-light);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--neon-orange);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.session-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

/* Left Panel: Media Viewport */
.viewport-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-container {
  background: #000000;
  border: var(--border-md);
  border-radius: var(--radius-md);
  aspect-ratio: 2400 / 1020;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.video-wrapper, .image-wrapper {
  width: 100%;
  height: 100%;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  width: 100%;
  height: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.image-wrapper img.alternate-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  z-index: 1;
}

.image-wrapper img.alternate-img.active {
  opacity: 1;
  z-index: 2;
}

.audio-controls {
  display: flex;
  justify-content: center;
}

/* Right Panel: Question text & Brutalist Choices */
.question-panel {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.question-box h3 {
  font-size: 1.2rem;
  color: var(--black);
  line-height: 1.45;
  font-weight: 700;
}

.question-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-dev-id {
  display: inline-flex;
  align-items: center;
  background: var(--bg-sand);
  color: var(--black);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-dev-edit {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-dev-edit:hover {
  background: var(--neon-yellow);
  transform: translate(-1px, -1px);
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.choices-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.sub-enonce {
  grid-column: 1 / -1;
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--black);
  line-height: 1.4;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 4px;
  border-top: 2px solid var(--black);
  padding-top: 12px;
}

.sub-enonce-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-enonce-group + .sub-enonce-group {
  margin-top: 6px;
}

.sub-enonce-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--black);
  font-weight: 800;
  line-height: 1.4;
  padding-left: 2px;
}

.sub-choices-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-choices-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Choice Buttons (Tuiles Brutalistes) */
.choice-btn {
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  color: var(--black);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.choice-btn span {
  width: 32px;
  height: 32px;
  background: var(--bg-sand);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-title);
  font-size: 0.95rem;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  color: var(--black);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.choice-btn:hover:not(.locked):not(.selected) {
  background: var(--bg-sand-light);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.choice-btn.selected {
  background: var(--neon-orange) !important;
  color: var(--white) !important;
  border-color: var(--black) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translate(1px, 1px);
}

.choice-btn.selected span {
  background: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--black) !important;
  box-shadow: none !important;
}

/* Feedback Validation Colors */
.choice-btn.correct, .choice-btn.correct-highlight {
  background: var(--neon-green) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border-color: var(--black) !important;
  box-shadow: var(--shadow-md) !important;
}

.choice-btn.correct span, .choice-btn.correct-highlight span {
  background: var(--black) !important;
  color: var(--neon-green) !important;
  border-color: var(--black) !important;
}

.choice-btn.incorrect, .choice-btn.incorrect-highlight {
  background: var(--neon-red) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-color: var(--black) !important;
  box-shadow: var(--shadow-md) !important;
}

.choice-btn.incorrect span, .choice-btn.incorrect-highlight span {
  background: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--black) !important;
}

/* ==========================================================================
   Immediate Feedback Drawer (Training Only)
   ========================================================================== */
.feedback-drawer {
  background: var(--white);
  border: var(--border-lg);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-badge {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-family: var(--font-title);
  letter-spacing: 0.04em;
  display: inline-flex;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
}

.feedback-badge.correct {
  background: var(--neon-green);
  color: var(--black);
}

.feedback-badge.incorrect {
  background: var(--neon-red);
  color: var(--white);
}

.feedback-explanation {
  background: var(--bg-sand-light);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: var(--border-sm);
  border-left: 6px solid var(--neon-orange);
  box-shadow: var(--shadow-sm);
}

.feedback-explanation h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--black);
}

.feedback-explanation p {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.feedback-text-container {
  position: relative;
  transition: max-height 0.25s ease;
}

.feedback-text-container.collapsed {
  max-height: 56px;
  overflow: hidden;
}

.feedback-text-container.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(251, 247, 240, 0), var(--bg-sand-light));
  pointer-events: none;
}

.btn-toggle-explanation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--neon-orange);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.btn-toggle-explanation:hover {
  color: var(--neon-orange-hover);
}

/* ==========================================================================
   View 4: Results & Summary View
   ========================================================================== */
.summary-card {
  max-width: 820px;
  width: 100%;
  margin: 30px auto;
  background: var(--white);
  border: var(--border-lg);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  animation: fadeIn 0.4s ease;
}

.summary-header {
  text-align: center;
  border-bottom: 3px solid var(--black);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.summary-icon-box {
  width: 76px;
  height: 76px;
  background: var(--neon-orange);
  color: var(--white);
  border-radius: var(--radius-md);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px auto;
}

.summary-icon-box.passed {
  background: var(--neon-green);
  color: var(--black);
}

.summary-icon-box.failed {
  background: var(--neon-red);
  color: var(--white);
}

#summary-title {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: var(--black);
}

.score-display {
  margin: 12px 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.score-val {
  font-size: 4.2rem;
  font-weight: 900;
  font-family: var(--font-title);
  color: var(--black);
  line-height: 1;
}

.score-total {
  font-size: 2rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-left: 6px;
}

#summary-message {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.review-section h3 {
  font-size: 1.35rem;
  color: var(--black);
  margin-bottom: 4px;
}

.review-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 22px;
  font-weight: 500;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-item {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-md);
  border-left: 8px solid var(--black);
}

.review-item.is-correct {
  border-left-color: var(--neon-green);
}

.review-item.is-incorrect {
  border-left-color: var(--neon-red);
}

.review-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.review-id {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--black);
  font-size: 0.88rem;
  background: var(--bg-sand);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--black);
}

.review-status-icon {
  font-size: 1.3rem;
}

.review-item.is-correct .review-status-icon {
  color: var(--neon-green);
}

.review-item.is-incorrect .review-status-icon {
  color: var(--neon-red);
}

.review-enonce {
  font-weight: 700;
  color: var(--black);
  font-size: 1.05rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.review-media {
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 480px;
  aspect-ratio: 2400 / 1020;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
}

.review-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.review-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.review-choice {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--bg-sand-light);
  border: 1px solid var(--black);
  font-weight: 500;
}

.review-choice.user-selected {
  border-width: 2px;
  font-weight: 700;
}

.review-choice.correct {
  background: var(--neon-green-light);
  border-color: var(--black);
  color: var(--black);
  font-weight: 700;
}

.review-choice.incorrect {
  background: var(--neon-red-light);
  border-color: var(--black);
  color: var(--neon-red);
  font-weight: 700;
}

.review-explanation {
  background: var(--neon-yellow-light);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--black);
  line-height: 1.5;
  border: 1px solid var(--black);
  border-left: 4px solid var(--black);
}

.review-audio-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-review-edit {
  background: var(--neon-orange);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  transition: var(--transition-fast);
}

.btn-review-edit:hover {
  background: var(--neon-orange-hover);
  transform: translate(-1px, -1px);
}

.btn-leave-session, .btn-home-session {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-leave-session:hover {
  background: var(--neon-red);
  color: var(--white);
  transform: translate(-1px, -1px);
}

.btn-home-session:hover {
  background: var(--neon-yellow);
  transform: translate(-1px, -1px);
}

.resume-session-card {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.resume-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--neon-orange);
  color: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resume-info {
  flex-grow: 1;
}

.resume-info h3 {
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 2px;
}

.resume-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.resume-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Landing Page Styles (Refonte Rétro Brutalisme)
   ========================================================================== */
.landing-header {
  background: var(--bg-sand);
  border-bottom: var(--border-md);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.06);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-nav-link {
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.landing-nav-link:hover {
  background: var(--bg-sand-darker);
  color: var(--neon-orange);
}

.landing-nav-link.highlight-link {
  background: var(--neon-yellow);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  color: var(--black) !important;
}

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

#view-landing {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.landing-wrapper {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px 60px;
  box-sizing: border-box;
  flex-grow: 1;
}

/* Landing Hero */
.landing-hero {
  text-align: center;
  padding: 40px 15px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--neon-yellow);
  border: var(--border-md);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.28;
  max-width: 900px;
  color: var(--black);
}

.hero-title span, .hero-title-badge {
  background: var(--neon-orange);
  color: var(--white);
  padding: 2px 12px;
  border: var(--border-md);
  box-shadow: 4px 4px 0px var(--black);
  border-radius: var(--radius-sm);
  display: inline-block;
  transform: rotate(-1deg);
  margin: 4px 6px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.6;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
  padding: 18px 30px;
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-metric-value {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--neon-orange);
}

.hero-metric-label {
  font-size: 0.8rem;
  color: var(--black);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-metric-divider {
  width: 2px;
  height: 32px;
  background: var(--black);
}

/* Landing Section General */
.landing-section {
  padding: 60px 0;
  border-top: var(--border-md);
}

.section-header {
  margin-bottom: 36px;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 4px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--black);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
}

.feature-icon-amber { background: var(--neon-yellow); color: var(--black); }
.feature-icon-primary { background: var(--neon-orange); color: var(--white); }
.feature-icon-green { background: var(--neon-green); color: var(--black); }
.feature-icon-blue { background: var(--neon-blue); color: var(--white); }
.feature-icon-purple { background: var(--neon-purple); color: var(--white); }
.feature-icon-teal { background: var(--neon-teal); color: var(--white); }

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--black);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

/* Demo Section */
.demo-card-container {
  max-width: 920px;
  margin: 0 auto;
}

.demo-card {
  background: var(--white);
  border: var(--border-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.demo-start-card {
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg-sand-light);
}

.demo-start-badge {
  background: var(--neon-yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-start-title {
  font-size: 2rem;
  color: var(--black);
}

.demo-start-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 680px;
  line-height: 1.6;
  font-weight: 500;
}

.demo-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 6px 0;
}

.demo-feature-pill {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-player-header {
  padding: 14px 20px;
  background: var(--bg-sand);
  border-bottom: var(--border-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-demo-pill {
  background: var(--neon-orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
}

.demo-progress-text {
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--black);
  font-size: 0.95rem;
}

.demo-progress-bar-container {
  flex: 1;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 20px;
  overflow: hidden;
}

.demo-progress-bar-container .progress-bar {
  height: 100%;
  background: var(--neon-orange);
  transition: width 0.3s ease;
}

.btn-demo-action {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-demo-action:hover {
  background: var(--neon-yellow);
  transform: translate(-1px, -1px);
}

.demo-player-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  padding: 24px;
  gap: 24px;
  background: var(--white);
  min-width: 0;
}

.demo-media-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.demo-media-container {
  background: #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 2400 / 1020;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.demo-img,
.demo-media-container img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  max-width: 100%;
}

.demo-question-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-question-text-box h3 {
  font-size: 1.15rem;
  color: var(--black);
  line-height: 1.45;
}

.demo-result-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: var(--white);
}

.demo-result-icon-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--neon-yellow);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--black);
}

.demo-score-display .score-val {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--black);
}

.demo-score-display .score-total {
  font-size: 1.6rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.demo-recap-pill {
  background: var(--bg-sand-light);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.demo-recap-pill.correct {
  background: var(--neon-green);
  color: var(--black);
}

.demo-recap-pill.incorrect {
  background: var(--neon-red);
  color: var(--white);
}

.demo-conversion-box {
  background: var(--bg-sand-light);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.demo-recap-bar {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.demo-recap-bar h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--black);
}

.demo-recap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.demo-conversion-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.conversion-badge-pill {
  background: var(--neon-orange);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 4px;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-conversion-box h4 {
  font-size: 1.45rem;
  color: var(--black);
  text-align: center;
}

.demo-conversion-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}

/* Showcase Real Screenshots */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 30px;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.showcase-card {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-xl);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mockup-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.mockup-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--black);
  background: var(--neon-yellow);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
}

.desktop-mockup-frame {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.desktop-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--bg-sand);
  border-bottom: 2px solid var(--black);
  width: 100%;
  box-sizing: border-box;
}

.window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
}
.dot-red { background: var(--neon-red); }
.dot-yellow { background: var(--neon-yellow); }
.dot-green { background: var(--neon-green); }

.window-address-bar {
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.75rem;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.showcase-tab-controls {
  display: flex;
  background: var(--bg-sand);
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.showcase-tab-btn {
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 0.78rem;
  font-family: var(--font-title);
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.showcase-tab-btn.active {
  background: var(--neon-orange);
  color: var(--white);
  border: 1.5px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
}

.mockup-real-screen-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000000;
}

.showcase-real-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-phone-frame {
  max-width: 290px;
  margin: 0 auto;
  background: var(--white);
  border: var(--border-lg);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  width: 80px;
  height: 14px;
  background: var(--black);
  margin: 0 auto;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.showcase-caption h4 {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 4px;
}

.showcase-caption p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Pricing Section */
.pricing-card-wrapper {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.pricing-card {
  background: var(--white);
  border: var(--border-lg);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: var(--shadow-xl);
  position: relative;
  width: 100%;
}

.pricing-badge {
  background: var(--neon-orange);
  color: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 2rem;
  color: var(--black);
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0;
}

.price-currency {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.price-duration {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.pricing-highlight-box {
  background: var(--neon-yellow);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.pricing-features-list {
  list-style: none;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
  font-size: 0.92rem;
  color: var(--black);
  padding: 0;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  font-weight: 500;
}

.pricing-features-list li i {
  color: var(--neon-green);
  background: var(--black);
  padding: 3px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.pricing-subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-testimonial-card {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}

.review-testimonial-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-xl);
}

.review-stars {
  color: var(--neon-orange);
  font-size: 1rem;
  display: flex;
  gap: 4px;
}

.review-comment {
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.reviewer-meta strong {
  display: block;
  color: var(--black);
  font-family: var(--font-title);
}

.reviewer-meta span {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-sand);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: var(--border-md);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--black);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--black);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  border-top: 2px dashed var(--bg-sand-darker);
  padding-top: 10px;
}

/* Footer */
.landing-footer {
  width: 100%;
  margin-top: auto;
  border-top: var(--border-md);
  padding-top: 40px;
  padding-bottom: 24px;
  background: var(--bg-sand-darker);
  box-sizing: border-box;
}

.footer-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 420px;
  margin-top: 6px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-btn {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.footer-btn:hover {
  background: var(--neon-yellow);
  transform: translate(-1px, -1px);
}

.footer-bottom {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-top: 1px solid var(--black);
  box-sizing: border-box;
}

/* ==========================================================================
   Modal Dev: Edit Question & Question Editor
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--white);
  border: var(--border-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: var(--border-md);
  background: var(--bg-sand);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-close-modal {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  background: var(--neon-red);
  color: var(--white);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-control {
  width: 100%;
  background: var(--white);
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 12px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 3px 3px 0px var(--neon-orange);
}

.choice-editor-card {
  background: var(--bg-sand-light);
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-editor-card.is-correct {
  background: var(--neon-green-light);
  border-color: var(--black);
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--white);
  border: var(--border-sm);
  color: var(--black);
  cursor: pointer;
}

.choice-editor-card.is-correct .toggle-pill {
  background: var(--neon-green);
  color: var(--black);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: var(--border-md);
  background: var(--bg-sand);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0.7; }
}

/* ==========================================================================
   Responsive Settings & Breakpoints
   ========================================================================== */
.mobile-dashboard-header {
  display: none;
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .demo-player-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .progression-kpi-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .session-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  #app-header {
    display: none !important;
  }

  .mobile-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 0;
    border-bottom: var(--border-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-dashboard-header .logo {
    font-size: 1.35rem;
  }

  #btn-logout-mobile {
    flex-shrink: 0;
    margin: 0;
  }

  .container,
  #view-dashboard,
  #view-session,
  #view-summary,
  #view-auth {
    padding: 14px 12px;
  }

  .landing-wrapper {
    padding: 10px 14px 40px;
  }

  .header-container {
    padding: 10px 14px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-header-actions {
    gap: 8px;
  }

  .landing-header-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .keyboard-hints-bar,
  .btn-kbd-hint,
  .kbd-badge,
  .shortcut-hint,
  .demo-keyboard-hints {
    display: none !important;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-metrics-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-metric-divider {
    display: none;
  }

  .hero-metric-value {
    font-size: 1.35rem;
  }

  .hero-metric-label {
    font-size: 0.72rem;
  }

  .modes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mode-card {
    padding: 20px 16px;
    gap: 14px;
  }

  .mode-card h3 {
    font-size: 1.2rem;
  }

  .welcome-box {
    padding: 20px 16px;
  }

  .welcome-box h2 {
    font-size: 1.45rem;
  }

  .progression-card {
    padding: 20px 14px;
    margin-top: 18px;
    gap: 16px;
  }

  .stats-card, .recent-card {
    padding: 20px 16px;
    margin-bottom: 18px;
  }

  .stat-box {
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .pricing-card {
    padding: 24px 16px;
  }

  .price-currency {
    font-size: 3rem;
  }

  .showcase-card {
    padding: 18px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mockup-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .showcase-tab-controls {
    width: 100%;
    justify-content: space-between;
  }

  .showcase-tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.72rem;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .window-address-bar {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.65rem;
  }

  .session-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .question-panel {
    padding: 20px 14px;
  }

  .feedback-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .feedback-status {
    order: 1;
  }

  .feedback-actions {
    order: 2;
    width: 100%;
    margin: 4px 0;
  }

  .feedback-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .feedback-explanation {
    order: 3;
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .summary-card {
    padding: 26px 16px;
  }

  .landing-footer {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 0 14px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    padding: 16px 14px 0;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progression-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .kpi-pill {
    padding: 8px 6px;
  }

  .kpi-label {
    font-size: 0.68rem;
  }

  .kpi-val {
    font-size: 1.15rem;
  }

  .choices-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .sub-choices-pair {
    grid-template-columns: 1fr;
  }

  .progression-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chart-filter-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .chart-tab {
    font-size: 0.75rem;
    padding: 6px 8px;
    flex: 1;
    justify-content: center;
  }

  .demo-conversion-box {
    padding: 20px 14px;
    gap: 12px;
  }

  .demo-conversion-box h4 {
    font-size: 1.2rem;
  }

  .demo-conversion-box p {
    font-size: 0.85rem;
  }

  .demo-conversion-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .demo-conversion-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .demo-result-card {
    padding: 26px 16px;
    gap: 18px;
  }

  .demo-result-icon-box {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .demo-score-display .score-val {
    font-size: 2.6rem;
  }

  .demo-recap-grid {
    gap: 6px;
  }

  .demo-recap-pill {
    padding: 8px 4px;
  }

  .demo-recap-num {
    font-size: 0.68rem;
  }

  .summary-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .summary-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .header-container {
    padding: 8px 10px;
  }

  .landing-header-actions .btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    padding: 5px;
    font-size: 0.95rem;
  }

  .stats-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-box {
    padding: 10px 6px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .kpi-pill {
    padding: 8px 4px;
  }

  .kpi-label {
    font-size: 0.65rem;
  }

  .kpi-val {
    font-size: 1.1rem;
  }

  .price-currency {
    font-size: 2.5rem;
  }

  .pricing-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .demo-start-title {
    font-size: 1.35rem;
  }

  .demo-start-card {
    padding: 24px 12px;
  }

  .choice-btn {
    padding: 12px 14px;
    font-size: 0.88rem;
    gap: 10px;
  }

  .choice-btn span {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .welcome-box h2 {
    font-size: 1.35rem;
  }

  .d-stat-row {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  .recent-item {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .resume-session-card {
    padding: 14px 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .resume-actions {
    width: 100%;
    justify-content: center;
  }

  .resume-actions .btn {
    flex: 1;
  }

  .footer-btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
    padding: 14px 10px 0;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.45rem;
  }

  .hero-title span,
  .hero-title-badge {
    padding: 1px 6px;
    font-size: 1.3rem;
    margin: 2px 2px;
  }

  .progression-kpi-bar {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .landing-header-actions {
    gap: 4px;
  }

  .landing-header-actions .btn {
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .mobile-dashboard-header .logo {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Stripe Checkout Paywall & Account Settings & Forgot Password Styling
   ========================================================================== */


/* Auth Label with Action Link */
.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.label-with-action label {
  margin-bottom: 0 !important;
}

.btn-link-inline {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-orange);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-link-inline:hover {
  color: var(--neon-orange-hover);
}

.auth-form-header {
  text-align: center;
  margin-bottom: 12px;
}

.auth-form-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-form-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Paywall / Onboarding View
   ========================================================================== */
#view-paywall {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.paywall-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.paywall-card {
  background: var(--card-bg);
  border: var(--border-md);
  box-shadow: var(--shadow-xl);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 4px;
}

.paywall-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: fit-content;
  border-radius: 4px;
}

.paywall-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
}

.paywall-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.paywall-pricing-box {
  background: var(--neutral-gray);
  border: var(--border-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  text-align: center;
}

.paywall-pricing-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--neon-orange);
  margin-bottom: 6px;
}

.paywall-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.paywall-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.paywall-term {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.paywall-pricing-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.paywall-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paywall-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.paywall-features-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Embedded Stripe Elements Styles */
.stripe-elements-container {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.stripe-elements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 12px;
}

.stripe-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.stripe-badge-currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--neutral-gray);
  padding: 4px 8px;
  border: 1px solid var(--black);
  border-radius: 4px;
}

.stripe-payment-element-box {
  min-height: 160px;
}

.stripe-loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.stripe-payment-message {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  border: var(--border-sm);
}

.stripe-payment-message.error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.stripe-payment-message.success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.paywall-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-sand-light);
  border: 1px dashed var(--black);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.paywall-footer-note i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   User Settings Modal Styling
   ========================================================================== */
.user-settings-card {
  max-width: 580px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.settings-info-card {
  background: var(--neutral-gray);
  border: var(--border-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 4px;
}

.settings-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.settings-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-value {
  color: var(--black);
  font-weight: 700;
}

.settings-help-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* OTP Code Inputs & Notices */
.otp-code-input {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 6px !important;
  text-align: center !important;
}

.otp-code-input-sm {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 4px !important;
  padding: 8px 12px !important;
  border: var(--border-sm) !important;
  border-radius: 4px !important;
  width: 170px !important;
  text-align: center !important;
}

.otp-notice-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.settings-verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
}

.settings-unverified-card {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 14px 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unverified-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #c2410c;
}

.otp-input-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-otp-confirm-box {
  background: var(--neutral-gray);
  border: var(--border-sm);
  padding: 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-group-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   PORTAIL MOTO-ÉCOLE (B2B) & CALEPIN TROMBONE
   ========================================================================== */

/* Landing Page Discreet Teaser */
.landing-school-teaser {
  background: var(--card-bg);
  border: var(--border-md);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin: 40px auto 20px;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.school-teaser-left {
  flex: 1;
}

.school-teaser-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff5500;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.school-teaser-left h3 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.school-teaser-left p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-btn-pro {
  background: #111827 !important;
  color: #ff5500 !important;
  font-weight: 800 !important;
  border: 2px solid #000000 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
}

.footer-btn-pro:hover {
  background: #ff5500 !important;
  color: #ffffff !important;
}

/* Student Dashboard Comparison Widget */
.school-student-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.school-student-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.school-affiliation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-icon-badge {
  width: 44px;
  height: 44px;
  background: #ff5500;
  color: #ffffff;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.school-info-text .school-sub {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.school-info-text .school-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--black);
}

.school-rank-badge {
  background: #ffde00;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.school-metrics-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.school-metric-box {
  background: var(--bg-sand);
  border: var(--border-sm);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.school-metric-box.highlight {
  background: #fff0eb;
  border-color: #ff5500;
}

.school-metric-box .metric-title {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.school-metric-box .metric-value strong {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--black);
}

.school-metric-box .metric-value small {
  font-size: 12px;
  color: var(--text-muted);
}

.school-rhythm-banner {
  background: #f0ebe1;
  border: 2px dashed #000000;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-rhythm-banner .rhythm-icon {
  font-size: 24px;
}

.school-rhythm-banner .rhythm-content strong {
  display: block;
  font-size: 13px;
  color: var(--black);
}

.school-rhythm-banner .rhythm-content p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   VIEW SCHOOL PORTAL (B2B CALEPIN TROMBONE)
   ========================================================================== */

#view-school-portal {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* School Auth Card */
.school-auth-wrapper {
  max-width: 620px;
  margin: 30px auto;
}

.school-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.school-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #ff5500;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.school-auth-header h1 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 900;
  color: var(--black);
}

.school-auth-header h1 span {
  color: #ff5500;
}

.school-auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.school-pricing-alert {
  background: #fff8e1;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.school-pricing-alert .pricing-pill {
  background: #ff5500;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.school-pricing-alert .pricing-desc {
  font-size: 12px;
  color: var(--black);
  line-height: 1.4;
}

/* Pro Top Bar */
.school-top-bar {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.school-brand-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.school-logo-badge {
  width: 48px;
  height: 48px;
  background: #111827;
  color: #ff5500;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.school-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.school-name-row h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}

.badge-superadmin {
  background: #a855f7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.school-brand-details p {
  font-size: 12px;
  color: var(--text-muted);
}

.school-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.school-tab-link {
  background: var(--bg-sand);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.school-tab-link:hover {
  background: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.school-tab-link.active {
  background: #ff5500;
  color: #ffffff;
  border-color: #000000;
  box-shadow: var(--shadow-md);
}

.school-tab-link.tab-superadmin {
  border-color: #a855f7;
}

.school-tab-link.tab-superadmin.active {
  background: #a855f7;
}

/* ==========================================================================
   CALEPIN TROMBONE AESTHETIC (NOTEBOOK CARDS)
   ========================================================================== */

.calepin-toolbar {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calepin-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
}

.calepin-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.calepin-search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: var(--border-sm);
  border-radius: 6px;
  background: var(--bg-sand-light);
  font-size: 13px;
  font-weight: 600;
}

.calepin-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-sand);
  border: var(--border-sm);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background: #ffffff;
}

.filter-pill.active {
  background: #000000;
  color: #ffffff;
}

.filter-pill.filter-alert.active {
  background: #ff3b30;
  color: #ffffff;
}

.filter-pill.filter-ready.active {
  background: #00c853;
  color: #000000;
}

.calepin-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Calepin Cards Grid */
.calepin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px 24px;
}

/* The Calepin Card: Tactile Notebook Sheet with Ruled Lines & Trombone Clip */
.calepin-card {
  position: relative;
  background-color: #fcfbf8;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    #e9e4d8 27px,
    #e9e4d8 28px
  );
  border: var(--border-md);
  border-radius: 12px;
  box-shadow: 6px 6px 0px #000000;
  padding: 24px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: visible;
}

.calepin-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 8px 8px 0px #000000;
}

/* Top Perforation / Spiral Edge simulation */
.calepin-perforation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: #ece7db;
  border-bottom: 1px dashed #b5ad9e;
  border-radius: 10px 10px 0 0;
}

/* The Metallic Paperclip (Trombone) */
.calepin-paperclip {
  position: absolute;
  top: -14px;
  right: 24px;
  width: 22px;
  height: 48px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.35));
}

.calepin-paperclip svg {
  width: 100%;
  height: 100%;
}

/* Status Alert Ribbon */
.calepin-alert-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  margin-bottom: 12px;
  width: fit-content;
}

.calepin-alert-tag.alert-red {
  background: #ffebe9;
  color: #d32f2f;
  border-color: #000000;
}

.calepin-alert-tag.alert-yellow {
  background: #fffde0;
  color: #8d6b00;
  border-color: #000000;
}

.calepin-alert-tag.alert-green {
  background: #e6f9ed;
  color: #047857;
  border-color: #000000;
}

.calepin-alert-tag.alert-gray {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #000000;
}

/* Student Identity Row */
.calepin-student-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.calepin-avatar {
  width: 44px;
  height: 44px;
  background: #ff5500;
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.calepin-student-info {
  flex: 1;
  min-width: 0;
}

.calepin-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calepin-email {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calepin-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.calepin-tag {
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-pwa-app {
  background: #e6f9ed;
  color: #00873a;
  border: 1px solid #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-pwa-web {
  background: #f1f5f9;
  color: #111827;
  border: 1.5px solid #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Calepin Stats Grid */
.calepin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 6px;
  padding: 10px 6px;
  margin: 12px 0;
  text-align: center;
}

.calepin-stat-col .stat-val {
  display: block;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
}

.calepin-stat-col .stat-lbl {
  display: block;
  font-size: 10px;
  color: #111827;
  font-weight: 800;
  text-transform: uppercase;
}

/* Notes & Pass Info */
.calepin-notes-box {
  background: #fffdf5;
  border-left: 3px solid #ffde00;
  border-top: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 12px;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

.calepin-pass-expiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #111827;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Action Buttons */
.calepin-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed #d6cfbf;
  padding-top: 12px;
}

.btn-calepin-remind {
  background: #ff5500;
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-calepin-remind:hover {
  background: #e04b00;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.btn-calepin-edit,
.btn-calepin-delete {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-fast);
}

.btn-calepin-edit:hover {
  background: #ffde00;
  transform: translate(-1px, -1px);
}

.btn-calepin-delete:hover {
  background: #ffebe9;
  color: #ff3b30;
  transform: translate(-1px, -1px);
}

/* Leaderboard Podium */
.school-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
  align-items: flex-end;
}

.podium-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  position: relative;
}

.podium-card.first {
  background: #fffbe6;
  border-color: #ffb800;
  transform: translateY(-12px);
  box-shadow: 8px 8px 0px #000000;
}

.podium-crown {
  font-size: 32px;
  margin-bottom: 8px;
}

.podium-card.first .podium-crown { color: #f59e0b; }
.podium-card.second .podium-crown { color: #9ca3af; }
.podium-card.third .podium-crown { color: #b45309; }

.podium-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
}

.podium-stat {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-top: 4px;
}

/* Brutalist Table Styling */
.brutalist-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.brutalist-table th {
  background: #111827;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #000000;
}

.brutalist-table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: var(--black);
}

.brutalist-table tbody tr:hover {
  background: var(--bg-sand-light);
}

/* Billing & KPIs */
.billing-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.billing-kpi-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 20px;
}

.billing-kpi-card.highlight {
  background: #fff0eb;
  border-color: #ff5500;
}

.billing-kpi-card .kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.billing-kpi-card .kpi-value {
  display: block;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
}

.billing-kpi-card .kpi-hint {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.invoices-section-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 24px;
}

.invoices-section-card .section-header-row {
  margin-bottom: 20px;
}

.invoices-section-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
}

.invoices-section-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Super Admin Banner & 3-Level Subtabs */
.superadmin-banner {
  background: #111827;
  color: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.superadmin-banner-text .crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #a855f7;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.superadmin-banner-text h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.superadmin-banner-text p {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.superadmin-subtabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.subtab-btn {
  background: #ffffff;
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.subtab-btn:hover {
  background: var(--bg-sand-light);
  transform: translate(-1px, -1px);
}

.subtab-btn.active {
  background: #a855f7;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.subtab-table-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.subtab-search-bar {
  margin-bottom: 14px;
}

.subtab-search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 8px 14px;
  border: var(--border-sm);
  border-radius: 6px;
  font-size: 13px;
}

/* Revenue KPI & Projections */
.revenue-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.rev-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rev-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rev-amount {
  display: block;
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  margin: 6px 0 2px;
}

.rev-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.projection-model-card {
  background: #ffffff;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 24px;
}

.projection-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.projection-header-row h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
}

.projection-header-row p {
  font-size: 13px;
  color: var(--text-secondary);
}

.scenario-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-btn {
  background: var(--bg-sand);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.scenario-btn:hover {
  background: #ffffff;
}

.scenario-btn.active {
  background: #ff5500;
  color: #ffffff;
}

.projection-table th {
  background: #1f2937;
}

.slider-with-val {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-val-badge {
  background: #111827;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ==========================================================================
   AUTO-ÉCOLE SETTINGS & ALERTES (Tab 4) - Neo-Brutalist Pro Styling
   ========================================================================== */

.school-settings-header {
  margin-bottom: 24px;
}

.school-settings-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  border-radius: 8px;
  padding: 16px 20px;
}

.school-settings-icon {
  width: 48px;
  height: 48px;
  background: var(--neon-yellow);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.school-settings-header h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.school-settings-header p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.settings-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 36px;
}

.settings-card {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.settings-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px dashed #dcd5ca;
}

.settings-card-header i {
  width: 44px;
  height: 44px;
  background: var(--neon-yellow);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.settings-card-header h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 900;
  color: var(--black);
  margin: 0;
  line-height: 1.3;
}

.settings-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.settings-card .input-group {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.settings-card label {
  display: block;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="tel"],
.settings-card input[type="password"],
.settings-card input[type="number"] {
  width: 100%;
  background: #fffdf5;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.settings-card input:focus {
  background: var(--white);
  border-color: var(--neon-orange);
  box-shadow: 3px 3px 0px var(--black);
}

.settings-card small {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 500;
}

.slider-with-val {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-sand);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 6px;
  padding: 10px 14px;
}

.slider-with-val input[type="range"] {
  flex: 1;
  accent-color: var(--neon-orange);
  height: 8px;
  cursor: pointer;
}

.slider-val-badge {
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.settings-card button[type="submit"] {
  margin-top: auto;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   SUPER ADMIN COCKPIT / COMMAND CENTER (Base Neo-Brutalist Colors)
   ========================================================================== */

#view-superadmin-cockpit {
  background: var(--bg-sand);
  color: var(--black);
  min-height: 100vh;
  padding: 24px 20px 60px 20px;
  font-family: var(--font-body);
}

.cockpit-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Inspector Banner when viewing Auto-École Calepin */
.school-inspector-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--neon-yellow-light);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 24px;
  color: var(--black);
  gap: 16px;
  flex-wrap: wrap;
}

.inspector-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.inspector-badge {
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.btn-return-cockpit {
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-return-cockpit:hover {
  background: var(--neon-orange-hover);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

/* Cockpit Top Bar */
.cockpit-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 18px 24px;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.cockpit-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cockpit-logo-badge {
  width: 50px;
  height: 50px;
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cockpit-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cockpit-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--black);
  margin: 0;
}

.cockpit-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neon-green-light);
  border: 2px solid var(--black);
  color: #00873a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00873a;
  border-radius: 50%;
  box-shadow: 0 0 6px #00873a;
  animation: cockpit-pulse 1.8s infinite;
}

@keyframes cockpit-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.cockpit-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  font-weight: 500;
}

/* Actions in Top Bar */
.cockpit-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cockpit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
}

.cockpit-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.cockpit-btn-launch {
  background: var(--neon-orange);
  color: var(--white);
}

.cockpit-btn-launch:hover {
  background: var(--neon-orange-hover);
}

.cockpit-btn-launch-secondary {
  background: var(--white);
  color: var(--black);
}

.cockpit-btn-launch-secondary:hover {
  background: #fffdf5;
}

.cockpit-btn-inspect {
  background: var(--neon-yellow);
  color: var(--black);
}

.cockpit-btn-inspect:hover {
  background: #ffd000;
}

.cockpit-btn-danger {
  background: var(--neon-red-light);
  color: var(--neon-red);
  padding: 10px 14px;
}

.cockpit-btn-danger:hover {
  background: #ffd5d1;
}

/* Super Admin Impersonation Sticky Navbar */
.superadmin-impersonation-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0d1117;
  color: #ffffff;
  border-bottom: 3px solid var(--neon-orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  padding: 12px 24px;
  margin: -24px -20px 24px -20px;
}

.superadmin-impersonation-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.impersonation-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.impersonation-badge {
  background: var(--neon-orange);
  color: #ffffff;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.impersonation-title {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}

.impersonation-school-name {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
}

.impersonation-school-siret {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.btn-navbar-return-cockpit {
  background: var(--neon-orange);
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  border-radius: 6px;
  padding: 8px 18px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-navbar-return-cockpit:hover {
  background: var(--neon-orange-hover);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.btn-navbar-return-cockpit:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

/* Cockpit KPI Grid (Now 5 Interactive Navigation Cards) */
.cockpit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .cockpit-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .cockpit-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .cockpit-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.cockpit-kpi-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.cockpit-kpi-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0px var(--black);
  background: #fffdf8;
}

.cockpit-kpi-card:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--black);
}

.cockpit-kpi-card.active {
  background: #ffffff;
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0px var(--black);
  outline: 3px solid var(--neon-orange);
  outline-offset: -1px;
}

.cockpit-kpi-card.active .cockpit-kpi-icon {
  background: #fff0eb;
}

.cockpit-kpi-action {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: #374151;
  transition: transform 0.15s ease, color 0.15s ease;
}

.cockpit-kpi-card:hover .cockpit-kpi-action,
.cockpit-kpi-card.active .cockpit-kpi-action {
  transform: translateX(3px);
  color: var(--neon-orange);
  font-weight: 800;
}

.cockpit-kpi-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #fbf7ee;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 8px;
  flex-shrink: 0;
}

.cockpit-kpi-info {
  display: flex;
  flex-direction: column;
}

.cockpit-kpi-label {
  font-size: 11px;
  color: #111827;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cockpit-kpi-value {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
  margin: 2px 0;
}

.cockpit-kpi-trend {
  font-size: 11px;
  color: #1f2937;
  font-weight: 700;
}

.cockpit-kpi-trend.positive {
  color: #00873a;
  font-weight: 800;
}

.cockpit-kpi-sub {
  font-size: 11px;
  color: #6b21a8;
  font-weight: 800;
}

/* Cockpit Navigation Tabs */
.cockpit-nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 3px solid var(--black);
  padding-bottom: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.cockpit-tab-btn {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cockpit-tab-btn:hover {
  background: #fbf7ee;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.cockpit-tab-btn.active {
  background: var(--neon-orange);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* Toolbar in Tabs */
.cockpit-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cockpit-search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 8px 14px;
  gap: 10px;
  min-width: 320px;
}

.cockpit-search-box i {
  color: var(--black);
}

.cockpit-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}

.cockpit-search-box input::placeholder {
  color: #374151;
  opacity: 1;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #4b5563 !important;
  opacity: 1;
}

.cockpit-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cockpit-select {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.cockpit-action-btn {
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 9px 16px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.cockpit-action-btn:hover {
  background: var(--neon-orange-hover);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

/* Cockpit Table */
.cockpit-table-container {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  overflow-x: auto;
}

.cockpit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.cockpit-table th {
  background: #fbf7ee;
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 3px solid var(--black);
}

.cockpit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  color: var(--black);
  vertical-align: middle;
  font-weight: 500;
}

.cockpit-table tr:hover td {
  background: #fffdf5;
}

/* Table Badge styles */
.badge-cockpit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid var(--black);
}

.badge-cockpit.ready {
  background: var(--neon-green-light);
  color: #00873a;
}

.badge-cockpit.progressing {
  background: var(--neon-yellow-light);
  color: #b45309;
}

.badge-cockpit.difficulties {
  background: var(--neon-red-light);
  color: var(--neon-red);
}

.badge-cockpit.inactive {
  background: #fce4ec;
  color: #c2185b;
}

.badge-cockpit.pending {
  background: #f1f5f9;
  color: #475569;
}

.badge-cockpit.device-pwa {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-cockpit.device-web {
  background: #f3f4f6;
  color: #374151;
}

.badge-cockpit.active-sub {
  background: var(--neon-green-light);
  color: #00873a;
}

.badge-cockpit.exempt-sub {
  background: #f3e8ff;
  color: #7c3aed;
}

/* Action button icons in table */
.cockpit-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cockpit-table-btn {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.cockpit-table-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--black);
}

.cockpit-table-btn.inspect-btn {
  background: var(--neon-yellow);
  color: var(--black);
}

.cockpit-table-btn.inspect-btn:hover {
  background: #ffd000;
}

.cockpit-table-btn.delete-btn {
  background: var(--neon-red-light);
  color: var(--neon-red);
}

.cockpit-table-btn.delete-btn:hover {
  background: #ffd5d1;
}

/* Questions Grid in Cockpit */
.cockpit-questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.cockpit-q-card {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cockpit-q-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
}

.cockpit-q-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cockpit-q-num {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 900;
  color: var(--neon-orange);
  background: #fff0eb;
  padding: 3px 8px;
  border-radius: 4px;
  border: 2px solid var(--black);
}

.cockpit-q-media-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.cockpit-q-media-badge.has-video {
  background: #fff0eb;
  color: var(--neon-orange);
}

.cockpit-q-media-badge.has-image {
  background: #e0f2fe;
  color: #0369a1;
}

.cockpit-q-enonce {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cockpit-q-choices-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.cockpit-q-choice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fbf7ee;
  border: 1.5px solid #e5e5e5;
  color: #222222;
  font-weight: 500;
}

.cockpit-q-choice-item.correct {
  background: var(--neon-green-light);
  color: #00873a;
  font-weight: 800;
  border: 2px solid var(--black);
}

.cockpit-q-choice-letter {
  font-family: var(--font-title);
  font-weight: 800;
  min-width: 16px;
}

.cockpit-q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px dashed #e5e5e5;
  padding-top: 12px;
  margin-top: auto;
}

.cockpit-q-ans-pill {
  font-size: 11px;
  font-weight: 800;
  color: #00873a;
}

.cockpit-q-btn-edit {
  background: var(--neon-orange);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.cockpit-q-btn-edit:hover {
  background: var(--neon-orange-hover);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--black);
}

/* Pagination Bar */
.cockpit-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 12px 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.cockpit-page-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
}

.cockpit-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cockpit-page-btn {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.cockpit-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.cockpit-page-btn:not(:disabled):hover {
  background: #fbf7ee;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--black);
}

.cockpit-page-pill {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 900;
  color: var(--white);
  padding: 4px 10px;
  background: var(--black);
  border-radius: 4px;
}

/* Simulator in Cockpit */
.cockpit-finances-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cockpit-finances-header h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  margin: 10px 0 6px 0;
}

.cockpit-finances-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

.cockpit-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neon-yellow);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.cockpit-simulator-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 20px;
}

@media (max-width: 768px) {
  .cockpit-simulator-controls {
    grid-template-columns: 1fr;
  }
}

.sim-control-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.cockpit-slider {
  width: 100%;
  accent-color: var(--neon-orange);
  cursor: pointer;
}



