/* ═══════════════════════════════════════════════════════════════
   ARPARA × PSG — ERP Stadium Tour Experience
   Charte graphique officielle
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* PSG OFFICIAL */
    --psg-navy: #001a2f;
    --psg-navy-light: #002947;
    --psg-navy-dark: #000d1a;
    --psg-red: #DA291C;
    --psg-red-dark: #b21f15;
    --psg-gold: #40aef0;
    --psg-gold-light: #7ec3ec;
    --psg-gold-dark: #0f79b8;
    
    /* GREYS */
    --grey-50: #f8fafc;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-400: #94a3b8;
    --grey-500: #64748b;
    --grey-600: #475569;
    --grey-700: #334155;
    --grey-800: #1e293b;
    --grey-900: #0f172a;
    
    /* SEMANTIC */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* TYPOGRAPHY */
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-condensed: 'Open Sans', 'Arial Narrow', sans-serif;
    --font-mono: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    
    /* SPACING */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* SHADOWS */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* RADIUS */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* SIDEBAR */
    --sidebar-width: 260px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--grey-800);
    background: var(--grey-100);
    min-height: 100vh;
}

a {
    color: var(--psg-navy);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--psg-red);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT — APP COMPLET
   ═══════════════════════════════════════════════════════════════ */

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--psg-navy);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}

.sidebar-logo .accent {
    color: var(--psg-gold);
}

.sidebar-logo-subtitle {
    display: contents;
    font-size: 12px;
}

.sidebar-subtitle {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    color: var(--psg-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: var(--space-1);
}

.sidebar-version {
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4) 0;
}

.nav-section {
    margin-bottom: var(--space-6);
}

.nav-section-title {
    padding: 0 var(--space-6);
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--psg-gold);
    margin-bottom: var(--space-2);
    opacity: 0.8;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--psg-gold);
}

.nav-item.active {
    background: rgba(64, 174, 240, 0.1);
    color: white;
    border-left-color: var(--psg-gold);
}

.nav-item.active::before {
    content: '';
    position: absolute;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--psg-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--psg-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--grey-200);
    padding: var(--space-4) var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--psg-navy);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.content {
    flex: 1;
    padding: var(--space-8);
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TITLE
   ═══════════════════════════════════════════════════════════════ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.page-kicker {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    color: var(--psg-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--psg-navy);
    line-height: 1.2;
}

.page-description {
    color: var(--grey-600);
    margin-top: var(--space-2);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #d9d9d9;
    overflow: hidden;
}

.summary-title {
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--psg-navy);
    margin: 0 0 var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #d9d9d9;
    border: 1px solid #d9d9d9;
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── stat tile accent ── */
.kpi-accent{position:absolute;bottom:0;left:0;right:0;height:3px;opacity:.2;}

/* ── global search box ── */
.search-box{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--grey-200);border-radius:6px;padding:0 12px;height:38px;}
.search-box svg{width:14px;height:14px;color:var(--grey-400);flex-shrink:0;}
.search-box input{border:none;background:transparent;outline:none;font-size:.875rem;font-weight:600;color:var(--grey-700);width:100%;font-family:inherit;}
.search-box input::placeholder{color:var(--grey-400);}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--psg-navy);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--grey-200);
    background: var(--grey-50);
}

/* ═══════════════════════════════════════════════════════════════
   STATS CARDS (dashboard)
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--psg-gold);
}

.stat-card.primary { border-left-color: var(--psg-navy); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.danger  { border-left-color: var(--psg-red); }
.stat-card.warning { border-left-color: var(--warning); }

.stat-label {
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-500);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--psg-navy);
    line-height: 1;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: var(--space-2);
    color: var(--grey-500);
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--psg-red); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--psg-navy);
    color: white;
}

.btn-primary:hover {
    background: var(--psg-navy-light);
    color: white;
}

.btn-danger {
    background: var(--psg-red);
    color: white;
}

.btn-danger:hover {
    background: var(--psg-red-dark);
    color: white;
}

.btn-gold {
    background: var(--psg-gold);
    color: var(--psg-navy);
}

.btn-gold:hover {
    background: var(--psg-gold-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--psg-navy);
    border: 1px solid var(--grey-300);
}

.btn-outline:hover {
    background: var(--grey-50);
    border-color: var(--psg-navy);
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: var(--space-4);
}
.mb-0 { margin-bottom: 0 !important; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: var(--space-2);
    font-family: var(--font-condensed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.15s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--psg-gold);
    box-shadow: 0 0 0 3px rgba(64, 174, 240, 0.15);
}

.form-control.is-invalid {
    border-color: var(--psg-red);
}

.form-error {
    color: var(--psg-red);
    font-size: 0.8rem;
    margin-top: var(--space-1);
}

.form-help {
    color: var(--grey-500);
    font-size: 0.8rem;
    margin-top: var(--space-1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--grey-50);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-600);
    border-bottom: 1px solid var(--grey-200);
}

table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--grey-100);
    font-size: 0.875rem;
}

table tbody tr:hover {
    background: var(--grey-50);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-condensed);
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-danger  { background: rgba(218, 41, 28, 0.1); color: var(--psg-red); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-info    { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-gold    { background: rgba(64, 174, 240, 0.15); color: var(--psg-gold-dark); }
.badge-navy    { background: rgba(0, 26, 47, 0.1); color: var(--psg-navy); }

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */

.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success);
    color: #064e3b;
}

.alert-danger {
    background: #fee2e2;
    border-color: var(--psg-red);
    color: #7f1d1d;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #78350f;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info);
    color: #1e3a8a;
}

/* ═══════════════════════════════════════════════════════════════
   TOASTS (Darsy.ui.toast)
   ═══════════════════════════════════════════════════════════════ */

#darsy-toasts {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.darsy-toast {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: auto;
}

.darsy-toast.visible { opacity: 1; transform: translateX(0); }
.darsy-toast svg { flex-shrink: 0; margin-top: 1px; }
.darsy-toast-success { background: #d1fae5; border-color: var(--success); color: #064e3b; }
.darsy-toast-error   { background: #fee2e2; border-color: var(--psg-red); color: #7f1d1d; }
.darsy-toast-info    { background: #dbeafe; border-color: var(--info); color: #1e3a8a; }

/* Double-submit guard (Darsy.ui.guard) */
button.is-busy { opacity: .6; cursor: wait; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--psg-navy) 0%, var(--psg-navy-dark) 100%);
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 174, 240, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.login-logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--psg-navy);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.login-logo-subtitle {
    font-family: var(--font-condensed);
    font-size: 0.875rem;
    color: var(--psg-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--psg-navy);
    text-align: center;
    margin-bottom: var(--space-2);
}

.login-subtitle {
    text-align: center;
    color: var(--grey-500);
    margin-bottom: var(--space-8);
    font-size: 0.875rem;
}

.login-footer {
    margin-top: var(--space-8);
    text-align: center;
    font-size: 0.75rem;
    color: var(--grey-500);
}

/* 2FA code input */
.code-input {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin: var(--space-4) 0;
}

.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    transition: all 0.15s ease;
}

.code-digit:focus {
    outline: none;
    border-color: var(--psg-gold);
    box-shadow: 0 0 0 3px rgba(64, 174, 240, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--grey-500); }
.text-gold { color: var(--psg-gold-dark); }
.text-psg-navy { color: var(--psg-navy); }
.text-psg-red { color: var(--psg-red); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-display { font-family: var(--font-display); }
.font-condensed { font-family: var(--font-condensed); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

/* ── Hamburger button (always visible) ───────────────────── */
.sidebar-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: var(--grey-100); }
.sidebar-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--grey-700);
    border-radius: 2px;
    transition: all .25s ease;
}

/* ── Sidebar always fixed, collapsible on all screen sizes ── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.28s ease;
}
.sidebar.collapsed {
    transform: translateX(-100%);
}
.main {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.28s ease;
}
.main.sidebar-collapsed {
    margin-left: 0;
}

/* ── Overlay (shown when sidebar open on small screens) ───── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar.collapsed { transform: translateX(-100%); }
    .main { margin-left: 0; }
    .main.sidebar-collapsed { margin-left: 0; }
    .content { padding: var(--space-4); }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── Filter tabs (shared) ────────────────────────────────── */
.equipe-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.equipe-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--grey-200);
    background: transparent;
    color: var(--grey-600);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    letter-spacing: .3px;
}
.equipe-tab:hover {
    border-color: var(--psg-navy);
    color: var(--psg-navy);
    background: rgba(0,26,47,.04);
}
.equipe-tab.active {
    background: var(--psg-navy);
    border-color: var(--psg-navy);
    color: #fff;
}

/* ── Modal (shared) ───────────────────────────────────────── */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,16,32,.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--grey-200);
    position: sticky; top: 0;
    background: #fff;
    z-index: 1;
}
.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--psg-navy);
    margin: 0;
}
.modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--grey-100);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--grey-600);
    font-size: 1.2rem;
    transition: background .15s;
}
.modal-close:hover { background: var(--grey-200); }
.modal-body { padding: var(--space-6); }
.modal-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--grey-500);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--grey-200);
}
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--grey-200);
    background: var(--grey-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
