/* ============================================
   GSIMEL — Design System
   Couleurs : Bleu nuit profond + or accent
   Typo : Bricolage Grotesque (display) + Geist (body)
   ============================================ */

:root {
  /* Couleurs principales */
  --c-navy: #0B2540;
  --c-navy-2: #0F2C4D;
  --c-navy-3: #143358;
  --c-navy-soft: #1B3F6A;
  --c-gold: #D4A24C;
  --c-gold-light: #E8C57F;
  --c-gold-dark: #A87A28;

  /* Neutres */
  --c-bg: #F7F5F0;
  --c-surface: #FFFFFF;
  --c-surface-2: #FBFAF6;
  --c-border: #E5E1D8;
  --c-border-soft: #EFECE5;
  --c-text: #0F1B2D;
  --c-text-2: #4A5468;
  --c-text-3: #7C8597;
  --c-text-muted: #A1A8B8;

  /* États */
  --c-success: #16A34A;
  --c-success-bg: #DCFCE7;
  --c-warning: #D97706;
  --c-warning-bg: #FEF3C7;
  --c-danger: #DC2626;
  --c-danger-bg: #FEE2E2;
  --c-info: #2563EB;
  --c-info-bg: #DBEAFE;

  /* Élévations */
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 27, 45, 0.12);
  --shadow-card: 0 1px 3px rgba(15, 27, 45, 0.06), 0 1px 2px rgba(15, 27, 45, 0.04);

  /* Rayons */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Espacements */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;

  /* Typo */
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ============================================
   AUTH SCREEN
   ============================================ */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-3) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--s-4);
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 162, 76, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 162, 76, 0.08), transparent 40%);
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  width: 100%;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-card {
  padding: var(--s-12) var(--s-10);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-10);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-navy);
  color: var(--c-gold);
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-mark.sm { width: 36px; height: 36px; font-size: 18px; border-radius: 8px; }

.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 11px;
  color: var(--c-text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}

.auth-sub {
  color: var(--c-text-2);
  margin-bottom: var(--s-8);
}

.form { display: flex; flex-direction: column; gap: var(--s-4); }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
}
.field input, .field select, .field textarea {
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(11, 37, 64, 0.08);
}

.form-error {
  padding: 10px 14px;
  background: var(--c-danger-bg);
  color: var(--c-danger);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.06s, background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-navy);
  color: var(--c-surface);
}
.btn-primary:hover { background: var(--c-navy-soft); }
.btn-gold {
  background: var(--c-gold);
  color: var(--c-navy);
}
.btn-gold:hover { background: var(--c-gold-light); }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-surface-2); border-color: var(--c-text-3); }
.btn-success { background: var(--c-success); color: white; }
.btn-success:hover { filter: brightness(1.08); }
.btn-danger { background: var(--c-danger); color: white; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-icon { padding: 8px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-8) 0 var(--s-4);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.auth-divider span {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}

.demo-btn {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  text-align: left;
  transition: all 0.15s;
}
.demo-btn:hover {
  border-color: var(--c-navy);
  background: var(--c-surface-2);
}
.demo-icon { font-size: 20px; }
.demo-label { font-weight: 500; font-size: 14px; }
.demo-meta {
  font-size: 11px;
  color: var(--c-text-3);
  margin-left: auto;
  white-space: nowrap;
}

.auth-footer {
  margin-top: auto;
  padding-top: var(--s-8);
  color: var(--c-text-3);
  text-align: center;
}

.auth-side {
  background: var(--c-navy);
  color: var(--c-surface);
  padding: var(--s-12) var(--s-10);
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.auth-side-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.auth-side-tag {
  display: inline-block;
  width: max-content;
  padding: 6px 12px;
  background: rgba(212, 162, 76, 0.15);
  color: var(--c-gold);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--s-6);
}
.auth-side h2 {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-4);
}
.auth-side p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: var(--s-8);
}
.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.auth-features .dot {
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; max-width: 480px; }
  .auth-side { display: none; }
  .auth-card { padding: var(--s-8) var(--s-6); }
}

/* ============================================
   APP SCREEN — Layout
   ============================================ */
.app-screen {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--c-navy);
  color: var(--c-surface);
  display: flex;
  flex-direction: column;
  padding: var(--s-6) 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-6) var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .brand-name { color: var(--c-surface); }
.sidebar .brand-sub { color: rgba(255, 255, 255, 0.55); }
.sidebar .brand-mark { background: var(--c-gold); color: var(--c-navy); }

.sidebar-nav {
  padding: var(--s-4) var(--s-3);
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-align: left;
  width: 100%;
  position: relative;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-surface);
}
.nav-item.active {
  background: rgba(212, 162, 76, 0.15);
  color: var(--c-gold);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--c-gold);
  border-radius: 2px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--c-gold);
  color: var(--c-navy);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  padding: var(--s-4) var(--s-3) var(--s-2);
}

.sidebar-user {
  padding: var(--s-4) var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--c-gold);
  color: var(--c-navy);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; color: var(--c-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta { font-size: 11px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: inherit;
  transition: background 0.15s;
  position: relative;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* Main area */
.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-3);
  min-width: 240px;
  transition: border-color 0.15s;
}
.topbar-search:focus-within { border-color: var(--c-navy); }
.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  color: var(--c-text);
}
.topbar-search input::placeholder { color: var(--c-text-3); }

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--c-danger);
  border-radius: 50%;
  border: 1.5px solid var(--c-surface);
}

.mobile-only { display: none; }

/* ============================================
   PAGE CONTENT
   ============================================ */
.page {
  flex: 1;
  padding: var(--s-6);
  max-width: 1400px;
  width: 100%;
}

.page-header {
  margin-bottom: var(--s-6);
}
.page-title-big {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.page-subtitle {
  color: var(--c-text-2);
  font-size: 14px;
}

/* Banniere d'action prioritaire (étudiant) */
.priority-banner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-3) 100%);
  color: white;
  border-radius: var(--r-lg);
  margin-bottom: var(--s-6);
  position: relative;
  overflow: hidden;
}
.priority-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.25), transparent 60%);
  pointer-events: none;
}
.priority-banner.warning {
  background: linear-gradient(135deg, #92400E 0%, #78350F 100%);
}
.priority-banner.danger {
  background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
}
.priority-banner.success {
  background: linear-gradient(135deg, #166534 0%, #14532D 100%);
}
.priority-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.priority-banner-body { flex: 1; position: relative; z-index: 1; }
.priority-banner-title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}
.priority-banner-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.priority-banner-action {
  position: relative;
  z-index: 1;
}

/* Grids et cards */
.grid {
  display: grid;
  gap: var(--s-4);
}
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  gap: var(--s-3);
}
.card-title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-sub {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 2px;
}

/* Stats card */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.stat-card-label {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.stat-card-value {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-card-meta {
  margin-top: var(--s-2);
  font-size: 12px;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-card-icon {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-navy);
  font-size: 16px;
}

/* Badges et chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-info { background: var(--c-info-bg); color: var(--c-info); }
.badge-neutral { background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.badge-gold { background: rgba(212, 162, 76, 0.15); color: var(--c-gold-dark); }
.badge-navy { background: rgba(11, 37, 64, 0.1); color: var(--c-navy); }

/* Bon d'examen — 3 conditions */
.voucher-status {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
}
.voucher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
}
.voucher-conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.voucher-cond {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
  transition: all 0.2s;
}
.voucher-cond.ok {
  border-color: var(--c-success);
  background: rgba(22, 163, 74, 0.04);
}
.voucher-cond .check {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--c-surface-2);
  color: var(--c-text-3);
  border: 1.5px solid var(--c-border);
}
.voucher-cond.ok .check {
  background: var(--c-success);
  color: white;
  border-color: var(--c-success);
}
.voucher-cond-label {
  font-size: 13px;
  font-weight: 500;
}
.voucher-cond-meta {
  font-size: 11px;
  color: var(--c-text-3);
}

/* Liste */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.list-item:last-child { border-bottom: none; }
.list-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1px;
}
.list-item-meta {
  font-size: 12px;
  color: var(--c-text-3);
}
.list-item-aside {
  text-align: right;
  font-size: 12px;
  color: var(--c-text-3);
  flex-shrink: 0;
}

/* Tableaux */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead {
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}
th {
  text-align: left;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-border-soft);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--c-surface-2); }
td.right { text-align: right; }
td.center { text-align: center; }

/* Exercices — verrouillage séquentiel */
.exercise-list { display: flex; flex-direction: column; gap: var(--s-3); }
.exercise-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all 0.15s;
}
.exercise-item.locked {
  opacity: 0.55;
  background: var(--c-surface-2);
}
.exercise-item.current {
  border-color: var(--c-gold);
  background: rgba(212, 162, 76, 0.04);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.1);
}
.exercise-item.done {
  border-color: var(--c-border-soft);
}
.exercise-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  font-weight: 600;
  flex-shrink: 0;
}
.exercise-item.done .exercise-num { background: var(--c-success); color: white; }
.exercise-item.current .exercise-num { background: var(--c-gold); color: var(--c-navy); }
.exercise-item.locked .exercise-num { background: var(--c-surface-2); color: var(--c-text-muted); border: 1px solid var(--c-border); }
.exercise-body { flex: 1; min-width: 0; }
.exercise-title { font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.exercise-meta { font-size: 12px; color: var(--c-text-3); display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Modules — parcours */
.module-list { display: flex; flex-direction: column; gap: var(--s-3); }
.module-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: all 0.15s;
}
.module-card.current {
  border-color: var(--c-navy);
  background: linear-gradient(to right, rgba(11, 37, 64, 0.03), transparent);
}
.module-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.module-card.current .module-icon-wrap { background: var(--c-navy); color: var(--c-gold); }
.module-card.done .module-icon-wrap { background: var(--c-success-bg); color: var(--c-success); }
.module-info { flex: 1; }
.module-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; font-family: var(--f-display); }
.module-meta { font-size: 12px; color: var(--c-text-3); }

/* Progress */
.progress {
  width: 100%;
  height: 6px;
  background: var(--c-border-soft);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--c-navy);
  border-radius: var(--r-full);
  transition: width 0.4s ease;
}
.progress-bar.gold { background: var(--c-gold); }
.progress-bar.success { background: var(--c-success); }
.progress-bar.danger { background: var(--c-danger); }

/* Tabs */
.tabs {
  display: flex;
  gap: var(--s-2);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
  overflow-x: auto;
}
.tab {
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--c-text-2);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--c-text); }
.tab.active {
  color: var(--c-navy);
  border-bottom-color: var(--c-navy);
}

/* WhatsApp buttons */
.wa-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.wa-btn {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: linear-gradient(135deg, #25D366 0%, #1FAE53 100%);
  color: white;
  border-radius: var(--r-md);
  transition: transform 0.1s, box-shadow 0.15s;
  text-align: left;
}
.wa-btn:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.wa-btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.wa-btn-text { display: flex; flex-direction: column; }
.wa-btn-title { font-weight: 600; font-size: 14px; }
.wa-btn-meta { font-size: 12px; opacity: 0.85; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: center;
  background: var(--c-surface-2);
  cursor: pointer;
  transition: all 0.15s;
}
.upload-zone:hover {
  border-color: var(--c-navy);
  background: var(--c-surface);
}
.upload-zone.drag {
  border-color: var(--c-gold);
  background: rgba(212, 162, 76, 0.05);
}
.upload-icon { font-size: 32px; margin-bottom: var(--s-2); }
.upload-text { font-weight: 500; margin-bottom: 4px; }
.upload-meta { font-size: 12px; color: var(--c-text-3); }

/* Star rating */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--c-border); cursor: pointer; font-size: 22px; transition: color 0.15s; }
.star.filled, .star:hover { color: var(--c-gold); }
.star:hover ~ .star { color: var(--c-border); }

/* Empty state */
.empty {
  padding: var(--s-12) var(--s-6);
  text-align: center;
  color: var(--c-text-3);
}
.empty-icon { font-size: 40px; margin-bottom: var(--s-3); opacity: 0.6; }
.empty-title { font-weight: 600; color: var(--c-text); margin-bottom: var(--s-2); }
.empty-text { font-size: 13px; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  z-index: 1000;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--c-navy);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  animation: toastIn 0.3s ease;
  max-width: 380px;
}
.toast.success { background: var(--c-success); }
.toast.error { background: var(--c-danger); }
.toast.warning { background: var(--c-warning); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
[hidden] { display: none !important; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 45, 0.55);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal.large { max-width: 800px; }
.modal-header {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal-body {
  padding: var(--s-6);
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  background: var(--c-surface-2);
}

/* AI grading display */
.ai-grade {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}
.ai-grade-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border-soft);
}
.ai-grade-score {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ai-grade-score.pass { color: var(--c-success); }
.ai-grade-score.fail { color: var(--c-danger); }
.ai-criteria { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-3); }
.ai-criterion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.ai-criterion-name { color: var(--c-text-2); }
.ai-criterion-score { font-weight: 600; font-family: var(--f-display); }
.ai-feedback {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.55;
  background: var(--c-surface-2);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--c-navy);
}

/* Pipeline (prospects) */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  overflow-x: auto;
}
.pipeline-col {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  min-width: 230px;
}
.pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border-soft);
}
.pipeline-col-title { font-size: 13px; font-weight: 600; }
.pipeline-col-count {
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.pipeline-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.pipeline-card-name { font-weight: 500; margin-bottom: 2px; }
.pipeline-card-meta { font-size: 11px; color: var(--c-text-3); }

/* Lock screen (paiement bloqué) */
.lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--s-6);
}
.lock-card {
  max-width: 480px;
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  box-shadow: var(--shadow-card);
}
.lock-icon {
  font-size: 48px;
  margin-bottom: var(--s-4);
}
.lock-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.lock-text {
  color: var(--c-text-2);
  margin-bottom: var(--s-6);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .app-screen { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -280px;
    width: 260px;
    z-index: 50;
    transition: left 0.2s ease;
  }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .mobile-only { display: grid; }
  .topbar-search { display: none; }
  .voucher-conditions { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .wa-buttons { grid-template-columns: 1fr; }
  .page { padding: var(--s-4); }
}

@media (max-width: 600px) {
  .stat-card-value { font-size: 26px; }
  .page-title-big { font-size: 22px; }
  .modal-body, .modal-header, .modal-footer { padding: var(--s-4); }
  .demo-grid { grid-template-columns: 1fr; }
}

/* Utility */
.hide { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--c-text-3); }
.font-display { font-family: var(--f-display); }
.font-bold { font-weight: 600; }
.text-right { text-align: right; }

/* ============================================
   SUPPLEMENT — alignments, missing classes
   ============================================ */

/* --- Page header (alias court) --- */
.page-h1 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin: 0 0 6px;
}
.page-sub {
  color: var(--c-text-2);
  font-size: 14px;
  margin: 0;
}

/* --- Cards card-head (alias) --- */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
  gap: 12px;
}
.card-head h3 { font-size: 16px; font-weight: 600; margin: 0; color: var(--c-text-1); }

/* --- Banners (variantes courtes) --- */
.priority-banner.banner-info,
.priority-banner.banner-warning,
.priority-banner.banner-danger,
.priority-banner.banner-success {
  /* hérite des styles base */
}
.banner-info { background: var(--c-info-bg); border-color: var(--c-info); }
.banner-info::before { background: var(--c-info); }
.banner-warning { background: var(--c-warning-bg); border-color: var(--c-warning); }
.banner-warning::before { background: var(--c-warning); }
.banner-danger { background: var(--c-danger-bg); border-color: var(--c-danger); }
.banner-danger::before { background: var(--c-danger); }
.banner-success { background: var(--c-success-bg); border-color: var(--c-success); }
.banner-success::before { background: var(--c-success); }

.banner-icon {
  width: 56px; height: 56px;
  background: white;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-navy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.banner-body { flex: 1; position: relative; z-index: 1; }
.banner-title { font-family: var(--f-display); font-size: 16px; font-weight: 600; color: var(--c-navy); margin-bottom: 4px; }
.banner-text { font-size: 13px; color: var(--c-text-2); }

/* --- Stat-card aliases & variants --- */
.stat-label { font-size: 11px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 8px; }
.stat-value { font-family: var(--f-display); font-size: 32px; font-weight: 600; color: var(--c-navy); line-height: 1; letter-spacing: -0.02em; }
.stat-meta { font-size: 11px; color: var(--c-text-3); margin-top: 6px; }

.stat-card.stat-success { border-top: 3px solid var(--c-success); }
.stat-card.stat-warning { border-top: 3px solid var(--c-warning); }
.stat-card.stat-danger  { border-top: 3px solid var(--c-danger); }

/* --- Layout helpers --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.gap-sm { gap: 8px; }
.items-start { align-items: flex-start; }

/* --- Lists clean --- */
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-clean li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
}
.list-clean li:last-child { border-bottom: 0; }
.list-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.list-main strong { font-weight: 500; color: var(--c-text-1); font-size: 14px; }
.list-main .text-muted { font-size: 12px; }
.list-meta { font-size: 13px; color: var(--c-text-2); flex-shrink: 0; }

/* --- Empty states --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state .empty-icon {
  font-size: 48px;
  color: var(--c-success);
  margin-bottom: 12px;
}
.empty-state h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--c-text-1); }
.empty-state p { font-size: 14px; color: var(--c-text-2); margin: 0; }

.empty-state-sm {
  text-align: center;
  padding: 24px 12px;
  font-size: 13px;
  color: var(--c-text-3);
}

/* --- Data table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
}
.data-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--c-surface-2); }
.data-table .btn { margin-right: 4px; }

/* --- Pipeline (admin prospects) --- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pipeline-col {
  background: var(--c-surface-2);
  border-radius: 12px;
  padding: 14px;
  min-height: 280px;
}
.pipeline-col-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 10px;
  border-top: 3px solid var(--c-navy);
  margin-bottom: 14px;
}
.pipeline-col-title { font-size: 14px; font-weight: 600; color: var(--c-text-1); }
.pipeline-col-desc { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }
.pipeline-col-count {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1;
}
.pipeline-col-body { display: flex; flex-direction: column; gap: 10px; }
.pipeline-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}

.pipeline-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pipeline-mini-col {
  padding: 10px;
  background: var(--c-surface-2);
  border-radius: 8px;
  text-align: center;
}

/* --- Voucher conditions --- */
.voucher-conditions {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.voucher-conditions li {
  background: var(--c-surface-2);
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid var(--c-text-3);
}
.voucher-conditions li.ok {
  background: var(--c-success-bg);
  border-left-color: var(--c-success);
  color: var(--c-success);
}
.voucher-conditions li.pending {
  background: var(--c-warning-bg);
  border-left-color: var(--c-warning);
  color: var(--c-warning);
}

/* --- IA detail (examiner) --- */
.ia-detail { font-size: 14px; }
.ia-section { margin-bottom: 16px; }
.ia-label { font-size: 11px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.ia-value-lg { font-family: var(--f-display); font-size: 28px; font-weight: 600; color: var(--c-navy); }
.ia-reco {
  background: var(--c-surface-2);
  padding: 14px;
  border-radius: 10px;
  border-left: 3px solid var(--c-info);
}

/* --- Project card --- */
.project-card { transition: border-color 0.15s; }
.project-card:hover { border-color: var(--c-navy-soft); }

/* --- Lock card inline (zone paiement) --- */
.lock-card-inline {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
  max-width: 560px;
}
.lock-card-inline .lock-icon { font-size: 36px; margin-bottom: 12px; }
.lock-card-inline h3 { font-family: var(--f-display); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.lock-card-inline p { color: var(--c-text-2); }
.lock-card-inline code {
  background: var(--c-surface-2);
  padding: 3px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

/* --- Alert card head --- */
.alert-card-head {
  margin: -18px -18px 0;
  padding: 10px 18px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-size: 13px;
  color: var(--c-navy);
  font-weight: 600;
}
.alert-card-head.banner-warning { background: var(--c-warning-bg); }
.alert-card-head.banner-danger { background: var(--c-danger-bg); }
.alert-card-head.banner-info { background: var(--c-info-bg); }

/* --- Chips --- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-2);
}

/* --- Select small --- */
.select-sm {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: white;
  color: var(--c-text-1);
  font-family: inherit;
}

/* --- Student detail modal --- */
.student-detail h4 {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

/* --- Form error --- */
.form-error {
  color: var(--c-danger);
  font-size: 13px;
  padding: 8px 12px;
  background: var(--c-danger-bg);
  border-radius: 8px;
  margin: 10px 0;
}

/* --- Pipeline responsive --- */
@media (max-width: 1100px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-mini { grid-template-columns: repeat(2, 1fr); }
  .voucher-conditions { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .data-table { font-size: 12px; }
  .data-table thead th, .data-table tbody td { padding: 8px; }
}

/* --- Notification dot --- */
.notif-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--c-danger);
  border-radius: 999px;
  border: 2px solid white;
}

/* Make sure icon-btn is positioned for the dot */
.icon-btn { position: relative; }

/* --- Voucher emitted modal --- */
.voucher-emitted {
  background: linear-gradient(135deg, var(--c-success-bg), var(--c-info-bg));
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--c-success);
}
.voucher-emitted-header { display: flex; gap: 14px; align-items: center; }
.voucher-emitted-icon { font-size: 36px; }
.voucher-emitted-title { font-family: var(--f-display); font-size: 17px; font-weight: 600; color: var(--c-navy); }
.voucher-emitted-sub { font-size: 13px; color: var(--c-text-2); margin-top: 2px; }

.message-preview {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--c-text-1);
  max-height: 280px;
  overflow-y: auto;
}

/* ============================================
   v1.2 — Auth additions
   ============================================ */
.auth-wrap-single {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.link-btn {
  background: none;
  border: 0;
  color: var(--c-navy);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 4px 8px;
}
.link-btn:hover { color: var(--c-gold-dark); }

.field-hint {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 6px;
}

.demo-section { margin-top: 14px; }
@media (max-width: 600px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* User detail page */
.invitation-preview {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 16px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--c-text-1);
  max-height: 240px;
  overflow-y: auto;
}
.cred-box {
  background: var(--c-navy);
  color: white;
  padding: 16px;
  border-radius: 10px;
  margin: 14px 0;
}
.cred-box-label { font-size: 11px; color: var(--c-gold); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.cred-box-value { font-family: monospace; font-size: 16px; font-weight: 600; margin-top: 4px; word-break: break-all; }
.cred-box .cred-row + .cred-row { margin-top: 10px; }

.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.user-status-pill.activated { background: var(--c-success-bg); color: var(--c-success); }
.user-status-pill.pending { background: var(--c-warning-bg); color: var(--c-warning); }
.user-status-pill.disabled { background: var(--c-surface-2); color: var(--c-text-3); }

/* Radio pill style for communication channel choice */
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  cursor: pointer;
  background: var(--c-surface-2);
}
.radio-pill:has(input:checked) { background: var(--c-navy); color: white; border-color: var(--c-navy); }
.radio-pill input { margin: 0; }

/* Btn success */
.btn-success { background: var(--c-success); color: white; border: 0; }
.btn-success:hover { filter: brightness(0.95); }
