/* ============================================================
   NexusBots · Site public — noir 3D, comme le logo et le panel
   ============================================================ */
@font-face { font-family: 'Jakarta'; src: url('/panel/fonts/PlusJakartaSans-Variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jakarta'; src: url('/panel/fonts/PlusJakartaSans-Variable-ext.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; src: url('/panel/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050506;
  --surface: linear-gradient(180deg, #16171A 0%, #0C0D0F 100%);
  --surface-2: #131417;
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --text: #F4F5F7;
  --muted: #A3A7B0;
  --faint: #6C707A;
  --ok: #4ADE80;
  --warn: #FBBF24;
  --danger: #F87171;
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #DCDEE3 46%, #9EA2AB 100%);
  --chrome-text: linear-gradient(180deg, #FFFFFF 10%, #C7CAD1 60%, #8B8F98 100%);
  --bevel: linear-gradient(180deg, #2C2E34 0%, #16171B 46%, #0A0B0D 100%);
  --bevel-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .65), 0 1px 0 rgba(0, 0, 0, .55), 0 10px 22px -12px rgba(0, 0, 0, .95);
  --glare: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .13), transparent 55%);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 4px rgba(0, 0, 0, .5), 0 22px 44px -22px rgba(0, 0, 0, 1);
  --sans: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1100px 600px at 75% -10%, rgba(255, 255, 255, .07), transparent 60%), radial-gradient(800px 500px at 0% 40%, rgba(255, 255, 255, .03), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 500 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }
a { color: inherit; text-decoration: none; }
code { font: 600 .88em var(--mono); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 6px; }
em { font-style: normal; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 255, 255, .22); }
[hidden] { display: none !important; }

/* ------------------------------ Barre du haut ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; background: var(--glare), var(--bevel); border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--bevel-shadow); padding: 3px; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.links a[aria-current="page"] { color: #fff; background: var(--glare), var(--bevel); border-color: rgba(255, 255, 255, .14); box-shadow: var(--bevel-shadow); }
.nav-side { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { display: none; width: 40px; height: 40px; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }

/* ------------------------------ Boutons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 13px;
  font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; color: #fff;
  background: var(--glare), var(--bevel); border: 1px solid rgba(255, 255, 255, .2); box-shadow: var(--bevel-shadow);
  transition: transform .18s var(--ease), filter .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .4); filter: brightness(1.15); }
.btn.chrome { color: #0A0A0B; background: var(--chrome); border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 16px 32px -16px rgba(255, 255, 255, .25), 0 14px 28px -14px rgba(0, 0, 0, .9); }
.btn.chrome:hover { filter: brightness(1.05); }
.btn.sm { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 11px; }
.btn.wide { width: 100%; }

/* ------------------------------ Accueil ------------------------------ */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 72px 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #DADCE1; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.chip.off i { background: var(--warn); box-shadow: 0 0 0 4px rgba(251, 191, 36, .2); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.hero p { margin: 0 0 30px; max-width: 56ch; font-size: 17px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-art img { position: relative; width: 100%; height: auto; mix-blend-mode: lighten; filter: brightness(1.3) contrast(1.05); animation: float 7s ease-in-out infinite; }
.halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.strip::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.strip > div { padding: 26px 26px 22px; border-left: 1px solid var(--line-soft); }
.strip > div:first-child { border-left: 0; }
.strip b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-weight: 600; font-size: 13.5px; }

.block { padding: 84px 0 0; }
.block h2, .page-head h1 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 62ch; margin: 0 0 26px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.card { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tile { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--glare), var(--bevel); border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--bevel-shadow); }
.tile .ic { width: 23px; height: 23px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .2)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.mock { padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: perspective(900px) rotateY(-8deg) rotateX(3deg); }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-top: 1px solid var(--line-soft); font-weight: 600; }
.mock-row:first-child { border-top: 0; }
.mock-row b { font: 600 13px var(--mono); color: var(--muted); }
.mock-row i { width: 44px; height: 24px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); position: relative; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.mock-row i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--bevel); border: 1px solid rgba(255, 255, 255, .25); }
.mock-row i.on { background: var(--chrome); border-color: rgba(255, 255, 255, .6); }
.mock-row i.on::after { left: 22px; }

.vip-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 84px; padding: 40px 44px; border-radius: 26px; background: radial-gradient(700px 300px at 0% 0%, rgba(255, 255, 255, .1), transparent 60%), linear-gradient(180deg, #141518, #070708); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow); }
.vip-band .lead { margin: 0; }

/* ------------------------------ Commandes ------------------------------ */
.page-head { padding: 64px 0 20px; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin: 0 auto; }
.filters { position: sticky; top: 69px; z-index: 10; display: flex; flex-direction: column; gap: 12px; padding: 14px 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 16px; top: 15px; color: var(--faint); }
.search input { width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: inherit; outline: none; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); }
.search input:focus { border-color: rgba(255, 255, 255, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.chips button:hover { color: var(--text); }
.chips button[aria-pressed="true"] { color: #fff; background: var(--glare), var(--bevel); border-color: rgba(255, 255, 255, .18); box-shadow: var(--bevel-shadow); }
.chips .ic { width: 14px; height: 14px; }
.chips.static code { font-size: 12.5px; }
.cmd-group { padding-top: 34px; }
.cmd-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.cmd-group h2 span { font: 700 12px var(--mono); color: var(--faint); padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line-soft); }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cmd { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.cmd header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmd header code { font-size: 14px; background: none; border: 0; padding: 0; color: #fff; }
.cmd p { margin: 8px 0 8px; color: var(--muted); font-size: 14px; }
.cmd small { display: block; font: 500 12px var(--mono); color: var(--faint); word-break: break-word; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #0A0A0B; background: var(--chrome); }
.badge .ic { width: 12px; height: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ------------------------------ VIP ------------------------------ */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 980px; margin: 30px auto 0; align-items: start; }
.price-card { padding: 34px; border-radius: 24px; background: radial-gradient(600px 260px at 0% 0%, rgba(255, 255, 255, .09), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card h2 { margin: 18px 0 4px; font-size: 26px; font-weight: 800; }
.price-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.price-card h3 + .chips { margin-bottom: 0; }
.price-card p + h3 { margin-top: 26px; }
.price-card.soft { background: var(--surface); }
.price-card.soft p { color: var(--muted); margin: 0; }
.price { margin: 0 0 22px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.price-card li .ic { margin-top: 3px; color: var(--ok); }
.price-card small { display: block; margin-top: 14px; color: var(--faint); font-size: 13px; }

/* ------------------------------ Statut ------------------------------ */
.status { display: flex; flex-direction: column; gap: 18px; }
.status-main { display: flex; align-items: center; gap: 16px; padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-main i { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(74, 222, 128, .15), 0 0 18px rgba(74, 222, 128, .6); flex: none; }
.status-main.warn i { background: var(--warn); box-shadow: 0 0 0 6px rgba(251, 191, 36, .15); }
.status-main b { display: block; font-size: 19px; font-weight: 800; }
.status-main span { color: var(--muted); font-size: 14px; }
.shards h2 { font-size: 18px; margin: 10px 0 12px; }
#st-shards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.shard { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.shard i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.shard.warn i { background: var(--warn); }
.shard span { margin-left: auto; color: var(--muted); font: 600 13px var(--mono); }

/* ------------------------------ Pages simples (paiement, erreurs) ------------------------------ */
.notice { max-width: 560px; margin: 80px auto 0; text-align: center; padding: 40px 34px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.notice h1 { margin: 0 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.notice p { color: var(--muted); margin: 0 0 18px; }
.notice .key { display: inline-block; margin: 6px 0 18px; padding: 12px 18px; font-size: 18px; user-select: all; }

/* ------------------------------ Pied de page ------------------------------ */
.foot { border-top: 1px solid var(--line-soft); background: rgba(255, 255, 255, .015); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 30px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.foot small { margin-left: auto; color: var(--faint); }

/* ------------------------------ Mobile ------------------------------ */
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { justify-self: center; max-width: 320px; order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .vip-band { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
}
@media (max-width: 720px) {
  main { padding: 0 16px 60px; }
  .nav { gap: 12px; padding: 12px 16px; }
  .icon-btn { display: inline-grid; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: #0B0C0E; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links a { padding: 12px 14px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .strip b { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .filters { top: 65px; }
  .foot small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============================================================
   Tableau de bord des propriétaires
   ============================================================ */
.dash { padding-top: 40px; }
.dash-login { margin-top: 60px; }
.dash-logo { display: block; margin: -10px auto 4px; mix-blend-mode: lighten; filter: brightness(1.3); }
.muted-note { display: block; margin-top: 16px; color: var(--faint); font-size: 12.5px; }
.dash-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.who { display: flex; align-items: center; gap: 16px; }
.who h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.who p { margin: 2px 0 0; color: var(--muted); }
.dash-h2 { margin: 26px 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dash-note { margin-top: 26px; color: var(--faint); font-size: 13px; }
.gicon { width: 48px; height: 48px; flex: none; border-radius: 14px; object-fit: cover; display: inline-grid; place-items: center; font-weight: 800; color: #fff; background: var(--glare), var(--bevel); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--bevel-shadow); }
.gicon.round { border-radius: 50%; width: 56px; height: 56px; }
.gicon.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 22px; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.gcard:hover { transform: translateY(-2px); border-color: var(--line); }
.gcard.dim { opacity: .82; }
.gmeta { min-width: 0; flex: 1; }
.gmeta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.gmeta small { color: var(--muted); font-size: 12.5px; }
.lock { font-size: 12px; font-weight: 700; color: var(--faint); text-align: right; max-width: 110px; }
.empty-card { padding: 34px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.empty-card b { display: block; font-size: 17px; margin-bottom: 6px; }
.empty-card p { color: var(--muted); margin: 0 0 14px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 700; font-size: 14px; }
.back:hover { color: var(--text); }
.guild-head { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 22px; background: radial-gradient(600px 220px at 0% 0%, rgba(255, 255, 255, .09), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.guild-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.guild-head p { margin: 4px 0 0; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guild-head .btn { margin-left: auto; }
.tabs { display: flex; gap: 6px; margin: 18px 0; padding: 5px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 16px; border-radius: 11px; color: var(--muted); font-weight: 700; font-size: 14px; border: 1px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: #fff; background: var(--glare), var(--bevel); border-color: rgba(255, 255, 255, .16); box-shadow: var(--bevel-shadow); }
.form-card { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { margin: 0; font-size: 20px; font-weight: 800; }
.form-card .hint { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.sub-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, .25); }
.sub-card h3 { margin: 0; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: inherit; outline: none; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); }
.textarea { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255, 255, 255, .45); }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: #111214; }
.select.sm { height: 36px; font-size: 13.5px; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.mono { font-family: var(--mono); }
.color { display: flex; gap: 8px; }
.color input[type="color"] { width: 44px; height: 44px; flex: none; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; min-height: 44px; }
.switch input { appearance: none; width: 46px; height: 26px; flex: none; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5); position: relative; cursor: pointer; transition: background .25s var(--ease); }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bevel); border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 6px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--chrome); border-color: rgba(255, 255, 255, .6); }
.switch input:checked::after { transform: translateX(20px); }
.prot { border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.prot-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(150px, 210px); gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line-soft); }
.prot-row:first-child { border-top: 0; }
.prot-row small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; border: 1px solid transparent; }
.seg input:checked + span { color: #fff; background: var(--glare), var(--bevel); border-color: rgba(255, 255, 255, .16); box-shadow: var(--bevel-shadow); }
.seg input[value="max"]:checked + span { color: #0A0A0B; background: var(--chrome); }
.seg input[value="off"]:checked + span { color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.role { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface-2); cursor: pointer; font-weight: 600; }
.role.off { opacity: .45; cursor: not-allowed; }
.role i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.role span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role input { accent-color: #fff; }
.form-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.toast { padding: 13px 16px; border-radius: 14px; background: #121316; border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 1); animation: pop .25s var(--ease); }
.toast::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast.err::before { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .prot-row { grid-template-columns: 1fr; gap: 8px; }
  .guild-head { flex-wrap: wrap; }
  .guild-head .btn { margin-left: 0; }
  .dash-head { flex-direction: column; align-items: flex-start; }
}
.gmeta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bandeau d'annonce (modifiable depuis le panel) */
.banner { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: linear-gradient(90deg, #0b0c0e, #1c1d22 50%, #0b0c0e); border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; font-weight: 700; text-align: center; }
.banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ VIP « Bientôt accessible » */
.soon { position: relative; max-width: 620px; margin: 90px auto 40px; padding: 56px 40px 48px; text-align: center; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(520px 240px at 50% 0%, rgba(255, 255, 255, .10), transparent 70%), var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.soon::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.soon-tile { width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: var(--glare), var(--bevel); border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--bevel-shadow), 0 0 60px -10px rgba(255, 255, 255, .25); }
.soon-tile .ic { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)); animation: soon-tick 6s linear infinite; }
.soon h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon .lead { max-width: 520px; margin: 0 auto 26px; }
.soon h1 + .btn { margin-top: 12px; }
@keyframes soon-tick { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .soon-tile .ic { animation: none; } }
@media (max-width: 640px) {
  .soon { margin-top: 32px; padding: 40px 22px 32px; border-radius: 24px; }
}
.btn img.ic.mark { width: 20px; height: 20px; object-fit: contain; }
