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

:root {
  --bg: #120a22;
  --bg2: #170e2b;
  --card: #1d1336;
  --card2: #251944;
  --line: #36275a;
  --text: #ececf5;
  --muted: #a99cc8;
  --brand: #f5c04a;
  --brand2: #e6a830;
  --purple: #8b4fd8;
  --ok: #2ecc71;
  --danger: #ef4444;
  --warn: #f5b942;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(139, 79, 216, 0.22), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(245, 192, 74, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, #ffd978, var(--brand), #c58bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Navbar --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 10, 34, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(245,192,74,.35); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }
.credits { font-size: 12px; color: var(--warn); }
@media (max-width: 760px) { .nav-links { display: none; } .user-chip span.name { display: none; } }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #ffd978, var(--brand2)); color: #1c0c38; box-shadow: 0 8px 30px rgba(245, 192, 74, .25); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(245, 192, 74, .4); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--card2); }
.btn-danger { background: var(--danger); color: white; }
.btn-ok { background: var(--ok); color: #062; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 14px; }

/* --- Hero --- */
.hero { padding: 90px 0 60px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(139, 79, 216, .12); border: 1px solid rgba(139, 79, 216, .35); color: #ffd978; font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6.5vw, 72px); line-height: 1.05; margin: 22px 0 18px; letter-spacing: -1.5px; font-weight: 800; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-mascot { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; box-shadow: 0 0 0 3px rgba(245,192,74,.4), 0 25px 60px rgba(139, 79, 216, .55); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { display: flex; gap: 14px; justify-content: center; margin-top: 54px; flex-wrap: wrap; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 28px; min-width: 170px; }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 14px; }

/* --- Sections --- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -.5px; }
.section-title p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature { transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(139, 79, 216, .6); transform: translateY(-3px); }
.feature .icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: rgba(139, 79, 216, .14); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.ai-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .ai-showcase { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #1c0c38; background: linear-gradient(135deg, #ffd978, var(--brand2)); }

/* faux Discord pour l'aperçu */
.discord-mock { background: #2b2d31; border-radius: 14px; padding: 14px; font-size: 14px; border: 1px solid #1e1f22; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.dm-cat { color: #949ba4; font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 12px 0 4px; display: flex; align-items: center; gap: 6px; }
.dm-ch { color: #b5bac1; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.dm-ch:hover { background: #35373c; }
.dm-ch .lock { margin-left: auto; font-size: 11px; opacity: .7; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #1e1f22; font-size: 13px; margin: 3px; border: 1px solid #3a3c42; }
.role-pill i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* --- Pricing --- */
.price { display: flex; flex-direction: column; }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px rgba(139, 79, 216, .25); position: relative; }
.price .tag { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--brand), var(--purple)); color: #1c0c38; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.price .amount { font-size: 42px; font-weight: 800; margin: 8px 0; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; }
.price li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 10px; }
.price li.no { color: var(--muted); }
.price li.no::before { content: "✕"; color: var(--muted); }

/* --- Footer --- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* --- Dashboard --- */
.page-head { padding: 44px 0 24px; }
.page-head h1 { margin: 0 0 6px; font-size: 34px; }
.guild-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 20px; }
.guild-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--card2); display: grid; place-items: center; font-weight: 800; font-size: 26px; overflow: hidden; border: 1px solid var(--line); }
.guild-icon img { width: 100%; height: 100%; object-fit: cover; }
.guild-card h3 { margin: 0; font-size: 17px; word-break: break-word; }

/* Panel serveur */
.panel { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-bottom: 60px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
.side { position: sticky; top: 88px; align-self: start; display: grid; gap: 4px; }
@media (max-width: 860px) { .side { position: static; grid-auto-flow: column; overflow-x: auto; } }
.side button { all: unset; cursor: pointer; padding: 11px 14px; border-radius: 11px; color: var(--muted); font-weight: 600; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.side button:hover { background: var(--card); color: var(--text); }
.side button.active { background: rgba(139, 79, 216, .15); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.tab { display: none; }
.tab.active { display: block; }
.tab h2 { margin: 0 0 4px; }
.tab > p.muted { margin: 0 0 22px; }

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=url], input[type=number], textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 11px; padding: 11px 13px; font: inherit; font-size: 14.5px; outline: none; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
input[type=color] { width: 54px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 3px; cursor: pointer; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.switch b { display: block; }
.switch small { color: var(--muted); }
.toggle { position: relative; width: 48px; height: 27px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: #3a3a55; border-radius: 99px; cursor: pointer; transition: .2s; }
.toggle span::before { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: var(--brand); }
.toggle input:checked + span::before { transform: translateX(21px); }

.savebar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 20px; display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: transform .25s; z-index: 60; width: min(560px, calc(100% - 32px)); }
.savebar.show { transform: translateX(-50%) translateY(0); }
.savebar span { flex: 1; font-weight: 600; }

.preview-embed { background: #2b2d31; border-radius: 6px; border-left: 4px solid var(--brand); padding: 12px 16px; font-size: 14px; max-width: 520px; }
.preview-embed .t { font-weight: 700; margin-bottom: 6px; }
.preview-embed .d { white-space: pre-wrap; color: #dbdee1; }
.preview-embed img.big { border-radius: 6px; margin-top: 12px; max-height: 260px; }
.preview-buttons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dbtn { padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; color: white; }
.dbtn.s1 { background: #5865f2; } .dbtn.s2 { background: #4e5058; } .dbtn.s3 { background: #248046; } .dbtn.s4 { background: #da373c; }

.ticket-btn-row { display: grid; grid-template-columns: 70px 1fr 130px 40px; gap: 8px; margin-bottom: 8px; }
@media (max-width: 520px) { .ticket-btn-row { grid-template-columns: 56px 1fr 40px; } .ticket-btn-row select { grid-column: 1 / -2; } }

/* Générateur IA */
.gen-box { display: grid; gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--brand); }
.loader { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thinking { text-align: center; padding: 50px 20px; }
.thinking .big-loader { width: 54px; height: 54px; border-width: 4px; margin-bottom: 16px; border-color: rgba(139,79,216,.25); border-top-color: var(--brand); }

/* Toast */
#toast { position: fixed; top: 84px; right: 20px; z-index: 100; display: grid; gap: 10px; }
.toast { background: var(--card2); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 10px; min-width: 240px; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: slidein .25s; }
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 80; padding: 16px; }
.modal-bg.show { display: grid; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; width: min(520px, 100%); max-height: 85vh; overflow: auto; }
.modal h3 { margin-top: 0; }
.pick-guild { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.pick-guild:hover { background: var(--card2); border-color: var(--line); }
.pick-guild .guild-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
.pick-guild .grow { flex: 1; }

/* --- Icônes --- */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; }
.feature .icon { color: var(--brand); }
.feature .icon .ic { width: 24px; height: 24px; }
.badge .ic, .credits .ic { width: 14px; height: 14px; }
.side button .ic { width: 18px; height: 18px; }
.tab h2 { display: flex; align-items: center; gap: 10px; }
.tab h2 .ic { color: var(--brand); }
.dm-cat .ic, .dm-ch .ic { width: 15px; height: 15px; opacity: .8; }
.dm-ch .lock { display: inline-flex; align-items: center; gap: 4px; }
.dm-ch .lock .ic { width: 12px; height: 12px; }
.meta-ic { display: inline-flex; align-items: center; gap: 6px; }
.meta-ic .ic { color: var(--brand); }
.hero-ic { color: var(--brand); }

/* --- Menu mobile --- */
.burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 760px) {
  .burger { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .nav .container { gap: 10px; height: 60px; }
  .nav-right { gap: 8px; }
  .logo { font-size: 18px; }
  .logo img { width: 34px; height: 34px; }
  .user-chip { padding: 3px; }
  .user-chip .credits { padding-right: 8px; }
  .nav.open .mobile-menu { display: grid; }
  .mobile-menu { gap: 2px; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: rgba(18, 10, 34, .97); }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 10px; font-weight: 600; color: var(--muted); }
  .mobile-menu a:not(.btn):active, .mobile-menu a:not(.btn):hover { background: var(--card); color: var(--text); }
  .mobile-menu .ic { color: var(--brand); width: 18px; height: 18px; }
  .mobile-menu #mobile-user .btn { width: 100%; }

  /* Accueil */
  .hero { padding: 36px 0 28px; }
  .hero-mascot { width: 96px; height: 96px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; margin: 16px 0 12px; }
  .hero p.lead { font-size: 15.5px; margin-bottom: 24px; }
  .badge { font-size: 12px; padding: 5px 11px; }
  .hero .cta, section .cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .cta .btn, section .cta .btn { width: 100%; }
  .btn-lg { padding: 14px 20px; font-size: 16px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .stat { min-width: 0; padding: 14px 10px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 13px; }

  section { padding: 40px 0; }
  .section-title { margin-bottom: 24px; }
  .section-title h2 { font-size: 26px; }
  .section-title p { font-size: 15px; }

  /* Cartes de fonctionnalités : icône à gauche, plus compact */
  .grid { gap: 12px; }
  .card { padding: 18px; border-radius: 14px; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .feature .icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .feature h3 { font-size: 16.5px; margin: 0 0 4px; }
  .feature p { font-size: 14px; }

  .ai-showcase { gap: 24px; }
  .ai-showcase .btn { width: 100%; }
  .steps { margin: 18px 0; }
  .discord-mock { font-size: 13px; }

  footer { margin-top: 10px; padding: 26px 0; }
  footer .container { flex-direction: column; gap: 12px; }

  /* Pages panel */
  .page-head { padding: 26px 0 16px; }
  .page-head h1 { font-size: 26px !important; }
  .panel { gap: 14px; }
  .side { margin: 0 -16px; padding: 0 16px 4px; gap: 6px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side button { padding: 9px 13px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
  .side button.active { box-shadow: none; border-color: var(--brand); }
  .row { gap: 0 12px; }
  .switch { padding: 12px 14px; }
  .guild-card { padding: 20px 14px; }
  .guild-icon { width: 60px; height: 60px; border-radius: 18px; }
  .price .amount { font-size: 34px; }
  #toast { left: 12px; right: 12px; top: 70px; }
  .toast { max-width: none; }
  .modal { padding: 20px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 31px; }
  .logo span, .logo { font-size: 17px; }
}

/* --- Étoiles / avis --- */
.ic.star { color: #4a3a6e; }
.ic.star.on { color: var(--brand); fill: var(--brand); }
.stars { display: inline-flex; gap: 2px; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { all: unset; cursor: pointer; padding: 2px; }
.star-input .ic { width: 30px; height: 30px; }
.review { display: grid; gap: 10px; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .who img { width: 36px; height: 36px; border-radius: 50%; }
.review p { margin: 0; color: #d8d0ee; white-space: pre-wrap; word-break: break-word; }
.rating-big { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.rating-big b { font-size: 34px; }
.muted-note { font-size: 12.5px; color: var(--muted); }

/* --- Particules + apparition --- */
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero > * { animation: rise .7s ease both; }
.hero > *:nth-child(2) { animation-delay: .08s; }
.hero > *:nth-child(3) { animation-delay: .16s; }
.hero > *:nth-child(4) { animation-delay: .24s; }
.hero > *:nth-child(5) { animation-delay: .32s; }
.hero > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .hero > * { animation: none; } }
.card.feature:hover { box-shadow: 0 14px 40px rgba(139, 79, 216, .18); }

/* --- Pastilles de statut (couleurs réservées, toujours avec un texte) --- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #7a7090; }
.dot.ok, .dot.on { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .18); }
.dot.maintenance { background: #f1c40f; }
.dot.degraded { background: #f39c12; }
.dot.down, .dot.off { background: #ef4444; }
.dot.unknown { background: #7a7090; }
.txt-ok { color: #2ecc71; }
.txt-down { color: #ef4444; }

.status-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: border-color .15s; }
.status-btn:hover { border-color: var(--brand); }

/* --- Panneau latéral "Statut du Bot" --- */
#status-drawer .drawer-bg { position: fixed; inset: 0; background: rgba(5, 2, 12, .55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
#status-drawer .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg2); border-left: 1px solid var(--line); z-index: 91; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, .45); }
#status-drawer.open .drawer-bg { opacity: 1; pointer-events: auto; }
#status-drawer.open .drawer { transform: none; }
.drawer header { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); background: var(--bg2); font-size: 17px; z-index: 1; }
.drawer .grow { flex: 1; }
.icon-btn { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.icon-btn:hover { background: var(--card); color: var(--text); }
.icon-btn.spin .ic { animation: spin .8s linear infinite; }
.st-bot { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.st-bot .grow { flex: 1; min-width: 0; }
.st-avatar { position: relative; width: 54px; height: 54px; flex: none; }
.st-avatar img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(245, 192, 74, .35); }
.st-avatar .dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border: 3px solid var(--bg2); box-shadow: none; }
.st-bot b { font-size: 17px; }
.st-sub { font-size: 13.5px; margin-top: 2px; }
.st-uptime { text-align: right; }
.st-uptime small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.st-uptime b { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.st-section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.st-section h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.st-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center; }
.st-stats b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.st-stats span { color: var(--muted); font-size: 13px; }
.st-services { display: grid; gap: 8px; }
.st-svc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; font-size: 14.5px; }
.st-svc .grow { flex: 1; }
.st-svc > .ic { color: var(--muted); }
.st-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.s-ok { color: #2ecc71; }
.s-maintenance { color: #f1c40f; }
.s-degraded { color: #f39c12; }
.s-down { color: #ef4444; }
.s-unknown { color: #9a90b5; }
.st-legend { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.st-foot { color: var(--muted); font-size: 12px; text-align: center; padding: 14px; margin: 0; }

/* --- Tableau de bord serveur --- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.kpi .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.kpi .label .ic { color: var(--brand); width: 16px; height: 16px; }
.kpi .value { font-size: 28px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi .sub.up { color: #2ecc71; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.dash-card h3 { margin: 0 0 14px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-card h3 a, .dash-card h3 button.link { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.dash-card h3 small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.feed { display: grid; gap: 4px; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 10px; }
.feed-item .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(139, 79, 216, .18); color: #cfb3ff; }
.feed-item .fi.t-join { background: rgba(46, 204, 113, .14); color: #7ee2a8; }
.feed-item .fi.t-leave, .feed-item .fi.t-ban, .feed-item .fi.t-kick, .feed-item .fi.t-automod { background: rgba(239, 68, 68, .14); color: #ff9b9b; }
.feed-item .fi.t-ticket_open, .feed-item .fi.t-ticket_close, .feed-item .fi.t-giveaway, .feed-item .fi.t-announce { background: rgba(245, 192, 74, .14); color: var(--brand); }
.feed-item .grow { flex: 1; min-width: 0; }
.feed-item b { font-size: 14px; display: block; }
.feed-item span.d { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bot-lines { display: grid; gap: 10px; font-size: 14px; }
.bot-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.bot-lines span { color: var(--muted); }
.modules { display: grid; gap: 2px; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.module-row button.link { all: unset; cursor: pointer; color: var(--brand); font-size: 12.5px; font-weight: 600; }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-tip { position: absolute; top: 0; left: 0; pointer-events: none; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .12s; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.chart-tip b { display: block; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guild-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 6px; cursor: pointer; position: relative; }
.guild-switch .guild-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.guild-switch b { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-switch select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.side-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 12px 14px 4px; }
@media (max-width: 860px) { .side-label, .guild-switch { display: none; } }
@media (max-width: 760px) {
  .status-btn span:last-child { display: none; }
  .status-btn { padding: 0; width: 42px; height: 42px; justify-content: center; border-radius: 11px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 23px; }
  .chart-wrap svg { height: 180px; }
}

/* --- Logo 4pmBot (SVG vivant) --- */
.logo-mark { width: 38px; height: 38px; display: inline-block; flex: none; }
.logo-mark svg, .hero-mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-mascot { width: 170px; height: 170px; border-radius: 0; box-shadow: none; cursor: pointer; filter: drop-shadow(0 22px 50px rgba(139, 79, 216, .55)) drop-shadow(0 6px 24px rgba(245, 192, 74, .18)); }
@media (max-width: 760px) {
  .hero-mascot { width: 116px; height: 116px; }
  .logo-mark { width: 34px; height: 34px; }
}

/* --- Premium --- */
.pbadge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(245, 192, 74, .16); color: var(--brand); margin-left: 6px; vertical-align: 1px; }
.premium-zone.locked { position: relative; cursor: pointer; }
.premium-zone.locked input, .premium-zone.locked select, .premium-zone.locked textarea { opacity: .45; pointer-events: none; }
.premium-zone.locked:hover .pbadge { background: var(--brand); color: #1c0c38; }
.premium-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(139, 79, 216, .22), rgba(245, 192, 74, .08)); border: 1px solid var(--line); flex-wrap: wrap; }
.premium-banner > .ic { color: var(--brand); width: 20px; height: 20px; }
.premium-banner span { flex: 1; min-width: 200px; font-size: 14.5px; }
.premium-banner.on { border-color: rgba(245, 192, 74, .5); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.pick { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.pick:hover { color: var(--text); border-color: #5b4690; }
.pick.on { color: var(--text); border-color: var(--brand); background: rgba(245, 192, 74, .12); }
.pick i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.modal.upsell { text-align: center; }
.upsell-ic { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 18px; display: grid; place-items: center; background: rgba(245, 192, 74, .14); color: var(--brand); }
.upsell-ic .ic { width: 28px; height: 28px; }
.perks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; text-align: left; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.perks .ic { color: #2ecc71; }

/* --- Filtres du générateur IA --- */
.filters { display: grid; gap: 16px; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.filter-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .seg { grid-template-columns: 1fr 1fr; } }
.seg button { all: unset; cursor: pointer; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s; }
.seg button small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.seg button:hover { border-color: #5b4690; }
.seg button.on { border-color: var(--brand); background: rgba(245, 192, 74, .1); }
.seg button.locked { opacity: .6; }
#opt-include .pick { padding: 8px 13px; }

/* --- Aperçu de la configuration automatique --- */
.ptag { margin-left: 8px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 2px 7px; border-radius: 999px; background: rgba(245, 192, 74, .16); color: var(--brand); }
.setup-card { border: 1px solid rgba(245, 192, 74, .35); background: rgba(245, 192, 74, .05); border-radius: 14px; padding: 16px 18px; }
.setup-card h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.setup-card h3 .ic { color: var(--brand); }
.setup-line { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--line); }
.setup-line:first-of-type { border-top: 0; }
.setup-line > .ic { color: var(--brand); margin-top: 2px; }
.setup-line .muted { font-size: 13px; }

/* --- Icônes pleines (logo Discord) + étapes d'achat --- */
.ic.fill { fill: currentColor; stroke: none; }
a.status-btn { text-decoration: none; }
.status-btn .ic.fill { width: 17px; height: 17px; color: #8c9eff; }
.buy-steps { text-align: left; max-width: 460px; margin: 6px auto 18px; padding-left: 22px; display: grid; gap: 8px; color: var(--text); }
