/**
 * ESIG TechSphere : Site du club
 * Palette issue du logo (bleu électrique #1B1EFF)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --blue: #1b1eff;
    --blue-hover: #1416d4;
    --blue-ink: #1012a8;
    --blue-soft: #eef0ff;
    --blue-mid: #c9ccff;
    --green: #00d68f;
    --green-hover: #00b87a;
    --green-soft: #e6fbf3;
    --gold: #ffb800;
    --gold-hover: #e0a200;
    --gold-soft: #fff6dc;
    --ink: #0b1020;
    --text: #16192b;
    --muted: #5c6178;
    --line: #e6e8f0;
    --bg: #f5f6fa;
    --white: #ffffff;
    --card: #ffffff;
    --page: #ffffff;
    --band: #070814;
    --nav-bg: rgba(255, 255, 255, 0.92);
    --danger: #dc2626;
    --shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 12px 32px rgba(11, 16, 32, 0.06);
    --shadow-lg: 0 20px 50px rgba(11, 16, 32, 0.1);
    --radius: 14px;
    --radius-sm: 10px;
    --max: 1120px;
    --pad: 28px;
    --nav-h: 72px;
    --font: 'Inter', system-ui, sans-serif;
    --display: 'Outfit', 'Inter', sans-serif;
    --ease: 200ms ease;

    --g-indigo: #6366f1;
    --g-violet: #8b5cf6;
    --g-cyan: #22d3ee;
    --g-emerald: #10b981;
    --g-amber: #f59e0b;
    --g-rose: #f43f5e;
    --glass: rgba(255, 255, 255, 0.58);
    --glass-strong: rgba(255, 255, 255, 0.76);
    --glass-line: rgba(255, 255, 255, 0.72);
    --glass-edge: rgba(99, 102, 241, 0.16);
    --glass-shadow: 0 20px 44px rgba(23, 27, 70, 0.10);
    --glass-shadow-hi: 0 26px 60px rgba(23, 27, 70, 0.16);
    --glass-text: #1c2140;
    --glass-muted: rgba(28, 33, 64, 0.6);
}

html[data-theme="dark"] {
    --blue: #6d70ff;
    --blue-hover: #8a8cff;
    --blue-ink: #4c50ff;
    --blue-soft: rgba(109, 112, 255, 0.16);
    --blue-mid: #3a3d78;
    --green-soft: rgba(0, 214, 143, 0.14);
    --gold-soft: rgba(255, 184, 0, 0.14);
    --ink: #f3f5ff;
    --text: #e6e8f5;
    --muted: #9aa3bb;
    --line: #2a3048;
    --bg: #101322;
    --white: #ffffff;
    --card: #161a2c;
    --page: #0b1020;
    --band: #12162a;
    --nav-bg: rgba(11, 16, 32, 0.92);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);

    --glass: rgba(30, 36, 62, 0.52);
    --glass-strong: rgba(34, 40, 70, 0.72);
    --glass-line: rgba(255, 255, 255, 0.12);
    --glass-edge: rgba(139, 148, 255, 0.22);
    --glass-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
    --glass-shadow-hi: 0 26px 60px rgba(0, 0, 0, 0.48);
    --glass-text: #eaecff;
    --glass-muted: rgba(226, 230, 255, 0.62);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    color-scheme: light;
    overflow-x: hidden;
    max-width: 100%;
}
html[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue), var(--green));
    border-radius: 8px;
}

.ico {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}
[data-icon] svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin-inline: auto;
}

/* ---------- NAV ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.navbar-inner {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.navbar-brand-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.navbar-brand-sub {
    display: none;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.navbar-links > li { position: relative; }

.navbar-links a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    transition: color var(--ease), background var(--ease), box-shadow var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.navbar-links a .ico,
.navbar-links a [data-icon] {
    color: currentColor;
}

.navbar-links a [data-icon] svg {
    width: 14px;
    height: 14px;
}

.navbar-cta [data-icon] { color: var(--white); }

.navbar-links a:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.navbar-links a.active {
    color: var(--white);
    background: var(--ink);
}

.navbar-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    margin-left: 8px;
}

.navbar-cta:hover,
.navbar-cta.active {
    background: var(--gold) !important;
    color: var(--ink) !important;
}

.navbar-cta:hover [data-icon],
.navbar-cta.active [data-icon] { color: var(--ink); }

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
}
.theme-toggle:hover {
    background: var(--blue-soft);
    color: var(--blue);
    border-color: transparent;
}
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background: var(--page);
    color: var(--text);
}
html[data-theme="dark"] .navbar-links a.active {
    background: var(--blue);
    color: #fff;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--ease);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.dropdown-menu a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.navbar-mobile-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.navbar-mobile-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: var(--ink);
    margin-inline: auto;
}

.navbar-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 20px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.navbar-mobile.open { display: flex; }

.navbar-mobile a {
    text-decoration: none;
    padding: 12px 4px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.navbar-mobile .navbar-cta {
    margin: 12px 0 0;
    text-align: center;
    border: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 10px;
    transition: background var(--ease), color var(--ease), transform var(--ease);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover { background: var(--blue-hover); }

.btn-outline {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn-ghost {
    background: var(--card);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover { background: var(--bg); }

.btn-secondary-fill {
    background: var(--ink);
    color: var(--page);
}

.hero-buttons,
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- HERO CLUB ---------- */
.hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -8%, rgba(27, 30, 255, 0.16), transparent 58%),
        radial-gradient(640px 340px at 8% 108%, rgba(0, 214, 143, 0.14), transparent 55%),
        radial-gradient(480px 260px at 55% 0%, rgba(255, 184, 0, 0.12), transparent 50%),
        var(--page);
}

.hero-bg,
.hero-overlay,
.hero-overlay-green { display: none; }

.hero-content {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-copy { max-width: 640px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}

.kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 span { color: var(--blue); }

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-logo-wrap {
    width: min(340px, 100%);
    padding: 36px;
    background: var(--band);
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.18), 0 24px 60px rgba(27, 30, 255, 0.22);
    animation: floatLogo 5.5s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-logo-wrap img { width: 100%; height: auto; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.hero-stat {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
}

.hero-stat b {
    display: block;
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--ink);
}

.hero-stat:nth-child(1) b { color: var(--blue); }
.hero-stat:nth-child(2) b { color: var(--green); }
.hero-stat:nth-child(3) b { color: var(--gold-hover); }

.hero-stat span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }

.section-muted { background: var(--bg); }

.section-label,
.kicker-dark {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
}

.section-title span { color: var(--blue); }

.section-desc {
    color: var(--muted);
    max-width: 540px;
    margin-top: 12px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: end;
    margin-bottom: 48px;
}

.about-header {
    max-width: 640px;
    margin-bottom: 40px;
}

.about-header .section-desc { margin-top: 12px; }

/* ---------- CARDS ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.card h3 {
    font-family: var(--display);
    font-size: 1.15rem;
    margin: 12px 0 8px;
    color: var(--ink);
}

.card p { color: var(--muted); font-size: 0.95rem; }

.glass-panel {
    position: relative;
    overflow: hidden;
    padding: 26px 22px 22px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.07);
}

.glass-panel-num {
    display: block;
    font-family: var(--display);
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1;
    margin-bottom: 12px;
    color: rgba(27, 30, 255, 0.16);
}

.glass-panel:nth-child(2) .glass-panel-num { color: rgba(0, 214, 143, 0.28); }
.glass-panel:nth-child(3) .glass-panel-num { color: rgba(255, 184, 0, 0.34); }
.glass-panel:nth-child(4) .glass-panel-num { color: rgba(99, 102, 241, 0.22); }

.glass-panel h3 {
    font-family: var(--display);
    font-size: 1.18rem;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    color: var(--ink);
}

.glass-panel > p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.glass-panel:hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: var(--glass-shadow-hi), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .glass-panel {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .glass-panel::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
}

.card-icon.tone-green { background: var(--green-soft); color: var(--green-hover); }
.card-icon.tone-gold { background: var(--gold-soft); color: var(--gold-hover); }
.card-icon.tone-blue { background: var(--blue-soft); color: var(--blue); }

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.speaker-card,
.sponsor-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.info-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 22px 20px 20px;
    background: rgba(11, 16, 32, 0.78);
    color: #f4f5fb;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 16px 40px rgba(11, 16, 32, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.info-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffb800;
}

.info-card:nth-child(2)::before { background: #6d70ff; }
.info-card:nth-child(3)::before { background: #00d68f; }
.info-card:nth-child(4)::before { background: #f43f5e; }

.info-card-index {
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
}

.info-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(244, 245, 251, 0.55);
    margin-bottom: 8px;
}

.info-card-value {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #fff;
}

.info-card:hover .info-card-index { color: rgba(255, 184, 0, 0.28); }

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.competition-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 0;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.comp-index {
    display: block;
    padding: 20px 22px 0;
    font-family: var(--display);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.9;
    color: var(--ink);
}

.competition-card h3 {
    font-family: var(--display);
    font-size: 1.28rem;
    letter-spacing: -0.03em;
    margin: 10px 22px 0;
}

.competition-card > p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 10px 22px 22px;
}

.prize {
    margin-top: auto;
    padding: 13px 22px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffb800;
    background: #0b1020;
}

.competition-card:hover {
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: var(--glass-shadow-hi), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.competition-card:hover .comp-index { color: var(--blue); }

.arena-links {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.arena-link {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(27, 30, 255, 0.08);
    text-decoration: none;
    color: inherit;
}

.arena-link:last-child { border-bottom: 0; }

.arena-link-num {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.arena-link-copy h3 {
    font-family: var(--display);
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    margin: 0 0 4px;
    color: var(--ink);
}

.arena-link-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.arena-link-go {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

.arena-link:hover {
    background: rgba(11, 16, 32, 0.92);
    color: #fff;
}

.arena-link:hover .arena-link-num,
.arena-link:hover .arena-link-copy h3,
.arena-link:hover .arena-link-go { color: #ffb800; }
.arena-link:hover .arena-link-copy p { color: rgba(255, 255, 255, 0.62); }

html[data-theme="dark"] .info-card {
    background: rgba(18, 22, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .prize {
    background: #080a14;
}

html[data-theme="dark"] .arena-link:hover {
    background: #12162a;
}

/* ---------- BUREAU ---------- */
.bureau-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.member-card {
    text-align: center;
    padding: 28px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.member-card .avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.member-card strong {
    display: grid;
    gap: 2px;
    color: var(--ink);
    margin-bottom: 8px;
}

.member-lastname {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-firstname {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.member-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
}

.member-card.is-vice .avatar {
    background: var(--gold-soft);
    color: var(--gold-hover);
}

.member-card.is-vice .member-role {
    color: var(--gold-hover);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    flex-shrink: 0;
}

.commission .card-icon { margin-bottom: 12px; }
.commission h3 {
    font-family: var(--display);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.commission .role {
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---------- EVENT TEASER ---------- */
.event-feature {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--band);
    color: var(--white);
}

.event-feature-copy { padding: 48px; }

.event-feature-copy .kicker { color: #9aa0ff; }
.event-feature-copy .kicker::before { background: #9aa0ff; }

.event-feature h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    margin: 8px 0 12px;
}

.event-feature p { color: rgba(255, 255, 255, 0.7); margin-bottom: 24px; max-width: 460px; }

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.event-feature-side {
    background:
        radial-gradient(380px 240px at 80% 10%, rgba(0, 214, 143, 0.28), transparent 65%),
        radial-gradient(400px 280px at 20% 90%, rgba(255, 184, 0, 0.22), transparent 60%),
        radial-gradient(400px 280px at 70% 20%, rgba(27, 30, 255, 0.55), transparent 70%),
        #070814;
    display: grid;
    place-items: center;
    padding: 40px;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.countdown-block {
    text-align: center;
    min-width: 68px;
    padding: 12px 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
}

.hero-countdown,
.countdown {
    display: flex;
    gap: 10px;
}

.countdown-block .num,
.countdown-block .cd-num {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--white);
}

.countdown-block .lbl,
.countdown-block .cd-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

/* Event listing */
.event-list { display: grid; gap: 16px; }

.event-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: box-shadow var(--ease);
}

.event-row:hover { box-shadow: var(--shadow); }

.event-date {
    font-family: var(--display);
    font-weight: 700;
    color: var(--blue);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-row h3 { font-family: var(--display); margin-bottom: 4px; }
.event-row p { color: var(--muted); font-size: 0.92rem; }

/* ---------- EVENT HERO ---------- */
.event-hero {
    background:
        radial-gradient(700px 380px at 90% 0%, rgba(0, 214, 143, 0.18), transparent 55%),
        radial-gradient(600px 300px at 10% 100%, rgba(255, 184, 0, 0.16), transparent 50%),
        var(--band);
    color: var(--white);
    padding: 72px 0 80px;
}

.event-hero h1 {
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.04em;
    margin: 10px 0 14px;
}

.event-hero p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin-bottom: 28px;
}

.event-hero .hero-countdown { margin-bottom: 28px; }

/* ---------- PAGE HEADER ---------- */
.page-header {
    background: var(--bg);
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--line);
}

.page-header-bg,
.page-header-overlay,
.page-header-overlay-green { display: none; }

.page-header-content,
.page-header .container {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin-inline: auto;
}

.page-header h1 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    color: var(--ink);
}

.page-header p {
    color: var(--muted);
    margin-top: 8px;
    max-width: 520px;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 88px 0;
    background:
        radial-gradient(500px 280px at 85% 10%, rgba(0, 214, 143, 0.16), transparent 60%),
        radial-gradient(420px 240px at 10% 90%, rgba(255, 184, 0, 0.12), transparent 55%),
        var(--band);
    color: var(--white);
}

.cta-inner { text-align: center; }

.cta-inner .section-label { color: #9aa0ff; }
.cta-inner .section-title { color: var(--white); }
.cta-inner .section-desc {
    color: rgba(255, 255, 255, 0.65);
    margin: 12px auto 28px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #070814;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.footer-brand strong {
    display: block;
    color: var(--white);
    font-family: var(--display);
    margin-bottom: 8px;
}

.footer-brand p { font-size: 0.9rem; max-width: 320px; }

.footer h4 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer a {
    display: block;
    text-decoration: none;
    font-size: 0.92rem;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.65);
}

.footer a:hover { color: var(--white); }

.footer-simple {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-bottom: 28px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-logo img { width: 32px; height: 32px; }

.footer-brand-logo-text {
    color: var(--white);
    font-family: var(--display);
    font-weight: 700;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { display: inline; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 0.82rem;
}

/* ---------- FORMS ---------- */
.form-page {
    padding: 48px 0 88px;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(27, 30, 255, 0.08), transparent 55%),
        radial-gradient(500px 280px at 0% 100%, rgba(0, 214, 143, 0.08), transparent 50%),
        var(--bg);
}

.form-wrapper {
    width: min(720px, calc(100% - var(--pad) * 2));
    margin-inline: auto;
}

.form-layout {
    width: min(1080px, calc(100% - var(--pad) * 2));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.form-aside {
    background: var(--band);
    color: var(--white);
    border-radius: 20px;
    padding: 28px;
    position: sticky;
    top: 96px;
}

.form-aside h3 {
    font-family: var(--display);
    font-size: 1.25rem;
    margin: 8px 0 10px;
}

.form-aside p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }

.aside-list { margin-top: 22px; display: grid; gap: 14px; }

.aside-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.aside-item .card-icon {
    width: 40px;
    height: 40px;
}

.aside-item strong { display: block; font-size: 0.92rem; }
.aside-item span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-card-header {
    padding: 28px 32px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.form-card-header h2 {
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--ink);
}

.form-card-header p {
    color: var(--muted);
    margin-top: 6px;
}

.form-card-body { padding: 8px 32px 32px; }

.teams-closed-notice {
    display: none;
}

.teams-closed-page .teams-closed-notice {
    display: block;
}

.teams-closed-page #competiteurForm {
    display: none;
}

.teams-closed-notice p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.teams-closed-box {
    width: min(460px, 100%);
}

.teams-closed-box .modal-header .card-icon {
    margin: 0 auto 14px;
}

.teams-closed-box .modal-body p {
    color: var(--muted);
    line-height: 1.55;
}

.teams-closed-box .modal-body p + p {
    margin-top: 10px;
}

.teams-closed-box .modal-actions {
    margin-top: 20px;
    flex-direction: column;
}

.form-section {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.form-section:first-child { border-top: 0; padding-top: 8px; }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ink);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: var(--card);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.form-group small { color: var(--muted); font-size: 0.8rem; }

.competition-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.comp-option { position: relative; }
.comp-option input { position: absolute; opacity: 0; }

.comp-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 10px 14px;
    min-height: 168px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    background: var(--bg);
    transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.comp-option-label:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.comp-option.track-blue .comp-option-label {
    background: linear-gradient(180deg, #eef0ff 0%, #ffffff 70%);
    border-color: #c5c8ff;
}
.comp-option.track-green .comp-option-label {
    background: linear-gradient(180deg, #e6fbf3 0%, #ffffff 70%);
    border-color: #9ee0c4;
}
.comp-option.track-gold .comp-option-label {
    background: linear-gradient(180deg, #fff6dc 0%, #ffffff 70%);
    border-color: #f0d48a;
}

.comp-option.track-blue input:checked + .comp-option-label {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
}
.comp-option.track-green input:checked + .comp-option-label {
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
}
.comp-option.track-gold input:checked + .comp-option-label {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft);
}

.comp-option-name { display: block; font-weight: 700; font-size: 0.82rem; color: var(--ink); line-height: 1.25; }
.comp-option-desc { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.comp-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: grid;
    place-items: center;
    color: transparent;
}
.comp-option input:checked + .comp-option-label .comp-check {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}
.comp-option.track-green input:checked + .comp-option-label .comp-check {
    background: var(--green);
    border-color: var(--green);
}
.comp-option.track-gold input:checked + .comp-option-label .comp-check {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
}

.terms-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg);
    border-radius: 12px;
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.size-option input { position: absolute; opacity: 0; pointer-events: none; }

.size-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 78px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.size-option-card strong {
    font-family: var(--display);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--ink);
}

.size-option-card small { color: var(--muted); font-size: 0.72rem; }

.size-option input:checked + .size-option-card {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.member-emails-wrap { margin-top: 8px; }

.member-emails-intro {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.member-emails-fields { display: grid; gap: 12px; }

.notify-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: auto;
    max-width: min(380px, calc(100% - 32px));
    pointer-events: none;
}

.notify {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 360px;
    max-width: 100%;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    animation: notifyIn 0.32s cubic-bezier(.22,1,.36,1);
}

.notify.is-out { animation: notifyOut 0.22s ease forwards; }

.notify-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.notify svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notify-icon .ico,
.notify-icon svg { width: 16px; height: 16px; }

.notify.is-success .notify-icon { background: var(--green-soft); color: var(--green-hover); }
.notify.is-error .notify-icon { background: #fee2e2; color: var(--danger); }
.notify.is-info .notify-icon { background: var(--blue-soft); color: var(--blue); }
html[data-theme="dark"] .notify.is-error .notify-icon { background: rgba(220, 38, 38, 0.18); }

.notify-body { flex: 1; min-width: 0; }
.notify-title { display: block; font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.notify-msg { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.notify-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 2px;
    display: grid;
    place-items: center;
}

.notify-close .ico,
.notify-close svg { width: 14px; height: 14px; }

@keyframes notifyIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}
@keyframes notifyOut {
    to { opacity: 0; transform: translateY(-8px); }
}

.ticket-export-stage {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 420px;
    overflow: hidden;
    pointer-events: none;
}

.form-submit-area { margin-top: 8px; }

.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--blue), #3a3dff);
    color: var(--white);
    border: 0;
    padding: 15px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    min-height: 52px;
    transition: transform var(--ease), filter var(--ease);
}

.btn-submit [data-icon],
.btn-submit .ico,
.btn-submit span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin: 0;
    vertical-align: middle;
}

.btn-submit span:not([data-icon]):not(.ico) {
    line-height: 1;
}

.btn-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- MODAL / TICKET ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(11, 16, 32, 0.62);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-box {
    background: var(--card);
    border-radius: 22px;
    width: min(440px, 100%);
    overflow: hidden;
    animation: modalIn 0.45s cubic-bezier(.22,1,.36,1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.modal-header { padding: 24px 24px 0; text-align: center; }
.modal-header h2 { font-family: var(--display); }
.modal-header p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.modal-body { padding: 18px 22px 24px; }

.ticket-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin: 8px 0 16px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
}

.ticket-card::before,
.ticket-card::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--card);
    border-radius: 50%;
    top: 118px;
    z-index: 2;
}
.ticket-card::before { left: -11px; }
.ticket-card::after { right: -11px; }

.ticket-top {
    background:
        radial-gradient(280px 120px at 90% 0%, rgba(0, 214, 143, 0.35), transparent 60%),
        radial-gradient(240px 120px at 10% 100%, rgba(255, 184, 0, 0.28), transparent 55%),
        linear-gradient(135deg, #0b1020, #1618c4);
    color: var(--white);
    padding: 20px 20px 18px;
}

.ticket-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ticket-brand img { width: 36px; height: 36px; }

.ticket-top-title {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
}

.ticket-top-sub { font-size: 0.75rem; opacity: 0.7; }

.ticket-number-badge {
    background: var(--gold);
    color: var(--ink);
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-top: 12px;
    display: inline-flex;
}

.ticket-admit {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

.ticket-details {
    padding: 22px 20px 12px;
    display: grid;
    gap: 10px;
    border-top: 2px dashed var(--line);
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}

.ticket-row strong { color: var(--muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ticket-row span { font-weight: 600; color: var(--ink); text-align: right; }

.ticket-footer {
    padding: 12px 20px 16px;
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ticket-bars {
    display: flex;
    gap: 2px;
    height: 28px;
    align-items: flex-end;
}
.ticket-bars i {
    display: block;
    width: 3px;
    background: var(--ink);
    border-radius: 1px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.modal-actions .btn {
    flex: 1;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-download {
    background: var(--blue);
    color: #ffffff;
    box-shadow: none;
    font-weight: 700;
}
.btn-download:hover { background: var(--blue-hover); color: #ffffff; }
.btn-download [data-icon],
.btn-download .ico,
.btn-download svg {
    color: #ffffff;
    stroke: currentColor;
}

.modal-close-btn {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
}

.success-list { display: grid; gap: 8px; margin-bottom: 16px; }
.success-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 12px;
}
.success-row-content strong {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
}

/* ---------- PROGRAMME ---------- */
.programme-timeline { display: grid; gap: 16px; }

.programme-day {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.programme-day-header { margin-bottom: 18px; }

.programme-day-number {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-section-title .ico { color: var(--blue); }
.comp-check svg { width: 12px; height: 12px; }

.programme-day-header h3 {
    font-family: var(--display);
    margin: 4px 0;
}

.programme-day-desc { color: var(--muted); font-size: 0.92rem; }

.programme-session {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.session-time {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--green-hover);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.programme-session h4 { font-size: 1rem; }
.programme-session p { color: var(--muted); font-size: 0.9rem; }

/* ---------- SPEAKERS / SPONSORS ---------- */
.speakers-grid,
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    margin-bottom: 12px;
}

.speaker-role { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin: 4px 0 8px; }
.speaker-bio { color: var(--muted); font-size: 0.9rem; }

.sponsors-tier { margin-top: 36px; }
.sponsors-tier-title {
    font-family: var(--display);
    margin-bottom: 14px;
}

.sponsor-logo,
.sponsor-placeholder {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink);
}

.sponsors-cta {
    margin-top: 40px;
    padding: 36px;
    background: var(--bg);
    border-radius: 18px;
    text-align: center;
}

.sponsors-cta h3 { font-family: var(--display); margin-bottom: 8px; }
.sponsors-cta p { color: var(--muted); margin-bottom: 16px; }

.notice {
    padding: 28px;
    background: var(--bg);
    border-radius: var(--radius);
    color: var(--muted);
}

/* ---------- ANIM ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.fade-up.visible { opacity: 1; transform: none; }

.hero-copy > * {
    animation: riseIn 0.7s cubic-bezier(.22,1,.36,1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.41s; }

.hero-visual { animation: riseIn 0.9s 0.2s cubic-bezier(.22,1,.36,1) both; }

.event-hero .container > * {
    animation: riseIn 0.7s cubic-bezier(.22,1,.36,1) both;
}
.event-hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.event-hero .container > *:nth-child(2) { animation-delay: 0.14s; }
.event-hero .container > *:nth-child(3) { animation-delay: 0.23s; }
.event-hero .container > *:nth-child(4) { animation-delay: 0.32s; }
.event-hero .container > *:nth-child(5) { animation-delay: 0.41s; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .fade-up { opacity: 1; transform: none; }
}

body.modal-open { overflow: hidden; }

.modal {
    z-index: 200;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.modal-box.ticket-modal {
    width: min(440px, 100%);
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.ticket-pass {
    --ink: #0b1020;
    --text: #16192b;
    --muted: #5c6178;
    --line: #e6e8f0;
    --blue: #1b1eff;
    --white: #ffffff;
    --gold: #ffb800;
    background: #ffffff;
    color: #16192b;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 16, 32, 0.28);
    margin-bottom: 16px;
}

.ticket-pass-top {
    display: flex;
    align-items: center;
    padding: 18px 20px 16px;
    background: #070814;
    color: #ffffff;
}

.ticket-pass-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-pass-brand strong {
    display: block;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.ticket-pass-brand span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.ticket-chip {
    background: var(--gold);
    color: #0b1020;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}

.ticket-pass-hero {
    padding: 22px 18px 8px;
    background:
        radial-gradient(280px 120px at 100% 0%, rgba(0, 214, 143, 0.22), transparent 60%),
        radial-gradient(240px 120px at 0% 100%, rgba(255, 184, 0, 0.2), transparent 55%),
        linear-gradient(160deg, #0b1020, #1416a8);
    color: #ffffff;
}

.ticket-pass.is-secu .ticket-pass-hero {
    background:
        radial-gradient(280px 120px at 100% 0%, rgba(0, 214, 143, 0.35), transparent 60%),
        radial-gradient(240px 120px at 0% 100%, rgba(27, 30, 255, 0.18), transparent 55%),
        linear-gradient(160deg, #071410, #0a7a54);
}

.ticket-pass.is-ctf .ticket-pass-hero {
    background:
        radial-gradient(280px 120px at 100% 0%, rgba(255, 184, 0, 0.38), transparent 60%),
        radial-gradient(240px 120px at 0% 100%, rgba(27, 30, 255, 0.18), transparent 55%),
        linear-gradient(160deg, #1a1404, #a07800);
}

.ticket-pass.is-secu .ticket-chip { background: #00d68f; }
.ticket-pass.is-ctf .ticket-chip { background: #ffb800; }

.ticket-pass-hero h2 {
    font-family: var(--display);
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
    word-break: break-word;
}

.ticket-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

.ticket-year {
    color: var(--gold);
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.95rem;
    margin-top: 4px;
}

.ticket-pass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
}

.ticket-pass-grid small {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.ticket-pass-grid strong {
    font-size: 0.92rem;
    color: #16192b;
    word-break: break-word;
}

.ticket-pass-full { grid-column: 1 / -1; }

.ticket-pass-stub {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px 18px 18px;
    border-top: 2px dashed var(--line);
    position: relative;
}

.ticket-pass-stub::before,
.ticket-pass-stub::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: rgba(11, 16, 32, 0.72);
    border-radius: 50%;
    top: -10px;
}
.ticket-pass-stub::before { left: -9px; }
.ticket-pass-stub::after { right: -9px; }

.ticket-qr {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.ticket-qr img,
.ticket-qr canvas,
.ticket-qr svg {
    width: 80px !important;
    height: 80px !important;
    display: block;
}

.ticket-qr table {
    width: 80px;
    height: 80px;
    border-collapse: collapse;
}

.ticket-pass-stub small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ticket-pass-stub strong {
    display: block;
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #1b1eff;
    margin: 2px 0 6px;
}
.ticket-pass-stub p { font-size: 0.78rem; color: var(--muted); }

.confirm-note {
    padding: 0 18px 18px;
    font-size: 0.85rem;
    color: var(--muted);
}

html[data-theme="dark"] .comp-option.track-blue .comp-option-label {
    background: linear-gradient(180deg, rgba(109, 112, 255, 0.2) 0%, var(--card) 72%);
    border-color: #3a3d78;
}
html[data-theme="dark"] .comp-option.track-green .comp-option-label {
    background: linear-gradient(180deg, rgba(0, 214, 143, 0.16) 0%, var(--card) 72%);
    border-color: #1d5c48;
}
html[data-theme="dark"] .comp-option.track-gold .comp-option-label {
    background: linear-gradient(180deg, rgba(255, 184, 0, 0.16) 0%, var(--card) 72%);
    border-color: #6b5420;
}

.bottom-nav { display: none; }

.ticket-pass.exporting,
.ticket-export-stage .ticket-pass {
    width: 420px;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}
.ticket-pass.exporting .ticket-pass-stub::before,
.ticket-pass.exporting .ticket-pass-stub::after,
.ticket-export-stage .ticket-pass-stub::before,
.ticket-export-stage .ticket-pass-stub::after {
    display: none;
}
.ticket-export-stage .ticket-pass-grid,
.ticket-pass.exporting .ticket-pass-grid {
    grid-template-columns: 1fr 1fr;
}
.ticket-export-stage .ticket-pass-stub,
.ticket-pass.exporting .ticket-pass-stub {
    grid-template-columns: 88px 1fr;
}
.ticket-export-stage .ticket-pass-brand img,
.ticket-export-stage .ticket-pass-brand svg,
.ticket-pass.exporting .ticket-pass-brand img,
.ticket-pass.exporting .ticket-pass-brand svg {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
}
.ticket-export-stage .ticket-qr,
.ticket-pass.exporting .ticket-qr {
    width: 88px;
    height: 88px;
}
.ticket-export-stage .ticket-qr img,
.ticket-export-stage .ticket-qr canvas,
.ticket-export-stage .ticket-qr svg,
.ticket-pass.exporting .ticket-qr img,
.ticket-pass.exporting .ticket-qr canvas,
.ticket-pass.exporting .ticket-qr svg {
    width: 80px !important;
    height: 80px !important;
}
.ticket-modal .modal-close-btn { color: rgba(255,255,255,0.85); }
.ticket-modal .btn-download {
    background: #1b1eff;
    color: #ffffff;
}
.ticket-modal .btn-download:hover { background: #1416d4; }
.ticket-modal .modal-actions {
    justify-content: center;
}
.ticket-modal .modal-actions .btn {
    flex: 0 1 auto;
    min-width: min(100%, 280px);
}
.ticket-modal .btn-submit { margin-top: 4px; }

.bn-item .ico { width: auto; height: auto; }
.bn-item.bn-main .ico,
.bn-item.bn-main [data-icon] {
    width: 44px;
    height: 44px;
}

@media (max-width: 960px) {
    .navbar-links { display: none; }
    .navbar-mobile-toggle,
    .navbar-mobile { display: none !important; }
    .navbar { height: 58px; }
    .theme-toggle { margin-left: auto; }
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    body.staff-page { padding-bottom: 0; }
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 90;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 12px 40px rgba(11, 16, 32, 0.14);
        padding: 8px 6px;
        justify-content: space-around;
        align-items: flex-end;
    }
    .bn-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: var(--muted);
        font-size: 0.62rem;
        font-weight: 600;
        padding: 5px 0 3px;
        border-radius: 14px;
    }
    .bn-item [data-icon] svg { width: 18px; height: 18px; }
    .bn-item.is-active { color: var(--blue); }
    .bn-item.bn-main {
        color: var(--ink);
    }
    .bn-item.bn-main [data-icon] {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--blue);
        color: var(--white);
        display: grid;
        place-items: center;
        margin-top: -18px;
        box-shadow: 0 8px 18px rgba(27, 30, 255, 0.35);
    }
    .bn-item.bn-main [data-icon] svg { width: 20px; height: 20px; }
    .bn-item.bn-main.is-active [data-icon] { background: var(--blue-hover); }
    .hero-content,
    .event-feature,
    .footer-grid,
    .event-row,
    .form-layout { grid-template-columns: 1fr; }
    .bureau-grid { grid-template-columns: repeat(2, 1fr); }
    .form-aside { position: static; }
    .hero-visual { display: none; }
    .grid-3,
    .grid-4,
    .competitions-grid,
    .info-grid,
    .speakers-grid,
    .sponsors-grid { grid-template-columns: 1fr 1fr; }
    .arena-link {
        grid-template-columns: 56px 1fr;
    }
    .arena-link-go { display: none; }
    .programme-session { grid-template-columns: 1fr; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; }
}

@media (max-width: 640px) {
    :root { --pad: 16px; --nav-h: 58px; }
    .grid-3,
    .grid-4,
    .competitions-grid,
    .info-grid,
    .speakers-grid,
    .sponsors-grid,
    .form-row,
    .event-row,
    .ticket-pass-grid { grid-template-columns: 1fr; }
    .info-card { min-height: 148px; }
    .bureau-grid { grid-template-columns: repeat(2, 1fr); }
    .comp-option-label { min-height: 148px; padding: 12px 8px; }
    .comp-check { display: none; }
    .hero { padding: 36px 0 48px; }
    .section { padding: 56px 0; }
    .event-feature-copy { padding: 24px; }
    .footer-simple { flex-direction: column; align-items: flex-start; }
    .form-card-header, .form-card-body { padding-left: 18px; padding-right: 18px; }
    .page-header { padding: 36px 0 28px; }
    .page-header h1 { font-size: 1.7rem; }
    .hero h1 { font-size: 2.1rem; }
    .ticket-pass-stub { grid-template-columns: 72px 1fr; }
    .ticket-qr { width: 72px; height: 72px; }
    .ticket-qr img,
    .ticket-qr canvas,
    .ticket-qr svg,
    .ticket-qr table { width: 64px !important; height: 64px !important; }
    .notify-stack { top: 10px; right: 10px; }
    .size-selector { grid-template-columns: repeat(3, 1fr); }
}

.staff-gate[hidden],
.staff-app[hidden] { display: none !important; }

.staff-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 620px at 12% -10%, rgba(99, 102, 241, 0.30), transparent 62%),
        radial-gradient(760px 560px at 92% 8%, rgba(34, 211, 238, 0.24), transparent 60%),
        radial-gradient(820px 640px at 68% 108%, rgba(244, 63, 94, 0.16), transparent 62%),
        var(--page);
}

.staff-gate-card {
    width: min(420px, 100%);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-line);
    border-radius: 24px;
    padding: 30px 26px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.staff-gate-card h1 {
    font-family: var(--display);
    font-size: 1.6rem;
    margin: 6px 0 8px;
}

.staff-gate-card > p { color: var(--muted); margin-bottom: 18px; }

/* Le dashboard staff reste sombre quel que soit le thème du site. */
.staff-page-admin {
    --dash-bg: #090b13;
    --glass: rgba(255, 255, 255, 0.045);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --glass-fill: rgba(255, 255, 255, 0.05);
    --glass-fill-hi: rgba(255, 255, 255, 0.1);
    --glass-line: rgba(255, 255, 255, 0.09);
    --glass-line-hi: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    --glass-shadow-hi: 0 24px 56px rgba(0, 0, 0, 0.55);
    --glass-text: #eef0f7;
    --glass-muted: rgba(238, 240, 247, 0.55);
    --accent-a: #7c86ff;
    --accent-b: #f0b040;
    background: var(--dash-bg);
    color: var(--glass-text);
}

/* La sidebar est en position fixed, donc hors flux : le contenu est
   simplement décalé de sa largeur (18 + 264 + 18). */
.staff-page-admin .staff-app.is-open {
    display: block;
    min-height: 100vh;
    padding: 18px 18px 18px 300px;
    background:
        radial-gradient(900px 620px at 8% -14%, rgba(124, 134, 255, 0.16), transparent 62%),
        radial-gradient(820px 600px at 96% 4%, rgba(255, 255, 255, 0.05), transparent 58%),
        radial-gradient(900px 660px at 76% 114%, rgba(124, 134, 255, 0.1), transparent 62%),
        var(--dash-bg);
}

.dash-sidebar {
    background: var(--glass);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    backdrop-filter: blur(26px) saturate(140%);
    border: 1px solid var(--glass-line);
    border-radius: 26px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--glass-text);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* `fixed` plutôt que `sticky` : html/body ont overflow-x hidden,
       ce qui en fait des conteneurs de défilement et neutralise sticky. */
    position: fixed;
    top: 18px;
    left: 18px;
    width: 264px;
    height: calc(100vh - 36px);
    height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 20;
}

.dash-sidebar::-webkit-scrollbar { width: 4px; }
.dash-sidebar::-webkit-scrollbar-track { background: transparent; }

.dash-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-line);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.dash-mark img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(1.5) saturate(1.15);
}

.dash-brand strong { display: block; font-size: 0.95rem; }
.dash-brand small { color: var(--glass-muted); font-size: 0.72rem; }

.dash-nav { display: grid; gap: 6px; }

.dash-nav a,
.dash-logout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--glass-muted);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    padding: 11px 13px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-align: left;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.dash-nav a .ico,
.dash-nav a svg,
.dash-logout svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.dash-nav a:hover {
    background: var(--glass-fill);
    color: var(--glass-text);
}

.dash-nav a.is-active {
    color: var(--glass-text);
    background: var(--glass-fill-hi);
    border-color: var(--glass-line-hi);
}

.dash-logout {
    margin-top: auto;
    color: var(--glass-muted);
    background: var(--glass-fill);
    border-color: var(--glass-line);
}

.dash-logout:hover {
    color: #ffd9d9;
    background: rgba(220, 60, 60, 0.2);
    border-color: rgba(220, 60, 60, 0.38);
}

.dash-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 16, 32, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 30;
}

.dash-content {
    padding: 6px 6px 30px;
    min-width: 0;
}

.dash-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.dash-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
}

.dash-menu span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--glass-text);
}

.dash-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glass-muted);
}

.dash-view > .dash-kicker {
    margin: 2px 0 10px;
}

.dash-top h1 {
    font-family: var(--display);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    color: var(--glass-text);
}

.dash-search {
    margin-left: auto;
    width: min(320px, 100%);
    padding: 12px 16px;
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--glass-text);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.dash-search::placeholder { color: var(--glass-muted); }

.dash-search:focus {
    border-color: rgba(124, 134, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(124, 134, 255, 0.12);
}

.dash-view { display: none; }
.dash-view.is-on { display: block; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dash-stats article {
    position: relative;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-line);
    border-radius: 20px;
    padding: 18px 18px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--ease), filter var(--ease), border-color var(--ease);
}

/* Fond teinté par carte, assez sourd pour rester dans l'esprit verre dépoli. */
.dash-stats article:nth-child(1) {
    background: linear-gradient(155deg, rgba(124, 134, 255, 0.2), rgba(124, 134, 255, 0.05) 72%);
}

.dash-stats article:nth-child(2) {
    background: linear-gradient(155deg, rgba(170, 130, 255, 0.19), rgba(170, 130, 255, 0.05) 72%);
}

.dash-stats article:nth-child(3) {
    background: linear-gradient(155deg, rgba(52, 199, 143, 0.19), rgba(52, 199, 143, 0.05) 72%);
}

.dash-stats article:nth-child(4) {
    background: linear-gradient(155deg, rgba(240, 176, 64, 0.19), rgba(240, 176, 64, 0.05) 72%);
}

.dash-stats article.is-total strong { font-size: 1.7rem; }

.dash-stats-tracks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-stats-tracks article:nth-child(1) {
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05) 72%);
}

.dash-stats-tracks article:nth-child(2) {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05) 72%);
}

.dash-stats-tracks article:nth-child(3) {
    background: linear-gradient(155deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05) 72%);
}

.dash-stats-tracks small {
    display: block;
    margin-top: 6px;
    color: var(--glass-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.dash-stats article:hover {
    transform: translateY(-2px);
    filter: brightness(1.18);
    border-color: var(--glass-line-hi);
}

.dash-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dash-gate {
    position: relative;
    text-align: left;
    border: 1px solid var(--glass-line);
    border-radius: 26px;
    padding: 24px 22px 20px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--glass-text);
    font: inherit;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.dash-gate::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.dash-gate.is-people::before { background: radial-gradient(circle, rgba(124, 134, 255, 0.5), transparent 68%); }
.dash-gate.is-teams::before { background: radial-gradient(circle, rgba(240, 176, 64, 0.42), transparent 68%); }

.dash-gate:hover {
    transform: translateY(-4px);
    background: var(--glass-fill-hi);
    box-shadow: var(--glass-shadow-hi), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dash-gate:hover::before { opacity: 1; }

.dash-gate.is-people:hover { border-color: rgba(124, 134, 255, 0.45); }
.dash-gate.is-teams:hover { border-color: rgba(240, 176, 64, 0.45); }

.dash-gate-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--glass-line);
    background: var(--glass-fill);
    color: var(--glass-muted);
    transition: color var(--ease), border-color var(--ease);
}

.dash-gate.is-people:hover .dash-gate-tag { color: var(--accent-a); border-color: rgba(124, 134, 255, 0.4); }
.dash-gate.is-teams:hover .dash-gate-tag { color: var(--accent-b); border-color: rgba(240, 176, 64, 0.4); }

.dash-gate strong {
    font-family: var(--display);
    font-size: 3rem;
    line-height: 1;
    margin: 16px 0 4px;
    letter-spacing: -0.04em;
    color: var(--glass-text);
    transition: color var(--ease);
}

.dash-gate.is-people:hover strong { color: var(--accent-a); }
.dash-gate.is-teams:hover strong { color: var(--accent-b); }

.dash-gate h2 {
    font-family: var(--display);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.dash-gate p { color: var(--glass-muted); font-size: 0.88rem; margin-bottom: 16px; }

.dash-preview {
    width: 100%;
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.dash-preview li {
    font-size: 0.82rem;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-line);
    color: var(--glass-muted);
}

.dash-preview li b { color: var(--glass-text); font-weight: 600; }

.dash-preview li.is-empty {
    font-style: italic;
    border-style: dashed;
    background: transparent;
}

.dash-gate-go {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--glass-line);
    background: var(--glass-fill);
    color: var(--glass-muted);
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.dash-gate.is-people:hover .dash-gate-go {
    background: var(--accent-a);
    border-color: var(--accent-a);
    color: #0b0d16;
}

.dash-gate.is-teams:hover .dash-gate-go {
    background: var(--accent-b);
    border-color: var(--accent-b);
    color: #171205;
}

.dash-stats strong {
    display: block;
    font-family: var(--display);
    font-size: 1.9rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--glass-text);
}

.dash-stats span { color: var(--glass-muted); font-size: 0.8rem; font-weight: 500; }

.dash-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dash-back {
    border: 1px solid var(--glass-line);
    background: var(--glass-fill);
    color: var(--glass-muted);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.dash-back:hover {
    color: var(--glass-text);
    background: var(--glass-fill-hi);
    border-color: var(--glass-line-hi);
}

.dash-panel {
    position: relative;
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--glass-line);
    border-radius: 26px;
    padding: 22px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dash-panel-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--glass-muted);
}

.dash-panel.is-people .dash-panel-tag { color: var(--accent-a); }
.dash-panel.is-teams .dash-panel-tag { color: var(--accent-b); }

.dash-panel.is-teams .dash-count {
    color: var(--accent-b);
    border-color: rgba(240, 176, 64, 0.3);
    background: rgba(240, 176, 64, 0.12);
}

.dash-panel-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dash-panel-head h2 {
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--glass-text);
}

.dash-count {
    background: rgba(124, 134, 255, 0.14);
    border: 1px solid rgba(124, 134, 255, 0.3);
    color: var(--accent-a);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 11px;
    border-radius: 999px;
}

.dash-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: filter var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}

.dash-btn:hover { filter: brightness(1.1); }

.dash-btn.is-primary {
    background: #4f57e8;
    color: #f4f5ff;
}

.dash-btn.is-gold {
    background: #d98014;
    color: #201404;
}

.dash-btn.is-soft {
    background: var(--glass-fill);
    border-color: var(--glass-line);
    color: var(--glass-muted);
}

.dash-btn.is-soft:hover {
    background: var(--glass-fill-hi);
    border-color: var(--glass-line-hi);
    color: var(--glass-text);
}

.dash-ticket-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.staff-ticket-store {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 420px;
    pointer-events: none;
}

.staff-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--glass-line);
    background: rgba(0, 0, 0, 0.14);
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    color: var(--glass-text);
}

.staff-table th,
.staff-table td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid var(--glass-line);
    vertical-align: middle;
}

.staff-table tbody tr:last-child td { border-bottom: 0; }

.staff-table tbody tr { transition: background var(--ease); }

.staff-table tbody tr:hover { background: var(--glass-fill); }

.staff-table thead th {
    color: var(--glass-muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: rgba(255, 255, 255, 0.03);
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.71rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.dash-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}

.dash-pill.is-ok {
    background: #0f9d63;
    color: #f2fff9;
}

.dash-pill.is-wait {
    background: #d98014;
    color: #201404;
}

.staff-page-scan {
    background: #070814;
}

.staff-page-scan .staff-gate,
.staff-page-admin .staff-gate {
    background:
        radial-gradient(900px 620px at 12% -10%, rgba(124, 134, 255, 0.18), transparent 62%),
        radial-gradient(760px 560px at 92% 8%, rgba(255, 255, 255, 0.05), transparent 60%),
        #090b13;
}

.staff-page-scan .staff-gate-card,
.staff-page-admin .staff-gate-card {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
    color: #eef0f7;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.staff-page-scan .staff-gate-card > p,
.staff-page-scan .staff-gate-card label,
.staff-page-admin .staff-gate-card > p,
.staff-page-admin .staff-gate-card label { color: rgba(238, 240, 247, 0.6); }

.staff-page-scan .staff-gate-card input,
.staff-page-admin .staff-gate-card input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #eef0f7;
}

.staff-page-scan .staff-app.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #070814;
    color: #fff;
}

.scan-app { width: 100%; }

.scan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top));
    gap: 10px;
}

.scan-top strong {
    font-family: var(--display);
    font-size: 0.95rem;
}

.scan-back,
.scan-quit {
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.08);
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.scan-stage {
    position: relative;
    flex: 1;
    min-height: 42vh;
    margin: 0 12px;
    border-radius: 22px;
    overflow: hidden;
    background: #11152a;
}

.scan-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-mask {
    position: absolute;
    inset: 18% 16%;
    border-radius: 18px;
    box-shadow: 0 0 0 2000px rgba(7, 8, 20, 0.45);
    pointer-events: none;
}

.scan-mask span {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
}

.scan-mask span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-mask span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-mask span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-mask span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.scan-hint {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    pointer-events: none;
}

.scan-sheet {
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
}

.scan-popup {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    background: rgba(7, 8, 20, 0.68);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.scan-popup[hidden] { display: none !important; }

.scan-popup-card {
    width: min(340px, 100%);
    text-align: center;
    padding: 34px 22px 22px;
    border-radius: 28px;
    background: rgba(18, 22, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: scanPopIn 0.34s cubic-bezier(.2, .9, .2, 1);
}

@keyframes scanPopIn {
    from { opacity: 0; transform: translateY(16px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.scan-popup-mark {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.scan-popup.is-ok .scan-popup-mark {
    background: #12b76a;
    box-shadow: 0 0 0 12px rgba(18, 183, 106, 0.2);
    animation: scanMarkPop 0.42s cubic-bezier(.2, 1.3, .3, 1);
}

.scan-popup.is-ok .scan-popup-mark::after,
.scan-popup.is-warn .scan-popup-mark::after,
.scan-popup.is-bad .scan-popup-mark::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    animation: scanRing 0.7s 0.08s ease-out both;
}

.scan-popup.is-ok .scan-popup-mark::after { border: 2px solid rgba(18, 183, 106, 0.5); }

.scan-popup.is-warn .scan-popup-mark {
    background: #d98014;
    box-shadow: 0 0 0 12px rgba(217, 128, 20, 0.22);
    animation: scanMarkPop 0.42s cubic-bezier(.2, 1.3, .3, 1);
}

.scan-popup.is-warn .scan-popup-mark::after { border: 2px solid rgba(217, 128, 20, 0.5); }

.scan-popup.is-bad .scan-popup-mark {
    background: #dc2626;
    box-shadow: 0 0 0 12px rgba(220, 38, 38, 0.22);
    animation: scanMarkPop 0.42s cubic-bezier(.2, 1.3, .3, 1);
}

.scan-popup.is-bad .scan-popup-mark::after { border: 2px solid rgba(220, 38, 38, 0.5); }

.scan-popup-mark svg {
    width: 48px;
    height: 48px;
    stroke: #fff;
    stroke-width: 2.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scan-popup.is-ok .scan-popup-mark svg .scan-check-path,
.scan-popup.is-bad .scan-popup-mark svg .scan-x-path {
    stroke-width: 3.2;
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
    animation: scanCheck 0.42s 0.16s ease forwards;
}

.scan-popup.is-bad .scan-popup-mark svg .scan-x-path-b {
    animation-delay: 0.28s;
}

.scan-popup.is-warn .scan-popup-mark svg .scan-warn-tri,
.scan-popup.is-warn .scan-popup-mark svg .scan-warn-bang {
    stroke-width: 2.6;
    fill: none;
}

.scan-popup.is-warn .scan-popup-mark svg .scan-warn-dot {
    fill: #fff;
    stroke: none;
}

@keyframes scanMarkPop {
    from { transform: scale(0.35); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes scanRing {
    from { transform: scale(0.72); opacity: 0.9; }
    to { transform: scale(1.38); opacity: 0; }
}

@keyframes scanCheck {
    to { stroke-dashoffset: 0; }
}

.scan-popup-card h2 {
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.scan-popup-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 22px;
}

.scan-popup-ok {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    background: #fff;
    color: #070814;
}

.scan-popup.is-ok .scan-popup-ok { background: #12b76a; color: #f2fff9; }
.scan-popup.is-warn .scan-popup-ok { background: #d98014; color: #201404; }
.scan-popup.is-bad .scan-popup-ok { background: #dc2626; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .scan-popup-card,
    .scan-popup.is-ok .scan-popup-mark,
    .scan-popup.is-warn .scan-popup-mark,
    .scan-popup.is-bad .scan-popup-mark,
    .scan-popup.is-ok .scan-popup-mark::after,
    .scan-popup.is-warn .scan-popup-mark::after,
    .scan-popup.is-bad .scan-popup-mark::after,
    .scan-popup.is-ok .scan-popup-mark svg .scan-check-path,
    .scan-popup.is-bad .scan-popup-mark svg .scan-x-path { animation: none; }
}

.scan-controls {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.scan-btn {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

.scan-btn-main { background: #1b1eff; color: #fff; }
.scan-btn-ghost { background: rgba(255,255,255,0.1); color: #fff; }

.scan-manual label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.scan-manual-row { display: flex; gap: 8px; }

.scan-manual-row input {
    flex: 1;
    min-height: 48px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: #161a2c;
    color: #fff;
    padding: 0 12px;
    font-size: 16px;
}

.scan-manual-row button {
    min-width: 64px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #070814;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 960px) {
    .staff-page-admin .staff-app.is-open { padding: 12px; }
    .dash-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(272px, 86vw);
        height: 100%;
        top: 0;
        z-index: 40;
        border-radius: 0 26px 26px 0;
        background: #12141f;
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }
    .dash-sidebar.is-open { transform: none; }
    .dash-scrim.is-on { display: block; }
    .dash-menu { display: flex; }
    .dash-top { flex-wrap: wrap; }
    .dash-search { width: 100%; margin-left: 0; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-stats-tracks { grid-template-columns: 1fr; }
    .dash-split { grid-template-columns: 1fr; }
    .dash-gate { min-height: 0; }
    .dash-content { padding: 4px 2px 24px; }
}

@media (min-width: 720px) {
    .scan-stage { min-height: 52vh; max-width: 420px; margin-left: auto; margin-right: auto; }
    .scan-sheet { max-width: 420px; margin: 0 auto; width: 100%; }
}
