/* ==========================================================================
   SEUMSENDER — Design system
   Terminal de trading du seum : noir profond, rouge perte, or "certificat"
   ========================================================================== */

:root {
    --bg: #09090a;
    --surface: #121214;
    --surface-2: #1a1a1d;
    --line: #2a2a2f;
    --line-strong: #3a3a41;
    --text: #f3efe7;
    --muted: #8d8a94;
    --faint: #5b5962;
    --red: #ff3b4e;
    --red-deep: #c4001f;
    --red-glow: rgba(255, 59, 78, 0.35);
    --gold: #f5c542;
    --green: #2ee59d;

    --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --font-serif: "Instrument Serif", Georgia, serif;

    --radius: 14px;
    --radius-sm: 8px;
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain discret sur tout le site */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.red { color: var(--red); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Ticker (bandeau défilant des pertes)
   -------------------------------------------------------------------------- */
.ticker {
    background: var(--red);
    color: #0b0b0b;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--red-deep);
}
.ticker__track {
    display: inline-flex;
    gap: 40px;
    padding: 7px 0;
    animation: ticker 45s linear infinite;
}
.ticker__item { display: inline-flex; gap: 8px; }
.ticker__item b { font-weight: 800; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 9, 10, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}
.logo__mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--red);
    border-radius: 6px;
    color: #0b0b0b;
    font-size: 14px;
    transform: rotate(-6deg);
    box-shadow: 0 0 24px var(--red-glow);
}
.logo span.light { color: var(--muted); }

.nav { display: flex; gap: 24px; }
.nav a {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; white-space: normal; text-align: center; }

.btn--red {
    background: var(--red);
    color: #0b0b0b;
    font-weight: 700;
    box-shadow: 0 8px 30px -8px var(--red-glow);
}
.btn--red:hover { background: #ff5767; box-shadow: 0 10px 40px -6px var(--red-glow); }

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--wallet.is-connected {
    border-color: rgba(46, 229, 157, 0.4);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 12px;
}
.btn--wallet.is-connected::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

/* --------------------------------------------------------------------------
   Typo
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--red);
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 0.005em;
    margin: 0;
}
.h-section {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.95;
    margin: 0 0 16px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0; }

/* --------------------------------------------------------------------------
   HOME — Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}
.hero::after {
    /* Halo rouge derrière le certificat */
    content: "";
    position: absolute;
    right: -10%;
    top: 5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 59, 78, 0.22), transparent 62%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero__title { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.98; margin: 22px 0 26px; }
.hero__title .red { display: block; text-shadow: 0 0 60px var(--red-glow); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.fact__value { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.fact__label { font-size: 13px; color: var(--muted); }

/* Certificat de démonstration (HTML) */
.cert-demo {
    position: relative;
    transform: rotate(2.5deg);
    transition: transform 0.4s ease;
}
.cert-demo:hover { transform: rotate(0deg) scale(1.01); }
.cert-demo canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.cert-demo__tag {
    position: absolute;
    left: -18px;
    bottom: 28px;
    transform: rotate(-6deg);
    background: var(--gold);
    color: #0b0b0b;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Étapes */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.step {
    background: var(--bg);
    padding: 36px 32px 40px;
    transition: background 0.2s;
}
.step:hover { background: var(--surface); }
.step__num {
    font-family: var(--font-display);
    font-size: 88px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-strong);
    transition: -webkit-text-stroke-color 0.2s;
}
.step:hover .step__num { -webkit-text-stroke-color: var(--red); }
.step h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 28px;
    margin: 18px 0 10px;
    letter-spacing: 0.01em;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Taxe de la victime */
.tax {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.formula {
    font-family: var(--font-mono);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.formula__line { font-size: 18px; margin-bottom: 22px; }
.formula__line .op { color: var(--faint); }
.formula table { width: 100%; border-collapse: collapse; font-size: 14px; }
.formula th {
    text-align: left;
    font-weight: 500;
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 0 10px;
}
.formula td { padding: 12px 0; border-top: 1px dashed var(--line); }
.formula td:last-child, .formula th:last-child { text-align: right; }

/* Bandeau CTA */
.cta-band {
    background: var(--red);
    color: #0b0b0b;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    /* Bougies baissières en filigrane */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200' viewBox='0 0 120 200'%3E%3Cg fill='%23000'%3E%3Crect x='10' y='20' width='14' height='60'/%3E%3Crect x='16' y='5' width='2' height='95'/%3E%3Crect x='50' y='60' width='14' height='70'/%3E%3Crect x='56' y='45' width='2' height='100'/%3E%3Crect x='90' y='110' width='14' height='80'/%3E%3Crect x='96' y='95' width='2' height='105'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-band__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-band .display { font-size: clamp(40px, 6vw, 80px); max-width: 800px; }
.btn--black { background: #0b0b0b; color: var(--text); font-weight: 700; }
.btn--black:hover { background: #222; }

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    color: var(--faint);
    font-size: 13px;
    margin-top: auto;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer .logo { font-size: 18px; color: var(--muted); }
.footer .logo__mark { width: 22px; height: 22px; font-size: 10px; }

/* --------------------------------------------------------------------------
   APP
   -------------------------------------------------------------------------- */
.app-head { padding: 48px 0 32px; }
.app-head .display { font-size: clamp(44px, 6vw, 76px); margin-top: 14px; }

.app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
    padding-bottom: 80px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.panel + .panel { margin-top: 16px; }
.panel__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.panel__num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    border: 1px solid rgba(255, 59, 78, 0.4);
    border-radius: 6px;
    padding: 3px 7px;
}
.panel__title {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 22px;
    letter-spacing: 0.02em;
    margin: 0;
    font-weight: 400;
}
.panel__hint { margin-left: auto; font-size: 12px; color: var(--faint); font-family: var(--font-mono); }
.panel__body { padding: 22px 24px 24px; }
.panel.is-locked { opacity: 0.45; pointer-events: none; }

.field + .field { margin-top: 18px; }
.label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.input, .textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.15); }
.input.mono { font-family: var(--font-mono); font-size: 13px; }
.textarea { resize: vertical; min-height: 84px; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.35; }

.row { display: flex; gap: 10px; }
.row .input { flex: 1; min-width: 0; }

/* Liste des pertes */
.trades { display: flex; flex-direction: column; gap: 8px; }
.trades__intro { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.trade {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.trade:hover { border-color: var(--line-strong); }
.trade input { position: absolute; opacity: 0; pointer-events: none; }
.trade__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.trade__main { min-width: 0; }
.trade__tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.trade__token {
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.trade__pnl { font-family: var(--font-mono); font-weight: 700; color: var(--red); font-size: 15px; text-align: right; }
.trade__tax { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }
.trade.is-checked { border-color: var(--red); background: rgba(255, 59, 78, 0.06); }
.trade.is-checked .trade__radio { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--red); }
.trade--search .trade__tag { color: var(--gold); }

.search-result { margin: 10px 0 0; font-size: 13px; font-family: var(--font-mono); }
.search-result.is-ok { color: var(--green); }
.search-result.is-ko { color: var(--red); }

/* Choix du fond */
.bgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bg-card {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    border: 2px solid var(--line);
    background: var(--bg) center / cover no-repeat;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    transition: border-color 0.15s, transform 0.15s;
    padding: 0;
}
.bg-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.bg-card.is-selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.18); }
.bg-card--upload { border-style: dashed; }

/* Récap paiement */
.checkout {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0 20px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 20px;
}
.checkout__label { font-size: 13px; color: var(--muted); }
.checkout__label small { display: block; font-size: 11px; color: var(--faint); font-family: var(--font-mono); margin-top: 2px; }
.checkout__value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; }

/* Aperçu */
.preview { position: sticky; top: 92px; }
.preview__frame {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.preview__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.badge {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 78, 0.45);
    color: var(--red);
    background: rgba(255, 59, 78, 0.08);
}
.preview canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.preview__note { margin: 14px 0 0; font-size: 12px; color: var(--faint); text-align: center; font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   $SEUM
   -------------------------------------------------------------------------- */
.token-hero { padding: 90px 0 70px; text-align: center; position: relative; overflow: hidden; }
.token-hero .display { font-size: clamp(64px, 13vw, 190px); margin: 20px 0; }
.token-hero .display .red { text-shadow: 0 0 80px var(--red-glow); }
.token-hero .lead { margin: 0 auto; }

.countdown { display: flex; justify-content: center; gap: 12px; margin: 48px 0 40px; }
.countdown__cell {
    min-width: 110px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 12px 14px;
}
.countdown__value { font-family: var(--font-mono); font-size: 46px; font-weight: 700; line-height: 1; }
.countdown__label { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.perk__icon { font-family: var(--font-mono); color: var(--gold); font-size: 13px; letter-spacing: 0.1em; }
.perk h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 26px; margin: 14px 0 8px; }
.perk p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-weight: 600;
    font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); max-width: 680px; }

/* --------------------------------------------------------------------------
   RANGS
   -------------------------------------------------------------------------- */
.rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 197, 66, 0.4);
    background: rgba(245, 197, 66, 0.08);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s;
}
.rank-chip:hover { background: rgba(245, 197, 66, 0.16); }

/* Carte "Ton rang" */
.rank-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    padding: 26px;
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.08), transparent 60%), var(--surface);
    border: 1px solid rgba(245, 197, 66, 0.3);
    border-radius: var(--radius);
}
.rank-card__emoji {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    font-size: 38px;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.rank-card__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rank-card__name { font-family: var(--font-display); text-transform: uppercase; font-size: 36px; line-height: 1.05; color: var(--gold); margin: 4px 0 10px; }
.rank-card__stats { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.rank-card__stats b { color: var(--text); font-size: 15px; }
.progress { margin-top: 16px; }
.progress__bar { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 999px; transition: width 0.6s ease; }
.progress__text { margin-top: 8px; font-size: 12px; color: var(--faint); font-family: var(--font-mono); }

/* Échelle des rangs */
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ladder__step {
    position: relative;
    padding: 20px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.ladder__emoji { font-size: 30px; line-height: 1; }
.ladder__name { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; margin: 12px 0 8px; line-height: 1.1; }
.ladder__req { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.ladder__step.is-reached { border-color: rgba(245, 197, 66, 0.35); }
.ladder__step.is-reached .ladder__name { color: var(--gold); }
.ladder__step.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.15); }
.ladder__step.is-current::after {
    content: "TOI";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #0b0b0b;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Tableau du classement */
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.board-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.board-stat__value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; }
.board-stat__label { font-size: 12px; color: var(--muted); }

.board { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.board td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.board tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; font-family: var(--font-mono); }
.board__pos { font-family: var(--font-display); font-size: 24px; color: var(--faint); width: 60px; }
.board tr:nth-child(1) .board__pos { color: var(--gold); }
.board tr:nth-child(2) .board__pos { color: #d7d3cc; }
.board tr:nth-child(3) .board__pos { color: #c98a52; }
.board__wallet { font-family: var(--font-mono); font-size: 13px; }
.board tr.is-me td { background: rgba(245, 197, 66, 0.06); }
.board tr.is-me .board__wallet::after { content: " (toi)"; color: var(--gold); }
.board__empty { padding: 40px; text-align: center; color: var(--muted); }

/* Compte X de la victime */
.xbox { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.xbox__status { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.xbox__status.is-ok { color: var(--green); }
.xbox__status.is-ko { color: var(--faint); }
.xbox__field { position: relative; }
.xbox__at {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    font-family: var(--font-mono);
    pointer-events: none;
}
.xbox__field .input { padding-left: 32px; font-family: var(--font-mono); font-size: 14px; }

/* Fenêtre de partage */
.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(5, 5, 6, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
}
.modal__card {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px var(--red-glow);
}
.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.modal__close:hover { color: var(--text); border-color: var(--text); }
.modal__title { font-size: clamp(38px, 6vw, 56px); margin: 10px 0 20px; }
.modal__img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.modal__rank { margin: 16px 0 4px; font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.modal__hint { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; }


/* Toast de montée de rang */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 140%);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: var(--surface-2);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 197, 66, 0.2);
    transition: transform 0.4s cubic-bezier(.2, 1.4, .4, 1);
    max-width: calc(100% - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast__emoji { font-size: 32px; }
.toast__title { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; color: var(--gold); }
.toast__text { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .header__actions .btn--red { display: none; }
}
@media (max-width: 900px) {
    .nav { display: none; }
}
@media (max-width: 980px) {
    .ladder { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
    .hero__grid, .tax, .app-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 70px; }
    .cert-demo { max-width: 560px; margin: 10px auto 0; }
    .steps, .perks { grid-template-columns: 1fr; }
    .preview { position: static; order: -1; }
}
@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .nav { display: none; }
    .header__inner { height: 60px; }
    .header__actions .btn--red { display: none; }
    .section { padding: 72px 0; }
    .bgs { grid-template-columns: repeat(3, 1fr); }
    .countdown__cell { min-width: 0; flex: 1; }
    .countdown__value { font-size: 32px; }
    .cert-demo__tag { left: 8px; }
    .row { flex-direction: column; }
    .ladder { grid-template-columns: repeat(2, 1fr); }
    .board-stats { grid-template-columns: 1fr; }
    .board .hide-sm { display: none; }
    .board td, .board th { padding: 12px 10px; }
    .rank-card { grid-template-columns: 1fr; text-align: left; }
    .rank-chip { padding: 6px 10px; font-size: 11px; }
    #connectBtn.is-connected { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track, .eyebrow::before { animation: none; }
    html { scroll-behavior: auto; }
}
