/* ═══════════════════════════════════════════════════════════════════
   FLAG'MALO · VPN ÉQUIPES
   Thème repris de account.flagmalo.fr : couleurs or, Barlow / Barlow
   Condensed, titres « Hacked », boutons à coins coupés.
   ═══════════════════════════════════════════════════════════════════ */

/* « Hacked » ne contient que A-Z : le reste s'affiche en Bebas Neue.
   Dépose HACKED_Title.ttf dans static/fonts/ pour l'activer. */
@font-face {
    font-family: 'Hacked';
    src: url('../fonts/HACKED_Title.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+0020, U+0041-005A, U+0061-007A;
}

:root {
    --bg: #05060a;
    --surface: rgba(16, 17, 25, .9);
    --surface-2: rgba(23, 24, 34, .95);
    --inset: rgba(5, 6, 10, .6);
    --line: rgba(242, 201, 76, .14);
    --line-strong: rgba(242, 201, 76, .42);

    --gold-50: #fff6d6;
    --gold-100: #fbe8a6;
    --gold-200: #f7d774;
    --gold-300: #f2c94c;
    --gold-400: #e3aa35;
    --gold-500: #c68d20;
    --gold-ink: #1a1204;
    --gold-fill: linear-gradient(180deg, #fbe7a0 0%, #f2c94c 45%, #deaa3e 100%);

    --text: #ede7d9;
    --text-dim: #b3ac9b;
    --text-faint: #7f796d;
    --ok: #6fdc8c;
    --ko: #ff7b72;

    --font-display: 'Hacked', 'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
    --font-label: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Consolas, monospace;

    --container: 1180px;
    --gutter: 16px;
    --header-h: 64px;
    --radius: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(.22, .7, .2, 1);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ── BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
#starfield { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60vmax 60vmax at 0% 0%, rgba(106, 42, 234, .13), transparent 65%),
        radial-gradient(50vmax 50vmax at 100% 45%, rgba(20, 80, 180, .11), transparent 65%),
        radial-gradient(45vmax 45vmax at 45% 100%, rgba(212, 137, 26, .06), transparent 65%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-200); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-50); }
strong { font-weight: 600; color: #fff; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--gold-ink); }
[hidden] { display: none !important; }

/* ── HEADER ──────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); }
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 7, 11, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(0, 0, 0, .35);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100% - 2 * var(--gutter), var(--container));
    height: 100%;
    margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--text); text-decoration: none; }
.brand__emblem {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(242, 201, 76, .25), rgba(242, 201, 76, .04));
    box-shadow: 0 0 0 1px rgba(242, 201, 76, .4);
    color: var(--gold-300);
    font-size: 1.1rem;
    object-fit: cover;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-300); }
.brand__meta { margin-top: .3rem; font-family: var(--font-label); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }

.main-nav { display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); margin-left: clamp(.5rem, 2vw, 2rem); margin-right: auto; }
.main-nav a {
    position: relative;
    padding: .4rem 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-300);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-300); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.user-chip { display: flex; align-items: center; gap: .7rem; }
.user-chip__text { text-align: right; line-height: 1.15; }
.user-chip__role { font-family: var(--font-label); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.user-chip__name { font-weight: 600; font-size: .95rem; color: var(--gold-100); }
.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(12, 13, 19, .7);
    color: var(--gold-200);
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--ko); border-color: rgba(255, 123, 114, .5); background: rgba(255, 123, 114, .08); }
.nav-toggle { display: none; }

@media (max-width: 959.98px) {
    .nav-toggle { display: grid; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: .5rem var(--gutter) 1.2rem;
        background: #06070b;
        border-bottom: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
    .main-nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
    .main-nav a::after { display: none; }
    .user-chip__text { display: none; }
    .user-chip { margin-left: auto; }
}
@media (max-width: 479.98px) { .brand__text { display: none; } }

/* ── PAGE ────────────────────────────────────────────────────────── */
.page {
    flex: 1;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding: calc(var(--header-h) + clamp(1.5rem, 4.5vw, 2.75rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.page--narrow { max-width: 560px; }

.eyebrow { font-family: var(--font-label); font-weight: 600; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 .75rem .25em 0; vertical-align: middle; border-radius: 2px; background: var(--gold-300); }

h1, .h1 {
    margin: .2rem 0 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gold-300);
}
h2 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--text); }
h3 { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.lead { margin-top: .5rem; color: var(--text-dim); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: .9rem; }
.ok { color: var(--ok); }
.ko { color: var(--ko); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.8rem; }
.page-head__text { flex: 1 1 320px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.crumb { display: inline-flex; gap: .4rem; align-items: center; margin-bottom: .4rem; font-family: var(--font-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--text-dim); text-decoration: none; }
.crumb:hover { color: var(--gold-200); }

.grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) {
    .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--side { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
.stack > * + * { margin-top: 1.2rem; }

/* ── CARTES ──────────────────────────────────────────────────────── */
.card {
    padding: clamp(1.1rem, 3vw, 1.6rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.card--strong { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.card--inset { background: var(--inset); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.card-head h2 { display: flex; align-items: center; gap: .6rem; }
.card-head h2 i { color: var(--gold-300); font-size: .95em; }
.card-title { font-family: var(--font-label); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.5rem; }
.stat { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat__label { font-family: var(--font-label); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.stat__value { margin-top: .2rem; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: .03em; color: var(--gold-300); }
.stat__sub { margin-top: .3rem; font-size: .88rem; color: var(--text-faint); }

.empty { padding: 2.4rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--text-dim); }
.empty i { display: block; margin-bottom: .6rem; font-size: 1.8rem; color: var(--gold-500); }

/* ── BOUTONS (coins coupés) ──────────────────────────────────────── */
.btn {
    --cut: 10px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .8em 1.4em;
    border: 0;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform .25s var(--ease), filter .25s, color .25s, opacity .25s;
}
.btn i { font-size: .9em; }
.btn:focus-visible { clip-path: none; outline: 2px solid var(--gold-50); outline-offset: 3px; border-radius: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn--gold { color: var(--gold-ink); background: var(--gold-fill); }
.btn--gold:hover:not(:disabled) { color: var(--gold-ink); filter: brightness(1.08); transform: translateY(-2px); }
.btn--ghost { color: var(--gold-100); background: rgba(242, 201, 76, .5); }
.btn--ghost::before, .btn--danger-ghost::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: #0e0f15;
    clip-path: polygon(calc(var(--cut) - .6px) 0, 100% 0, 100% calc(100% - var(--cut) + .6px), calc(100% - var(--cut) + .6px) 100%, 0 100%, 0 calc(var(--cut) - .6px));
    transition: background-color .25s;
}
.btn--ghost:hover:not(:disabled) { color: #fff; transform: translateY(-2px); }
.btn--ghost:hover::before { background: #1b1b21; }
.btn--danger { color: #fff; background: linear-gradient(180deg, #ef6b63 0%, #c93c35 100%); }
.btn--danger:hover:not(:disabled) { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }
.btn--danger-ghost { color: #ffc1bb; background: rgba(255, 123, 114, .55); }
.btn--danger-ghost:hover:not(:disabled) { color: #fff; transform: translateY(-2px); }
.btn--danger-ghost:hover::before { background: #2a1414; }
.btn--sm { --cut: 7px; font-size: .86rem; padding: .62em .95em; }
.btn--lg { --cut: 12px; font-size: 1.12rem; padding: 1em 1.8em; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.inline { display: inline; }

.link-btn { padding: 0; border: 0; background: none; color: var(--gold-200); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold-50); }

.tool {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(5, 6, 10, .6);
    color: var(--text-dim);
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
}
.tool:hover { color: var(--gold-100); border-color: var(--line-strong); }
.tool--warn:hover { color: var(--gold-200); }
.tool--ok:hover { color: var(--ok); border-color: rgba(111, 220, 140, .45); }
.tool--danger:hover { color: var(--ko); border-color: rgba(255, 123, 114, .5); background: rgba(255, 123, 114, .08); }
.tools { display: inline-flex; gap: .35rem; }

/* ── FORMULAIRES ─────────────────────────────────────────────────── */
.fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fields--2 { grid-template-columns: 1fr 1fr; } .fields--3 { grid-template-columns: repeat(3, 1fr); } }
.field label, .label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .96rem; color: var(--text); }
.field .req { color: var(--gold-300); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid rgba(242, 201, 76, .22);
    border-radius: var(--radius-sm);
    background: rgba(5, 6, 10, .75);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select option { background: #0e0f15; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold-300);
    background: rgba(5, 6, 10, .95);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, .18);
}
::placeholder { color: var(--text-faint); }
.mono-input { font-family: var(--font-mono) !important; font-size: .88rem !important; }
.help { margin-top: .35rem; font-size: .88rem; line-height: 1.45; color: var(--text-dim); }
.help i { margin-right: .3rem; color: var(--gold-400); }
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-weight: 500; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--gold-300); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.group + .group { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.group-title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.08rem; color: var(--gold-200); }

/* Choix de mode (cartes cliquables, comme le choix de pizza) */
.choices { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    height: 100%;
    padding: .75rem .9rem;
    border: 1px solid rgba(242, 201, 76, .22);
    border-radius: var(--radius-sm);
    background: rgba(5, 6, 10, .6);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.choice label:hover { border-color: var(--line-strong); }
.choice label span { font-weight: 400; font-size: .88rem; color: var(--text-dim); }
.choice input:checked + label { border-color: var(--gold-300); background: rgba(242, 201, 76, .12); color: var(--gold-100); }
.choice input:focus-visible + label { outline: 2px solid var(--gold-300); outline-offset: 2px; }

/* ── TABLEAUX ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card .table-wrap { border-radius: var(--radius-sm); background: var(--inset); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th {
    padding: .65rem .8rem;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(242, 201, 76, .06);
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    color: var(--gold-200);
}
td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(242, 201, 76, .03); }
td.num, th.num { text-align: right; white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
.row-link { color: var(--text); font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--gold-200); }
tr.is-off td { opacity: .6; }

/* ── BADGES ──────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .08rem .55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    font-weight: 600;
    font-size: .84rem;
    line-height: 1.55;
    white-space: nowrap;
    color: var(--text-dim);
}
.badge::before { content: ""; width: .5em; height: .5em; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.badge--plain::before { display: none; }
.badge-ok { background: rgba(111, 220, 140, .12); color: #a6ecb9; }
.badge-wait { background: rgba(242, 201, 76, .12); color: var(--gold-100); }
.badge-ko { background: rgba(255, 123, 114, .12); color: #ffc1bb; }
.badge-gold { background: var(--gold-fill); color: var(--gold-ink); }
.badge-gold::before { display: none; }
.pulse::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(111, 220, 140, .6); } 50% { box-shadow: 0 0 0 4px rgba(111, 220, 140, 0); } }

/* ── MESSAGES ────────────────────────────────────────────────────── */
.flashes { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.message { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid; border-radius: var(--radius-sm); font-size: .98rem; }
.message i { margin-top: .25rem; }
.message-error { border-color: rgba(255, 123, 114, .45); background: rgba(255, 123, 114, .1); color: #ffd7d3; }
.message-success { border-color: rgba(111, 220, 140, .45); background: rgba(111, 220, 140, .1); color: #d3f8de; }
.message-info { border-color: var(--line-strong); background: rgba(242, 201, 76, .08); color: var(--gold-50); }

/* ── CODE / CONFIG ───────────────────────────────────────────────── */
.code {
    display: inline-block;
    padding: .1rem .5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(242, 201, 76, .07);
    font-family: var(--font-mono);
    font-size: .88rem;
    color: var(--gold-100);
    white-space: nowrap;
}
.conf {
    position: relative;
    overflow-x: auto;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #030407;
    font-family: var(--font-mono);
    font-size: .82rem;
    line-height: 1.7;
    color: #e8e1cd;
    white-space: pre;
}
.conf .k { color: var(--gold-200); }
.conf .s { color: #9fb7ff; }
.conf .c { color: var(--text-faint); }
.qr { width: 100%; max-width: 260px; padding: 12px; border-radius: var(--radius-sm); background: #fff; }
.qr svg { width: 100%; height: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .96rem; }
.kv dt { font-family: var(--font-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .84rem; color: var(--text-dim); padding-top: .12rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ── PEERS (cartes joueur) ───────────────────────────────────────── */
.peer-list { display: grid; gap: .8rem; }
.peer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .3rem 1rem;
    align-items: center;
    padding: .95rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--inset);
    transition: border-color .2s;
}
.peer:hover { border-color: var(--line-strong); }
.peer.is-off { opacity: .65; }
.peer__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(242, 201, 76, .08); color: var(--gold-300); font-size: 1.1rem; }
.peer__name { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-weight: 700; color: var(--text); text-decoration: none; }
.peer__name:hover { color: var(--gold-200); }
.peer__meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .88rem; color: var(--text-dim); }
.peer__meta i { margin-right: .3rem; color: var(--gold-500); }
@media (max-width: 559.98px) {
    .peer { grid-template-columns: auto minmax(0, 1fr); }
    .peer .tools { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ── LOGIN ───────────────────────────────────────────────────────── */
.login { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .login { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); min-height: calc(100vh - var(--header-h) - 12rem); } }
.login h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.steps { display: grid; gap: .7rem; margin-top: 1.6rem; list-style: none; padding: 0; counter-reset: s; }
.steps li { display: flex; gap: .8rem; color: var(--text-dim); counter-increment: s; }
.steps li::before {
    content: counter(s);
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    margin-top: .05rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .85rem;
    color: var(--gold-200);
}

/* ── MODALE ──────────────────────────────────────────────────────── */
dialog {
    margin: auto;
    width: min(100% - 2 * var(--gutter), 560px);
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #0c0d14;
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.dialog__body { padding: clamp(1.2rem, 4vw, 1.8rem); }
.dialog__close { position: absolute; top: .8rem; right: .8rem; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: #040508; }
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding: 1.2rem 0;
    font-family: var(--font-label);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .8rem;
    color: var(--text-faint);
}

.fade-in { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media print {
    body { background: #fff; color: #000; }
    body::before, #starfield, .site-header, .site-footer, .no-print { display: none !important; }
    .page { padding: 0; width: 100%; }
    .card, .table-wrap { border-color: #999; background: #fff; }
    th { color: #000; background: #eee; }
    td, .code { color: #000; }
    h1 { color: #000; }
}
