:root {
  --violet: #0284c7;
  --violet-2: #0ea5e9;
  --violet-soft: #e0f2fe;
  --ink: #1a1523;
  --ink-2: #4b4661;
  --muted: #7c7690;
  --line: #dbeafe;
  --line-2: #f0f9ff;
  --bg: #f8fcff;
  --card: #ffffff;
  --green: #16a34a;
  --shadow: 0 1px 2px rgba(24, 16, 45, .04), 0 8px 24px rgba(24, 16, 45, .06);
  --shadow-lg: 0 20px 50px rgba(14, 165, 233, .16);
  --r: 16px;
  --r-sm: 11px;
}

html, body {
  -webkit-user-select: text;
  user-select: text;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}


/* ===== Thème sombre (noir & blanc) ===== */
[data-theme="dark"] {
  --violet: #ffffff;
  --violet-2: #d4d4d8;
  --violet-soft: #26262b;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --line: #2e2e33;
  --line-2: #232327;
  --bg: #0b0b0d;
  --card: #161618;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
}

/* Remplace les blancs codés en dur par les surfaces sombres */
[data-theme="dark"] .hero-badge,
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .mini-btn:not(.deep),
[data-theme="dark"] .deep-item,
[data-theme="dark"] .user-chip,
[data-theme="dark"] .mini,
[data-theme="dark"] .modal { background: var(--card); color: var(--ink); }
[data-theme="dark"] .field input,
[data-theme="dark"] .ban-add input { background: var(--line-2); color: var(--ink); }
[data-theme="dark"] .field input::placeholder { color: var(--muted); }
[data-theme="dark"] .field input:hover { border-color: var(--violet-2); }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .ban-add input:focus { background: var(--card); }
[data-theme="dark"] .modal-tab.active { background: var(--card); color: var(--violet); }
[data-theme="dark"] .footer { background: var(--card); }
[data-theme="dark"] .copy { background: var(--line); color: var(--ink-2); }
[data-theme="dark"] .copy:hover { background: var(--line-2); }

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

/* L'attribut hidden doit toujours l'emporter sur les display de classe */
[hidden] { display: none !important; }

/* Masquer la barre de défilement (scroll toujours possible) */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 85% -5%, #e0f2fe 0%, transparent 55%),
    radial-gradient(700px 500px at 0% 0%, #f0f9ff 0%, transparent 45%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(900px 500px at 85% -5%, #1a1a1d 0%, transparent 55%),
    radial-gradient(700px 500px at 0% 0%, #151517 0%, transparent 45%);
}

/* ===== Mode sombre : accents en noir & blanc ===== */
[data-theme="dark"] .pcard-ico,
[data-theme="dark"] .plan-ico,
[data-theme="dark"] .step-num,
[data-theme="dark"] .user-av,
[data-theme="dark"] .ud-av,
[data-theme="dark"] .profile-av {
  background: linear-gradient(135deg, #3f3f46, #18181b) !important;
  color: #fff !important; box-shadow: 0 6px 16px rgba(0,0,0,.5) !important;
}
[data-theme="dark"] .plan-tag,
[data-theme="dark"] .session-current { background: #fafafa !important; color: #0b0b0d !important; }
[data-theme="dark"] .btn-primary {
  background: #fafafa; color: #0b0b0d; box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .pricing-hero {
  background: linear-gradient(135deg, #232326 0%, #161618 60%, #0b0b0d 100%) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.6) !important;
}
[data-theme="dark"] .sub-badge.pro,
[data-theme="dark"] .sub-badge.admin { background: #26262b; color: #fafafa; }
/* Lifetime : premium en blanc plutôt qu'or */
[data-theme="dark"] .plan-lifetime { border-color: #fafafa !important; }
[data-theme="dark"] .ico-gold,
[data-theme="dark"] .tag-gold,
[data-theme="dark"] .plan-lifetime .btn-primary { background: #fafafa !important; color: #0b0b0d !important; }
[data-theme="dark"] .plan-lifetime .plan-name { color: #fafafa; }
[data-theme="dark"] .plan-lifetime .plan-feats li::before { color: #fafafa; }
[data-theme="dark"] .footer { background: var(--card); }
[data-theme="dark"] .role-menu { background: var(--card); }
[data-theme="dark"] .seg-btn.active { background: var(--card); color: var(--violet); }
[data-theme="dark"] .sub-badge { background: var(--line-2); color: var(--ink); }

/* Boutons & badges : éviter texte blanc sur fond blanc */
[data-theme="dark"] .mini-btn.deep {
  background: #0ea5e9 !important; border-color: #0ea5e9 !important; color: #0b0b0d !important;
}
[data-theme="dark"] .mini-btn.deep:hover {
  background: #38bdf8 !important; border-color: #38bdf8 !important; color: #0b0b0d !important;
}
[data-theme="dark"] .deep-badge {
  background: #0ea5e9 !important; color: #0b0b0d !important;
}
[data-theme="dark"] .msg-badge {
  background: #0ea5e9 !important; color: #0b0b0d !important;
}
[data-theme="dark"] .cta-band .btn-primary {
  background: #fafafa !important; color: #0b0b0d !important;
}
[data-theme="dark"] .deep-modal-head {
  background: linear-gradient(135deg, #232326, #0b0b0d) !important; color: #fff !important;
}
[data-theme="dark"] .btn-soft {
  background: var(--line-2); color: #0ea5e9;
}
[data-theme="dark"] .btn-soft:hover { background: #2e2e33; color: #38bdf8; }
[data-theme="dark"] .session-current {
  background: #0ea5e9 !important; color: #0b0b0d !important;
}
[data-theme="dark"] .home-cta-alt.btn-outline {
  background: var(--card); color: var(--ink); border-color: var(--line);
}
[data-theme="dark"] .home-cta-alt.btn-outline:hover { border-color: #0ea5e9; color: #0ea5e9; }
[data-theme="dark"] .result-av,
[data-theme="dark"] .deep-item-av {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #0b0b0d !important;
}
[data-theme="dark"] .deep-back { color: #0ea5e9; }
[data-theme="dark"] .deep-back:hover { color: #38bdf8; }

h1, h2, h3, h4, .logo-text { font-family: 'Sora', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }

/* ================= NAV ================= */
.nav {
  position: sticky; top: 14px; z-index: 50;
  max-width: 1160px; margin: 14px auto 0; padding: 0 16px;
}
.nav-inner {
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  display: flex; align-items: center; gap: 10px;
  position: relative;
  min-width: 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(24, 16, 45, .1);
}
[data-theme="dark"] .nav-inner { background: rgba(22, 22, 24, .82); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }

/* Bouton bascule thème (soleil / lune) */
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-2);
  background: var(--line-2); border: 1px solid var(--line);
  transition: color .18s, background .18s, transform .18s;
}
.theme-toggle:hover { color: var(--violet); transform: rotate(-12deg) scale(1.06); }
.theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 4px 12px rgba(14, 165, 233, .28);
}
.logo-mark .logo-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.logo-mark .logo-img-dark { display: none; }
[data-theme="dark"] .logo-mark {
  background: #0b0b0d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .logo-mark .logo-img-light { display: none; }
[data-theme="dark"] .logo-mark .logo-img-dark { display: block; }
.logo-text { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.logo-text span { color: var(--violet); }
[data-theme="dark"] .logo-text span { color: #0ea5e9; }
.logo.small .logo-mark { width: 30px; height: 30px; }
.logo.small .logo-text { font-size: 16px; }

.nav-links {
  display: flex; gap: 2px; margin-left: 4px;
  flex: 1 1 auto; min-width: 0; overflow: hidden;
}
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 11px; border-radius: 9px; transition: all .15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-links a.active { color: var(--violet); background: var(--violet-soft); font-weight: 600; }

.nav-end {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-left: auto;
}
.nav-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }

.btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; box-shadow: 0 8px 20px rgba(14, 165, 233, .28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(14, 165, 233, .4); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #7dd3fc; }
.btn-soft { background: var(--violet-soft); color: var(--violet); }
.btn-soft:hover { background: #bae6fd; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ================= VIEWS ================= */
.view { display: none; max-width: 1160px; margin: 0 auto; padding: 0 26px 90px; }
.view.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Hero (recherche) ---- */
.hero { text-align: center; padding: 56px 0 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
#db-count { font-weight: 700; color: var(--ink); }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 20px 0 16px; }
.grad { background: linear-gradient(120deg, #38bdf8, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ---- Effet machine à écrire (titre hero) ---- */
.typewriter { display: inline-block; min-height: 1.1em; }
#hero-type { min-width: 22ch; }
.typewriter::after {
  content: ''; display: inline-block; width: 2px; height: 0.9em;
  margin-left: 3px; vertical-align: text-bottom;
  background: #0ea5e9; -webkit-text-fill-color: initial;
  animation: tw-caret 0.75s step-end infinite;
}
.typewriter.tw-done::after { animation: none; opacity: 0; }
@keyframes tw-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
[data-theme="dark"] #hero-type.grad {
  background: linear-gradient(120deg, #7dd3fc, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] #hero-type.typewriter::after { background: #0ea5e9; }
.hero-sub { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* ---- Panel de recherche ---- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lg);
}

.section { border-radius: var(--r); margin: 8px; border: 1px solid transparent; transition: background .15s; }
.section + .section { border-top: 1px solid var(--line-2); border-radius: var(--r); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px; cursor: pointer; user-select: none; border-radius: var(--r);
}
.section-head:hover { background: var(--line-2); }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title .ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet);
}
.section-title h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.section-toggle {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  color: var(--muted); transition: transform .25s;
}
.section.collapsed .section-toggle { transform: rotate(-90deg); }
.section-body {
  padding: 4px 16px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px;
}
.section-body.cols-4 { grid-template-columns: repeat(4, 1fr); }
.section.collapsed .section-body { display: none; }

/* ---- Page Localisation ---- */
.loc-view {
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}
.loc-hero {
  text-align: center; padding: 40px 20px 28px; max-width: 720px; margin: 0 auto;
}
.loc-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em;
  color: var(--violet); text-transform: uppercase;
}
.loc-hero h1 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em;
  margin: 10px 0 12px; color: var(--ink);
}
.loc-hero p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.loc-wrap {
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center;
}

.loc-gate {
  width: 100%; max-width: 520px; text-align: center; padding: 52px 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.loc-gate-icon { font-size: 28px; color: var(--muted); margin-bottom: 12px; }
.loc-gate-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em;
  color: var(--muted); display: block; margin-bottom: 10px;
}
.loc-gate h3 { color: var(--ink); margin-bottom: 8px; }
.loc-gate p { color: var(--muted); margin-bottom: 22px; font-size: 14px; }

.loc-board {
  display: grid; grid-template-columns: minmax(280px, 340px) 1fr;
  width: 100%; max-width: 1180px;
  min-height: 580px; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; background: var(--card);
  box-shadow: var(--shadow-lg);
}

.loc-console {
  background: var(--line-2); border-right: 1px solid var(--line);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 0;
}
.loc-console-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em;
  color: var(--ink-2); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.loc-live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.loc-live i { font-size: 7px; color: var(--violet); animation: locPulse 1.4s ease infinite; }

.loc-drop {
  border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 24px 16px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  margin-bottom: 16px; min-height: 180px; display: grid; place-items: center; position: relative;
  background: var(--bg);
}
.loc-drop:hover, .loc-drop.drag { border-color: var(--violet-2); background: var(--violet-soft); }
.loc-drop-ico { font-size: 28px; color: var(--muted); margin-bottom: 10px; }
.loc-drop-empty p { font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.loc-drop-empty span {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted);
}
.loc-preview { width: 100%; position: relative; }
.loc-preview img { max-width: 100%; max-height: 200px; border-radius: 8px; object-fit: contain; }
.loc-preview-clear {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer;
}

.loc-hint-field { margin-bottom: 14px; }
.loc-hint-field label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em;
  color: var(--ink-2); text-transform: uppercase;
}
.loc-opt { color: var(--muted); font-weight: 400; }
.loc-input {
  margin-top: 6px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.loc-input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px var(--violet-soft); }
.loc-input::placeholder { color: var(--muted); }

.loc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s;
}
.loc-btn:hover { background: var(--line-2); border-color: var(--violet-2); color: var(--violet); }
.loc-btn:disabled { opacity: .35; cursor: not-allowed; }
.loc-btn-primary {
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
  color: #fff; border-color: transparent;
}
.loc-btn-primary:hover:not(:disabled) { filter: brightness(1.06); border-color: transparent; color: #fff; }
.loc-btn-ghost { background: var(--line-2); }
.loc-btn-block { width: 100%; margin-bottom: 20px; }

.loc-cmd-list {
  list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.loc-cmd-list li {
  display: flex; gap: 10px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted); line-height: 1.45;
}
.loc-cmd-list li span { color: var(--violet); flex-shrink: 0; }

.loc-globe-stage {
  position: relative; background: var(--line-2); min-height: 580px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.loc-globe-stage::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(14, 165, 233, .08) 0%, transparent 55%);
  pointer-events: none;
}
[data-theme="dark"] .loc-globe-stage::before {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .04) 0%, transparent 55%);
}
#loc-globe {
  display: block; cursor: grab; touch-action: none;
  width: min(92%, 620px); height: min(92%, 620px); aspect-ratio: 1;
}
#loc-globe:active { cursor: grabbing; }
.loc-globe-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.loc-node-label {
  position: absolute; left: 0; top: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 500;
  letter-spacing: .06em; color: var(--ink);
  white-space: nowrap; transform: translate(-4px, -50%);
  text-shadow: 0 0 8px var(--bg);
  transition: opacity .12s linear;
}
.loc-globe-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
  pointer-events: none;
}

.loc-loading {
  width: 100%; max-width: 1180px;
  text-align: center; padding: 36px 20px; margin-top: 20px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow);
}
.loc-loading-ring {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--violet);
  animation: locSpin .8s linear infinite;
}
.loc-loading-title {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .1em;
  color: var(--ink); margin-bottom: 6px;
}
.loc-loading-step {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted);
}

.loc-result {
  width: 100%; max-width: 1180px;
  margin-top: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; animation: confirmIn .25s ease;
  box-shadow: var(--shadow);
}
.loc-result-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em;
  color: var(--violet); padding: 5px 10px; border: 1px solid var(--line);
  border-radius: 4px; margin-bottom: 10px; background: var(--violet-soft);
}
.loc-result-desc {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted); margin-bottom: 6px;
}
.loc-result-addr { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 16px; line-height: 1.45; }
.loc-frame-wrap {
  border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16/9; background: var(--line-2); margin-bottom: 14px;
}
.loc-frame { width: 100%; height: 100%; border: 0; display: block; }
.loc-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-result-actions .loc-btn { flex: 1; min-width: 160px; }

[data-theme="dark"] .loc-btn-primary {
  background: #fafafa; color: #0b0b0d; border-color: #fafafa;
}
[data-theme="dark"] .loc-btn-primary:hover:not(:disabled) {
  background: #e8e8e8; border-color: #e8e8e8; color: #0b0b0d; filter: none;
}
[data-theme="dark"] .loc-result-badge {
  background: var(--line-2); color: var(--ink); border-color: var(--line);
}
[data-theme="dark"] .loc-globe-stage { background: #000; }
[data-theme="dark"] .loc-node-label { color: rgba(255, 255, 255, .88); text-shadow: 0 0 12px rgba(255, 255, 255, .45); }
[data-theme="dark"] .loc-input {
  background: var(--line-2); border-color: var(--line); color: var(--ink);
}
[data-theme="dark"] .loc-input:focus { background: var(--card); box-shadow: none; border-color: rgba(255, 255, 255, .28); }
[data-theme="dark"] .loc-drop { background: rgba(255, 255, 255, .02); border-color: rgba(255, 255, 255, .14); }
[data-theme="dark"] .loc-drop:hover,
[data-theme="dark"] .loc-drop.drag { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .loc-console { background: #080808; border-right-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .loc-board { background: #000; border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .loc-loading,
[data-theme="dark"] .loc-result,
[data-theme="dark"] .loc-gate { background: #0a0a0a; border-color: rgba(255, 255, 255, .08); }

@keyframes locPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes locSpin { to { transform: rotate(360deg); } }

.loc-soon-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(26, 21, 35, .55); backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.loc-soon-card {
  position: relative; width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 36px 28px 28px;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: confirmIn .25s ease;
}
.loc-soon-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: var(--line-2); color: var(--ink-2); cursor: pointer;
}
.loc-soon-close:hover { background: var(--line); color: var(--ink); }
.loc-soon-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); font-size: 22px;
}
.loc-soon-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 8px;
}
.loc-soon-card h2 {
  font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px;
}
.loc-soon-text { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.loc-soon-ok { min-width: 140px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field input {
  background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--ink); transition: all .15s;
}
.field input::placeholder { color: #b3adc4; }
.field input:hover { border-color: #7dd3fc; }
.field input:focus { outline: none; border-color: var(--violet-2); background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, .12); }

/* ---- Contact ---- */
.contact-hero {
  position: relative; text-align: center; padding: 48px 20px 36px;
  margin: 0 auto 8px; max-width: 720px; overflow: hidden;
}
.contact-hero-glow {
  position: absolute; inset: -40% -20% auto; height: 200px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, .18) 0%, transparent 70%);
  pointer-events: none;
}
.contact-hero-inner { position: relative; }
.contact-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -.03em;
  margin: 8px 0 12px;
}
.contact-hero p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.contact-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px;
}
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.contact-pill svg { width: 16px; height: 16px; color: var(--violet); flex-shrink: 0; }

.contact-wrap {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px;
  max-width: 980px; margin: 0 auto; padding: 0 20px 48px;
}
.contact-main { min-width: 0; }
.contact-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.contact-form-head h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.contact-form-head p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.contact-chip {
  border: 1.5px solid var(--line); background: var(--line-2); color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; font-family: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.contact-chip:hover { border-color: var(--violet-2); color: var(--violet); }
.contact-chip.active {
  background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff;
  border-color: transparent; box-shadow: 0 4px 14px rgba(14, 165, 233, .25);
}
.field-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.field-label-row label { margin-bottom: 0; }
.contact-char-count { font-size: 12px; color: var(--muted); font-weight: 500; }
.contact-char-count.warn { color: #d97706; }
.contact-char-count.max { color: #dc2626; }
.contact-card textarea {
  background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--ink);
  transition: all .15s; resize: vertical; min-height: 140px; width: 100%;
}
.contact-card textarea::placeholder { color: #b3adc4; }
.contact-card textarea:hover { border-color: #7dd3fc; }
.contact-card textarea:focus { outline: none; border-color: var(--violet-2); background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, .12); }
.contact-privacy { font-size: 12px; color: var(--muted); line-height: 1.5; margin: -4px 0 0; }
.contact-submit { position: relative; }
.contact-submit:disabled { opacity: .7; cursor: wait; }

.contact-success {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 48px 32px; text-align: center; box-shadow: var(--shadow);
  animation: confirmIn .25s ease;
}
.contact-success-ico {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: #ecfdf5; color: #059669; display: grid; place-items: center;
}
.contact-success-ico svg { width: 32px; height: 32px; }
.contact-success h2 { font-size: 22px; margin-bottom: 10px; }
.contact-success p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 360px; margin: 0 auto 24px; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-channel {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: border-color .15s, transform .12s;
}
.contact-channel.featured {
  border-color: rgba(14, 165, 233, .35);
  background: linear-gradient(135deg, rgba(255, 247, 237, .9), var(--card));
}
.contact-channel.featured:hover { border-color: var(--violet); transform: translateY(-2px); }
.contact-channel-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--line-2); color: var(--violet);
}
.contact-channel-ico svg { width: 22px; height: 22px; }
.contact-channel-ico.tg { background: #229ED9; color: #fff; }
.contact-channel-ico.dc { background: #5865F2; color: #fff; }
.contact-channel.discord.featured {
  border-color: rgba(88, 101, 242, .35);
  background: linear-gradient(135deg, rgba(238, 242, 255, .9), var(--card));
}
[data-theme="dark"] .contact-channel.discord.featured {
  background: linear-gradient(135deg, rgba(30, 27, 75, .5), var(--card));
}
.contact-channel strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-channel span { font-size: 13px; color: var(--muted); }
.contact-channel-arrow { width: 18px; height: 18px; margin-left: auto; color: var(--violet); flex-shrink: 0; }

.contact-faq {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.contact-faq h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.contact-faq-link {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--violet);
  padding: 8px 0; cursor: pointer; border-bottom: 1px solid var(--line-2);
  transition: color .12s;
}
.contact-faq-link:last-child { border-bottom: 0; }
.contact-faq-link:hover { color: var(--violet-2); text-decoration: underline; }

.contact-tip {
  background: linear-gradient(135deg, #f0f9ff, var(--card));
  border: 1.5px dashed rgba(14, 165, 233, .35); border-radius: 16px; padding: 16px 18px;
}
.contact-tip strong { display: block; font-size: 13px; color: var(--violet); margin-bottom: 6px; }
.contact-tip p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0; }

[data-theme="dark"] .contact-card textarea { background: var(--line-2); color: var(--ink); }
[data-theme="dark"] .contact-card textarea::placeholder { color: var(--muted); }
[data-theme="dark"] .contact-card textarea:focus { background: var(--card); }
[data-theme="dark"] .contact-channel.featured { background: linear-gradient(135deg, rgba(42, 31, 20, .6), var(--card)); }
[data-theme="dark"] .contact-success-ico { background: #052e1a; color: #34d399; }
[data-theme="dark"] .contact-tip { background: linear-gradient(135deg, #0c2438, var(--card)); }
[data-theme="dark"] .contact-chip { background: var(--line-2); color: var(--ink-2); }
[data-theme="dark"] .contact-chip.active { color: #fff; }

/* ---- Messages de contact (admin) ---- */
.msg-badge {
  display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 8px;
  font-size: 12px; font-weight: 700; color: #fff; text-align: center;
  background: var(--violet); border-radius: 999px; vertical-align: middle;
}
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-empty { padding: 34px 26px; text-align: center; color: var(--muted); font-size: 14px; border: 2px dashed var(--line); border-radius: 14px; background: var(--line-2); }
.msg-item {
  background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; transition: border-color .15s;
}
.msg-item.unread { border-color: var(--violet-2); background: var(--violet-soft); }
[data-theme="dark"] .msg-item { background: var(--line-2); }
[data-theme="dark"] .msg-item.unread { background: var(--violet-soft); }
.msg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg-from { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.msg-email { color: var(--violet); text-decoration: none; font-size: 13px; }
.msg-email:hover { text-decoration: underline; }
.msg-date { font-size: 12px; color: var(--muted); }
.msg-subject { font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.msg-body { font-size: 14px; color: var(--ink-2); line-height: 1.5; white-space: pre-wrap; }
.msg-reply {
  margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--green);
  background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap;
}
.msg-reply-label { display: block; font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.msg-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---- Modale de réponse ---- */
#reply-modal .modal { max-width: 560px; }
.reply-orig {
  background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; margin-bottom: 18px;
}
[data-theme="dark"] .reply-orig { background: var(--line-2); }
.reply-orig-from { font-size: 13px; color: var(--ink); }
.reply-orig-subject { font-weight: 700; color: var(--ink); margin: 6px 0 6px; }
.reply-orig-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; white-space: pre-wrap; }
#reply-form textarea {
  width: 100%; background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--ink);
  transition: all .15s; resize: vertical; min-height: 120px;
}
#reply-form textarea:focus { outline: none; border-color: var(--violet-2); background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, .12); }
[data-theme="dark"] #reply-form textarea { background: var(--line-2); color: var(--ink); }
[data-theme="dark"] #reply-form textarea:focus { background: var(--card); }

.actions { display: flex; justify-content: center; gap: 12px; padding: 22px 12px 14px; }

/* ---- Résultats ---- */
.results { margin-top: 44px; }
.results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.results-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.results-count { font-size: 14px; color: var(--muted); }
.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .15s, border-color .15s;
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--violet-2); }
.result-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.result-head-l { display: flex; align-items: center; gap: 12px; }
.result-av {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(14, 165, 233, .28);
}
.result-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.result-name .pseudo { color: var(--violet); font-weight: 500; margin-left: 8px; font-size: 13px; }
.result-id { font-size: 12px; color: var(--muted); background: var(--line-2); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 22px; }
.kv { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--violet-soft); }
.kv .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field-ico { color: var(--violet); font-size: 11px; width: 14px; text-align: center; flex-shrink: 0; }
[data-theme="dark"] .field-ico { color: #38bdf8; }
.kv .v { font-size: 14px; color: var(--ink); word-break: break-word; font-weight: 500; }
.kv-id .v {
  font-family: ui-monospace, "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 12.5px;
  letter-spacing: .01em;
  word-break: break-all;
}
.kv mark { background: #fef08a; color: #713f12; border-radius: 3px; padding: 0 3px; }

/* Barre d'actions de fiche */
.result-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: all .14s;
}
.mini-btn:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-1px); }
.mini-btn.deep { background: var(--violet); color: #fff; border-color: var(--violet); }
.mini-btn.deep:hover { background: var(--violet-2); border-color: var(--violet-2); color: #fff; }
.mini-btn svg { flex-shrink: 0; }
.mini-btn .fa-solid { font-size: 12px; }

/* Menu téléchargement fiche */
.dl-wrap { position: relative; display: inline-flex; }
.dl-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 148px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 30;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.dl-wrap.open .dl-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dl-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left;
}
.dl-opt:hover { background: var(--violet-soft); color: var(--violet); }
.dl-opt .fa-solid { width: 16px; text-align: center; color: var(--violet); font-size: 13px; }

/* ===== Recherche approfondie : modale plein écran ===== */
.deep-overlay { align-items: stretch; padding: 0; }
.deep-modal {
  position: relative; width: 100%; max-width: 720px; margin: auto;
  background: var(--bg, #f8fcff); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; max-height: 90vh;
  box-shadow: var(--shadow-lg); animation: deepPop .22s ease;
}
@keyframes deepPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.deep-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px; background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff;
}
.deep-modal-title { display: flex; align-items: center; gap: 14px; }
.deep-modal-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff;
}
.deep-modal-ico svg { width: 22px; height: 22px; }
.deep-modal-title h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.deep-modal-title p { font-size: 13px; opacity: .9; margin-top: 3px; }
.deep-modal-head .modal-close { position: static; background: rgba(255,255,255,.2); color: #fff; }
.deep-modal-head .modal-close:hover { background: rgba(255,255,255,.35); }
.deep-modal-body { padding: 22px 24px; overflow-y: auto; }

.deep-loading { color: var(--muted); font-size: 14px; padding: 24px 4px; text-align: center; }

/* Sujet de la recherche (en-tête de la liste) */
.deep-subject { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.deep-subject-name { font-size: 18px; font-weight: 800; }
.deep-subject-sub { font-size: 13px; color: var(--muted); }

.deep-group { margin-bottom: 22px; }
.deep-group:last-child { margin-bottom: 0; }
.deep-group-head { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .03em; }
.deep-badge { background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.deep-list { display: flex; flex-direction: column; gap: 10px; }
.deep-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  font-family: inherit; transition: transform .12s, box-shadow .15s, border-color .15s;
}
.deep-item:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow); }
.deep-item-av {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2)); box-shadow: 0 4px 12px rgba(14, 165, 233, .25);
}
.deep-item-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.deep-item-name { font-weight: 700; font-size: 15px; }
.deep-item-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deep-item-arrow { font-size: 22px; color: var(--violet-2); font-weight: 700; flex-shrink: 0; }

.deep-back {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-bottom: 16px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--violet);
  background: none; border: 0; padding: 4px 0;
}
.deep-back:hover { text-decoration: underline; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: 16px; background: var(--card); }
.empty svg { color: var(--violet-2); margin-bottom: 14px; }

/* Pagination des résultats */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.pager .btn { min-width: 130px; }
.pager .btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-info { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ================= PAGES ================= */
.page-head { text-align: center; padding: 56px 0 40px; }
.eyebrow { display: inline-block; color: var(--violet); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.step-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet)); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.feature-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet)); box-shadow: 0 6px 16px rgba(14, 165, 233, .28); }
.feature-ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: 16px; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.5; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, #0c4a6e, var(--violet)); color: #fff; border-radius: 22px; padding: 34px 40px; box-shadow: var(--shadow-lg); }
.cta-band h3 { font-size: 24px; }
.cta-band p { opacity: .85; margin-top: 4px; }
.cta-band .btn-primary { background: #fff; color: var(--violet); box-shadow: none; }

/* Pricing */
.pricing-hero {
  position: relative; overflow: hidden; text-align: center;
  margin: 32px 0 34px; padding: 44px 32px; border-radius: 24px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #38bdf8 100%);
  box-shadow: 0 20px 50px rgba(14, 165, 233, .3);
}
.pricing-hero-glow {
  position: absolute; top: -70%; left: -10%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); pointer-events: none;
}
.pricing-hero h1 { position: relative; font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.pricing-hero p { position: relative; color: rgba(255,255,255,.85); font-size: 16px; margin-top: 12px; }
.eyebrow-light { color: rgba(255,255,255,.9); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.plan:not(.featured):hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan.featured { border: 2px solid var(--violet-2); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet));
  box-shadow: 0 6px 16px rgba(14, 165, 233, .3);
}
.plan-ico svg { width: 22px; height: 22px; }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan-name { font-family: 'Sora'; font-weight: 600; font-size: 15px; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; }
.plan-price { font-family: 'Sora'; font-weight: 800; font-size: 40px; margin: 12px 0 4px; letter-spacing: -.03em; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan-feats { list-style: none; margin-bottom: 24px; }
.plan-feats li { padding: 9px 0 9px 28px; position: relative; font-size: 14.5px; border-bottom: 1px solid var(--line-2); }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--violet); font-weight: 800; }
/* Plan Lifetime (doré) */
.plan-lifetime { border: 2px solid #eab308; box-shadow: 0 20px 50px rgba(202, 138, 4, .22); }
.ico-gold { background: linear-gradient(135deg, #fbbf24, #d97706) !important; box-shadow: 0 6px 16px rgba(202, 138, 4, .35) !important; }
.tag-gold { background: linear-gradient(135deg, #fbbf24, #d97706) !important; }
.plan-lifetime .plan-name { color: #b45309; }
.plan-lifetime .plan-feats li::before { color: #d97706; }
.plan-lifetime .btn-primary { background: linear-gradient(135deg, #fbbf24, #d97706); }
[data-theme="dark"] .plan-lifetime .plan-name { color: #fbbf24; }

/* API */
.api-block { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); }
.api-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.method { font-family: 'Sora'; font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 7px; color: #fff; }
.method.post { background: #16a34a; }
.method.get { background: #2563eb; }
.api-meta code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; color: var(--ink); background: var(--line-2); padding: 5px 10px; border-radius: 7px; }
.api-block > p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.code-card { background: #1a1523; border-radius: 12px; overflow: hidden; margin-top: 12px; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #2c2438; }
.code-head span { color: #9d94b3; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.copy { background: #2c2438; color: #cabfe0; border: 0; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 7px; cursor: pointer; transition: background .15s; }
.copy:hover { background: #3a2f4d; }
.code-card pre { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; color: #e6def5; padding: 16px; overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--violet-soft); color: var(--violet); font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; font-family: 'SF Mono', Menlo, monospace; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 30px 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: 13px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--violet); }

/* ================= AUTH (nav) ================= */
.auth-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-chip {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  max-width: min(190px, 28vw);
  padding: 4px 10px 4px 4px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font-family: inherit;
  cursor: pointer; min-width: 0;
  transition: border-color .16s, box-shadow .16s, transform .12s;
}
.user-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--violet-2), var(--violet)); text-transform: uppercase; flex-shrink: 0; }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan.pro { color: var(--green); font-weight: 600; }
.user-plan.admin { color: var(--violet); font-weight: 600; }
#nav-manage { color: var(--violet); font-weight: 600; }
#nav-manage.active { background: var(--violet-soft); color: var(--violet); }

/* ================= GATE (non connecté) ================= */
.gate { max-width: 560px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 48px 36px; box-shadow: var(--shadow-lg); }
.gate-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); }
.gate-ico svg { width: 34px; height: 34px; }
.gate h3 { font-size: 22px; margin-bottom: 8px; }
.gate p { color: var(--muted); margin-bottom: 24px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================= PAYWALL ================= */
.paywall { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 0 auto 22px; background: linear-gradient(120deg, #f0f9ff, #fef2f2); border: 1px solid #bae6fd; border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow); }
.paywall-ico { flex-shrink: 0; color: #0284c7; display: grid; place-items: center; }
.paywall-ico svg { width: 26px; height: 26px; }
.paywall-text { flex: 1; font-size: 14.5px; color: #0c4a6e; }
.paywall-text strong { color: #075985; }
.paywall-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-shrink: 0; }

/* ================= MODALE AUTH ================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(26, 21, 35, .55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .2s; }
.modal { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; background: var(--line-2); border-radius: 9px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.modal-close:hover { background: var(--line); }
.modal-tabs { display: flex; gap: 6px; background: var(--line-2); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.modal-tab { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.modal-tab.active { background: #fff; color: var(--violet); box-shadow: var(--shadow); }
.modal h2 { font-size: 22px; margin-bottom: 18px; }
.modal .field { margin-bottom: 16px; }
.modal-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.modal-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.modal-hint code { background: var(--line-2); padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.auth-register-only[hidden] { display: none !important; }

/* ================= CONFIRMATION ================= */
.confirm-overlay { z-index: 200; }
.confirm-modal { max-width: 400px; text-align: center; padding: 28px 26px 24px; animation: confirmIn .22s ease; }
@keyframes confirmIn {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.confirm-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: #f0f9ff; color: var(--violet);
}
.confirm-icon svg { width: 26px; height: 26px; }
.confirm-modal.danger .confirm-icon { background: #fef2f2; color: #dc2626; }
.confirm-modal h2 { font-size: 20px; margin-bottom: 10px; }
.confirm-msg { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.confirm-actions { display: flex; gap: 10px; margin-top: 24px; }
.confirm-actions .btn { flex: 1; padding: 12px 16px; font-size: 14px; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 8px 20px rgba(220, 38, 38, .25); border: 0; }
.btn-danger:hover { box-shadow: 0 10px 26px rgba(220, 38, 38, .38); }
[data-theme="dark"] .confirm-icon { background: #0c2438; color: #38bdf8; }
[data-theme="dark"] .confirm-modal.danger .confirm-icon { background: #2a1414; color: #f87171; }
[data-theme="dark"] .btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

/* ================= DISCORD RESULT (sur base confirm) ================= */
#discord-modal { z-index: 220; }
#dc-modal-icon[data-state="ok"] { background: #eef0ff; color: #5865f2; }
#dc-modal-icon[data-state="perk"] { background: #ecfdf5; color: #16a34a; }
#dc-modal-icon[data-state="err"] { background: #fef2f2; color: #dc2626; }
#dc-modal-icon svg { display: block; margin: 0 auto; }
.dc-name {
  margin: -4px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--violet);
}
.dc-steps {
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: dc;
  text-align: left;
}
.dc-steps li {
  counter-increment: dc;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.dc-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-steps li:first-child { padding-top: 0; }
.dc-steps li::before {
  content: counter(dc);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--violet);
  line-height: 1;
}
.dc-perk {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #15803d;
}
[data-theme="dark"] #dc-modal-icon[data-state="ok"] { background: #1e1f3a; color: #a5b4fc; }
[data-theme="dark"] #dc-modal-icon[data-state="perk"] { background: #12261a; color: #4ade80; }
[data-theme="dark"] #dc-modal-icon[data-state="err"] { background: #2a1414; color: #f87171; }
[data-theme="dark"] .dc-perk { color: #4ade80; }

/* ================= ADMIN ================= */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.stat-card .n { font-family: 'Sora'; font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.stat-card .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.admin-block { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.admin-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-block-head h3 { font-size: 18px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tr:hover td { background: #faf9fd; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.admin { background: #e0f2fe; color: var(--violet); }
.badge.user { background: var(--line-2); color: var(--ink-2); }
.badge.pro { background: #dcfce7; color: #15803d; }
.badge.free { background: #fef3c7; color: #b45309; }
.badge.banned { background: #fee2e2; color: #b91c1c; }
.ip-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.ip-tag { font-family: 'SF Mono', Menlo, monospace; font-size: 11px; background: var(--line-2); padding: 2px 7px; border-radius: 6px; cursor: pointer; }
.ip-tag:hover { background: var(--violet-soft); color: var(--violet); }
.ip-tag-last { background: var(--violet-soft); color: var(--violet); font-weight: 700; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; transition: all .12s; }
.mini:hover { border-color: #7dd3fc; background: var(--line-2); }
.mini.violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.mini.green { background: #dcfce7; color: #15803d; border-color: transparent; }
.mini.red { background: #fee2e2; color: #b91c1c; border-color: transparent; }
.ban-add { display: flex; gap: 10px; margin-bottom: 16px; }
.ban-add input { flex: 1; background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; font-family: inherit; font-size: 14px; }
.ban-add input:focus { outline: none; border-color: var(--violet-2); background: #fff; }
.ban-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ban-item { display: flex; align-items: center; gap: 8px; background: #fee2e2; color: #b91c1c; font-family: 'SF Mono', Menlo, monospace; font-size: 13px; padding: 6px 8px 6px 12px; border-radius: 10px; }
.ban-item button { border: 0; background: rgba(185,28,28,.15); color: #b91c1c; width: 20px; height: 20px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.ban-empty { color: var(--muted); font-size: 14px; }

/* ================= TOASTS ================= */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 240px; max-width: 360px; background: #1a1523; color: #fff; padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; align-items: center; gap: 10px; animation: toastIn .25s ease; border-left: 4px solid var(--violet-2); }
.toast.ok { border-left-color: #22c55e; }
.toast.err { border-left-color: #ef4444; }
.toast.leave { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ================= ADMIN : recherche ================= */
.admin-search { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-search input { flex: 1; background: #faf9fd; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; font-family: inherit; font-size: 14px; }
.admin-search input:focus { outline: none; border-color: var(--violet-2); background: #fff; }

/* ================= ADMIN : menu déroulant de rôle ================= */
.role-select { position: relative; display: inline-block; }
.role-trigger { border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; }
.role-trigger:not(:disabled):hover { filter: brightness(.96); }
.role-trigger:disabled { cursor: default; opacity: .8; }
.role-trigger .caret { font-size: 9px; opacity: .7; }
.role-select.open .caret { transform: rotate(180deg); }
.role-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 5px; min-width: 150px; animation: fade .12s ease; }
.role-opt { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 9px 11px; border-radius: 8px; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; }
.role-opt:hover { background: var(--line-2); }
.role-opt .dot { width: 8px; height: 8px; border-radius: 50%; }
.role-opt .dot.admin { background: var(--violet); }
.role-opt .dot.user { background: var(--muted); }
.role-opt .check { margin-left: auto; color: var(--violet); font-weight: 700; opacity: 0; }
.role-opt.current { color: var(--violet); font-weight: 600; }
.role-opt.current .check { opacity: 1; }

/* ================= CRÉATION DE COMPTE (segments) ================= */
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.seg { display: flex; gap: 6px; background: var(--line-2); padding: 5px; border-radius: 12px; }
.seg.wrap { flex-wrap: wrap; }
.seg-btn { flex: 1; min-width: 68px; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .12s; white-space: nowrap; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: #fff; color: var(--violet); box-shadow: var(--shadow); }

/* ================= PROFIL UTILISATEUR ================= */
/* Bannière */
.profile-hero {
  position: relative; overflow: hidden; margin: 32px 0 22px;
  border-radius: 24px; padding: 34px 32px 26px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #38bdf8 100%);
  box-shadow: 0 20px 50px rgba(14, 165, 233, .3);
}
.profile-hero-glow {
  position: absolute; top: -60%; right: -10%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%); pointer-events: none;
}
.profile-hero-top { position: relative; display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.profile-av {
  width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Sora'; font-weight: 700; font-size: 34px; text-transform: uppercase; flex-shrink: 0;
  color: var(--violet); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255,255,255,.35), 0 10px 24px rgba(0,0,0,.2);
}
.profile-hero-info h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 8px; }
.profile-role {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: #fff;
  padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.3);
}
.profile-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-item {
  text-align: center; padding: 16px 10px; border-radius: 16px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); transition: transform .16s, background .16s;
}
.stat-item:hover { transform: translateY(-3px); background: rgba(255,255,255,.24); }
.stat-ico { display: grid; place-items: center; margin-bottom: 8px; }
.stat-ico svg { width: 22px; height: 22px; color: rgba(255,255,255,.85); }
.stat-value { font-family: 'Sora'; font-weight: 700; font-size: 26px; color: #fff; line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 6px; }

/* Cartes */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 22px; }
.profile-custom-card { grid-column: 1 / -1; }
.profile-edit-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.profile-field-inline { flex: 1; min-width: 200px; margin: 0; }
.profile-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.profile-upload-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.profile-upload-preview {
  width: 100%; height: 120px; border-radius: 14px; border: 1px dashed var(--line);
  background: var(--line-2); display: grid; place-items: center; overflow: hidden;
  margin-bottom: 10px; color: var(--muted); font-size: 13px;
}
.profile-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-upload-preview.avatar-preview { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 10px; }
.profile-bg-preview { height: 100px; }
.profile-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.user-av.has-img, .ud-av.has-img, .profile-av.has-img {
  padding: 0; overflow: hidden; background: var(--line-2);
}
.user-av img, .ud-av img, .profile-av img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

body.has-custom-bg {
  background-size: cover, auto, auto !important;
  background-position: center, 0 0, 0 0 !important;
  background-attachment: fixed, scroll, scroll !important;
}
body.has-custom-bg[data-theme="dark"] {
  background-image:
    linear-gradient(rgba(11, 11, 13, .88), rgba(11, 11, 13, .88)),
    var(--user-bg-image),
    radial-gradient(900px 500px at 85% -5%, #1a1a1d 0%, transparent 55%),
    radial-gradient(700px 500px at 0% 0%, #151517 0%, transparent 45%) !important;
}
body.has-custom-bg:not([data-theme="dark"]) {
  background-image:
    linear-gradient(rgba(255, 251, 247, .88), rgba(255, 251, 247, .88)),
    var(--user-bg-image),
    radial-gradient(900px 500px at 85% -5%, #e0f2fe 0%, transparent 55%),
    radial-gradient(700px 500px at 0% 0%, #f0f9ff 0%, transparent 45%) !important;
}

.profile-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.profile-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.profile-card h3 { font-size: 16px; }
/* En-tête de carte avec pastille d'icône */
.pcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pcard-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet));
  box-shadow: 0 6px 16px rgba(14, 165, 233, .3);
}
.pcard-ico svg { width: 19px; height: 19px; }
.pcard-ico i { font-size: 18px; line-height: 1; }
.pcard-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.discord-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.subscription-status {
  margin-bottom: 16px; padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--violet-soft), transparent);
  border: 1px solid var(--line);
}
.sub-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink-2); margin-bottom: 10px; box-shadow: var(--shadow); }
.sub-badge.pro { background: #dcfce7; color: #15803d; }
.sub-badge.admin { background: #e0f2fe; color: var(--violet); }
.subscription-status p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.subscription-details { border-top: 1px solid var(--line); padding-top: 16px; }
.sub-detail { display: flex; justify-content: space-between; align-items: center; }
.sub-detail-label { font-size: 13px; color: var(--muted); }
.sub-detail-value { font-family: 'Sora'; font-weight: 600; font-size: 16px; color: var(--violet); }
.sessions-header { margin-bottom: 16px; }
.btn-sm { font-size: 12px; padding: 6px 12px; }
.sessions-list { display: flex; flex-direction: column; gap: 10px; }
.session-item { background: var(--line-2); border-radius: 10px; padding: 12px; border: 1px solid var(--line); transition: all .12s; }
.session-item.current { border-color: var(--violet); background: var(--violet-soft); }
.session-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.session-device { font-weight: 600; font-size: 14px; }
.session-current { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--violet); color: #fff; }
.session-info { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; }
.session-info span { display: flex; align-items: center; gap: 4px; }
.session-actions { margin-top: 10px; }
.profile-messages { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }

/* Badge de notification sur le pseudo */
.user-menu { position: relative; flex-shrink: 0; min-width: 0; }
.user-chip:hover { border-color: var(--violet-2); box-shadow: 0 4px 14px rgba(14, 165, 233, .14); }
.user-chip:active { transform: scale(.98); }
.user-chip.open { border-color: var(--violet); box-shadow: 0 4px 16px rgba(14, 165, 233, .18); }
.user-chevron { color: var(--muted); margin-left: 2px; transition: transform .22s ease, color .16s; flex-shrink: 0; }
.user-chip:hover .user-chevron { color: var(--violet); }
.user-chip.open .user-chevron { transform: rotate(180deg); color: var(--violet); }
.notif-badge { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; min-width: 18px; text-align: center; border: 2px solid var(--card); z-index: 2; }

/* ===== Menu déroulant utilisateur ===== */
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 260px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top right; transition: opacity .18s ease, transform .18s cubic-bezier(.16,1,.3,1), visibility .18s;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.user-dropdown::before {
  content: ''; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px;
  background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.ud-header { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.ud-av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px; text-transform: uppercase; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet-2), var(--violet)); box-shadow: 0 4px 12px rgba(14, 165, 233, .3);
}
.ud-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ud-name { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-plan { font-size: 12px; color: var(--muted); }
.ud-plan.pro { color: var(--green); font-weight: 600; }
.ud-plan.admin { color: var(--violet); font-weight: 600; }
.ud-divider { height: 1px; background: var(--line); margin: 4px 6px; }
.ud-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 0; background: none; border-radius: 10px; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: left; transition: background .13s, color .13s;
}
.ud-item svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: color .13s; }
.ud-item span:not(.ud-badge) { flex: 1; }
.ud-item:hover { background: var(--violet-soft); color: var(--violet); }
.ud-item:hover svg { color: var(--violet); }
.ud-item.ud-danger:hover { background: #fef2f2; color: #dc2626; }
.ud-item.ud-danger:hover svg { color: #dc2626; }
.ud-badge { background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; min-width: 18px; text-align: center; }
[data-theme="dark"] .ud-item.ud-danger:hover { background: rgba(220,38,38,.14); color: #f87171; }
[data-theme="dark"] .ud-item.ud-danger:hover svg { color: #f87171; }

/* ================= ASSISTANT IA FLOTTANT ================= */
.assist-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
  box-shadow: 0 10px 30px rgba(14, 165, 233, .45);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.assist-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 36px rgba(14, 165, 233, .55); }
.assist-fab:active { transform: scale(.96); }
.assist-fab svg { width: 26px; height: 26px; position: absolute; transition: opacity .2s, transform .3s; }
.assist-fab-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.assist-fab.open .assist-fab-ico { opacity: 0; transform: rotate(90deg) scale(.6); }
.assist-fab.open .assist-fab-close { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .assist-fab { background: linear-gradient(135deg, #3f3f46, #18181b); box-shadow: 0 10px 30px rgba(0,0,0,.6); }

.assist-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 90;
  width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(24, 16, 45, .25);
  transform-origin: bottom right;
  animation: assistIn .24s cubic-bezier(.16,1,.3,1);
}
@keyframes assistIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.assist-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet)); }
[data-theme="dark"] .assist-head { background: linear-gradient(135deg, #232326, #0b0b0d); }
.assist-head-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.assist-head-av svg { width: 20px; height: 20px; }
.assist-head-meta { display: flex; flex-direction: column; line-height: 1.3; }
.assist-head-meta strong { font-size: 15px; }
.assist-head-sub { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.assist-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: assistPulse 2s infinite; }
@keyframes assistPulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.assist-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.assist-msg { max-width: 82%; padding: 10px 14px; border-radius: 15px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.assist-msg.bot { align-self: flex-start; background: var(--line-2); color: var(--ink); border-bottom-left-radius: 5px; }
.assist-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; border-bottom-right-radius: 5px; }
[data-theme="dark"] .assist-msg.user { background: #fafafa; color: #0b0b0d; }
.assist-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.assist-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--line-2); border-radius: 15px; border-bottom-left-radius: 5px; }
.assist-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: assistBlink 1.2s infinite; }
.assist-typing span:nth-child(2) { animation-delay: .2s; }
.assist-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes assistBlink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.assist-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; }
.assist-chip { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--violet); cursor: pointer; transition: background .13s, transform .12s; }
.assist-chip:hover { background: var(--violet-soft); transform: translateY(-1px); }
.assist-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.assist-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-family: inherit; font-size: 14px; background: var(--bg); color: var(--ink); outline: none; transition: border-color .15s; }
.assist-input input:focus { border-color: var(--violet-2); }
.assist-input button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet)); transition: transform .12s; }
[data-theme="dark"] .assist-input button { background: #fafafa; color: #0b0b0d; }
.assist-input button:hover { transform: scale(1.08); }
.assist-input button svg { width: 18px; height: 18px; }

/* ================= PAGE ACCUEIL ================= */
.view.home-view { max-width: none; padding: 0 0 60px; }
.view.loc-view { max-width: none; width: 100%; padding: 0 0 56px; margin: 0 auto; }
.home-section { max-width: 1160px; margin: 0 auto; padding: 56px 26px; }
.home-sub { text-align: center; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 640px; margin: 12px auto 0; }

.home-hero {
  position: relative; text-align: center; padding: 48px 26px 56px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(14, 165, 233, .12) 0%, transparent 55%),
    radial-gradient(600px 400px at 10% 20%, rgba(251, 146, 60, .08) 0%, transparent 45%);
}
[data-theme="dark"] .home-hero {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(14, 165, 233, .08) 0%, transparent 55%),
    radial-gradient(600px 400px at 10% 20%, rgba(0, 0, 0, .3) 0%, transparent 45%);
}
.home-hero-inner { max-width: 820px; margin: 0 auto; }
.home-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.home-title {
  font-size: clamp(32px, 5.5vw, 54px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.1; margin-bottom: 18px;
}
#home-type { min-width: 11ch; display: inline-block; }
.home-lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 700px; margin: 0 auto 28px; }
.home-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.home-cta-main { min-width: 220px; }
.home-cta-alt { min-width: 180px; }
a.btn.home-cta-discord,
.home-cta-discord {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865F2 !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid #5865F2 !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(88, 101, 242, .35);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.home-cta-discord i { font-size: 1.2em; color: #fff !important; }
a.btn.home-cta-discord:hover,
.home-cta-discord:hover {
  background: #4752C4 !important;
  background-image: none !important;
  border-color: #4752C4 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(88, 101, 242, .45);
}
.home-price-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700;
}
.home-quick-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px;
}
.home-qf-label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card);
}
.home-mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  max-width: 560px; margin: 0 auto 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.home-mini-stat { padding: 18px 12px; text-align: center; }
.home-mini-stat + .home-mini-stat { border-left: 1px solid var(--line); }
.home-mini-stat strong { display: block; font-family: 'Sora'; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.home-mini-stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.home-hero-feats {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
.home-hero-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.home-hero-feat-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet);
}
.home-hero-feat-ico svg { width: 18px; height: 18px; }
.home-scroll-hint { font-size: 13px; color: var(--muted); }
.home-scroll-hint:hover { color: var(--violet); }

.home-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--violet); background: var(--violet-soft); border: 1px solid var(--line);
  margin-bottom: 14px;
}
.home-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #15803d; background: #dcfce7; margin-bottom: 14px;
}

.home-criteria-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center;
}
.home-criteria-copy h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; }
.home-criteria-copy p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.home-criteria-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-lg);
}
.home-criteria-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.home-criteria-head-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet);
}
.home-criteria-head-ico svg { width: 20px; height: 20px; }
.home-criteria-head strong { display: block; font-size: 15px; }
.home-criteria-head span { font-size: 12px; color: var(--muted); }
.home-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.home-tag {
  font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--line-2);
  color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.home-tag:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.home-tag.t-blue { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.home-tag.t-pink { border-color: #f9a8d4; color: #be185d; background: #fdf2f8; }
.home-tag.t-orange { border-color: #7dd3fc; color: #0369a1; background: #f0f9ff; }
.home-tag.t-purple { border-color: #7dd3fc; color: #075985; background: #e0f2fe; }
.home-tag.t-red { border-color: #fca5a5; color: #b91c1c; background: #fef2f2; }
.home-tag.t-green { border-color: #86efac; color: #15803d; background: #f0fdf4; }
[data-theme="dark"] .home-tag.t-blue { background: rgba(37,99,235,.15); color: #93c5fd; }
[data-theme="dark"] .home-tag.t-pink { background: rgba(190,24,93,.15); color: #f9a8d4; }
[data-theme="dark"] .home-tag.t-orange { background: rgba(14,165,233,.15); color: #7dd3fc; }
[data-theme="dark"] .home-tag.t-purple { background: rgba(14,165,233,.12); color: #7dd3fc; }
[data-theme="dark"] .home-tag.t-red { background: rgba(185,28,28,.15); color: #fca5a5; }
[data-theme="dark"] .home-tag.t-green { background: rgba(21,128,61,.15); color: #86efac; }

.home-numbers { text-align: center; }
.home-numbers h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.home-numbers-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 34px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.home-num-card { padding: 32px 20px; }
.home-num-card + .home-num-card { border-left: 1px solid var(--line); }
.home-num { font-family: 'Sora'; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.home-num-line { height: 3px; width: 56px; margin: 12px auto 16px; border-radius: 999px; }
.grad-line { background: linear-gradient(90deg, var(--violet-2), var(--violet)); }
.green-line { background: var(--green); }
.orange-line { background: #0ea5e9; }
.home-num-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.home-num-label svg { width: 16px; height: 16px; }

.home-steps-section { text-align: center; }
.home-steps-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.home-steps-row {
  display: flex; align-items: stretch; justify-content: center; gap: 12px;
  margin: 36px 0 28px; flex-wrap: wrap;
}
.home-step-card {
  flex: 1; min-width: 220px; max-width: 300px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 22px; box-shadow: var(--shadow);
}
.home-step-n { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.home-step-ico {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
}
.home-step-ico svg { width: 22px; height: 22px; }
.home-step-card h3 { font-size: 17px; margin-bottom: 8px; }
.home-step-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.home-step-arrow { display: flex; align-items: center; font-size: 22px; color: var(--muted); font-weight: 700; }
.home-steps-cta { margin-top: 8px; }

.home-premium {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 36px; box-shadow: var(--shadow-lg);
  background-image: linear-gradient(135deg, var(--violet-soft), transparent);
}
.home-premium-tag { font-size: 12px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; }
.home-premium-copy h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 10px 0; letter-spacing: -.02em; }
.home-premium-copy p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 18px; max-width: 520px; }
.home-premium-price { text-align: right; flex-shrink: 0; }
.home-premium-price span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.home-premium-price strong { font-family: 'Sora'; font-size: 56px; font-weight: 800; color: var(--violet); line-height: 1; }

.home-news-section { text-align: center; }
.home-news-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.home-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; text-align: left; }
.home-news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.home-news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-news-card time { font-size: 11px; font-weight: 700; color: var(--violet); letter-spacing: .04em; }
.home-news-card h3 { font-size: 16px; margin: 10px 0 6px; }
.home-news-card p { font-size: 13px; color: var(--muted); }

.home-feat-section { text-align: center; }
.home-feat-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.home-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; text-align: left; }
.home-feat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s;
}
.home-feat-card:hover { transform: translateY(-2px); }
.home-feat-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 14px; color: #fff;
}
.home-feat-ico svg { width: 20px; height: 20px; }
.home-feat-ico.c-orange { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.home-feat-ico.c-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.home-feat-ico.c-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.home-feat-ico.c-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.home-feat-ico.c-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.home-feat-ico.c-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.home-feat-card h4 { font-size: 15px; margin-bottom: 6px; }
.home-feat-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.home-reviews { text-align: center; }
.home-reviews h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.home-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; text-align: left; }
.home-review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.home-review-card.featured { border-color: var(--violet-2); box-shadow: var(--shadow-lg); }
.home-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.home-review-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; font-style: italic; margin-bottom: 16px; }
.home-review-user { display: flex; align-items: center; gap: 10px; }
.home-review-av {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
}
.home-review-user strong { display: block; font-size: 14px; }
.home-review-user span { font-size: 12px; color: var(--muted); }

.home-about { text-align: center; }
.home-about h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.home-about-lead { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 780px; margin: 0 auto 32px; }
.home-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; margin-bottom: 28px; }
.home-about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.home-about-card h3 { font-size: 17px; margin-bottom: 10px; }
.home-about-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.home-legal { font-size: 13px; color: var(--muted); max-width: 720px; margin: 0 auto; }
.home-legal a { color: var(--violet); font-weight: 600; text-decoration: underline; }

/* ================= RESPONSIVE ================= */
.home-legal a { color: var(--violet); font-weight: 600; text-decoration: underline; }

/* ================= MODALE PAIEMENT ================= */
.pay-modal { max-width: 480px; }
.pay-summary { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.pay-ref-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.pay-ref-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--line-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 20px;
}
.pay-ref-box code { flex: 1; font-size: 13px; word-break: break-all; color: var(--violet); font-weight: 700; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pay-method {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .15s, transform .12s;
}
.pay-method:hover { border-color: var(--violet-2); transform: translateY(-1px); }
.pay-method-ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.pay-ico-paypal { background: #003087; color: #fff; font-size: 11px; }
.pay-ico-apple { background: #000; color: #fff; }
.pay-ico-apple svg { width: 22px; height: 22px; }
.pay-ico-crypto { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 20px; }
.pay-method-meta { display: flex; flex-direction: column; gap: 2px; }
.pay-method-meta strong { font-size: 15px; color: var(--ink); }
.pay-method-meta span { font-size: 12px; color: var(--muted); }
.pay-crypto-box {
  background: var(--line-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.pay-crypto-hint { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5; }
.pay-wallet {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.pay-wallet-label { font-size: 12px; font-weight: 700; color: var(--violet); min-width: 100%; }
.pay-wallet code { flex: 1; font-size: 11px; word-break: break-all; }
.pay-wallet-amt { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.pay-crypto-tg { font-size: 12px; color: var(--muted); }
.pay-crypto-tg a { color: var(--violet); font-weight: 600; }
.pay-crypto-empty { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.pay-crypto-empty a { color: var(--violet); font-weight: 600; }
.pay-confirm { border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-criteria-grid { grid-template-columns: 1fr; }
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .home-numbers-row { grid-template-columns: 1fr; }
  .home-num-card + .home-num-card { border-left: 0; border-top: 1px solid var(--line); }
  .home-about-grid { grid-template-columns: 1fr; }
  .home-premium { flex-direction: column; text-align: center; }
  .home-premium-price { text-align: center; }
  .home-premium-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 1024px) {
  .nav-links a { padding: 8px 9px; font-size: 13px; }
  .user-chip { max-width: min(170px, 34vw); }
}

@media (max-width: 720px) {
  .nav { top: 8px; padding: 0 10px; margin-top: 8px; }
  .nav-inner {
    gap: 8px; padding: 10px 12px; border-radius: 18px;
    flex-wrap: nowrap;
  }
  .logo-text { font-size: 16px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-end { gap: 6px; }
  .theme-toggle { width: 34px; height: 34px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; margin-left: 0; flex: none; overflow: visible;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 8px; gap: 2px; display: none; z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; font-size: 15px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-outline { display: none; }
  #btn-register { padding: 8px 12px; font-size: 13px; }
  .nav-burger { display: flex; }
  .user-meta { display: none; }
  .user-chevron { display: none; }
  .user-chip { padding: 4px; max-width: none; }
  .user-dropdown { width: calc(100vw - 32px); max-width: 280px; right: 0; }

  .view { padding: 0 16px 70px; }
  .view.home-view { padding: 0 0 50px; }
  .home-section { padding: 40px 16px; }
  .home-hero { padding: 32px 16px 40px; }
  .home-title { font-size: clamp(26px, 7vw, 36px); }
  .home-lead { font-size: 15px; }
  .home-cta { flex-direction: column; align-items: stretch; }
  .home-cta .btn { width: 100%; }
  .home-hero-feats { flex-direction: column; align-items: center; gap: 14px; }
  .home-quick-filters { gap: 6px; }
  .home-qf-label { font-size: 11px; padding: 6px 10px; }
  .home-criteria-copy .btn { width: 100%; }
  .home-steps-row { flex-direction: column; align-items: stretch; }
  .home-step-card { max-width: none; }
  .home-step-arrow { display: none; }
  .home-premium { padding: 24px 20px; }
  .home-premium-price strong { font-size: 44px; }
  .home-reviews-grid { grid-template-columns: 1fr; }
  .home-news-grid { grid-template-columns: 1fr; }
  .home-feat-grid { grid-template-columns: 1fr; }
  .home-mini-stats { grid-template-columns: 1fr; }
  .home-mini-stat + .home-mini-stat { border-left: 0; border-top: 1px solid var(--line); }

  .hero { padding: 36px 0 24px; }
  .hero h1 { font-size: clamp(24px, 6.5vw, 34px); }
  .hero-sub { font-size: 15px; }
  .page-head { padding: 36px 0 28px; }
  .page-head h1 { font-size: clamp(24px, 6vw, 32px); }
  .page-head p { font-size: 15px; }

  .section-body { grid-template-columns: 1fr; }
  .loc-board { grid-template-columns: 1fr; min-height: auto; }
  .loc-console { border-right: 0; border-bottom: 1px solid var(--line); }
  .loc-globe-stage { min-height: min(88vw, 420px); }
  .loc-result-actions { flex-direction: column; }
  .loc-result-actions .loc-btn { width: 100%; }
  .panel { padding: 8px; border-radius: 16px; }
  .section { margin: 4px; }
  .actions { flex-direction: column; align-items: stretch; padding: 16px 8px; }
  .actions .btn { width: 100%; }

  .paywall { flex-direction: column; text-align: center; padding: 16px; }
  .paywall .btn { width: 100%; }
  .paywall-actions { width: 100%; flex-direction: column; }
  .gate { padding: 32px 20px; margin: 0 4px; }
  .gate-actions { flex-direction: column; }
  .gate-actions .btn { width: 100%; }

  .result-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions .mini-btn { width: 100%; justify-content: center; }
  .dl-wrap { width: 100%; }
  .dl-wrap .dl-trigger { width: 100%; justify-content: center; }
  .dl-menu { left: 0; right: 0; min-width: 0; }
  .pager { flex-direction: column; gap: 10px; }
  .pager .btn { width: 100%; min-width: 0; }

  .pricing-hero { margin: 20px 0 24px; padding: 32px 20px; border-radius: 18px; }
  .profile-hero { margin: 20px 0 18px; padding: 28px 20px 22px; border-radius: 18px; }
  .profile-hero-top { flex-direction: column; text-align: center; }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }

  .cta-band { flex-direction: column; text-align: center; padding: 28px 22px; }
  .cta-band .btn { width: 100%; }
  .contact-wrap { grid-template-columns: 1fr; padding: 0 16px 36px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-card { padding: 20px; }
  .contact-hero { padding: 32px 16px 24px; }
  .contact-pills { gap: 8px; }
  .contact-pill { font-size: 12px; padding: 7px 12px; }

  .admin-block { padding: 16px; }
  .admin-block-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .admin-block-head > div { flex-direction: column; }
  .admin-block-head .btn { width: 100%; }
  .ban-add { flex-direction: column; }
  .ban-add .btn { width: 100%; }
  .admin-search { flex-direction: column; }

  .deep-overlay { padding: 0; }
  .deep-modal {
    max-width: none; max-height: 100vh; height: 100vh;
    margin: 0; border-radius: 0;
  }
  .deep-modal-head { padding: 18px 16px; flex-wrap: wrap; }
  .deep-modal-body { padding: 16px; }
  .deep-modal-title h2 { font-size: 17px; }
  .deep-modal-title p { font-size: 12px; }

  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { padding: 22px 18px; border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .confirm-modal { border-radius: 18px 18px 0 0; }
  #discord-modal { align-items: center; }
  #discord-modal .confirm-modal { border-radius: 18px; max-height: none; }
  .confirm-actions { flex-direction: column-reverse; }
  #discord-modal .confirm-actions { flex-direction: column; }
  .pay-modal { max-width: none; }
  .pay-method { padding: 12px 14px; }
  .pw-row { flex-direction: column; }
  .pw-row .btn { width: 100%; }
  .seg.wrap { justify-content: center; }

  .footer-inner {
    flex-direction: column; text-align: center;
    padding: 24px 16px; gap: 16px;
  }
  .footer-links {
    margin-left: 0; flex-wrap: wrap;
    justify-content: center; gap: 12px 16px;
  }

  .assist-fab { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .assist-panel {
    right: 10px; left: 10px; width: auto;
    bottom: 80px; height: calc(100vh - 140px);
  }
  .toast-wrap { left: 12px; right: 12px; bottom: 16px; }
  .toast { max-width: none; min-width: 0; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 15px; }
  #btn-register { padding: 8px 10px; font-size: 12px; }
  .home-badge { font-size: 11px; padding: 6px 12px; }
  #home-type { min-width: 9ch; }
  .home-num { font-size: 28px; }
  .home-mini-stat strong { font-size: 22px; }
  .plan { padding: 24px 18px; }
  .plan-price { font-size: 34px; }
  .code-card pre { font-size: 11px; padding: 12px; }
  .msg-top { flex-direction: column; align-items: flex-start; }
  .ip-tags { max-width: 100%; }
  .row-actions { width: 100%; }
  .row-actions .mini { flex: 1; text-align: center; }
}
