@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --lions-blue: #00338d;
    --lions-blue-dark: #00205b;
    --lions-blue-tint: #eef2fb;
    --lions-gold: #fdb913;
    --lions-gold-dark: #cf9200;
    --text: #16213a;
    --text-light: #5b6577;
    --border: #dde2ea;
    --border-strong: #c3cbd9;
    --bg: #f4f6fa;
    --white: #ffffff;
    --success: #146c2e;
    --success-bg: #e3f4e9;
    --success-border: #b9dcc2;
    --error: #a3241c;
    --error-bg: #fbe9e7;
    --error-border: #f1c1bc;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-xs: 0 1px 1px rgba(16, 33, 66, 0.03), 0 1px 2px rgba(16, 33, 66, 0.04);
    --shadow-sm: 0 1px 2px rgba(16, 33, 66, 0.04), 0 4px 10px -4px rgba(16, 33, 66, 0.06);
    --shadow-md: 0 2px 6px rgba(16, 33, 66, 0.05), 0 12px 28px -10px rgba(16, 33, 66, 0.14);
    --shadow-lg: 0 8px 16px -4px rgba(0, 51, 141, 0.12), 0 24px 48px -16px rgba(0, 32, 91, 0.22);
    --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    --focus-ring: 0 0 0 3px rgba(0, 51, 141, 0.25);
    --transition: 160ms ease;
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* Mode sombre : uniquement quand la page est chargée intégrée dans l'appli
   mobile (body.is-embed), qui suit déjà le thème du téléphone — jamais sur
   le site public ou l'administration, pour ne rien changer là où personne ne
   l'a demandé. */
@media (prefers-color-scheme: dark) {
    body.is-embed {
        --lions-blue-tint: #182849;
        --text: #eef1f7;
        --text-light: #98a4bc;
        --border: #2a3550;
        --border-strong: #3a4666;
        --bg: #0e1320;
        --white: #1a2338;
        --success-bg: #123322;
        --success-border: #1e5136;
        --error-bg: #3a1a17;
        --error-border: #5c2924;
        color-scheme: dark;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

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

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

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

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, .brand, legend {
    font-family: "Lexend", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a { color: var(--lions-blue); }
a:hover { color: var(--lions-blue-dark); }

.wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: relative;
    background: linear-gradient(135deg, var(--lions-blue-dark) 0%, var(--lions-blue) 55%, #0043b8 100%);
    color: var(--white);
    padding: 38px 0;
    border-bottom: 4px solid var(--lions-gold);
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 46px),
        repeating-linear-gradient(115deg, rgba(253,185,19,0.06) 0px, rgba(253,185,19,0.06) 1px, transparent 1px, transparent 92px);
    pointer-events: none;
}

.site-header-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 500ms ease both;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    margin-left: auto;
}
.site-nav a {
    color: #cfe0ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.site-nav a.is-active { background: var(--lions-gold); color: var(--lions-blue-dark); }
@media (max-width: 680px) {
    .site-nav { margin-left: 0; width: 100%; }
}

.site-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
    border: 3px solid var(--lions-gold);
    padding: 10px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: transform 220ms ease;
}
.site-logo:hover { transform: scale(1.06) rotate(-2deg); }

.admin-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
    border: 2px solid var(--lions-gold);
    padding: 3px;
}

.site-header .brand {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.site-header .tagline {
    margin: 6px 0 0;
    color: #cfe0ff;
    font-size: 0.95rem;
}

main.wrap {
    padding-top: 36px;
    padding-bottom: 64px;
    min-height: 50vh;
}
main.wrap-embed {
    padding-top: 20px;
}

/* --- Hero (page publique) --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--lions-blue-dark) 0%, var(--lions-blue) 55%, #0043b8 100%);
    border-radius: var(--radius);
    padding: 56px 40px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    color: rgba(255, 255, 255, 0.14);
    animation: heroFloat 14s ease-in-out infinite;
}
.hero-shape-1 { width: 220px; height: 220px; top: -60px; right: -40px; animation-duration: 16s; }
.hero-shape-2 { width: 140px; height: 140px; bottom: -50px; left: 6%; color: rgba(253, 185, 19, 0.22); animation-duration: 12s; animation-delay: -3s; }
.hero-shape-3 { width: 90px; height: 90px; top: 30%; right: 18%; animation-duration: 10s; animation-delay: -6s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

.hero-inner { position: relative; max-width: 620px; animation: fadeInUp 600ms var(--ease-spring) both; }

.eyebrow-light {
    color: var(--lions-gold);
}
.eyebrow-light::before { background: var(--lions-gold); }

.hero-title {
    color: var(--white);
    font-size: 2.6rem;
    line-height: 1.12;
    margin: 4px 0 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #cfe0ff;
    font-size: 1.06rem;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 0 32px;
}
.hero-subtitle a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.hero-subtitle a:hover { color: var(--lions-gold); }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value {
    font-family: "Lexend", inherit;
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--white);
    line-height: 1;
}
.hero-stat-static { color: var(--lions-gold); }
.hero-stat-label {
    color: #a9c1ec;
    font-size: 0.84rem;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .hero { padding: 40px 24px; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 22px 30px; }
}

/* --- Révélation au scroll (progressive enhancement, JS ajoute .reveal-pending) --- */
.form-step {
    transition: opacity 650ms var(--ease-spring), transform 650ms var(--ease-spring);
}
.form-step.reveal-pending {
    opacity: 0;
    transform: translateY(28px);
}

.page-intro { margin-bottom: 24px; animation: fadeInUp 500ms ease both; animation-delay: 60ms; }
.page-intro p { color: var(--text-light); max-width: 100%; font-size: 1.02rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lions-gold-dark);
    font-family: "Lexend", inherit;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--lions-gold);
}

h1 {
    color: var(--lions-blue-dark);
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm), var(--inset-highlight);
    animation: fadeInUp 550ms var(--ease-spring) both;
    animation-delay: 120ms;
    transition: box-shadow 280ms var(--ease-spring), border-color var(--transition), transform 280ms var(--ease-spring);
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lions-blue) 0%, var(--lions-gold) 100%);
}
.card:hover { box-shadow: var(--shadow-md), var(--inset-highlight); border-color: var(--border-strong); transform: translateY(-2px); }
.card:nth-of-type(2) { animation-delay: 170ms; }
.card:nth-of-type(3) { animation-delay: 220ms; }
.card:nth-of-type(4) { animation-delay: 270ms; }

.form-step {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.step-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-line {
    width: 2px;
    flex: 1;
    margin: 8px 0;
    background: linear-gradient(var(--border) 0%, var(--border) 100%);
    border-radius: 2px;
    min-height: 20px;
}

.step-body {
    flex: 1;
    min-width: 0;
    padding-bottom: 28px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.form-step-last .step-body { border-bottom: none; padding-bottom: 4px; margin-bottom: 0; }

form > button[type="submit"] { margin-top: 26px; }

.captcha-field {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.captcha-field label { margin-bottom: 8px; }

.step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lions-blue-dark);
    font-size: 1.08rem;
    margin: 3px 0 18px;
}

.step-optional {
    font-family: "Source Sans 3", inherit;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-light);
    background: var(--bg);
    padding: 2px 9px;
    border-radius: 999px;
}

.legend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 11px;
    background: linear-gradient(160deg, #f5f8ff 0%, var(--lions-blue-tint) 100%);
    color: var(--lions-blue);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,51,141,0.06), 0 0 0 4px var(--white), 0 0 0 5px var(--border);
    transition: transform 280ms var(--ease-spring);
}
.legend-icon svg { width: 17px; height: 17px; }

.form-step:hover .legend-icon { transform: scale(1.08); }

.form-step-alt .legend-icon {
    background: #fff6e0;
    color: var(--lions-gold-dark);
}

@media (max-width: 560px) {
    .form-step { gap: 12px; }
    .step-title { font-size: 1rem; }
}

form .field { margin-bottom: 18px; }
form .field:last-child { margin-bottom: 0; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: var(--text);
}

.required { color: var(--error); }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder, textarea::placeholder { color: #9aa4b5; }

input:hover, select:hover, textarea:hover { border-color: var(--text-light); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--lions-blue);
    box-shadow: var(--focus-ring);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6577' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

textarea { resize: vertical; min-height: 110px; }

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

@media (max-width: 600px) {
    .row-2 { grid-template-columns: 1fr; }
    .card { padding: 20px; }
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-line input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--lions-blue);
    cursor: pointer;
}
.checkbox-line label { margin: 0; font-weight: 400; cursor: pointer; }

/* --- Upload photo --- */
.file-upload {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color var(--transition), background var(--transition);
}
.file-upload:hover { border-color: var(--lions-blue); background: var(--lions-blue-tint); box-shadow: var(--shadow-sm); }
.file-upload.has-file { border-style: solid; border-color: var(--lions-blue); background: var(--white); animation: fadeIn 250ms ease; }
.file-upload-label svg { transition: transform var(--transition); }
.file-upload:hover .file-upload-label svg { transform: translateY(-2px); }

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    margin: 0;
    font-weight: 400;
    color: var(--text-light);
    text-align: center;
    cursor: pointer;
}
.file-upload-label svg { color: var(--lions-blue); }
.file-upload-text { font-size: 0.92rem; }

.photo-preview {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lions-blue) 0%, #0043b8 100%);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-family: "Lexend", inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 1px 2px rgba(16, 33, 66, 0.12);
    transition: background 220ms var(--ease-spring), transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-spring);
}
button:hover, .btn:hover { background: linear-gradient(135deg, var(--lions-blue-dark) 0%, var(--lions-blue) 100%); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px -6px rgba(0, 51, 141, 0.32); }
button:active, .btn:active { transform: translateY(0) scale(0.98); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 1px 2px rgba(16, 33, 66, 0.12); }
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
button:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-gold {
    background: linear-gradient(135deg, var(--lions-gold) 0%, #f5a900 100%);
    color: var(--lions-blue-dark);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--lions-gold-dark) 0%, var(--lions-gold) 100%); box-shadow: 0 6px 16px rgba(207, 146, 0, 0.28); }

.btn-outline {
    background: transparent;
    color: var(--lions-blue);
    border: 1px solid var(--lions-blue);
    box-shadow: none;
}
.btn-outline:hover { background: var(--lions-blue-tint); box-shadow: none; }

.btn-danger {
    background: var(--error);
    color: var(--white);
}
.btn-danger:hover { background: #7d1a14; box-shadow: 0 6px 16px rgba(163, 36, 28, 0.25); }

.btn-sm { padding: 7px 14px; font-size: 0.85rem; min-height: 36px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    min-height: 32px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: "Lexend", inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-xs);
    transition: background 180ms var(--ease-spring), color 180ms var(--ease-spring), border-color 180ms var(--ease-spring), transform 180ms var(--ease-spring);
}
.btn-icon svg { flex-shrink: 0; }
.btn-icon:hover { transform: translateY(-1px); }
.btn-icon:active { transform: translateY(0); }

.btn-icon.btn-outline { background: transparent; border-color: var(--lions-blue); color: var(--lions-blue); }
.btn-icon.btn-outline:hover { background: var(--lions-blue-tint); }

.btn-icon.btn-gold { background: var(--lions-gold); color: var(--lions-blue-dark); border-color: transparent; }
.btn-icon.btn-gold:hover { background: var(--lions-gold-dark); }

.btn-icon.btn-danger { background: var(--error-bg); color: var(--error); border-color: var(--error-border); }
.btn-icon.btn-danger:hover { background: var(--error); color: var(--white); }

.btn-icon.btn-muted { background: transparent; color: var(--text-light); border-color: var(--border); }
.btn-icon.btn-muted:hover { background: var(--error-bg); color: var(--error); border-color: var(--error-border); }

.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.mail-fail-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--error-bg);
    color: var(--error);
    margin-left: 6px;
    vertical-align: middle;
    cursor: help;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.94rem;
}
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.flash-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}
th, td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}
th {
    background: var(--lions-blue-tint);
    color: var(--lions-blue-dark);
    font-family: "Lexend", inherit;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--lions-blue-tint); }

/* --- Tableau responsive : cartes empilées sous 780px --- */
@media (max-width: 780px) {
    table, thead, tbody, tr, td { display: block; width: 100%; }
    thead { display: none; }
    tbody { display: flex; flex-direction: column; gap: 14px; }
    tbody tr {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 4px 16px;
        box-shadow: var(--shadow-xs);
    }
    tbody tr:hover { background: var(--white); }
    tbody td {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
        border-bottom: 1px dashed var(--border);
    }
    tbody td:last-child { border-bottom: none; }
    tbody td::before {
        content: attr(data-label);
        font-family: "Lexend", inherit;
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--lions-blue);
    }
    .actions-cell { gap: 8px; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge-en_attente { background: #fff3cd; color: #8a6d00; }
.badge-valide { background: var(--success-bg); color: var(--success); }
.badge-refuse { background: var(--error-bg); color: var(--error); }
.badge-leo { background: var(--lions-gold); color: var(--lions-blue-dark); }
.badge-leo::before { display: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.admin-topbar {
    background: var(--lions-blue-dark);
    color: var(--white);
    padding: 14px 0;
}
.admin-topbar .wrap {
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-topbar a {
    color: #cfe0ff;
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.admin-topbar a:hover { color: var(--white); text-decoration: underline; }
.admin-wrap { max-width: 1100px; }

.actions-cell { display: flex; flex-direction: column; gap: 8px; }
.actions-full { width: 100%; }
.actions-full.btn, .actions-full button { width: 100%; }
.actions-row { display: flex; gap: 8px; }
.actions-row form { flex: 1; }
.actions-row button { width: 100%; }
.actions-delete { align-self: flex-end; }
.actions-delete button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    box-shadow: none;
}
.actions-delete button:hover {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error-border);
    box-shadow: none;
    transform: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
@media (max-width: 720px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm), var(--inset-highlight);
    animation: fadeInUp 500ms var(--ease-spring) both;
    transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-spring), border-color var(--transition);
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--stat-color, var(--lions-blue));
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--inset-highlight); }
.stat-card.is-active { border-color: var(--stat-color, var(--lions-blue)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stat-color, var(--lions-blue)) 18%, transparent); }

.stat-card:nth-child(2) { animation-delay: 60ms; }
.stat-card:nth-child(3) { animation-delay: 110ms; }
.stat-card:nth-child(4) { animation-delay: 160ms; }

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--stat-color, var(--lions-blue)) 14%, white);
    color: var(--stat-color, var(--lions-blue));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,0,0,0.05);
    margin-bottom: 4px;
    transition: transform 240ms var(--ease-spring);
}
.stat-card:hover .stat-icon { transform: scale(1.1); }
.stat-icon svg { width: 18px; height: 18px; }

.stat-value {
    font-family: "Lexend", inherit;
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--text);
    line-height: 1.1;
}
.stat-label { font-size: 0.85rem; color: var(--text-light); }

.stat-pending { --stat-color: #b8860b; }
.stat-approved { --stat-color: var(--success); }
.stat-topublish { --stat-color: #0369a1; }
.stat-rejected { --stat-color: var(--error); }
.stat-total { --stat-color: var(--lions-blue); }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.filter-bar .field { margin-bottom: 0; min-width: 160px; flex: 1; }
.filter-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; min-width: 0; }
.filter-bar-actions .btn, .filter-bar-actions button { white-space: nowrap; }
@media (max-width: 720px) {
    .filter-bar .field { min-width: 100%; }
}

.site-footer {
    position: relative;
    background: var(--lions-blue-dark);
    color: #c9d6f0;
    padding: 40px 0 0;
    font-size: 0.88rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lions-gold) 0%, #ffe08a 50%, var(--lions-gold) 100%);
}
.site-footer a { color: #cfe0ff; text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--lions-gold); }

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
}
.site-footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer-col h3 {
    color: var(--white);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 4px;
}
.site-footer-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
    padding: 6px;
    margin-bottom: 6px;
}
.site-footer-col p { margin: 0; line-height: 1.5; }

.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #a9c1ec;
}
.site-footer-bottom p { margin: 0; }

@media (max-width: 680px) {
    .site-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

.helper-text { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

.email-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .email-editor-grid { grid-template-columns: 1fr; }
}

.email-preview-pane {
    position: sticky;
    top: 16px;
}
.email-preview-subject {
    font-weight: 600;
    color: var(--lions-blue-dark);
    background: var(--lions-blue-tint);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.88rem;
    word-break: break-word;
}
.email-preview-frame {
    width: 100%;
    height: 460px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
}
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lions-blue-tint);
    color: var(--lions-blue);
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,51,141,0.06);
}
.empty-state-icon svg { width: 26px; height: 26px; }
.empty-state p { margin: 0; font-size: 0.95rem; }

.login-wrap {
    max-width: 400px;
    margin: 40px auto 0;
    text-align: center;
}
.login-wrap h1 { margin-bottom: 20px; }
.login-wrap .card { text-align: left; }
.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lions-blue-tint);
    color: var(--lions-blue);
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,51,141,0.06);
    animation: fadeInUp 500ms var(--ease-spring) both;
}
.login-icon svg { width: 26px; height: 26px; }
