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

/* =====================================================================
   My-Wifi Console — design system
   Direction : console d'opérateur réseau. Barre latérale sombre teal,
   canvas clair froid, un seul accent (ambre) tenu en réserve.
   ===================================================================== */

:root {
    /* Marque — teal */
    --teal-800:#08322F; --teal-700:#0B4A45; --teal-600:#0F766E; --teal-500:#14B8A6;
    --teal-400:#2DD4BF; --teal-300:#5EEAD4;
    --teal-50:rgba(15,118,110,.08); --teal-100:rgba(15,118,110,.14);
    /* Accent — ambre (réserve) */
    --sun-600:#C2740A; --sun-500:#E68A0B; --sun-400:#F59E0B; --sun-50:rgba(230,138,11,.10);
    /* Signal — rouge/corail */
    --coral-600:#D42150; --coral-500:#F43F5E; --coral-50:rgba(212,33,80,.09); --coral-100:rgba(212,33,80,.18);
    --whatsapp:#25D366; --whatsapp-dark:#1EBE57;
    --wave:#1DC1E5; --wave-dark:#0EA5CB;

    /* Neutres froids (ardoise) */
    --bg:#EEF1F4; --surface:#FFFFFF; --surface-solid:#FFFFFF;
    --surface-alt:#F2F5F7; --surface-hover:#E9EEF1;
    --border:rgba(12,27,34,.09); --border-strong:rgba(12,27,34,.16);
    --text-primary:#0C1B22; --text-secondary:#53656D; --text-tertiary:#8695A0;
    --text-inverse:#F4F8F8;

    /* Barre latérale sombre */
    --side-bg:#0B2523; --side-bg-2:#0E2E2B; --side-border:rgba(255,255,255,.07);
    --side-text:#9FB6B2; --side-text-dim:#6E8783; --side-active:#F4FBFA;

    --radius-xs:8px; --radius-sm:10px; --radius-md:13px; --radius-lg:18px; --radius-xl:24px;
    --shadow-xs:0 1px 2px rgba(12,27,34,.05);
    --shadow-sm:0 1px 3px rgba(12,27,34,.07), 0 1px 2px rgba(12,27,34,.04);
    --shadow-md:0 6px 20px rgba(12,27,34,.08);
    --shadow-lg:0 18px 46px rgba(12,27,34,.12);
    --shadow-xl:0 28px 70px rgba(12,27,34,.18);
    --shadow-teal:0 8px 22px rgba(15,118,110,.28);

    --font-display:'Sora',sans-serif;
    --font-body:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,sans-serif;
    --font-mono:ui-monospace,'SFMono-Regular','JetBrains Mono',Menlo,Consolas,monospace;

    --sidebar-w:250px; --topbar-h:60px;
}

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

body {
    font-family:var(--font-body);
    background:var(--bg); color:var(--text-primary);
    -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
    font-size:14px; line-height:1.5;
}
h1 { font-family:var(--font-display); font-weight:800; letter-spacing:-.02em; font-size:1.45rem; line-height:1.2; }
h2 { font-family:var(--font-display); font-weight:700; font-size:1.02rem; letter-spacing:-.01em; }
.subtitle { color:var(--text-secondary); font-size:.85rem; line-height:1.55; }
code { font-family:var(--font-mono); background:var(--surface-alt); padding:2px 6px; border-radius:6px;
    font-size:.82em; color:var(--teal-700); border:1px solid var(--border); }
a { color:var(--teal-600); text-decoration:none; }
a:hover { color:var(--teal-700); }
strong { font-weight:700; }

/* Icônes SVG inline */
.ico { width:1.05em; height:1.05em; display:inline-block; vertical-align:-.16em; flex:0 0 auto; }

/* Pastilles de statut */
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:7px; flex:0 0 auto;
    vertical-align:.02em; box-shadow:0 0 0 3px transparent; }
.dot--ok   { background:var(--teal-500);  box-shadow:0 0 0 3px var(--teal-50); }
.dot--warn { background:var(--sun-400);   box-shadow:0 0 0 3px var(--sun-50); }
.dot--off  { background:var(--coral-500); box-shadow:0 0 0 3px var(--coral-50); }

/* =====================================================================
   MARQUE
   ===================================================================== */
.brand-mark { display:flex; align-items:center; justify-content:center; gap:9px; margin-bottom:18px; }
.brand-mark__word { font-family:var(--font-display); font-weight:800; font-size:1.25rem; letter-spacing:-.02em;
    color:var(--text-primary); }
.brand-mark__word span { color:var(--teal-600); }

/* =====================================================================
   BOUTONS
   ===================================================================== */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:11px 18px; border:1px solid transparent; border-radius:var(--radius-md);
    font-family:inherit; font-size:.84rem; font-weight:700; letter-spacing:-.01em;
    cursor:pointer; text-decoration:none; text-align:center; white-space:nowrap;
    transition:transform .08s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform:translateY(1px); }
.btn:disabled { opacity:.5; cursor:default; }
.btn .ico { width:1.05em; height:1.05em; }
.btn--icon-text { gap:8px; }
.btn-primary { background:linear-gradient(180deg,var(--teal-500),var(--teal-600)); color:#fff;
    box-shadow:var(--shadow-teal); width:100%; }
.btn-primary:hover { color:#fff; box-shadow:0 10px 26px rgba(15,118,110,.36); }
.btn-ghost { background:var(--surface); border-color:var(--border-strong); color:var(--text-secondary); }
.btn-ghost:hover { background:var(--surface-hover); color:var(--text-primary); }
.btn-whatsapp { background:linear-gradient(180deg,var(--whatsapp),var(--whatsapp-dark)); color:#fff; }
.btn-whatsapp:hover { color:#fff; }
.btn-wave { background:linear-gradient(180deg,var(--wave),var(--wave-dark)); color:#fff; width:100%;
    box-shadow:0 8px 22px rgba(29,193,229,.32); margin-bottom:10px; }
.btn-wave:hover { color:#fff; box-shadow:0 10px 26px rgba(29,193,229,.4); }

/* Bouton d'action carré (icône seule) */
.btn-icon { display:inline-flex; align-items:center; justify-content:center;
    background:var(--surface-alt); border:1px solid var(--border); border-radius:9px;
    width:34px; height:34px; cursor:pointer; color:var(--text-secondary);
    transition:background .15s, color .15s, border-color .15s; text-decoration:none; }
.btn-icon:hover { background:var(--surface-hover); color:var(--text-primary); border-color:var(--border-strong); }
.btn-icon .ico { width:17px; height:17px; }
.btn-icon[title*="upprim"]:hover, .btn-icon[title*="nnul"]:hover { color:var(--coral-600); border-color:var(--coral-100); background:var(--coral-50); }
.btn-icon[title*="alid"]:hover { color:var(--teal-700); border-color:var(--teal-100); background:var(--teal-50); }

/* Bouton d'icône neutre (topbar) */
.icon-btn { display:inline-flex; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:10px; border:1px solid transparent;
    background:transparent; color:var(--text-secondary); cursor:pointer; text-decoration:none;
    transition:background .15s, color .15s; }
.icon-btn:hover { background:var(--surface-alt); color:var(--text-primary); }
.icon-btn .ico { width:19px; height:19px; }

/* =====================================================================
   FORMULAIRES
   ===================================================================== */
.input-group { margin-bottom:14px; text-align:left; }
.input-label { display:block; font-size:.72rem; font-weight:700; color:var(--text-secondary);
    margin-bottom:6px; letter-spacing:.01em; }
.modern-input { width:100%; padding:11px 13px; background:var(--surface); border:1.5px solid var(--border-strong);
    border-radius:var(--radius-sm); font-family:inherit; font-size:.875rem; color:var(--text-primary); outline:none;
    transition:border-color .15s, box-shadow .15s; }
.modern-input::placeholder { color:var(--text-tertiary); }
.modern-input:focus { border-color:var(--teal-500); box-shadow:0 0 0 3px var(--teal-50); }
select.modern-input { cursor:pointer; appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2353656D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }
.inline-form { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.inline-form .modern-input, .inline-form select { flex:1; min-width:160px; }
.grid-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; }
.grid-form .input-group { margin-bottom:0; }

/* =====================================================================
   ALERTES
   ===================================================================== */
.alert { display:flex; align-items:center; gap:9px; padding:12px 14px; border-radius:var(--radius-sm);
    font-size:.82rem; font-weight:600; margin-bottom:16px; border:1px solid transparent; line-height:1.45; }
.alert .ico { width:17px; height:17px; flex:0 0 auto; }
.alert--error   { background:var(--coral-50); color:var(--coral-600); border-color:var(--coral-100); }
.alert--success { background:var(--teal-50);  color:var(--teal-700); border-color:var(--teal-100); }
.alert--warning { background:var(--sun-50);   color:var(--sun-600);  border-color:rgba(230,138,11,.22); }

/* =====================================================================
   PAGES AUTH (login / install)
   ===================================================================== */
.auth-body { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:16px;
    background:
      radial-gradient(1100px 500px at 50% -10%, rgba(15,118,110,.10), transparent 60%),
      linear-gradient(180deg,#0B2523,#0E2E2B);
}
.auth-card { width:100%; max-width:390px; background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-xl); box-shadow:var(--shadow-xl); padding:34px 28px; text-align:center; }

/* =====================================================================
   SHELL — barre latérale + zone principale
   ===================================================================== */
.app-shell { display:flex; min-height:100vh; }

.sidebar { width:var(--sidebar-w); flex-shrink:0; position:sticky; top:0; height:100vh;
    display:flex; flex-direction:column; color:var(--side-text);
    background:linear-gradient(180deg,var(--side-bg),var(--side-bg-2));
    border-right:1px solid var(--side-border); }
.sidebar::before { content:''; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(600px 300px at 20% 0%, rgba(20,184,166,.10), transparent 60%); }

.sidebar-brand { display:flex; align-items:center; gap:11px; padding:20px 20px 18px; position:relative; }
.brand-glyph { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
    border-radius:11px; color:var(--teal-300);
    background:rgba(20,184,166,.12); border:1px solid rgba(20,184,166,.22); }
.brand-glyph svg { width:24px; height:24px; }
.brand-word { font-family:var(--font-display); font-weight:800; font-size:1.18rem; letter-spacing:-.02em;
    color:#fff; line-height:1; display:flex; flex-direction:column; }
.brand-word span { color:var(--teal-400); display:inline; }
.brand-word small { font-family:var(--font-body); font-weight:600; font-size:.62rem; letter-spacing:.16em;
    text-transform:uppercase; color:var(--side-text-dim); margin-top:5px; }

.nav-scroll { flex:1; overflow-y:auto; padding:6px 12px 12px; position:relative; }
.nav-scroll::-webkit-scrollbar { width:6px; }
.nav-scroll::-webkit-scrollbar-thumb { background:rgba(255,255,255,.08); border-radius:6px; }
.nav-group { display:flex; flex-direction:column; gap:2px; margin-bottom:14px; }
.nav-heading { font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em;
    color:var(--side-text-dim); padding:10px 12px 6px; }
.nav-item { display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:10px;
    color:var(--side-text); text-decoration:none; font-weight:600; font-size:.86rem;
    position:relative; transition:background .14s, color .14s; }
.nav-item:hover { background:rgba(255,255,255,.05); color:#E8F4F2; }
.nav-item.active { background:rgba(20,184,166,.14); color:var(--side-active); }
.nav-item.active::before { content:''; position:absolute; left:-12px; top:50%; transform:translateY(-50%);
    width:3px; height:20px; border-radius:0 3px 3px 0; background:var(--teal-400);
    box-shadow:0 0 10px rgba(45,212,191,.7); }
.nav-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px;
    color:currentColor; opacity:.85; }
.nav-item.active .nav-icon { opacity:1; color:var(--teal-300); }
.nav-icon .ico { width:19px; height:19px; }
.nav-label { flex:1; }

.sidebar-foot { padding:12px; border-top:1px solid var(--side-border); position:relative; }
.side-link { display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:9px;
    color:var(--side-text-dim); font-size:.78rem; font-weight:600; text-decoration:none;
    transition:background .14s, color .14s; }
.side-link:hover { background:rgba(255,255,255,.05); color:var(--teal-300); }
.side-link .ico { width:15px; height:15px; }

.app-main { flex:1; min-width:0; display:flex; flex-direction:column; }

/* Barre supérieure */
.topbar { position:sticky; top:0; z-index:30; height:var(--topbar-h);
    display:flex; align-items:center; gap:12px; padding:0 20px;
    background:rgba(255,255,255,.82); backdrop-filter:saturate(1.4) blur(10px);
    border-bottom:1px solid var(--border); }
.topbar-menu { display:none; }
.topbar-status { display:flex; align-items:center; font-size:.78rem; font-weight:600; color:var(--text-secondary);
    background:var(--surface-alt); border:1px solid var(--border); padding:6px 12px; border-radius:20px; }
.topbar-spacer { flex:1; }
.account { display:flex; align-items:center; gap:10px; }
.account-avatar { width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
    font-family:var(--font-display); font-weight:800; font-size:.9rem; color:#fff;
    background:linear-gradient(180deg,var(--teal-500),var(--teal-700)); }
.account-meta { display:flex; flex-direction:column; line-height:1.15; }
.account-name { font-size:.82rem; font-weight:700; color:var(--text-primary); }
.account-role { font-size:.68rem; font-weight:600; color:var(--text-tertiary); text-transform:capitalize; }

/* Contenu */
.content { flex:1; padding:26px 30px 40px; max-width:1240px; width:100%; }

/* Entête de page */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
    margin-bottom:22px; flex-wrap:wrap; }

/* =====================================================================
   CARTES STAT
   ===================================================================== */
.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:22px; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:18px 18px 16px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:5px;
    position:relative; overflow:hidden; }
.stat-card::after { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:transparent; }
.stat-card--accent { background:linear-gradient(180deg,#fff,#F5FBFA); border-color:var(--teal-100); }
.stat-card--accent::after { background:linear-gradient(180deg,var(--teal-400),var(--teal-600)); }
.stat-card__label { font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; font-weight:700;
    color:var(--text-tertiary); }
.stat-card__value { font-family:var(--font-display); font-weight:800; font-size:1.6rem; letter-spacing:-.02em;
    color:var(--text-primary); }
.stat-card__hint { font-size:.74rem; color:var(--text-tertiary); font-weight:500; }

/* =====================================================================
   CARTES PANEL / TABLES
   ===================================================================== */
.panel-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:20px; margin-bottom:20px; box-shadow:var(--shadow-sm); }
.panel-card__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;
    flex-wrap:wrap; gap:10px; }
.panel-card__head h2 { display:flex; align-items:center; gap:8px; }
.panel-card__head h2 .ico { width:18px; height:18px; color:var(--teal-600); }
.quick-links { display:flex; gap:10px; flex-wrap:wrap; }
.quick-links .btn { width:auto; }
.tab-filters { display:flex; gap:6px; flex-wrap:wrap; }
.tab-filters a { padding:6px 13px; border-radius:20px; font-size:.8rem; font-weight:600; text-decoration:none;
    color:var(--text-secondary); background:var(--surface-alt); border:1px solid transparent; transition:all .14s; }
.tab-filters a:hover { border-color:var(--border-strong); color:var(--text-primary); }
.tab-filters a.active { background:var(--teal-600); color:#fff; }

.table-wrap { overflow-x:auto; margin:0 -4px; padding:0 4px; }
.data-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.data-table th { text-align:left; padding:10px 12px; color:var(--text-tertiary); font-size:.66rem;
    text-transform:uppercase; letter-spacing:.06em; font-weight:700; border-bottom:1px solid var(--border);
    white-space:nowrap; }
.data-table td { padding:11px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table tbody tr { transition:background .12s; }
.data-table tbody tr:hover td { background:var(--surface-alt); }
.data-table tbody tr:last-child td { border-bottom:none; }
.empty-row { text-align:center; color:var(--text-tertiary); padding:26px !important; font-weight:500; }
.fw-bold { font-weight:700; color:var(--text-primary); }

/* Badges */
.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:20px; font-size:.68rem;
    font-weight:700; text-transform:capitalize; letter-spacing:.01em; border:1px solid transparent; white-space:nowrap; }
.badge--unused, .badge--pending { background:var(--sun-50); color:var(--sun-600); border-color:rgba(230,138,11,.2); }
.badge--sold, .badge--paid { background:var(--teal-50); color:var(--teal-700); border-color:var(--teal-100); }
.badge--used { background:var(--surface-alt); color:var(--text-tertiary); border-color:var(--border); }
.badge--cancelled, .badge--disabled { background:var(--coral-50); color:var(--coral-600); border-color:var(--coral-100); }

.chart-row { display:grid; grid-template-columns:1.3fr 1fr; gap:20px; }
@media (max-width:900px){ .chart-row { grid-template-columns:1fr; } }

/* =====================================================================
   PAGE DE VENTE PUBLIQUE
   ===================================================================== */
.public-body { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:16px;
    background:
      radial-gradient(900px 460px at 50% -8%, rgba(15,118,110,.12), transparent 62%),
      linear-gradient(180deg,#0B2523,#0E2E2B); }
.public-card { width:100%; max-width:430px; background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-xl); box-shadow:var(--shadow-xl); padding:32px 26px; text-align:center; }

.admin-discreet-link { position:fixed; top:16px; right:18px; display:inline-flex; align-items:center; gap:5px;
    font-size:.72rem; font-weight:600; color:rgba(255,255,255,.45); text-decoration:none;
    padding:5px 10px; border-radius:20px; transition:color .15s, background .15s; z-index:10; }
.admin-discreet-link .ico { width:12px; height:12px; }
.admin-discreet-link:hover { color:rgba(255,255,255,.85); background:rgba(255,255,255,.08); }
@media (max-width:480px){ .admin-discreet-link { position:static; display:flex; justify-content:flex-end;
    max-width:430px; margin:0 auto 8px; color:rgba(255,255,255,.5); } }

.plan-list { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; text-align:left; }
.plan-option { display:flex; align-items:center; gap:10px; padding:13px 14px;
    border:1.5px solid var(--border-strong); border-radius:var(--radius-md); cursor:pointer;
    transition:border-color .15s, background .15s, box-shadow .15s; }
.plan-option:hover { border-color:var(--teal-400); }
.plan-option:has(input:checked) { border-color:var(--teal-500); background:var(--teal-50);
    box-shadow:0 0 0 3px var(--teal-50); }
.plan-option input { margin:0; accent-color:var(--teal-600); width:17px; height:17px; }
.plan-option__name { flex:1; font-weight:600; font-size:.875rem; }
.plan-option__price { font-weight:800; color:var(--teal-700); font-family:var(--font-display); }

.method-switch { display:flex; gap:16px; padding:4px 2px; }
.method-switch label { display:flex; align-items:center; gap:6px; font-size:.875rem; font-weight:600; cursor:pointer; }
.method-switch input { accent-color:var(--teal-600); }

.code-reveal { font-family:var(--font-mono); font-size:1.6rem; font-weight:800; letter-spacing:4px;
    color:var(--teal-700); background:var(--surface-alt); border:2px dashed var(--teal-500);
    border-radius:var(--radius-md); padding:16px; margin:16px 0; }

.spinner { width:38px; height:38px; border:3px solid var(--border-strong); border-top-color:var(--teal-500);
    border-radius:50%; margin:0 auto 16px; animation:spin .9s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

.icon-check { width:66px; height:66px; margin:0 auto 14px; position:relative; }
.icon-check .circle { width:66px; height:66px; border-radius:50%; background:var(--teal-50); border:2px solid var(--teal-500); }
.icon-check .tick { position:absolute; top:16px; left:24px; width:15px; height:30px;
    border-right:4px solid var(--teal-600); border-bottom:4px solid var(--teal-600); transform:rotate(45deg); }
.icon-error-circle { width:66px; height:66px; background:var(--coral-50); border:2px solid var(--coral-500);
    border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
    color:var(--coral-600); }
.icon-error-circle .ico { width:30px; height:30px; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
.dash-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
@media (max-width:900px){ .dash-grid-2 { grid-template-columns:1fr; } }

.sys-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border);
    font-size:.82rem; }
.sys-row:last-child { border-bottom:none; }
.sys-label { width:82px; flex-shrink:0; color:var(--text-secondary); font-weight:600; }
.sys-bar-wrap { flex:1; height:7px; background:var(--surface-alt); border-radius:6px; overflow:hidden;
    box-shadow:inset 0 0 0 1px var(--border); }
.sys-bar { height:100%; border-radius:6px; transition:width .4s ease; min-width:2px; }
.sys-pct { font-size:.75rem; font-weight:700; min-width:92px; text-align:right; }
.sys-pct small { font-weight:400; color:var(--text-tertiary); }
.sys-val { font-weight:600; color:var(--text-primary); }
.sys-val--big { font-family:var(--font-display); font-size:1.5rem; font-weight:800; color:var(--teal-600); }

.net-section-title { font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
    color:var(--text-tertiary); margin-bottom:6px; }
.net-row { display:flex; justify-content:space-between; align-items:center; padding:7px 0;
    border-bottom:1px solid var(--border); font-size:.82rem; }
.net-row:last-child { border-bottom:none; }
.net-row > span:first-child { color:var(--text-secondary); font-weight:500; }
.net-row > span:last-child { font-weight:600; }
.net-row .badge { display:inline-flex; align-items:center; }

.log-wrap { max-height:300px; overflow-y:auto; font-family:var(--font-mono); font-size:.74rem;
    border-radius:var(--radius-sm); background:var(--surface-alt); border:1px solid var(--border); }
.log-line { display:grid; grid-template-columns:78px 130px 1fr; gap:8px; padding:6px 11px;
    border-bottom:1px solid var(--border); line-height:1.4; }
.log-line:last-child { border-bottom:none; }
.log--error { background:var(--coral-50); color:var(--coral-600); }
.log--warn  { background:var(--sun-50);   color:var(--sun-600); }
.log--info  { background:var(--teal-50);  color:var(--teal-700); }
.log--neutral { color:var(--text-secondary); }
.log-time { color:var(--text-tertiary); flex-shrink:0; }
.log-topics { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.log-msg { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.tab-btn { padding:5px 11px; border-radius:20px; border:1px solid var(--border-strong); background:transparent;
    font-family:inherit; font-size:.74rem; font-weight:600; color:var(--text-secondary); cursor:pointer;
    transition:all .14s; }
.tab-btn.active, .tab-btn:hover { background:var(--teal-600); color:#fff; border-color:var(--teal-600); }

/* =====================================================================
   TICKETS / DIVERS
   ===================================================================== */
.featured-tag { display:inline-block; background:var(--teal-500); color:#fff; font-size:.6rem; font-weight:700;
    padding:2px 8px; border-radius:10px; text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px; }

.filter-bar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.filter-bar .modern-input { flex:1; min-width:120px; }
.search-bar { display:flex; gap:10px; margin-bottom:16px; }
.search-bar .modern-input { flex:1; }

/* Fenêtres modales (utilisées par users.php / profiles.php) */
.modal-overlay { position:fixed; inset:0; background:rgba(8,22,20,.55); backdrop-filter:blur(4px);
    z-index:999; display:flex; align-items:center; justify-content:center; padding:16px; overflow-y:auto; }
.modal-box { background:var(--surface-solid); border-radius:var(--radius-xl); padding:24px; width:100%;
    max-width:520px; box-shadow:var(--shadow-xl); border:1px solid var(--border); }
.modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.ad-sheet__close { background:var(--surface-alt); border:1px solid var(--border); border-radius:9px;
    width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
    color:var(--text-secondary); transition:background .14s, color .14s; }
.ad-sheet__close:hover { background:var(--surface-hover); color:var(--text-primary); }
.ad-sheet__close .ico { width:16px; height:16px; }
.row-disabled td { opacity:.55; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width:980px){
    .sidebar { position:fixed; left:0; top:0; z-index:60; transform:translateX(-100%);
        transition:transform .25s ease; box-shadow:var(--shadow-xl); }
    .sidebar.open { transform:translateX(0); }
    .topbar-menu { display:inline-flex; }
    .content { padding:20px 16px 32px; }
}
@media (max-width:640px){
    .stat-cards { grid-template-columns:1fr 1fr; }
    .account-meta { display:none; }
    .topbar-status span:last-child { display:none; }
    .inline-form { flex-direction:column; align-items:stretch; }
}
@media (max-width:420px){
    .stat-cards { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
    * { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* Focus visible (accessibilité) */
:focus-visible { outline:2px solid var(--teal-500); outline-offset:2px; border-radius:4px; }
