html, body {
  height: calc(var(--vh, 1vh) * 100);
}
body {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.app-shell {
  height: calc(var(--vh, 1vh) * 100);
}
/* =====================================================================
   ACPT — Dark Aviation App Design System
   Version 1.0 — March 2026
   Primary: #26164e  ·  Accent: #d3202b  ·  Dark cockpit theme
   ===================================================================== */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  /* Primary palette */
  --primary:          #26164e;
  --primary-light:    #2f1a63;
  --primary-dark:     #26164e;
  --primary-rgb:      38,22,78;

  /* Accent */
  --accent:           #d3202b;
  --accent-light:     #e84450;
  --accent-dark:      #a8191f;
  --accent-rgb:       211,32,43;

  /* Blue highlight (like screenshots) */
  --blue:             #1E90FF;
  --blue-light:       #4DA6FF;
  --blue-dark:        #0066CC;
  --blue-rgb:         30,144,255;

  /* Surfaces — dark cockpit */
  --bg:               #080C16;
  --bg-secondary:     #0D1220;
  --surface:          #111827;
  --surface-raised:   #1A2332;
  --surface-hover:    #1F2B3D;
  --surface-glass:    rgba(17,24,39,0.92);

  /* Text */
  --text:             #F1F3F5;
  --text-secondary:   #8B95A5;
  --text-muted:       #525C6B;
  --text-inverse:     #080C16;

  /* Borders */
  --border:           rgba(255,255,255,0.06);
  --border-strong:    rgba(255,255,255,0.10);
  --border-glow:      rgba(30,144,255,0.25);

  /* Shadows */
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.40);
  --shadow-md:        0 4px 16px rgba(0,0,0,0.50);
  --shadow-lg:        0 8px 32px rgba(0,0,0,0.60);
  --shadow-glow:      0 0 20px rgba(30,144,255,0.12);

  /* Semantic */
  --success:          #30D158;
  --success-bg:       rgba(48,209,88,0.12);
  --danger:           #FF453A;
  --danger-bg:        rgba(255,69,58,0.12);
  --warning:          #FFD60A;
  --warning-bg:       rgba(255,214,10,0.12);
  --info:             #5AC8FA;
  --info-bg:          rgba(90,200,250,0.12);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #26164e 0%, #3a2570 100%);
  --gradient-accent:  linear-gradient(135deg, #d3202b 0%, #e84450 100%);
  --gradient-blue:    linear-gradient(135deg, #1E90FF 0%, #4DA6FF 100%);
  --gradient-surface: linear-gradient(180deg, #111827 0%, #0D1220 100%);

  /* Radius */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-xl:   22px;
  --radius-pill:  999px;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --speed:       0.2s;
  --speed-slow:  0.35s;

  /* Layout */
  --tab-bar-height: 50px;
  --header-height: 44px;
}


/* ─── 1b. LIGHT THEME TOKENS ─── */
[data-theme="light"] {
  /* Surfaces — clean white */
  --bg:               #F2F4F7;
  --bg-secondary:     #E8EBF0;
  --surface:          #FFFFFF;
  --surface-raised:   #F7F8FA;
  --surface-hover:    #EEF0F4;
  --surface-glass:    rgba(255,255,255,0.92);

  /* Text */
  --text:             #1A1D23;
  --text-secondary:   #5F6B7A;
  --text-muted:       #9CA3AF;
  --text-inverse:     #FFFFFF;

  /* Borders */
  --border:           rgba(0,0,0,0.08);
  --border-strong:    rgba(0,0,0,0.14);
  --border-glow:      rgba(30,144,255,0.20);

  /* Shadows — softer for light */
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:        0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow:      0 0 20px rgba(30,144,255,0.10);

  /* Semantic — slightly adjusted for readability on white */
  --success:          #22A34D;
  --success-bg:       rgba(34,163,77,0.10);
  --danger:           #DC2626;
  --danger-bg:        rgba(220,38,38,0.08);
  --warning:          #D97706;
  --warning-bg:       rgba(217,119,6,0.08);
  --info:             #0284C7;
  --info-bg:          rgba(2,132,199,0.08);

  /* Gradients — keep hue, adapt lightness */
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F2F4F7 100%);
}


/* ─── 2. RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
  height: 100dvh;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow: hidden;
}
html::-webkit-scrollbar { display: none; }

body {
  /*
    Background matches tab-bar color so the iOS home-indicator zone
    (below the app-shell safe-area boundary) blends with the menu.
  */
  background: var(--bg);
  color: var(--text);
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow: hidden;
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

img { max-width: 100%; height: auto; display: block; }


/* ─── 3. APP SHELL ─── */
.app-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* iOS 26: bottom:0 anchor shifted — drive height from JS window.innerHeight instead.
     Falls back to 100dvh on any browser where the JS hasn't run yet. */
  height: var(--app-height, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

/* Header */
.app-header {
  flex-shrink: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  /* iOS safe area: push below status bar / Dynamic Island */
  padding-top: env(safe-area-inset-top, 0px);
}

/* HTMX Loading Bar — fixed, top set by JS */
.htmx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(var(--blue-rgb), 0.5);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.25s ease, opacity 0.2s;
  opacity: 0;
  width: 0;
}
.htmx-progress.active {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: var(--header-height);
  max-width: 600px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-brand-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.3);
}

.header-brand-icon i {
  color: #fff;
  font-size: 16px;
}

.header-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.header-brand-name span {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  position: relative;
  font-size: 1rem;
}

.header-action-btn:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.header-action-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

/* ── Header user menu & dropdown ── */
.header-user-menu { position: relative; }

.header-avatar-btn { padding: 0; background: transparent; }
.header-avatar-btn:hover { background: transparent; }

.header-avatar {
  width: 34px;
  height: 34px;
  background: var(--gradient-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all 0.18s var(--ease);
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown__header {
  padding: 0.85rem 1rem;
}

.user-dropdown__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.user-dropdown__email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}

.user-dropdown__item:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.user-dropdown__item i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.user-dropdown__item--danger { color: var(--accent); }
.user-dropdown__item--danger:hover {
  background: rgba(var(--accent-rgb, 211, 32, 43), 0.08);
  color: var(--accent);
}
.user-dropdown__item--update { color: var(--success); font-weight: 500; }
.user-dropdown__item--update:hover {
  background: var(--success-bg);
  color: var(--success);
}
.user-dropdown__item--update i {
  animation: update-icon-spin 1.8s linear infinite;
}
@keyframes update-icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Theme toggle row inside dropdown */
.user-dropdown__theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.user-dropdown__theme-row span { display: flex; align-items: center; gap: 0.6rem; }
.user-dropdown__theme-row span i { width: 16px; text-align: center; font-size: 0.85rem; }

/* Minimal toggle switch */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.theme-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.theme-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.theme-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.theme-toggle input:checked + .theme-toggle__track {
  background: var(--blue);
  border-color: var(--blue);
}
.theme-toggle input:checked + .theme-toggle__track::after {
  transform: translateX(18px);
  background: #fff;
}

/* Theme switcher — 3-position sliding toggle (Clair / Auto / Sombre) */
.theme-toggle3 {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px;
  flex-shrink: 0;
}
.theme-toggle3::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.theme-toggle3[data-pos="1"]::before { left: 31px; }
.theme-toggle3[data-pos="2"]::before { left: 59px; }
.theme-toggle3__btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: color var(--speed) var(--ease);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle3__btn.active { color: #fff; }
.theme-toggle3__btn:not(.active):hover { color: var(--text); }

/* Page content — scrollable area between header and tab-bar */
.app-content {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-content::-webkit-scrollbar { display: none; }

.page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom) + 1rem);
}

.page-header {
  padding: 1rem 0 0.75rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}


/* ─── 4. BOTTOM TAB BAR ─── */
/*
  Flex-child approach (no position:fixed = no iOS quirks):
  • .app-shell is position:fixed + inset:0 + flex column → fills the viewport
  • .tab-bar is a flex-shrink:0 child at the bottom → structurally pinned
  • padding-bottom = safe-area fills the home-indicator zone with background
*/

/* Tab bar fix: padding-bottom minimum, z-index élevé, pas d'espace fantôme */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  background: var(--bg);
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
  box-sizing: border-box;
  pointer-events: auto;
}

.tab-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 100%;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 6px 2px 4px;
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  height: var(--tab-bar-height);
  box-sizing: border-box;
}

.tab-item i {
  font-size: 19px;
  line-height: 1;
  transition: transform 0.2s var(--ease-spring);
}

.tab-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tab-item:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

/* Onglet actif : icône ET texte en bleu */
nav.tab-bar .tab-item.active,
nav.tab-bar .tab-item.active i,
nav.tab-bar .tab-item.active span {
  color: var(--blue) !important;
}
nav.tab-bar .tab-item.active i {
  transform: scale(1.08);
}

/* Admin tab — subtle red dot */
.tab-item.admin-tab {
  position: relative;
}

.tab-item.admin-tab::after {
  content: '';
  position: absolute;
  top: 5px;
  right: calc(50% - 12px);
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}


/* ─── 5. CARDS ─── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--speed) var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-body {
  padding: 1.25rem;
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
}


/* ─── 6. STATUS BANNER ─── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.status-banner--success {
  background: var(--success-bg);
  border: 1px solid rgba(48,209,88,0.20);
}

.status-banner--warning {
  background: var(--warning-bg);
  border: 1px solid rgba(255,214,10,0.20);
}

.status-banner--danger {
  background: var(--danger-bg);
  border: 1px solid rgba(255,69,58,0.20);
}

.status-banner__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.status-banner--success .status-banner__icon { color: var(--success); }
.status-banner--warning .status-banner__icon { color: var(--warning); }
.status-banner--danger .status-banner__icon { color: var(--danger); }

.status-banner__body {
  flex: 1;
  min-width: 0;
}

.status-banner__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.status-banner__sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 1px;
}

.status-banner__action {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


/* ─── 7. KPI STAT CHIPS ─── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--speed) var(--ease);
}

.stat-card:hover {
  border-color: var(--border-strong);
}

.stat-card--highlight {
  border-color: rgba(var(--blue-rgb),0.25);
  background: linear-gradient(135deg, rgba(var(--blue-rgb),0.06), rgba(var(--primary-rgb),0.04));
}

.stat-card__icon {
  font-size: 1.5rem;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success);
  width: fit-content;
}


/* ─── 8. FLIGHT CARD ─── */
.flight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.flight-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
}

.flight-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(var(--blue-rgb),0.12);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flight-card__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.flight-card__body {
  padding: 0 1.25rem 1rem;
}

.flight-card__aircraft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.flight-card__aircraft-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.flight-card__aircraft-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.flight-card__aircraft-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.flight-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.flight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-secondary);
}

.flight-tag i { font-size: 0.65rem; }

.flight-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

.flight-card__empty {
  text-align: center;
  padding: 2rem 1.25rem;
}

.flight-card__empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.flight-card__empty-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.flight-card__empty-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}


/* ─── 9. SECTION HEADERS ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i { font-size: 0.9rem; }

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
}


/* ─── 10. NEWS / EVENT CARDS ─── */
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all var(--speed) var(--ease);
}

.news-card:hover {
  border-color: var(--border-strong);
}

.news-card--featured {
  margin-bottom: 1rem;
}

.news-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card__body {
  padding: 1rem 1.25rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.news-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(var(--blue-rgb),0.12);
  color: var(--blue);
}

.news-card__tag--accent {
  background: rgba(var(--accent-rgb),0.12);
  color: var(--accent-light);
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact news layout */
.news-compact {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  text-decoration: none;
}

.news-compact__image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.news-compact__body {
  flex: 1;
  min-width: 0;
}

.news-compact__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.news-compact__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ─── 11. RANKING / LEADERBOARD ─── */
.ranking-hero {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.ranking-hero::after {
  content: '🏆';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: 0.15;
}

.ranking-hero__season {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(var(--blue-rgb),0.15);
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.ranking-hero__rank {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.ranking-hero__hours {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ranking-hero__bar {
  height: 6px;
  background: var(--surface-raised);
  border-radius: var(--radius-pill);
  margin-top: 1rem;
  overflow: hidden;
}

.ranking-hero__bar-fill {
  height: 100%;
  background: var(--gradient-blue);
  border-radius: var(--radius-pill);
  transition: width 1s var(--ease-out);
}

.ranking-hero__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Ranking list */
.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.ranking-item:last-child { border-bottom: none; }

.ranking-item--you {
  background: rgba(var(--blue-rgb),0.06);
  border: 1px solid rgba(var(--blue-rgb),0.12);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin: 0.5rem 0;
  border-bottom: none;
}

.ranking-item__pos {
  font-size: 1.1rem;
  font-weight: 700;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item__pos--gold { color: #FFD700; }
.ranking-item__pos--silver { color: #C0C0C0; }
.ranking-item__pos--bronze { color: #CD7F32; }

.ranking-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ranking-item__info { flex: 1; min-width: 0; }

.ranking-item__name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.ranking-item__club {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ranking-item__hours {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.ranking-item__delta {
  font-size: 0.7rem;
  display: block;
  text-align: right;
}

.ranking-item__delta--up { color: var(--success); }
.ranking-item__delta--down { color: var(--danger); }
.ranking-item__delta--flat { color: var(--text-muted); }


/* ─── 12. BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  min-height: 44px;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--blue-rgb),0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(var(--blue-rgb),0.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb),0.25);
}

.btn-surface {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-surface:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 0.4rem 0.75rem;
  min-height: auto;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  min-height: 36px;
}


/* ─── 13. FORM INPUTS ─── */
.form-group { margin-bottom: 1rem; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--speed) var(--ease);
  min-height: 44px;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb),0.12);
}

.form-input::placeholder { color: var(--text-muted); }


/* ─── 14. WEATHER / PREP CARDS ─── */

/* Grid wrapper */
.prep-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.prep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--speed) var(--ease);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.prep-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}

/* On mobile: button wraps below content, full width */
.prep-card--responsive { flex-wrap: wrap; }
@media (max-width: 540px) {
  .prep-card--responsive .prep-card__content { flex: 1 1 0; min-width: 0; }
  .prep-card--responsive .btn { width: 100%; margin-top: 0.5rem; }
}

/* Featured card (météo) gets a subtle blue glow */
.prep-card--featured {
  border-color: rgba(var(--blue-rgb), 0.25);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--blue-rgb), 0.04) 100%);
}

.prep-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.prep-card__icon--weather { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }
.prep-card__icon--webcam  { background: rgba(var(--accent-rgb),0.12); color: var(--accent); }
.prep-card__icon--charts  { background: rgba(48,209,88,0.12); color: #30d158; }
.prep-card__icon--docs    { background: rgba(255,149,0,0.12); color: #ff9500; }
.prep-card__icon--weight  { background: rgba(175,82,222,0.12); color: #af52de; }
.prep-card__icon--links   { background: rgba(90,200,250,0.12); color: #5ac8fa; }

.prep-card__content { flex: 1; min-width: 0; }

.prep-card__title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.3;
}

.prep-card__subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.prep-card__arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Section label (used on sub-pages) */
.prep-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.prep-section-label i {
  color: var(--blue);
  font-size: 0.75rem;
}

/* Empty state for prep sub-pages */
.prep-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.prep-empty-state__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.prep-empty-state__text {
  font-size: 0.85rem;
}

/* Hint box */
.prep-hint {
  background: rgba(var(--blue-rgb), 0.06);
  border: 1px solid rgba(var(--blue-rgb), 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
  margin-top: 1rem;
}
.prep-hint i {
  color: var(--blue);
  margin-top: 0.1rem;
  flex-shrink: 0;
}


/* ─── 15. PROFILE ─── */
.profile-header {
  text-align: center;
  padding: 1.5rem 1rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.3);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.profile-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.profile-badge--active {
  background: var(--success-bg);
  color: var(--success);
}

.profile-badge--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.profile-section {
  margin-bottom: 1rem;
}

.profile-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0 0.5rem;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color var(--speed) var(--ease);
}

.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { color: var(--blue); }

.profile-menu-item i {
  width: 24px;
  text-align: center;
  color: var(--text-secondary);
}

.profile-menu-item span { flex: 1; font-weight: 500; }

.profile-menu-item .fa-chevron-right {
  font-size: 0.7rem;
  color: var(--text-muted);
}


/* ─── 16. ADMIN PANEL ─── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all var(--speed) var(--ease);
}

.admin-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
}

.admin-tile__icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.admin-tile__label {
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0 0;
}


/* ─── 17. LISTS ─── */
.list-group {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background var(--speed) var(--ease);
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-raised); color: var(--text); }

.list-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--surface-raised);
  flex-shrink: 0;
}

.list-item__content { flex: 1; min-width: 0; }

.list-item__title {
  font-weight: 600;
  font-size: 0.9rem;
}

.list-item__subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}


/* ─── 18. BADGES & TAGS ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-blue { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-secondary); }


/* ─── 19. TABS / SEGMENTED CONTROL ─── */

/* ── Pill tabs (hub-style) ── */
.hub-pills {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 2px; /* avoid clipping shadow */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hub-pills::-webkit-scrollbar { display: none; }

.hub-pill {
  flex: 1 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hub-pill i {
  font-size: 0.8rem;
}
.hub-pill:hover {
  border-color: var(--blue);
  color: var(--text);
}
.hub-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(var(--blue-rgb), 0.35);
}

/* Legacy segmented (kept for other pages) */
.segmented-control {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.segmented-control::-webkit-scrollbar { display: none; }

.segmented-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  white-space: nowrap;
  min-height: 36px;
  text-decoration: none;
  text-align: center;
}

.segmented-btn:hover { color: var(--text); }

.segmented-btn.active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}


/* ─── 20. EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.empty-state__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.empty-state__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}


/* ─── 21. ALERTS (Bootstrap compat) ─── */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(48,209,88,0.15); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(255,69,58,0.15); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255,214,10,0.15); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(90,200,250,0.15); }


/* ─── 22. HTMX PROGRESS ─── */
.htmx-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-blue);
  z-index: 9999;
  transition: width 0.3s var(--ease-out);
  border-radius: 0 2px 2px 0;
}

.htmx-progress.active {
  animation: progress-anim 2s ease-in-out infinite;
}

@keyframes progress-anim {
  0%   { width: 0%; }
  50%  { width: 70%; }
  100% { width: 90%; }
}


/* ─── 23. NOTIFICATION BADGE (header) ─── */
.notif-badge {
  position: relative;
}

.notif-badge .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}


/* ─── 24. PWA INSTALL & PUSH POPUPS ─── */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* iOS 26+: extend into safe-area zone so dark overlay covers home indicator strip */
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
}

.popup-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
}

.popup-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.popup-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.popup-card__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.popup-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}


/* ─── 25. SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

body { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }


/* ─── 26. PAGINATION ─── */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem 0;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.pagination-btn:hover { background: var(--surface-raised); color: var(--text); }
.pagination-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }


/* ─── 27. TABLES ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-strong);
}

.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td { background: var(--surface-raised); }


/* ─── 28. SUB-PAGE HEADER (back button) ─── */
.subpage-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.subpage-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  text-decoration: none;
}

.subpage-back:hover { background: var(--surface-raised); color: var(--text); }

.subpage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* Admin drawer (full page slide-over for admin menu) */
.admin-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* iOS 26+: extend into safe-area zone so overlay covers home indicator strip */
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  z-index: 900;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.admin-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.admin-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 910;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
}

.admin-drawer.open {
  transform: translateY(0);
}

.admin-drawer__handle {
  width: 36px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0.75rem auto;
}

.admin-drawer__header {
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-drawer__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-raised);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-drawer__body {
  padding: 0 1.25rem;
}


/* ─── 29. UTILITIES ─── */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-blue { color: var(--blue) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-accent { color: var(--accent) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 0.75rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.75rem !important; }
.mt-3 { margin-top: 1rem !important; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }
.d-flex { display: flex; }
.d-none { display: none !important; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.row { display: flex; flex-wrap: wrap; margin: -0.375rem; }
.col { flex: 1; padding: 0.375rem; }
.g-3 { gap: 0.75rem; }
.g-3 > * { padding: 0.375rem; }


/* ─── 30. RESPONSIVE ─── */
@media (min-width: 768px) {
  .page-container { padding: 1.5rem; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .page-container { max-width: 800px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* iOS safe area — handled on .app-header (padding-top) and .tab-bar (padding-bottom) */

/* Touch targets */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: max(16px, 1em);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════
   31. LEGACY COMPATIBILITY — maps old modern.css
       class names to the new dark design system
       so all existing templates work immediately.
   ═══════════════════════════════════════════════════ */

/* Containers */
.modern-list-container,
.modern-form-card,
.add-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.modern-table-container { overflow-x: auto; }

/* Forms */
.modern-form .form-group { margin-bottom: 1rem; }

.modern-form .form-label,
.modern-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modern-input,
.form-control,
.form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  outline: none;
}

.modern-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb),0.12);
  background: var(--surface-raised);
  color: var(--text);
}

.form-control::placeholder,
.modern-input::placeholder {
  color: var(--text-muted);
}

.modern-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.modern-btn-search,
.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.btn-primary:hover { box-shadow: 0 4px 16px rgba(var(--blue-rgb),0.35); filter: brightness(1.1); }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--blue-rgb),0.25); }

.btn-outline-secondary,
.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-outline-primary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.btn-outline-primary:hover {
  background: rgba(var(--blue-rgb),0.08);
}

.btn-success { background: var(--success); color: #fff; border: none; }
.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-warning { background: var(--warning); color: var(--text-inverse); border: none; }

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
}

.btn-close:hover { color: var(--text); }

/* Small/size variants */
.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Typography helpers */
.fw-bold { font-weight: 700 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.small, .small-muted { font-size: 0.85rem; }
.small-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.display-5 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

/* Tables (legacy) */
.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.table th {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
}

.table td {
  padding: 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-responsive { overflow-x: auto; }
.table-hover tbody tr:hover td { background: var(--surface-raised); }
.table-striped tbody tr:nth-of-type(odd) td { background: rgba(255,255,255,0.02); }

/* Spacing / Bootstrap compat */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

/* Flex / Bootstrap compat */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Grid */
.row { display: flex; flex-wrap: wrap; margin: -0.5rem; }
.col, [class*="col-"] { padding: 0.5rem; }
.col { flex: 1; min-width: 0; }
.col-lg-4 { flex: 0 0 100%; max-width: 100%; }
.col-lg-6 { flex: 0 0 100%; max-width: 100%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.g-3 { gap: 0.75rem; margin: -0.375rem; }
.g-3 > * { padding: 0.375rem; }

@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

/* User info grid (profil page) */
.user-info-grid { display: flex; flex-direction: column; gap: 0; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.info-label i { width: 18px; text-align: center; }

.info-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

/* Avatar */
.user-avatar-mini { flex-shrink: 0; }

.avatar-circle-small {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Article content (blog detail) */
.article-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content a { color: var(--blue); }
.article-content a:hover { text-decoration: underline; }

.article-content blockquote {
  border-left: 3px solid #e8883c;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.25rem 0;
  background: rgba(232, 136, 60, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Article cards (legacy) */
.card-title {
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.card-text { color: var(--text-secondary); }

.btn-article-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-article-link:hover { color: var(--blue-light); }

/* List stats */
.list-stats { color: var(--text-secondary); font-size: 0.85rem; }

/* Pagination (legacy) */
.modern-pagination-container {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem 0;
}

.modern-pagination-container .page-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--speed) var(--ease);
}

.modern-pagination-container .page-link:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.modern-pagination-container .page-item.active .page-link {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Alerts (legacy Bootstrap) */
.alert-dismissible { position: relative; padding-right: 3rem; }
.alert-dismissible .btn-close { position: absolute; top: 0.75rem; right: 0.75rem; }
.fade.show { opacity: 1; }

/* Status badges (legacy) */
.badge-status,
span.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge.bg-success,
.badge-status.active { background: var(--success-bg) !important; color: var(--success) !important; }
.badge.bg-danger { background: var(--danger-bg) !important; color: var(--danger) !important; }
.badge.bg-warning { background: var(--warning-bg) !important; color: var(--warning) !important; }
.badge.bg-info { background: var(--info-bg) !important; color: var(--info) !important; }
.badge.bg-secondary { background: rgba(255,255,255,0.06) !important; color: var(--text-secondary) !important; }
.badge.bg-primary { background: rgba(var(--blue-rgb),0.12) !important; color: var(--blue) !important; }

/* Documents card */
.document-upload-card,
.document-info-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Station/Weather specific */
.meteo-card,
.station-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* Tabs (legacy Bootstrap) */
.nav-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.nav-tabs .nav-link {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}

.nav-tabs .nav-link:hover { color: var(--text); }
.nav-tabs .nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* Modal (basic dark) */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.modal-body { padding: 1.25rem; }

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-title { font-weight: 700; color: var(--text); }

.modal-backdrop { background: rgba(0,0,0,0.6); }

/* Dropdown */
.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  box-shadow: var(--shadow-lg);
  min-width: 10rem;
}

.dropdown-item {
  padding: 0.5rem 0.75rem;
  color: var(--text);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  transition: background var(--speed) var(--ease);
}

.dropdown-item:hover { background: var(--surface-raised); color: var(--text); }

/* Iframe viewer (documents) */
iframe {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Selection color */
::selection {
  background: rgba(var(--blue-rgb), 0.3);
  color: var(--text);
}

/* Links inside content */
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: none; }

/* Headings  */
h1, h2, h3, h4, h5, h6 { color: var(--text); }

/* Checkbox & Radio dark */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--blue);
}

/* Tooltip compat */
.tooltip-inner {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* Print */
@media print {
  .tab-bar, .app-header, .admin-drawer, .admin-drawer-overlay { display: none !important; }
  .app-content { padding-bottom: 0 !important; }
  body { background: #fff; color: #000; }
}

/* Additional Bootstrap utilities */
.small { font-size: 0.85rem; }
.text-primary { color: var(--blue) !important; }
.text-uppercase { text-transform: uppercase !important; }
.fw-bold { font-weight: 700 !important; }
.position-relative { position: relative !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.g-2 { gap: 0.5rem; }
.col-6 { width: 50%; flex: 0 0 50%; max-width: 50%; box-sizing: border-box; }
.col-sm-6 { width: 50%; flex: 0 0 50%; max-width: 50%; box-sizing: border-box; }
.col-xl-3 { width: 25%; flex: 0 0 25%; max-width: 25%; box-sizing: border-box; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; }
.form-control-lg { padding: 0.75rem 1rem; font-size: 1.1rem; border-radius: var(--radius-sm); }
.btn-outline-primary {
  background: transparent; color: var(--blue); border: 1.5px solid var(--blue);
  padding: 0.5rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; transition: all var(--speed) var(--ease);
}
.btn-outline-primary:hover { background: rgba(var(--blue-rgb),0.1); }
.link-primary { color: var(--blue); text-decoration: underline; }
.link-primary:hover { color: var(--blue-light); }
.fade { opacity: 0; transition: opacity 0.15s linear; }
.fade.show { opacity: 1; }

@media (min-width: 576px) {
  .col-sm-6 { width: 50%; flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .col-md-3 { width: 25%; flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 1200px) {
  .col-xl-3 { width: 25%; flex: 0 0 25%; max-width: 25%; }
}


/* ═══════════════════════════════════════════════════
   33. METEO PAGE STYLES
   ═══════════════════════════════════════════════════ */

/* Section switcher (METAR, TEMSI, WINTEM, FRONTS) */
.meteo-type-selector { margin-bottom: 1.25rem; }

.meteo-type-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem;
}
.meteo-type-tabs::-webkit-scrollbar { display: none; }

.meteo-type-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--speed) var(--ease);
}
.meteo-type-tab:hover { background: var(--surface-hover); color: var(--text); }
.meteo-type-tab.active {
  background: var(--gradient-blue);
  border-color: var(--blue);
  color: #fff;
}
.meteo-type-icon { font-size: 1rem; }
.meteo-type-text { font-size: 0.85rem; }

/* Meteo sections show/hide */
.meteo-section { display: none; }
.meteo-section.active { display: block; }

/* Info banner */
.info-banner {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}
.info-banner-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.info-subtext { font-size: 0.8rem; color: var(--text-secondary); }

/* Apple-style tabs */
.apple-tabs-container { margin-bottom: 1rem; }
.apple-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.apple-tabs-scroll::-webkit-scrollbar { display: none; }

.apple-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
}

.apple-tab {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--speed) var(--ease);
}
.apple-tab:hover { background: var(--surface-hover); color: var(--text); }
.apple-tab.active {
  background: var(--gradient-blue);
  border-color: var(--blue);
  color: #fff;
}
.apple-tab-icon { display: flex; align-items: center; }
.apple-tab-text { font-size: 0.85rem; }
.apple-tab-search { padding: 0.5rem 0.75rem; }

/* Heading styles */
.heading-strong {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.subheading-strong {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* TEMSI/WINTEM chart grids */
.temsi-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.chart-card {
  display: block;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--speed) var(--ease);
  cursor: pointer;
}
.chart-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.chart-time { font-size: 1rem; font-weight: 700; color: var(--text); }
.chart-status {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase;
}
.chart-status.current  { background: var(--success-bg); color: var(--success); }
.chart-status.available { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }
.chart-status.expired  { background: var(--danger-bg);  color: var(--danger); }
.chart-status.future   { background: var(--warning-bg); color: var(--warning); }
.chart-date { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.availability-info { font-size: 0.75rem; color: var(--text-muted); }
.countdown { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.countdown-icon { font-size: 0.7rem; }
.tap-hint { font-size: 0.7rem; color: var(--text-muted); font-style: italic; margin-top: 0.35rem; display: block; }

/* Error card */
.error-card {
  background: var(--danger-bg);
  border: 1px solid rgba(255,69,58,0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.error-card-title { font-size: 1rem; font-weight: 700; color: var(--danger); margin-bottom: 0.5rem; }
.error-card-text { font-size: 0.85rem; color: var(--text-secondary); }

/* Note card */
.note-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.note-icon { color: var(--blue); font-size: 1.1rem; flex-shrink: 0; }

/* Placeholder loading */
.placeholder-loading {
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}
.temsi-chart-grid > .placeholder-loading {
  grid-column: 1 / -1;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Meteo data card */
.meteo-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* List stats */
.list-stats {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-secondary);
}
.small-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
}


   ═══════════════════════════════════════════════════ */

.login-no-select {
  -webkit-user-select: none;
  user-select: none;
}

.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-header { margin-bottom: 2rem; }

.login-icon { margin-bottom: 1rem; }

.login-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.login-form { text-align: left; }

.form-group-modern { margin-bottom: 1.25rem; }

.form-label-modern {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--speed) var(--ease);
  outline: none;
}

.form-input-modern:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb),0.12);
}

.form-input-modern::placeholder { color: var(--text-muted); }

.login-error {
  background: var(--danger-bg);
  border: 1px solid rgba(255,69,58,0.15);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login-modern {
  width: 100%;
  padding: 0.875rem;
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--speed) var(--ease);
  box-shadow: 0 2px 12px rgba(var(--blue-rgb),0.25);
}

.btn-login-modern:hover {
  box-shadow: 0 4px 20px rgba(var(--blue-rgb),0.35);
  transform: translateY(-1px);
}

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.error-message {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.35rem;
}


/* Station dashboard — METAR/TAF data display */
.station-dashboard {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.station-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.station-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.station-flight-badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.station-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.station-metric-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.station-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.station-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.station-metric-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.station-clouds {
  margin-bottom: 1.25rem;
}

.station-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.station-cloud-chip {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  text-align: center;
}

.station-cloud-type {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.station-cloud-height {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.station-code-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

.station-code-card--metar {
  border-left: 3px solid var(--blue);
}

.station-code-card--taf {
  border-left: 3px solid var(--success);
}

/* chart-card status variants (separate selectors) */
.chart-card.current .chart-status  { background: var(--success-bg); color: var(--success); }
.chart-card.available .chart-status { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }
.chart-card.expired .chart-status   { background: var(--danger-bg);  color: var(--danger); }
.chart-card.future .chart-status    { background: var(--warning-bg); color: var(--warning); }
.chart-card.future { opacity: 0.65; cursor: default; }

/* ═══════════════════════════════════════════════════
   34. PILOT ROWS & STATUS BADGES
   ═══════════════════════════════════════════════════ */

.pilot-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  transition: all var(--speed) var(--ease);
}
.pilot-row:hover { background: var(--surface-hover); }

.pilot-avatar { flex-shrink: 0; }
.pilot-info { flex: 1; min-width: 0; }
.pilot-name { font-weight: 600; color: var(--text); margin-bottom: 0.125rem; }
.pilot-id { font-size: 0.85rem; color: var(--text-secondary); }
.pilot-status { flex-shrink: 0; }
.pilot-actions { flex-shrink: 0; display: flex; gap: 0.5rem; }

@media (max-width: 768px) {
  .pilot-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .pilot-info, .pilot-status, .pilot-actions { width: 100%; }
  .pilot-status, .pilot-actions { display: flex; justify-content: flex-start; }
}

/* Avatar circles */
.avatar-circle {
  width: 40px; height: 40px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase;
}
.avatar-circle-large {
  width: 90px; height: 90px;
  font-size: 2.2rem; font-weight: 700;
  box-shadow: 0 8px 25px rgba(var(--blue-rgb),0.2);
}
.avatar-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 18px;
  background: transparent; border: none;
}

/* Status badges (universal) */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.status-active { background: var(--success-bg); color: var(--success); }
.status-inactive { background: var(--danger-bg); color: var(--danger); }
.status-neutral { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }
.status-warning { background: var(--warning-bg); color: var(--warning); }
.status-never { background: var(--surface-hover); color: var(--text-muted); }
.status-door { background: var(--warning-bg); color: var(--warning); }
.status-aircraft { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }
.status-activity { background: rgba(88,86,214,0.12); color: #8B85FF; }
.status-location { background: var(--surface-raised); color: var(--text-secondary); }
.status-muted { background: var(--surface-raised); color: var(--text-muted); }


/* ═══════════════════════════════════════════════════
   35. ACTION BUTTONS
   ═══════════════════════════════════════════════════ */

.btn-action-modern {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--surface-raised);
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border-strong);
  transition: all var(--speed) var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn-action-modern:hover {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--blue-rgb),0.2);
  text-decoration: none;
}
.btn-action-modern.primary {
  background: var(--gradient-blue); color: #fff; border-color: var(--blue);
}
.btn-action-modern.danger {
  background: var(--danger-bg); color: var(--danger); border-color: rgba(255,69,58,0.2);
}
.btn-action-modern.danger:hover {
  background: var(--danger); color: #fff;
}
.btn-action-modern.disabled {
  background: var(--surface-raised); color: var(--text-muted);
  cursor: not-allowed; pointer-events: none; opacity: 0.5;
}

.btn-primary-modern {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--gradient-blue); color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.btn-primary-modern:hover { box-shadow: 0 4px 16px rgba(var(--blue-rgb),0.3); transform: translateY(-1px); }

.btn-secondary-modern {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.btn-secondary-modern:hover { background: var(--surface-hover); }

.search-input-group {
  display: flex; gap: 0.5rem;
}


/* ═══════════════════════════════════════════════════
   36. AIRCRAFT CARDS
   ═══════════════════════════════════════════════════ */

.aircraft-list-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
}

.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.aircraft-card {
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-strong);
  transition: all var(--speed) var(--ease);
}
.aircraft-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: var(--blue);
}

.aircraft-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.aircraft-icon {
  width: 40px; height: 40px;
  background: var(--gradient-blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.aircraft-info { flex: 1; }
.aircraft-registration { font-weight: 700; color: var(--text); font-size: 1.1rem; margin: 0; }
.aircraft-location { font-size: 0.85rem; color: var(--text-secondary); }
.aircraft-status { flex-shrink: 0; }
.aircraft-details { margin-bottom: 1.25rem; }
.aircraft-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.aircraft-action-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--text);
  transition: all var(--speed) var(--ease);
}
.aircraft-action-btn:hover { background: var(--surface-hover); }
.aircraft-action-btn.primary { background: var(--gradient-blue); color: #fff; border-color: var(--blue); }
.aircraft-action-btn.secondary { background: var(--surface-raised); color: var(--text-secondary); }
.aircraft-action-btn.danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,69,58,0.15); }

.status-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
}
.status-toggle.unlocked { background: var(--success-bg); color: var(--success); }
.status-toggle.locked { background: var(--danger-bg); color: var(--danger); }

.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 0.85rem; color: var(--text-secondary); }
.detail-value { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.detail-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }

.management-section { margin-bottom: 1.5rem; }
.management-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .aircraft-grid { grid-template-columns: 1fr; }
  .aircraft-header { flex-direction: column; gap: 0.75rem; }
  .aircraft-actions { justify-content: stretch; }
  .aircraft-action-btn { flex: 1; justify-content: center; }
}


/* ═══════════════════════════════════════════════════
   37. NOTIFICATION SYSTEM
   ═══════════════════════════════════════════════════ */

/* Push banner */
.push-banner {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  max-width: 600px; width: 90%;
  animation: slideDown 0.3s ease-out;
}
.push-banner-content { display: flex; align-items: center; gap: 1rem; }
.push-banner-icon { font-size: 1.5rem; }
.push-banner-text { flex: 1; font-size: 0.9rem; color: var(--text); }
.push-banner-actions { display: flex; gap: 0.5rem; }

/* Notification top section */
.notif-top-section { margin-bottom: 1.5rem; }
.notif-filters-block { margin-bottom: 1rem; }
.notif-config-block { margin-bottom: 1rem; }
.notif-config-content { display: flex; align-items: center; gap: 0.75rem; }
.btn-notif-config {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--text);
  cursor: pointer; transition: all var(--speed) var(--ease);
}
.btn-notif-config.subscribed { background: var(--success-bg); color: var(--success); border-color: rgba(52,199,89,0.2); }
.btn-notif-config.unsubscribed { background: var(--warning-bg); color: var(--warning); border-color: rgba(255,159,10,0.2); }
.btn-notif-config.unsupported { background: var(--surface-raised); color: var(--text-muted); opacity: 0.6; cursor: not-allowed; }

/* Filter controls */
.filters-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-group-large { grid-column: span 2; }
.filter-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }
.filter-input-wrapper { position: relative; }
.filter-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

.filter-input, .filter-select, .filter-date {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
  transition: all var(--speed) var(--ease);
  outline: none;
}
.filter-input:focus, .filter-select:focus, .filter-date:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb),0.12);
}
.filter-input::placeholder { color: var(--text-muted); }

.filter-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%238B95A5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.7rem center;
  background-repeat: no-repeat;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

.filters-actions { display: flex; gap: 0.5rem; align-items: flex-end; }
.btn-filter-action, .btn-filter-search, .btn-filter-reset {
  padding: 0.6rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--speed) var(--ease);
}
.btn-filter-search { background: var(--gradient-blue); color: #fff; }
.btn-filter-reset { background: var(--surface-raised); color: var(--text-secondary); border: 1px solid var(--border-strong); }
.btn-filter-reset:hover { background: var(--surface-hover); }

@media (max-width: 768px) {
  .filters-wrapper { grid-template-columns: 1fr; }
  .filter-group-large { grid-column: span 1; }
}

/* Notification rows */
.notification-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--speed) var(--ease);
}
.notification-row:hover { background: var(--surface-hover); }
.notification-row:last-child { border-bottom: none; }
.notification-row[data-read="unread"] {
  background: rgba(var(--blue-rgb),0.04);
  border-left: 3px solid var(--blue);
}

.notification-datetime { flex-shrink: 0; text-align: center; min-width: 70px; }
.datetime-main { font-weight: 600; font-size: 1rem; color: var(--text); }
.datetime-sub { font-size: 0.75rem; color: var(--text-muted); }

.notification-type-icon { flex-shrink: 0; }
.notif-type-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 0.9rem;
}
.notif-type-badge.error { background: var(--danger-bg); color: var(--danger); }
.notif-type-badge.warning { background: var(--warning-bg); color: var(--warning); }
.notif-type-badge.success { background: var(--success-bg); color: var(--success); }
.notif-type-badge.info { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }

.notification-main-info { flex: 1; min-width: 0; }
.notification-title { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-bottom: 0.25rem; }
.notification-message { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.4; word-break: break-word; }
.notification-tag {
  display: inline-block; margin-top: 0.4rem;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-sm);
  font-size: 0.7rem; font-weight: 500;
  background: var(--surface-raised); color: var(--text-muted);
}
.notification-tag.admin { background: var(--warning-bg); color: var(--warning); }

.notification-status { flex-shrink: 0; }
.notification-actions { flex-shrink: 0; }

/* Notification admin form */
.notification-form-clean { width: 100%; display: flex; flex-direction: column; padding: 0; }
.form-group-clean { margin-bottom: 1.25rem; }
.form-label-clean { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.4rem; display: block; }
.form-row-clean { display: flex; gap: 1rem; }
.radio-group-clean { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-item-clean { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.users-grid-clean { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; max-height: 300px; overflow-y: auto; }
.user-item-clean { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); cursor: pointer; }
.user-item-clean:hover { background: var(--surface-hover); }
.user-checkbox { accent-color: var(--blue); }
.user-info-clean { display: flex; flex-direction: column; }
.user-name-clean { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.user-username-clean { font-size: 0.75rem; color: var(--text-muted); }
.form-actions-clean { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-clean {
  padding: 0.625rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; transition: all var(--speed) var(--ease);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--text);
}
.btn-primary-clean { background: var(--gradient-blue); color: #fff; border: none; }

/* Notification card (preview) */
.notification-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--speed) var(--ease);
}
.notification-card:hover { box-shadow: var(--shadow-md); }
.notification-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; }
.notif-icon { font-size: 1.25rem; }
.notif-info { flex: 1; }
.notif-title { font-weight: 600; color: var(--text); }
.notif-preview { font-size: 0.85rem; color: var(--text-secondary); }
.notif-meta { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

/* Notification settings */
.notification-settings-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-strong);
  max-width: 600px; margin: 0 auto;
}
.settings-header { margin-bottom: 1.5rem; }
.settings-status { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.status-icon { font-size: 1.5rem; }
.status-icon.success { color: var(--success); }
.status-icon.error { color: var(--danger); }
.status-icon.warning { color: var(--warning); }
.status-text { flex: 1; }
.status-detail { font-size: 0.85rem; color: var(--text-secondary); }
.settings-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.compatibility-info { margin-top: 2rem; }
.compatibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.compat-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; font-size: 0.85rem; }

.template-btn {
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer; font-size: 0.85rem;
  transition: all var(--speed) var(--ease);
}
.template-btn:hover { background: var(--surface-hover); }

@media (max-width: 768px) {
  .notification-settings-card { padding: 1.25rem; }
}


/* ═══════════════════════════════════════════════════
   38. VOL ITEMS
   ═══════════════════════════════════════════════════ */

.vol-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  transition: all var(--speed) var(--ease);
  margin-bottom: 0.5rem;
}
.vol-item:last-child { margin-bottom: 0; }
.vol-item:hover { background: var(--surface-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.vol-main-info { display: flex; flex-direction: column; gap: 0.125rem; min-width: 120px; flex: 0 0 120px; }
.vol-aircraft { font-weight: 600; font-size: 1rem; color: var(--text); }
.vol-datetime-block { display: flex; flex-direction: column; gap: 0.25rem; min-width: 160px; flex: 0 0 160px; }
.vol-date-header { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.vol-time-row { display: flex; align-items: center; gap: 0.5rem; }
.vol-time { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.vol-time-arrow { color: var(--text-muted); font-size: 0.75rem; }
.vol-info-group { display: flex; gap: 0.75rem; flex: 1; }
.vol-info-item { font-size: 0.85rem; color: var(--text-secondary); }
.vol-info-item.instructor { color: var(--blue); }
.vol-info-item.activity { color: var(--text-muted); }

@media (max-width: 768px) {
  .vol-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem; }
  .vol-main-info { width: 100%; flex: none; flex-direction: row; align-items: center; justify-content: space-between; }
  .vol-datetime-block { width: 100%; flex: none; }
}


/* ═══════════════════════════════════════════════════
   39. CLASSEMENT / RANKING
   ═══════════════════════════════════════════════════ */

.ranking-type-selector {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}
.ranking-type-tabs { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.ranking-type-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  background: transparent; border: none;
  transition: all var(--speed) var(--ease);
}
.ranking-type-tab:hover { color: rgba(255,255,255,0.85); }
.ranking-type-tab.active { background: rgba(255,255,255,0.15); color: #fff; }
.ranking-type-icon { font-size: 1rem; }
.ranking-type-text { font-size: 0.85rem; }
.ranking-section { display: none; }
.ranking-section.active { display: block; }

/* KPI cards (shared with classement) */
.kpi-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.kpi-icon { font-size: 1.5rem; }
.kpi-content { flex: 1; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.kpi-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* Podium */
.podium-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.podium-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.podium-name { font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: 0.25rem; }
.podium-time { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.podium-vols { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* Runner-up */
.runner-up-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.runner-up-rank { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); min-width: 30px; }
.runner-up-info { flex: 1; }
.runner-up-name { font-weight: 600; color: var(--text); }
.runner-up-meta { font-size: 0.85rem; color: var(--text-secondary); }
.runner-up-time { font-weight: 600; color: var(--blue); }
.runner-up-sep { margin: 0 0.25rem; color: var(--text-muted); }
.runner-up-vols { color: var(--text-secondary); }

/* Classement table */
.classement-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.classement-table { width: 100%; border-collapse: collapse; }
.classement-head-row th {
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}
.classement-subhead-row th {
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.classement-row td {
  padding: 0.625rem 0.5rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.classement-row:hover td { background: var(--surface-hover); }
.classement-empty-cell { color: var(--text-muted); }
.col-rang, .col-nom, .col-solo-vols, .col-solo-heures, .col-dc-vols, .col-dc-heures, .col-total-vols, .col-total-heures { text-align: center; }
.col-nom { text-align: left; }
.sortable { cursor: pointer; }
.sortable:hover { color: var(--blue); }

.empty-state-lg {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted); font-size: 1rem;
}

@media (max-width: 480px) {
  .podium-card { padding: 1rem !important; }
  .runner-up-card { padding: 0.75rem !important; }
}


/* ═══════════════════════════════════════════════════
   40. KPI PAGE
   ═══════════════════════════════════════════════════ */

/* Grid: 1 col mobile, 2 col tablet, 3 col desktop */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.kpi-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kpi-card-v2__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
}

.kpi-card-v2__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(var(--blue-rgb), 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.kpi-card-v2__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-card-v2__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card-v2__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.kpi-card-v2__chart {
  padding: 0 0.5rem 0.5rem;
  height: 180px;
  position: relative;
}

.kpi-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Legacy aliases kept for other pages */
.kpi-section-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-strong);
}
.kpi-section-icon { font-size: 1.25rem; color: var(--blue); }
.kpi-section-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }


/* ═══════════════════════════════════════════════════
   41. USER PROFILE & DETAIL
   ═══════════════════════════════════════════════════ */

/* Profile card */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.profile-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.profile-card__body { flex: 1; min-width: 0; }
.profile-card__name {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  margin: 0 0 0.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-card__id {
  font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.5rem;
}
.profile-card__id i { margin-right: 0.3rem; }
.profile-card__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.profile-card__tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.7rem; font-weight: 700;
  color: #fff;
  background: var(--gradient-blue);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.profile-card__tag--muted {
  background: var(--surface-raised);
  color: var(--text-muted);
}

/* Profile info card */
.profile-info-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 1.15rem;
  margin-bottom: 1.75rem;
}
.profile-info__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.profile-info__row--last { border-bottom: none; }
.profile-info__label { font-size: 0.82rem; color: var(--text-secondary); flex-shrink: 0; }
.profile-info__value {
  font-size: 0.82rem; color: var(--text); font-weight: 600;
  text-align: right; word-break: break-all;
}

/* Profile empty state */
.profile-empty {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}
.profile-empty i { font-size: 1.1rem; opacity: 0.6; }

/* Validities */
.validity-section { margin-bottom: 2rem; }
.validities-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.6rem; margin-bottom: 1.75rem; }
.validity-item {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all var(--speed) var(--ease);
}
.validity-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.validity-status-indicator { width: 6px; height: 36px; border-radius: 3px; flex-shrink: 0; }
.validity-status-indicator.valid { background: var(--success); }
.validity-status-indicator.invalid { background: var(--danger); }
.validity-info { flex: 1; }
.validity-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.validity-date { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }
.validity-badge {
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.badge-valid   { background: var(--success-bg); color: var(--success); }
.badge-invalid { background: var(--danger-bg);  color: var(--danger); }
.badge-recent  { background: rgba(var(--blue-rgb),0.12); color: var(--blue); }



/* Security tips */
.security-tips { margin-top: 2rem; }
.tips-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.tip-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); }

/* Action cards */
.action-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  transition: all var(--speed) var(--ease);
  color: inherit; text-decoration: none;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; text-decoration: none; }
.action-icon { font-size: 1.8rem; opacity: 0.75; }
.action-content { flex: 1; }
.action-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.action-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }
.action-arrow { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
  .profile-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .profile-card__name { white-space: normal; }
  .validities-container { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════
   42. DOCUMENTS & OVERLAYS
   ═══════════════════════════════════════════════════ */

/* Aircraft selector tabs (documents, masse_centrage) */
.aircraft-selector { margin-bottom: 1.5rem; }
.aircraft-tabs { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.25rem; }
.aircraft-tab {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all var(--speed) var(--ease);
}
.aircraft-tab:hover { background: var(--surface-hover); color: var(--text); }
.aircraft-tab.active { background: var(--gradient-blue); border-color: var(--blue); color: #fff; }
.aircraft-tab-icon { display: flex; align-items: center; font-size: 0.8rem; }
.aircraft-tab-text { font-size: 0.85rem; }
.aircraft-section { display: none; }
.aircraft-section.active { display: block; }

/* Document tiles */
.documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.document-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  text-decoration: none; color: var(--text);
  transition: all var(--speed) var(--ease);
  cursor: pointer; min-height: 120px;
}
.document-tile:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-glow); }
.document-tile-icon { font-size: 1.8rem; color: var(--blue); }
.document-tile-title { font-size: 0.78rem; font-weight: 600; text-align: center; color: var(--text); line-height: 1.3; }

/* Fullscreen document overlay */
.documents-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw; height: 100dvh;
  background: var(--bg);
  display: none; flex-direction: column;
  z-index: 2147483647;
}
.documents-overlay.is-open { display: flex; }
.documents-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface); border-bottom: 1px solid var(--border-strong);
}
.documents-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.documents-actions { display: flex; gap: 0.5rem; }
.documents-zoom { display: flex; align-items: center; gap: 0.5rem; }
.documents-zoom-level { font-size: 0.85rem; color: var(--text-secondary); min-width: 45px; text-align: center; }
.documents-download, .documents-close {
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border-strong); cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.documents-download:hover, .documents-close:hover { background: var(--surface-hover); }
.documents-pdf-container { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.documents-pdf-page { max-width: 100%; box-shadow: var(--shadow-md); }
.documents-pdf-loading { text-align: center; padding: 4rem; color: var(--text-muted); }
.documents-pdf-error { text-align: center; padding: 2rem; color: var(--danger); }

/* Masse & centrage – inline embed */
.centrage-embed {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
  background: #fff;
  min-height: 0;          /* allow flex shrink inside .app-content */
}
.centrage-embed__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: absolute;
  inset: 0;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 2;
}
.centrage-embed__iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
  min-height: 70vh;
  transition: opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   42b. MASSE & CENTRAGE CALCULATOR
   ═══════════════════════════════════════════════════ */
.mc-config-form .modern-form-card { margin-bottom: 1.5rem; }

/* Section cards (KPI-style) */
.mc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.mc-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.mc-section__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(var(--blue-rgb), 0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.mc-section__icon--fuel { background: rgba(245,158,11,0.1); color: #F59E0B; }
.mc-section__icon--table { background: rgba(var(--primary-rgb), 0.12); color: var(--blue-light); }
.mc-section__icon--chart { background: rgba(16,185,129,0.1); color: #10B981; }
.mc-section__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.mc-section__badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.mc-section__badge strong { color: var(--text-secondary); }
.mc-section__body {
  padding: 1rem 1.15rem 1.15rem;
}
.mc-section__body--flush {
  padding: 0;
}
.mc-section__body--flush .table-responsive { padding: 0; }
.mc-section__body--flush .mc-summary-table { margin-bottom: 0; }
.mc-section__body--flush .mc-summary-table thead th:first-child,
.mc-section__body--flush .mc-summary-table tbody td:first-child,
.mc-section__body--flush .mc-summary-table tfoot td:first-child { padding-left: 1.15rem; }
.mc-section__body--flush .mc-summary-table thead th:last-child,
.mc-section__body--flush .mc-summary-table tbody td:last-child,
.mc-section__body--flush .mc-summary-table tfoot td:last-child { padding-right: 1.15rem; }
.mc-section__body--flush .mc-chart-wrapper { padding: 0.5rem 0.75rem 0.75rem; }

/* Summary table */
.mc-summary-table { color: var(--text); font-size: 0.88rem; }
.mc-summary-table thead th { color: var(--text-secondary); font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.mc-summary-table tbody td { border-bottom: 1px solid var(--border); padding: 0.5rem 0.75rem; }
.mc-summary-total td { border-top: 2px solid var(--border-strong); padding: 0.6rem 0.75rem; }
.mc-summary-total.mc-ok td { color: #10B981; }
.mc-summary-total.mc-nok td { color: var(--accent); }

/* Verdict banner */
.mc-verdict {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.mc-verdict-inner { display: flex; align-items: center; gap: 1rem; }
.mc-verdict--go { border-left: 4px solid #10B981; }
.mc-verdict--go .mc-verdict-inner { color: #10B981; }
.mc-verdict--nogo { border-left: 4px solid var(--accent); }
.mc-verdict--nogo .mc-verdict-inner { color: var(--accent); }
.mc-verdict--nogo ul { padding-left: 1.2rem; margin-top: 0.25rem; }

/* Chart wrapper */
.mc-chart-wrapper { position: relative; height: 420px; }
@media (max-width: 576px) { .mc-chart-wrapper { height: 380px; } }

/* Print button */
.mc-print-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.mc-print-btn:hover {
  background: var(--surface-hover);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 2px 12px rgba(var(--blue-rgb), 0.15);
}
.mc-print-btn i { font-size: 1rem; }

/* Print styles */
@media print {
  .app-header, .tab-bar, .aircraft-selector, .mc-print-btn,
  .form-actions, .page-header .page-subtitle { display: none !important; }
  html, body {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .app-shell {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    position: static !important;
  }
  .app-content {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    position: static !important;
    -webkit-overflow-scrolling: auto !important;
  }
  .page-container {
    padding-bottom: 0 !important;
    overflow: visible !important;
  }
  #mc-calculator {
    display: block !important;
    overflow: visible !important;
  }
  .mc-section {
    border: 1px solid #ccc !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
    overflow: visible !important;
  }
  .mc-section__header {
    border-bottom-color: #ddd !important;
  }
  .mc-section__icon { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .mc-section__title { color: #000 !important; }
  .mc-section__badge { border-color: #ccc !important; background: #f5f5f5 !important; }
  .mc-verdict {
    border: 1px solid #ccc !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .mc-summary-table, .mc-summary-table td, .mc-summary-table th { color: #000 !important; border-color: #ccc !important; }
  .mc-verdict--go .mc-verdict-inner { color: #059669 !important; }
  .mc-verdict--nogo .mc-verdict-inner { color: #dc2626 !important; }
  .mc-chart-wrapper {
    height: 340px !important;
    break-inside: avoid;
    page-break-inside: avoid;
    overflow: visible !important;
    position: relative !important;
  }
  .mc-chart-wrapper canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }
  .mc-tank-group { break-inside: avoid; page-break-inside: avoid; }
  .page-title { color: #000 !important; font-size: 1.3rem !important; }
}


/* ═══════════════════════════════════════════════════
   43. CARTES VAC
   ═══════════════════════════════════════════════════ */

.carte-type-selector {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}
.carte-type-tabs { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.carte-type-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  background: transparent; border: none;
  transition: all var(--speed) var(--ease);
}
.carte-type-tab:hover { color: rgba(255,255,255,0.85); }
.carte-type-tab.active { background: rgba(255,255,255,0.15); color: #fff; }
.carte-type-icon { font-size: 1rem; }
.carte-type-text { font-size: 0.85rem; }
.carte-section { display: none; }
.carte-section.active { display: block; }

.checkbox-container-custom {
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; font-weight: 600; color: var(--text);
  font-size: 1.05em; user-select: none;
}
.checkbox-container-custom input[type="checkbox"] { display: none; }
.checkmark-custom {
  width: 22px; height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  position: relative;
  transition: all var(--speed) var(--ease);
}
.checkbox-container-custom input[type="checkbox"]:checked + .checkmark-custom {
  background: var(--gradient-blue); border-color: var(--blue);
}
.checkbox-container-custom input[type="checkbox"]:checked + .checkmark-custom::after {
  content: ''; position: absolute; left: 7px; top: 3px;
  width: 6px; height: 12px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label { font-size: 0.95rem; }
.info-icon { color: var(--blue); cursor: help; }
.info-box {
  background: var(--surface-raised); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.75rem;
  font-size: 0.85rem; color: var(--text-secondary);
}
.icon-navy { color: var(--primary-light); }
.text-slate { color: var(--text-secondary); }
.fw-600 { font-weight: 600; }


/* ═══════════════════════════════════════════════════
   44. PAGINATION
   ═══════════════════════════════════════════════════ */

.modern-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin: 2rem 0; flex-wrap: wrap;
}
.pagination-info { font-size: 0.85rem; color: var(--text-secondary); }
.pagination-controls { display: flex; align-items: center; gap: 0.35rem; }
.pagination-btn, .pagination-number {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500; font-size: 0.9rem;
  transition: all var(--speed) var(--ease);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--text);
}
.pagination-btn:hover, .pagination-number:hover {
  background: rgba(var(--blue-rgb),0.1); color: var(--blue);
  text-decoration: none;
}
.pagination-number.active, .pagination-current {
  background: var(--gradient-blue); color: #fff;
  border-color: var(--blue); box-shadow: 0 4px 12px rgba(var(--blue-rgb),0.2);
}
.pagination-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

@media (max-width: 480px) {
  .modern-pagination { gap: 0.375rem; }
  .pagination-btn, .pagination-number { min-width: 36px; height: 36px; font-size: 0.8rem; }
}


/* ═══════════════════════════════════════════════════
   45. MOVEMENTS
   ═══════════════════════════════════════════════════ */

.movement-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--speed) var(--ease);
}
.movement-row:hover { background: var(--surface-hover); }
.movement-row:last-child { border-bottom: none; }

.movement-datetime { text-align: center; min-width: 80px; }
.movement-main-info { min-width: 0; }
.movement-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.movement-pilot { font-size: 0.85rem; color: var(--text-secondary); }
.movement-refus-reason { font-size: 0.8rem; color: var(--danger); margin-top: 0.25rem; }
.movement-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.movement-status, .movement-type, .movement-activities, .movement-location {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.5rem; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
}

@media (max-width: 768px) {
  .movement-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "info datetime" "badges badges";
    gap: 0.5rem; padding: 1rem; align-items: start;
  }
  .movement-datetime { grid-area: datetime; text-align: right; min-width: auto; }
  .movement-main-info { grid-area: info; }
  .movement-badges { grid-area: badges; }
}


/* ═══════════════════════════════════════════════════
   46. FORM HELPERS
   ═══════════════════════════════════════════════════ */

.form-container { max-width: 600px; margin: 0 auto; }
.modern-form-container { max-width: 600px; margin: 0 auto; }

.form-header {
  background: rgba(var(--blue-rgb),0.06);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-strong);
  text-align: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.form-header h5 { margin: 0 0 0.5rem 0; color: var(--text); font-weight: 600; }

.form-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child { border-bottom: none; }

.form-error {
  background: var(--danger-bg);
  border: 1px solid rgba(255,69,58,0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--danger); font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Lecteur form specifics */
.horaires-compact { display: flex; flex-direction: column; gap: 0.5rem; }
.horaire-item { display: flex; align-items: center; gap: 0.5rem; }
.jour-abbr { font-weight: 600; min-width: 40px; color: var(--text); font-size: 0.85rem; }
.time-input {
  padding: 0.4rem 0.6rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--text);
  font-size: 0.85rem; width: 80px;
}
.time-sep { color: var(--text-muted); font-weight: 500; }
.horaires-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn-quick {
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  background: var(--surface-raised); color: var(--text-secondary);
  border: 1px solid var(--border-strong); cursor: pointer;
  font-size: 0.8rem; transition: all var(--speed) var(--ease);
}
.btn-quick:hover { background: var(--surface-hover); }


/* ═══════════════════════════════════════════════════
   47. WEBCAM & EVENT
   ═══════════════════════════════════════════════════ */

.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.video-container video, .video-container img {
  width: 100%; display: block;
}

.card-img-hero {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.hover-lift { transition: transform var(--speed) var(--ease); }
.hover-lift:hover { transform: translateY(-4px); }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.object-cover { object-fit: cover; }


/* ═══════════════════════════════════════════════════
   48. EMPTY ICON (variant fix)
   ═══════════════════════════════════════════════════ */

.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }


/* ═══════════════════════════════════════════════════
   49. DASHBOARD HERO & STATS
   ═══════════════════════════════════════════════════ */

/* ── Hero Profile Card ── */
.dash-hero {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.dash-hero__top {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-hero__avatar {
  width: 72px;
  height: 72px;
  background: var(--gradient-blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(var(--blue-rgb), 0.3);
}

.dash-hero__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dash-badge--success {
  background: var(--success-bg);
  color: var(--success);
}
.dash-badge--success .dash-badge__dot { background: var(--success); }

.dash-badge--warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.dash-badge--warning .dash-badge__dot { background: var(--warning); }

.dash-badge--blue {
  background: rgba(var(--blue-rgb), 0.12);
  color: var(--blue);
}

.dash-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.dash-hero__subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.dash-hero__dot {
  font-size: 0.35rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.dash-hero__reasons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dash-hero__reason {
  font-size: 0.8rem;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
  box-shadow: 0 2px 12px rgba(var(--blue-rgb), 0.25);
}

.dash-hero__btn:hover {
  box-shadow: 0 4px 20px rgba(var(--blue-rgb), 0.35);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Quick Stats 2×2 Grid ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dash-stat {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
}

.dash-stat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dash-stat__icon { font-size: 1.25rem; }

.dash-stat__delta {
  background: var(--success-bg);
  color: var(--success);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
}

.dash-stat__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.dash-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.dash-stat__medal { font-size: 1rem; }

/* ── Dashboard Flight Card ── */
.dash-flight-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.dash-flight__visual {
  height: 120px;
  background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.25) 0%, rgba(var(--blue-rgb), 0.08) 50%, var(--surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dash-flight__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(var(--blue-rgb), 0.15) 0%, transparent 60%);
}

.dash-flight__plane-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.12);
  transform: rotate(-15deg);
}

.dash-flight__body { padding: 1.25rem; }

.dash-flight__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.dash-flight__aircraft {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.dash-flight__reg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.dash-flight__date { text-align: right; }

.dash-flight__date-text {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.dash-flight__time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-flight__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.dash-flight__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dash-flight__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.dash-flight__action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.dash-flight__action-btn:hover {
  background: rgba(var(--blue-rgb), 0.1);
}

.dash-flight-card--empty { padding: 2rem; }

/* ── Dashboard News Cards ── */
.dash-news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--speed) var(--ease);
}

.dash-news-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.dash-news__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.dash-news__body {
  padding: 1rem 1.25rem 1.25rem;
}

.dash-news__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dash-news__tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(var(--blue-rgb), 0.12);
  color: var(--blue);
}

.dash-news__tag--accent {
  background: rgba(var(--accent-rgb, 211, 32, 43), 0.12);
  color: var(--accent);
}

.dash-news__tag--blue {
  background: rgba(var(--blue-rgb), 0.12);
  color: var(--blue);
  font-size: 0.75rem;
}

.dash-news__thumb-placeholder--blue {
  background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.2), rgba(var(--blue-rgb), 0.08));
  color: var(--blue);
}

.dash-news__compact-tags {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-news__compact-tags i { margin-right: 0.2rem; }

.dash-compact-action {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: center;
  margin-right: 0.75rem;
  transition: all var(--speed) var(--ease);
  flex-shrink: 0;
}

.dash-compact-action:hover {
  background: rgba(var(--blue-rgb), 0.1);
}

.dash-news__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.dash-news__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.dash-news__excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.4rem;
}

.dash-news__date-line {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.01em;
}

/* Compact variation (side-by-side) */
.dash-news-card--compact {
  display: flex;
  align-items: stretch;
}

.dash-news__thumb {
  width: 90px;
  min-height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.dash-news__thumb-placeholder {
  width: 90px;
  min-height: 80px;
  flex-shrink: 0;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.dash-news__info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.dash-news-card--compact .dash-news__title { font-size: 0.9rem; }
.dash-news-card--compact .dash-news__meta { margin-bottom: 0.35rem; }

.dash-news-card--empty-state {
  padding: 1.5rem;
}

/* ── Load more link ── */
.dash-more-link {
  display: block;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
  margin-bottom: 1.5rem;
}

.dash-more-link:hover { color: var(--blue); }

/* ── Club stats strip ── */
.dash-club-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dash-club-stat {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.dash-club-stat__icon {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.dash-club-stat__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.dash-club-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}


/* ─── 50. VIE DU CLUB HUB ─── */

/* Tab panels – only the active one is visible */
.hub-panel { display: none; }
.hub-panel.active { display: block; animation: hubFadeIn .25s var(--ease); }
@keyframes hubFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Vol group header */
.hub-vol-group { margin-bottom: 0.75rem; }
.hub-vol-group__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

/* KPI pills (ranking) */
.hub-kpi-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hub-kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
}
.hub-kpi__icon { font-size: 1.1rem; margin-bottom: 0.2rem; }
.hub-kpi__value { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.hub-kpi__label { font-size: 0.68rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }

/* Podium list */
.hub-podium { display: flex; flex-direction: column; gap: 0.4rem; }
.hub-podium__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--speed) var(--ease);
}
.hub-podium__item--top { border-color: var(--border-strong); }
.hub-podium__item--top:first-child { border-color: var(--blue); background: rgba(var(--blue-rgb), 0.04); }
.hub-podium__rank {
  font-size: 1.35rem;
  min-width: 2rem;
  text-align: center;
  flex-shrink: 0;
}
.hub-podium__item:not(.hub-podium__item--top) .hub-podium__rank {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.hub-podium__info { flex: 1; min-width: 0; }
.hub-podium__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-podium__stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}
.hub-podium__sep { margin: 0 0.3rem; opacity: 0.5; }

/* Search bar */
.hub-search {
  position: relative;
  margin-bottom: 0.6rem;
}
.hub-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.82rem;
  pointer-events: none;
}
.hub-search__input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--speed) var(--ease);
}
.hub-search__input::placeholder { color: var(--text-muted); }
.hub-search__input:focus { border-color: var(--blue); }

/* Counter badge */
.hub-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  padding-left: 0.15rem;
}

/* Card arrow (articles) */
.hub-card-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

/* Sub-tabs (ranking monthly/yearly) */
.hub-sub-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.hub-sub-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--speed) var(--ease);
}
.hub-sub-tab:hover { color: var(--text); border-color: var(--border-strong); }
.hub-sub-tab.active {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

/* Ranking sub-panels */
.hub-ranking-panel { display: none; }
.hub-ranking-panel.active { display: block; animation: hubFadeIn .2s var(--ease); }

/* Ranking list */
.hub-ranking-list { display: flex; flex-direction: column; gap: 0.35rem; }
.hub-rank-num { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }

/* Vol group count pill */
.hub-vol-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--blue-rgb), 0.15);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.hub-vol-group__label i {
  margin-right: 0.3rem;
  opacity: 0.7;
}

/* ── Hub rich cards (articles & events) ── */
.hub-card {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--speed) var(--ease);
}
.hub-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

/* Image area */
.hub-card__img {
  width: 140px;
  min-height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.hub-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}
.hub-card__img-placeholder--accent {
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 211, 32, 43), 0.12), rgba(var(--accent-rgb, 211, 32, 43), 0.04));
  color: var(--accent);
}

/* Body */
.hub-card__body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Meta row: tag + date */
.hub-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.hub-card__tag {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(var(--blue-rgb), 0.12);
  color: var(--blue);
  white-space: nowrap;
}
.hub-card__tag--accent {
  background: rgba(var(--accent-rgb, 211, 32, 43), 0.12);
  color: var(--accent);
}
.hub-card__date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Title */
.hub-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Excerpt */
.hub-card__excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Load-more pagination button */
.hub-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.hub-load-more:hover {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}
.hub-load-more i {
  font-size: 0.7rem;
  transition: transform var(--speed) var(--ease);
}
.hub-load-more:hover i {
  transform: translateY(2px);
}

/* Detail line (location, date range) */
.hub-card__detail {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.hub-card__detail i {
  width: 14px;
  text-align: center;
  margin-right: 0.25rem;
  font-size: 0.65rem;
}

/* ICS action button */
.hub-card__action {
  width: 38px;
  min-width: 38px;
  border: none;
  background: transparent;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-left: 1px solid var(--border);
  transition: background var(--speed) var(--ease);
  flex-shrink: 0;
}
.hub-card__action:hover {
  background: rgba(var(--blue-rgb), 0.08);
}

/* Empty state */
.hub-card--empty {
  justify-content: center;
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 480px) {
  .hub-card__img { width: 110px; min-height: 110px; }
  .hub-card__body { padding: 0.65rem 0.75rem; }
  .hub-card__title { font-size: 0.88rem; }
  .hub-card__excerpt { -webkit-line-clamp: 2; }
}


/* ─── 51. ARTICLE DETAIL ─── */

/* Hero image container */
.art-detail__hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--card);
}

.art-detail__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay – dark at bottom for text legibility */
.art-detail__hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
  pointer-events: none;
}

/* Floating navigation bar */
.art-detail__hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  z-index: 3;
}

.art-detail__nav-right {
  display: flex;
  gap: 0.5rem;
}

.art-detail__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.art-detail__nav-btn:hover,
.art-detail__nav-btn:active {
  background: rgba(0,0,0,0.65);
  color: #fff;
  text-decoration: none;
}

/* Hero info – category tag + title over gradient */
.art-detail__hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  z-index: 2;
}

.art-detail__tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}

.art-detail__title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Body wrapper */
.art-detail__body {
  padding: 1.15rem 1.25rem 2rem;
}

/* Metadata row */
.art-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.art-detail__meta i {
  margin-right: 0.25rem;
  font-size: 0.7rem;
}

/* Author */
.art-detail__author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.art-detail__author i {
  margin-right: 0.25rem;
  color: var(--blue);
}

/* ── Enhanced article-content (WordPress HTML) ── */
.article-content p {
  margin-bottom: 1rem;
}

.article-content figure {
  margin: 1.25rem 0;
}
.article-content figure img {
  width: 100%;
  height: auto;
}
.article-content figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.article-content li {
  margin-bottom: 0.35rem;
}

/* iOS safe-area for hero nav */
@supports (padding: env(safe-area-inset-top)) {
  .art-detail__hero-nav {
    padding-top: calc(0.85rem + env(safe-area-inset-top));
  }
}

/* Tablet+ */
@media (min-width: 768px) {
  .art-detail__hero { height: 380px; }
  .art-detail__title { font-size: 1.6rem; }
  .art-detail__body { padding: 1.5rem 2rem 2.5rem; }
}
