:root {
  --bg: #090b12;
  --panel: rgba(18, 22, 34, .78);
  --panel-2: rgba(26, 31, 46, .9);
  --border: rgba(255,255,255,.09);
  --text: #f7f8ff;
  --muted: #9aa4bf;
  --primary: #00f2c3;
  --primary-2: #6d8cff;
  --danger: #ff405d;
  --warn: #ffb020;
  --success: #37e878;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top left, rgba(0,242,195,.16), transparent 35%), radial-gradient(circle at bottom right, rgba(109,140,255,.14), transparent 35%), var(--bg); color: var(--text); min-height: 100vh; }
.bg-grid { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hidden { display: none !important; }
.glass { background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; }
.login-card { width: min(440px, 100%); border-radius: 28px; padding: 34px; }
.login-card.wide { width: min(680px, 100%); }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; font-weight: 950; letter-spacing: -2px; color: #06140f; background: linear-gradient(135deg, var(--primary), #d2fff3); border-radius: 18px; box-shadow: 0 0 40px rgba(0,242,195,.32); }
.brand-mark.sm { width: 42px; height: 42px; border-radius: 14px; font-size: 15px; }
h1,h2,h3,p { margin-top: 0; }
p, small, .muted { color: var(--muted); }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #cdd4e8; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.055); color: var(--text); border-radius: 14px; padding: 12px 13px; outline: none; }
textarea { min-height: 94px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(0,242,195,.72); box-shadow: 0 0 0 4px rgba(0,242,195,.08); }
select option { background: #121827; color: var(--text); }
.btn { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: var(--text); padding: 11px 14px; border-radius: 14px; cursor: pointer; font-weight: 850; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.btn.primary { color: #06140f; background: linear-gradient(135deg, var(--primary), #9fffee); border: none; }
.btn.danger { background: rgba(255,64,93,.12); border-color: rgba(255,64,93,.34); color: #ffbdc8; }
.btn.warn { background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.34); color: #ffe0a5; }
.btn.ghost { background: transparent; }
.danger-text { color: #ff8fa0; }
.success-text { color: #80ffb3; }
.app-shell { display: grid; grid-template-columns: 286px 1fr; gap: 18px; padding: 18px; min-height: 100vh; position: relative; }
.sidebar { border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 18px; height: calc(100vh - 36px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px; }
.brand strong { display: block; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
nav { display: grid; gap: 8px; }
.nav { text-align: left; border: 1px solid transparent; color: #c8d0e9; background: transparent; border-radius: 16px; padding: 13px 14px; cursor: pointer; font-weight: 850; }
.nav:hover, .nav.active { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.08); color: white; }
.nav.active { box-shadow: inset 3px 0 0 var(--primary); }
#logoutBtn { margin-top: auto; }
.content { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 18px; }
.topbar { border-radius: 26px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar h2 { margin: 0 0 5px; }
.topbar p { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(55,232,120,.25); background: rgba(55,232,120,.08); color: #b8ffd0; padding: 9px 12px; border-radius: 999px; font-size: 13px; font-weight: 850; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(55,232,120,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 11px rgba(55,232,120,0); } 100% { box-shadow: 0 0 0 0 rgba(55,232,120,0); } }
.view { display: grid; gap: 18px; align-content: start; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .stat-card { border-radius: 24px; padding: 20px; }
.stat-card span { font-size: 24px; display: block; margin-bottom: 12px; }
.stat-card strong { display: block; font-size: 28px; }
.stat-card small { display: block; margin-top: 4px; }
.table-card { overflow: hidden; border-radius: 24px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
th { color: #dbe3fb; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.035); }
tr:hover td { background: rgba(255,255,255,.025); }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.badge.active, .badge.online, .badge.new { color: #9effc5; background: rgba(55,232,120,.1); border-color: rgba(55,232,120,.24); }
.badge.blocked, .badge.danger { color: #ff9dae; background: rgba(255,64,93,.1); border-color: rgba(255,64,93,.24); }
.badge.pending, .badge.warn { color: #ffe0a5; background: rgba(255,176,32,.1); border-color: rgba(255,176,32,.24); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.notice { border: 1px solid rgba(0,242,195,.22); background: rgba(0,242,195,.08); padding: 14px; border-radius: 18px; color: #dffdf7; }
.notice.danger { border-color: rgba(255,64,93,.35); background: rgba(255,64,93,.09); color: #ffd6dc; }
.ticket-category { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); border-radius: 20px; padding: 16px; margin-top: 12px; display: grid; gap: 12px; }
.ticket-category header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: #d2fff6; background: rgba(0,242,195,.07); border: 1px solid rgba(0,242,195,.16); border-radius: 10px; padding: 3px 7px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kbd { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); border-radius: 8px; padding: 2px 6px; color: #e8edff; font-size: 12px; }
@media (max-width: 1100px) { .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } nav { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .grid.stats, .grid.two, .form-grid { grid-template-columns: 1fr; } .topbar { display: grid; } nav { grid-template-columns: 1fr; } .app-shell { padding: 10px; } table { font-size: 12px; } th,td { padding: 10px; } }
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ticket-card { border-radius: 22px; padding: 18px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.07); }
.section-title h3 { margin: 0; }
.section-title small { max-width: 680px; text-align: right; }
#clientLogoutBtn { margin-top: auto; }
@media (max-width: 1100px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-cards { grid-template-columns: 1fr; } .section-title { display: grid; } .section-title small { text-align: left; } }


/* EXDEV Landing + Client UI premium patch */
a { color: inherit; text-decoration: none; }
.landing-nav { position: sticky; top: 16px; z-index: 20; width: min(1180px, calc(100% - 28px)); margin: 16px auto 0; border-radius: 24px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.landing-brand { display: flex; align-items: center; gap: 12px; }
.landing-brand strong { display: block; }
.landing-brand small { display: block; color: var(--muted); font-size: 12px; }
.landing-menu { display: flex; align-items: center; gap: 10px; }
.landing-menu > a:not(.btn) { color: #cdd4e8; font-weight: 800; font-size: 13px; padding: 10px 8px; }
.landing-shell { width: min(1180px, calc(100% - 28px)); margin: 18px auto 70px; display: grid; gap: 22px; position: relative; }
.hero { border-radius: 34px; padding: 34px; min-height: 520px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 26px; align-items: center; overflow: hidden; position: relative; }
.hero:before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 540px; height: 540px; background: radial-gradient(circle, rgba(0,242,195,.22), transparent 65%); pointer-events: none; }
.hero-copy, .hero-panel { position: relative; z-index: 1; }
.hero-badge, .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #a7ffde; background: rgba(0,242,195,.08); border: 1px solid rgba(0,242,195,.18); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: .94; letter-spacing: -0.06em; margin: 18px 0; max-width: 740px; }
.hero-lead { font-size: 18px; line-height: 1.6; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions.compact { margin-top: 16px; }
.hero-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.hero-mini-grid span { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.045); border-radius: 16px; padding: 12px; color: #dfe6ff; font-weight: 850; font-size: 13px; }
.hero-panel { border-radius: 24px; padding: 18px; background: rgba(4,8,15,.72); border: 1px solid rgba(0,242,195,.13); }
.terminal-top { display: flex; gap: 8px; margin-bottom: 14px; }
.terminal-top span { width: 11px; height: 11px; border-radius: 99px; background: rgba(255,255,255,.25); }
.hero-panel pre, .code-block { margin: 0; white-space: pre-wrap; word-break: break-word; color: #d6fff5; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 18px; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.landing-section { display: grid; gap: 16px; padding-top: 16px; }
.section-head { display: grid; gap: 6px; max-width: 820px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0; letter-spacing: -0.035em; }
.steps-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.step-card, .feature-card { border-radius: 24px; padding: 22px; min-height: 210px; }
.step-card b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: rgba(0,242,195,.12); color: #9dffec; border: 1px solid rgba(0,242,195,.22); margin-bottom: 14px; }
.feature-card span { font-size: 28px; display: block; margin-bottom: 14px; }
.install-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.install-card { min-height: 100%; }
.clean-list { display: grid; gap: 11px; color: #dce4fb; padding-left: 22px; line-height: 1.5; }
.btn.small { padding: 8px 10px; font-size: 12px; border-radius: 12px; }
.login-split { display: grid; grid-template-columns: 1fr .95fr; gap: 16px; align-items: stretch; }
.login-help { display: flex; flex-direction: column; justify-content: center; }
.client-hero, .setup-banner { border-radius: 26px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.client-hero h2 { margin: 8px 0 8px; font-size: 32px; letter-spacing: -0.035em; }
.hero-status-box { display: grid; justify-items: end; gap: 10px; min-width: 240px; }
.timeline-list { display: grid; gap: 12px; }
.timeline-list div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.timeline-list b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: rgba(0,242,195,.1); color: #baffef; border: 1px solid rgba(0,242,195,.2); }
.config-picker { display: grid; gap: 14px; }
.config-editor { padding: 0; overflow: hidden; }
.config-editor > .toolbar, .config-section, .bottom-save { padding: 20px; }
.sticky-toolbar { background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); border-bottom: 1px solid rgba(255,255,255,.07); }
.config-section { display: grid; gap: 16px; }
.config-subtitle { margin: 16px 0 10px; color: #e5ebff; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; opacity: .82; }
.premium-ticket { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border-color: rgba(255,255,255,.11); }
.ticket-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ticket-card-head > div:first-child { display: flex; align-items: center; gap: 12px; }
.ticket-card-head h3 { margin: 0 0 4px; }
.ticket-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,242,195,.11); border: 1px solid rgba(0,242,195,.22); font-size: 22px; }
.bottom-save { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.07); }
@media (max-width: 1100px) { .hero, .install-grid, .login-split { grid-template-columns: 1fr; } .steps-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .landing-nav { align-items: flex-start; } .landing-menu { flex-wrap: wrap; justify-content: flex-end; } }
@media (max-width: 720px) { .landing-nav { position: static; display: grid; } .landing-menu { justify-content: flex-start; } .hero { padding: 22px; min-height: auto; } .hero-mini-grid, .steps-grid, .feature-grid { grid-template-columns: 1fr; } .client-hero, .setup-banner, .ticket-card-head, .bottom-save { display: grid; justify-items: start; } .hero-status-box { justify-items: start; min-width: 0; } }

/* EXDEV responsive + configuration submenu patch */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; min-width: 0; }
label, .content, .client-content, .view, .card, .glass, .form-grid > * { min-width: 0; }
select { max-width: 100%; white-space: nowrap; text-overflow: ellipsis; }
textarea { max-width: 100%; }
.client-sidebar { width: 100%; }
.client-nav { align-content: start; }
.nav-group-title {
  margin: 8px 6px 2px;
  color: #93ffe6;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
  opacity: .9;
}
.nav.subnav {
  margin-left: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  font-size: 13px;
}
.nav.subnav.active { background: rgba(0,242,195,.09); border-color: rgba(0,242,195,.22); box-shadow: inset 3px 0 0 var(--primary); }
.module-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.module-pills.inline-modules { grid-template-columns: repeat(3, minmax(0,1fr)); }
.module-pill {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  color: var(--text);
  cursor: pointer;
}
.module-pill:hover { border-color: rgba(0,242,195,.32); background: rgba(0,242,195,.07); transform: translateY(-1px); }
.module-pill span { color: var(--muted); font-size: 12px; font-weight: 800; }
.module-pill b { color: #f7f8ff; }
.module-banner h3 { margin: 8px 0 6px; }
.compact-picker { padding: 18px; }
.form-grid.one-line { grid-template-columns: minmax(260px, 560px); }
.module-editor { contain: layout; }
.client-content { width: min(100%, 1480px); }
.config-editor select, .config-editor input, .config-editor textarea { background-color: #1b2131; }
@media (min-width: 1600px) {
  .app-shell { grid-template-columns: 290px minmax(0, 1fr); max-width: 1720px; margin: 0 auto; }
  .landing-shell, .landing-nav { width: min(1280px, calc(100% - 32px)); }
}
@media (max-width: 1380px) {
  .app-shell { grid-template-columns: 260px minmax(0,1fr); gap: 14px; padding: 14px; }
  .sidebar { padding: 14px; }
  .topbar { padding: 18px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(36px, 5vw, 58px); }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .client-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .client-nav .nav, .client-nav .nav.subnav { margin-left: 0; width: auto; white-space: nowrap; }
  .nav-group-title { width: 100%; margin-top: 10px; }
  #clientLogoutBtn { margin-top: 0; align-self: flex-start; }
  .content { grid-template-rows: auto auto; }
}
@media (max-width: 900px) {
  .form-grid, .form-grid.one-line { grid-template-columns: 1fr; }
  .module-pills, .module-pills.inline-modules { grid-template-columns: 1fr; }
  .client-hero, .setup-banner, .toolbar, .bottom-save, .ticket-card-head { display: grid; justify-items: start; }
  .toolbar .actions { width: 100%; }
  .toolbar .actions .btn { flex: 1 1 180px; }
  .hero-status-box { justify-items: start; min-width: 0; }
}
@media (max-width: 640px) {
  .app-shell { padding: 8px; gap: 10px; }
  .sidebar, .topbar, .card, .stat-card, .client-hero, .setup-banner { border-radius: 18px; }
  .topbar { display: grid; padding: 16px; }
  .status-pill { width: fit-content; }
  .config-editor > .toolbar, .config-section, .bottom-save { padding: 14px; }
  .ticket-card { padding: 14px; border-radius: 18px; }
  .row-actions .btn, .bottom-save .btn, .setup-banner .btn { width: 100%; }
  .client-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-group-title { grid-column: 1 / -1; }
  .nav { padding: 11px 12px; }
  .nav.subnav { font-size: 12px; }
  input, select, textarea { padding: 11px; border-radius: 12px; }
}
@media (max-width: 420px) {
  .client-nav { grid-template-columns: 1fr; }
  .brand { padding: 4px; }
  .client-hero h2 { font-size: 26px; }
}

/* =========================================================
   EXDEV Client UI — dashboard inspired layout
   ========================================================= */
.client-dashboard {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  background: #252833;
}
.workspace-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  background: #1e212b;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 18px;
}
.sidebar-brand strong { display: block; font-size: 20px; letter-spacing: .01em; }
.sidebar-brand span { display: block; color: var(--muted); font-size: 12px; }
.server-select { position: relative; margin: 0 0 22px; }
.server-current {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: #141721;
  color: #fff;
  border-radius: 12px;
  padding: 11px;
  cursor: pointer;
  font-weight: 900;
}
.server-current:hover,
.server-current:focus { border-color: rgba(0,242,195,.55); box-shadow: 0 0 0 4px rgba(0,242,195,.08); }
.server-current span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.server-current i { font-style: normal; color: #d6dcf2; }
.guild-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,242,195,.9), rgba(109,140,255,.75));
  color: #071018;
  font-weight: 950;
  font-size: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}
.guild-avatar.sm { width: 30px; height: 30px; font-size: 10px; }
.server-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(410px, 58vh);
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: #171a24;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}
.server-option {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #e9edff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}
.server-option span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-option:hover,
.server-option.active { background: rgba(255,255,255,.07); color: white; }
.workspace-nav {
  display: block;
  overflow: auto;
  padding-right: 4px;
}
.side-section { margin-bottom: 20px; }
.side-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 8px 8px;
  font-size: 11px;
  color: #f4f6ff;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: 950;
}
.side-items { display: grid; gap: 3px; }
.side-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  color: #9ca6c4;
  background: transparent;
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}
.side-item span { opacity: .9; }
.side-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.side-item:hover { background: rgba(255,255,255,.045); color: #fff; }
.side-item.active {
  color: #fff;
  background: rgba(0,242,195,.09);
  border-color: rgba(0,242,195,.18);
  box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar-footer { margin-top: auto; padding-top: 14px; }
.full-btn { width: 100%; }
.workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 34px;
  background: rgba(37,40,51,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.workspace-title { min-width: 0; }
.workspace-title h2 { margin: 0; font-size: clamp(21px, 2vw, 31px); }
.workspace-title p { margin: 5px 0 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.icon-btn,
.account-button {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; font-weight: 950; }
.mobile-only { display: none; }
.account-menu { position: relative; }
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  font-weight: 900;
}
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #8fffee);
  color: #071018;
  font-size: 11px;
  font-weight: 950;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 245px;
  padding: 14px;
  background: #151821;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  display: grid;
  gap: 6px;
}
.account-dropdown strong { padding: 6px 8px 9px; font-size: 12px; color: #fff; text-transform: uppercase; }
.account-dropdown a,
.account-dropdown button {
  color: #b8c2df;
  background: transparent;
  border: 0;
  text-align: left;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}
.account-dropdown a:hover,
.account-dropdown button:hover { background: rgba(255,255,255,.06); color: white; }
.workspace-view {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px);
  display: grid;
  gap: 24px;
  align-content: start;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  border-radius: 22px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(0,242,195,.20), transparent 34%),
    linear-gradient(135deg, rgba(16,20,34,.97), rgba(17,22,34,.94));
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.dashboard-hero h1 {
  font-size: clamp(38px, 7vw, 78px);
  line-height: .92;
  letter-spacing: -.06em;
  max-width: 650px;
  margin: 0 0 20px;
}
.dashboard-hero p { max-width: 650px; font-size: 16px; line-height: 1.65; }
.terminal-card {
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(0,242,195,.15);
  background: #10131b;
  padding: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
}
.terminal-dots { display: flex; gap: 7px; margin-bottom: 12px; }
.terminal-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.terminal-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d9fff7;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.quick-stats article,
.plugin-card,
.module-cover,
.module-panel,
.loading-card {
  border: 1px solid rgba(255,255,255,.075);
  background: #1f222d;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0,0,0,.16);
}
.quick-stats article { padding: 19px; min-width: 0; }
.quick-stats span { font-size: 24px; display: block; margin-bottom: 10px; }
.quick-stats b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; color: #fff; }
.quick-stats small { color: #9da8c5; }
.plugins-section { display: grid; gap: 18px; }
.plugins-title h2 { margin: 0 0 8px; }
.plugins-title p { margin: 0; }
.plugin-tabs { display: flex; gap: 24px; overflow: auto; border-bottom: 1px solid rgba(255,255,255,.08); }
.plugin-tabs button {
  flex: 0 0 auto;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #8f98b5;
  cursor: pointer;
  font-weight: 900;
  border-bottom: 2px solid transparent;
}
.plugin-tabs button.active { color: #fff; border-bottom-color: #fff; }
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plugins-grid.small-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 20px; }
.plugin-card { padding: 22px; min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; }
.plugin-card.compact { min-height: 170px; }
.plugin-head { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 24px; }
.plugin-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0,242,195,.11);
  border: 1px solid rgba(0,242,195,.13);
  font-size: 24px;
}
.plugin-card h3 { margin: 0 0 10px; }
.plugin-card p { flex: 1; margin-bottom: 18px; line-height: 1.55; }
.plugin-btn { background: rgba(0,242,195,.12); color: #98fff0; border-color: rgba(0,242,195,.22); }
.module-cover {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.module-icon-large {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,242,195,.18), rgba(109,140,255,.16));
  border: 1px solid rgba(0,242,195,.18);
  font-size: 32px;
}
.module-cover h1 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 44px); }
.module-cover p { margin: 0; line-height: 1.55; }
.module-actions { display: flex; align-items: center; gap: 10px; }
.mini-select { max-width: 260px; background-color: #171b26; }
.module-panel { padding: 24px; }
.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.editor-head h3 { margin: 4px 0 8px; }
.editor-head p { margin: 0; }
.config-block { display: grid; gap: 18px; }
.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.section-title h3 { margin: 0 0 4px; }
.section-title small { color: var(--muted); }
.ticket-grid { display: grid; gap: 18px; }
.ticket-card {
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
}
.ticket-card-head,
.ticket-title-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ticket-title-line { justify-content: flex-start; }
.ticket-icon { font-size: 24px; }
.config-subtitle {
  margin-top: 18px;
  margin-bottom: 10px;
  color: #eaf0ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bottom-save {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.loading-card { padding: 24px; color: var(--muted); }
.small-pad { padding: 10px; }

/* form stability / no overflow */
.client-dashboard input,
.client-dashboard select,
.client-dashboard textarea,
.client-dashboard button { max-width: 100%; }
.client-dashboard label,
.client-dashboard .form-grid,
.client-dashboard .form-grid > * { min-width: 0; }
.client-dashboard select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #aeb8d6 50%), linear-gradient(135deg, #aeb8d6 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

@media (max-width: 1260px) {
  .client-dashboard { grid-template-columns: 278px minmax(0, 1fr); }
  .plugins-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-hero { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .client-dashboard { grid-template-columns: 1fr; }
  .workspace-sidebar {
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
    width: min(320px, 88vw);
    box-shadow: 30px 0 80px rgba(0,0,0,.35);
  }
  body.sidebar-open .workspace-sidebar { transform: translateX(0); }
  .workspace-topbar { grid-template-columns: auto minmax(0,1fr); padding: 12px 16px; }
  .mobile-only { display: grid; }
  .workspace-title p { display: none; }
  .topbar-actions { grid-column: 1 / -1; justify-content: space-between; }
  .status-pill { font-size: 12px; padding: 8px 10px; }
  .workspace-view { padding: 16px; }
  .dashboard-hero { padding: 22px; border-radius: 18px; }
  .quick-stats,
  .plugins-grid,
  .plugins-grid.small-grid { grid-template-columns: 1fr; }
  .module-cover { grid-template-columns: 1fr; }
  .module-actions { flex-direction: column; align-items: stretch; }
  .mini-select { max-width: none; }
  .editor-head,
  .bottom-save,
  .ticket-card-head { flex-direction: column; align-items: stretch; }
  .form-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 1600px) {
  .client-dashboard { grid-template-columns: 324px minmax(0,1fr); }
  .workspace-view { width: min(1640px, 100%); }
  .plugins-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* EXDEV UI server/version polish patch */
.landing-body { overflow-x: hidden; }
.landing-nav-pro { top: 18px; width: min(1180px, calc(100% - 28px)); }
.landing-shell-pro { width: min(1180px, calc(100% - 28px)); }
.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: 560px;
  background:
    radial-gradient(circle at top right, rgba(0,242,195,.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(109,140,255,.16), transparent 38%),
    linear-gradient(135deg, rgba(15,18,29,.96), rgba(17,22,33,.92));
}
.home-hero:before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,242,195,.07), transparent 42%); pointer-events:none; }
.home-hero-copy, .home-hero-preview { position: relative; z-index: 1; }
.home-hero h1 { margin: 18px 0; max-width: 750px; font-size: clamp(42px, 6.4vw, 82px); line-height: .9; letter-spacing: -.07em; }
.home-hero .hero-lead { max-width: 680px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; }
.home-version-pill { margin-top: 18px; width: fit-content; display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(0,242,195,.18); background: rgba(0,242,195,.08); }
.home-version-pill span { color: #9bffd9; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 950; }
.home-version-pill b { color: #fff; }
.home-hero-preview { border: 1px solid rgba(0,242,195,.16); border-radius: 28px; padding: 18px; background: rgba(7,10,18,.82); box-shadow: 0 30px 100px rgba(0,0,0,.36); }
.mock-top { display: flex; gap: 7px; margin-bottom: 14px; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.24); }
.mock-layout { display: grid; grid-template-columns: 118px 1fr; gap: 14px; }
.mock-layout aside { border-radius: 18px; background: rgba(255,255,255,.045); padding: 14px; display: grid; align-content: start; gap: 12px; }
.mock-layout aside b { color: #fff; }
.mock-layout aside span { font-size: 12px; color: #aab5d0; }
.mock-layout section { min-width: 0; display: grid; gap: 12px; }
.mock-card.big { min-height: 95px; border-radius: 18px; background: linear-gradient(135deg, rgba(0,242,195,.18), rgba(109,140,255,.12)); border: 1px solid rgba(255,255,255,.08); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-grid i { min-height: 58px; border-radius: 15px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); }
.mock-layout pre { margin: 0; white-space: pre-wrap; font-size: 12px; line-height: 1.55; color: #d9fff7; background: #0b0e15; border: 1px solid rgba(0,242,195,.13); border-radius: 16px; padding: 14px; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.flow-line { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.flow-line article, .module-showcase-grid article, .faq-grid article { border: 1px solid rgba(255,255,255,.08); background: #141823; border-radius: 22px; padding: 22px; box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.flow-line b { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 14px; background: rgba(0,242,195,.12); border: 1px solid rgba(0,242,195,.2); color: #94fff0; }
.flow-line h3, .module-showcase-grid h3, .faq-grid h3 { margin: 0 0 10px; }
.flow-line p, .module-showcase-grid p, .faq-grid p { margin: 0; line-height: 1.55; }
.module-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.module-showcase-grid span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(0,242,195,.11); border: 1px solid rgba(0,242,195,.16); margin-bottom: 16px; font-size: 24px; }
.compatibility-section { border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr minmax(300px, .8fr); gap: 24px; align-items: center; }
.compat-list { display: grid; gap: 10px; }
.compat-list div { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); border-radius: 16px; padding: 14px; }
.compat-list small { display: block; margin-bottom: 4px; color: #9aa4bf; }
.compat-list b { color: #fff; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.selected-server-note { margin-top: 12px; color: #aeb8d6; font-size: 13px; }
.selected-server-note strong { color: #fff; }
.version-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.9fr) auto; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: #1f222d; border: 1px solid rgba(255,255,255,.08); }
.version-panel h2 { margin: 4px 0 8px; }
.version-panel p { margin: 0; line-height: 1.55; }
.version-panel.active { border-color: rgba(55,232,120,.22); background: linear-gradient(135deg, rgba(55,232,120,.075), #1f222d 44%); }
.version-panel.pending { border-color: rgba(255,176,32,.22); background: linear-gradient(135deg, rgba(255,176,32,.075), #1f222d 44%); }
.version-panel.danger { border-color: rgba(255,64,93,.26); background: linear-gradient(135deg, rgba(255,64,93,.09), #1f222d 44%); }
.version-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.version-grid article { min-width: 0; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.version-grid small { display:block; margin-bottom: 6px; color:#9aa4bf; }
.version-grid b { display:block; color:#fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-actions .server-chip { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #dfe6ff; font-weight: 900; }

@media (max-width: 1180px) {
  .home-hero, .compatibility-section, .version-panel { grid-template-columns: 1fr; }
  .flow-line { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .module-showcase-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .landing-nav-pro { position: static; display: grid; }
  .landing-menu { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .home-hero { padding: 22px; min-height: auto; }
  .home-hero h1 { font-size: clamp(36px, 12vw, 54px); }
  .mock-layout { grid-template-columns: 1fr; }
  .flow-line, .module-showcase-grid, .faq-grid, .version-grid { grid-template-columns: 1fr; }
  .split-head { display: grid; align-items: start; }
  .version-panel { padding: 18px; }
}

/* EXDEV Support + Suggestions patch */
.help-grid,
.help-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.help-card {
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(31,34,45,.92);
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
}
.help-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0,242,195,.11);
  border: 1px solid rgba(0,242,195,.13);
  font-size: 23px;
  margin-bottom: 16px;
}
.help-card h3 { margin: 0 0 8px; }
.help-card p { margin: 0 0 16px; line-height: 1.55; }
.timeline-list { display: grid; gap: 14px; }
.support-item {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 16px;
}
.support-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.support-item-head strong { display: block; color: #fff; }
.support-item-head small { display: block; color: var(--muted); margin-top: 3px; }
.support-item p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.admin-reply {
  margin-top: 12px;
  border-left: 3px solid rgba(0,242,195,.75);
  background: rgba(0,242,195,.065);
  border-radius: 12px;
  padding: 12px 14px;
  color: #dffdf8;
  line-height: 1.5;
  white-space: pre-wrap;
}
.public-support-form { padding: 20px; }
.help-center-section { padding: 22px; border-radius: 22px; }
@media (max-width: 1180px) {
  .help-grid,
  .help-public-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .help-grid,
  .help-public-grid { grid-template-columns: 1fr; }
  .support-item-head { display: grid; }
}

/* EXDEV Admin + Home compact polish patch */
body { overflow-x: hidden; }

/* Public home: dimensions plus propres sur laptop/desktop */
.landing-nav-pro,
.landing-shell-pro {
  width: min(1120px, calc(100% - 32px));
}
.landing-nav-pro {
  padding: 10px 12px;
  border-radius: 20px;
}
.landing-menu { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.landing-menu > a:not(.btn) { padding: 8px 7px; font-size: 12px; }
.landing-menu .btn { padding: 9px 12px; border-radius: 12px; }
.home-hero {
  min-height: auto;
  padding: clamp(28px, 4vw, 46px);
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .82fr);
  gap: clamp(22px, 4vw, 46px);
  border-radius: 28px;
}
.home-hero h1 {
  max-width: 620px;
  font-size: clamp(38px, 4.7vw, 62px);
  line-height: .96;
  letter-spacing: -.055em;
  margin: 14px 0 16px;
}
.home-hero .hero-lead {
  max-width: 590px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
}
.home-hero-preview { border-radius: 22px; padding: 14px; }
.mock-layout { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.mock-card.big { min-height: 74px; }
.mock-grid i { min-height: 44px; }
.mock-layout pre { font-size: 11px; }
.hero-actions { gap: 9px; }
.hero-actions .btn { padding: 10px 13px; border-radius: 12px; }
.home-version-pill { padding: 10px 12px; border-radius: 14px; }
.landing-section { scroll-margin-top: 100px; }
.section-head h2,
.split-head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.03; letter-spacing: -.035em; }
.flow-line article,
.module-showcase-grid article,
.faq-grid article { padding: 18px; border-radius: 18px; }
.flow-line b { width: 36px; height: 36px; border-radius: 12px; margin-bottom: 14px; }
.compatibility-section { border-radius: 24px; }

/* Admin now shares the client dashboard visual language */
.admin-dashboard { background: #252833; }
.admin-dashboard .workspace-sidebar {
  background: #1e212b;
  border-right: 1px solid rgba(255,255,255,.065);
}
.admin-scope-card {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  background: #141721;
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 20px;
}
.admin-scope-card .server-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,242,195,.92), rgba(109,140,255,.76));
  color: #06140f;
  font-weight: 950;
}
.admin-scope-card strong { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-scope-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-nav { display: block; overflow: auto; padding-right: 4px; }
.admin-nav .side-section-title {
  margin: 16px 0 6px;
  padding: 0 8px;
  font-size: 11px;
  color: #f4f6ff;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: 950;
}
.admin-nav .side-item {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: #9ca6c4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
  font-weight: 850;
}
.admin-nav .side-item:hover { background: rgba(255,255,255,.045); color: #fff; }
.admin-nav .side-item.active {
  color: #fff;
  background: rgba(0,242,195,.09);
  border-color: rgba(0,242,195,.18);
  box-shadow: inset 3px 0 0 var(--primary);
}
.admin-workspace-view { width: min(1560px, 100%); }
.admin-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr);
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(0,242,195,.18), transparent 36%),
    linear-gradient(135deg, rgba(16,20,34,.97), rgba(17,22,34,.94));
}
.admin-hero-panel h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 8px 0 12px;
}
.admin-hero-panel p { max-width: 720px; line-height: 1.6; margin: 0; }
.admin-terminal { border-radius: 18px; }
.admin-terminal pre { font-size: 12px; }
.admin-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-version-strip {
  display: grid;
  grid-template-columns: minmax(140px,.8fr) minmax(160px,.8fr) minmax(0,1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
}
.admin-version-strip div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  border-radius: 13px;
  padding: 12px;
}
.admin-version-strip small { display: block; margin-bottom: 5px; color: var(--muted); }
.admin-version-strip b { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-dashboard-grid { align-items: start; }
.admin-dashboard .table-card,
.admin-dashboard .card,
.admin-dashboard .stat-card {
  background: #1f222d;
}
.admin-dashboard table {
  min-width: 760px;
}
.admin-dashboard .table-card {
  overflow: auto;
}

@media (max-width: 1180px) {
  .home-hero,
  .admin-hero-panel,
  .admin-version-strip { grid-template-columns: 1fr; }
  .home-hero-preview { max-width: 760px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .landing-nav-pro { position: static; }
  .landing-brand small { display: none; }
  .landing-menu { justify-content: flex-start; }
  .home-hero { padding: 22px; border-radius: 22px; }
  .home-hero h1 { font-size: clamp(32px, 10vw, 46px); letter-spacing: -.04em; }
  .home-hero-preview { display: none; }
  .section-head h2,
  .split-head h2 { font-size: clamp(24px, 8vw, 34px); }
  .admin-dashboard .workspace-sidebar {
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
    width: min(320px, 88vw);
    box-shadow: 30px 0 80px rgba(0,0,0,.35);
  }
  body.sidebar-open .admin-dashboard .workspace-sidebar { transform: translateX(0); }
  .admin-dashboard .workspace-topbar { grid-template-columns: auto minmax(0, 1fr); }
  .admin-dashboard .topbar-actions { grid-column: 1 / -1; justify-content: space-between; }
  .admin-stats { grid-template-columns: 1fr; }
}

/* EXDEV visual bugfix: suggestions/support history cards */
.timeline-list .support-item,
.timeline-list .notice {
  min-width: 0;
  overflow: hidden;
}

.timeline-list .support-item-head {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

.timeline-list .support-item-head > div {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 130px);
}

.timeline-list .support-item-head strong {
  display: block;
  color: #fff;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
}

.timeline-list .support-item-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.timeline-list .support-item-head .badge {
  flex: 0 0 auto;
  width: auto;
  max-width: 120px;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.1;
}

.timeline-list .support-item p {
  color: #bfc9e6;
  overflow-wrap: anywhere;
  word-break: normal;
}

.admin-dashboard td,
.admin-dashboard th {
  vertical-align: top;
}

.admin-dashboard td:first-child,
.admin-dashboard td:nth-child(2),
.admin-dashboard td:nth-child(3) {
  min-width: 140px;
  overflow-wrap: anywhere;
}

.admin-dashboard td:last-child {
  min-width: 260px;
}

.admin-dashboard .row-actions,
.admin-dashboard .table-actions,
.admin-dashboard td:last-child > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-dashboard .btn,
.admin-dashboard button {
  max-width: 100%;
}

.module-panel {
  overflow: hidden;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.module-panel input,
.module-panel select,
.module-panel textarea {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 760px) {
  .timeline-list .support-item-head {
    display: grid !important;
    gap: 8px;
  }

  .timeline-list .support-item-head > div {
    max-width: 100%;
  }

  .timeline-list .support-item-head .badge {
    max-width: 100%;
    width: fit-content;
  }
}


/* EXDEV full management patch: fixed workspace + clickable modules + action UX */
.client-dashboard {
  display: block;
  min-height: 100vh;
}
.client-dashboard .workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 304px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.client-dashboard .workspace-main {
  margin-left: 304px;
  min-height: 100vh;
}
.client-dashboard .workspace-nav {
  overflow: visible;
  padding-bottom: 20px;
}
.plugin-card.clickable {
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.plugin-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(0,242,195,.26);
  background: #232734;
}
.publish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}
.publish-grid article,
.action-history article,
.discord-preview {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 16px;
}
.publish-grid b { display:block; margin-bottom:8px; color:#fff; }
.publish-grid p { margin: 0 0 14px; line-height: 1.45; color: var(--muted); }
.preview-grid { grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); align-items: start; }
.discord-preview { display: grid; gap: 12px; align-content: start; background: #2b2d36; }
.discord-embed { position: relative; display: grid; grid-template-columns: 5px minmax(0,1fr); overflow: hidden; border-radius: 8px; background: #20232c; border: 1px solid rgba(255,255,255,.08); }
.discord-embed-line { background: var(--primary); }
.discord-embed-content { padding: 14px; min-width: 0; }
.discord-embed-content h4 { margin: 0 0 8px; color: #fff; }
.discord-embed-content p { margin: 0 0 12px; color: #dce5ff; line-height: 1.48; word-break: break-word; }
.discord-embed-content small { color: #9aa6c4; }
.discord-button,
.discord-select-preview {
  border: 1px solid rgba(255,255,255,.12);
  background: #363a45;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  width: fit-content;
}
.discord-select-preview { width: 100%; display:flex; justify-content:space-between; color:#bfc9e5; }
.action-history { display:grid; gap:10px; }
.action-history article { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.action-history strong { display:block; color:#fff; }
.action-history small { display:block; color:var(--muted); margin-top:4px; }
.action-history em { display:block; color:#ff9eb0; font-style:normal; margin-top:6px; }
.action-history-block { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
@media (max-width: 1260px) {
  .client-dashboard .workspace-sidebar { width: 278px; }
  .client-dashboard .workspace-main { margin-left: 278px; }
  .publish-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .client-dashboard .workspace-main { margin-left: 0; }
  .client-dashboard .workspace-sidebar { width: min(320px, 88vw); overflow-y: auto; }
  .preview-grid, .publish-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   EXDEV Pro Dashboard patch — Shield cards + cleaner overview
   ========================================================= */
:root {
  --exdev-panel-bg: #242832;
  --exdev-panel-card: #1f232e;
  --exdev-panel-card-2: #181c27;
  --exdev-line: rgba(255,255,255,.085);
  --exdev-orange: #ff7a1a;
}
.client-dashboard,
.admin-dashboard { background:
  radial-gradient(circle at 18% 12%, rgba(0,242,195,.055), transparent 30%),
  linear-gradient(180deg, #252833 0%, #222631 100%);
}
.client-dashboard .workspace-main,
.admin-dashboard .workspace-main { background: transparent; }
.workspace-view { gap: 26px; }
.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .55fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  min-height: 330px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 82% 14%, rgba(0,242,195,.22), transparent 34%),
    linear-gradient(135deg, rgba(17,21,35,.98), rgba(19,24,35,.95));
  box-shadow: 0 34px 120px rgba(0,0,0,.30);
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  position: relative;
}
.ops-hero:before {
  content: "";
  position: absolute;
  inset: -60px auto auto 48%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0,242,195,.12), transparent 62%);
  pointer-events: none;
}
.ops-copy,
.shield-card { position: relative; z-index: 1; }
.ops-copy h1 {
  margin: 12px 0 16px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .94;
  letter-spacing: -.064em;
}
.admin-command-hero .ops-copy h1 { font-size: clamp(40px, 5vw, 66px); }
.ops-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #b7c4e6;
  font-size: 17px;
  line-height: 1.62;
}
.ops-copy p strong { color: #fff; }
.shield-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,122,26,.10), transparent 38%),
    rgba(18,15,17,.78);
  border: 1px solid rgba(255,122,26,.28);
  box-shadow: 0 26px 80px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  min-width: 0;
}
.client-shield-card { background:
  linear-gradient(180deg, rgba(0,242,195,.11), transparent 38%),
  rgba(14,18,27,.82); border-color: rgba(0,242,195,.22); }
.shield-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.035);
}
.shield-top strong { color: #fff; font-size: 16px; margin-right: auto; }
.terminal-dots i,
.terminal-dots span { display:inline-block; width:10px; height:10px; border-radius:99px; margin-right:6px; }
.terminal-dots i:nth-child(1), .terminal-dots span:nth-child(1) { background:#ff625e; }
.terminal-dots i:nth-child(2), .terminal-dots span:nth-child(2) { background:#ffbd2e; }
.terminal-dots i:nth-child(3), .terminal-dots span:nth-child(3) { background:#27c93f; }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}
.status-dot:before { content:""; width:7px; height:7px; border-radius:99px; background: currentColor; box-shadow:0 0 16px currentColor; }
.status-dot.active { color:#1fff86; }
.status-dot.warn { color:#ffbd2e; }
.status-dot.pending { color:#b7c4e6; }
.status-dot.danger { color:#ff6078; }
.shield-rows { display:grid; padding: 12px 20px 4px; }
.shield-rows div {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  min-width:0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.shield-rows span { color:#a5adbf; font-weight:800; }
.shield-rows b { color:#f3f5ff; text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ok-text { color:#1fff86 !important; }
.shield-bar { padding: 12px 20px 18px; }
.shield-bar + .shield-bar { padding-top: 0; }
.shield-bar div { display:flex; justify-content:space-between; gap:14px; margin-bottom:8px; color:#aab4ca; font-weight:850; }
.shield-bar b { color:#f7f7ff; }
.shield-bar i { display:block; height:6px; border-radius:99px; background:rgba(255,255,255,.10); overflow:hidden; }
.shield-bar em { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg, var(--primary), #ff7a1a); }
.shield-bar small { display:block; margin-top:7px; color:#8f9ab6; line-height:1.35; }
.ops-metrics-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.ops-metrics-grid article {
  display:grid;
  grid-template-columns: 48px minmax(0,1fr);
  align-items:center;
  gap:14px;
  min-height: 104px;
  border:1px solid rgba(255,255,255,.075);
  background: rgba(31,35,46,.86);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
}
.ops-metrics-grid article span {
  width:48px; height:48px; display:grid; place-items:center; border-radius:15px;
  background: rgba(0,242,195,.10); border:1px solid rgba(0,242,195,.16); font-size:22px;
}
.ops-metrics-grid b { display:block; color:#fff; font-size:20px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-metrics-grid small { display:block; color:#9facce; margin-top:4px; }
.pro-version-strip { border-color: rgba(0,242,195,.15); background: rgba(31,35,46,.80); }
.pro-module-section { margin-top: 4px; }
.pro-module-section .plugins-title { align-items:end; }
.module-filter-status {
  justify-self:end;
  display:grid;
  gap:5px;
  min-width:220px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius:14px;
  padding:12px 14px;
}
.module-filter-status span { color:#b8c4e3; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.module-filter-status b { color:#8dffeb; }
.pro-plugins-grid .plugin-card,
.pro-panel-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent),
    #1f232e;
  border-color: rgba(255,255,255,.08);
}
.pro-plugins-grid .plugin-card:hover {
  border-color: rgba(0,242,195,.30);
  background: linear-gradient(180deg, rgba(0,242,195,.055), rgba(255,255,255,.02)), #222736;
}
.admin-metrics-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.pro-admin-lanes { align-items:start; }
.admin-command-hero { min-height: 300px; }
.admin-shield-card .shield-bar em { background: linear-gradient(90deg, #ff7a1a, #1fff86); }
@media (max-width: 1380px) {
  .ops-hero { grid-template-columns: 1fr; }
  .shield-card { max-width: 760px; }
  .ops-metrics-grid, .admin-metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .ops-hero { padding: 22px; border-radius: 20px; min-height:auto; }
  .ops-copy h1 { font-size: clamp(34px, 14vw, 48px); }
  .ops-metrics-grid, .admin-metrics-grid { grid-template-columns: 1fr; }
  .module-filter-status { justify-self:stretch; min-width:0; }
  .shield-top { align-items:flex-start; flex-wrap:wrap; }
  .shield-rows div { display:grid; gap:4px; }
  .shield-rows b { text-align:left; }
}

/* EXDEV hotfix - spacing réponse admin dans Suggestions / Centre d'aide */
.admin-reply {
  margin-top: 18px !important;
  border-left: 4px solid rgba(0, 242, 195, .9) !important;
  background: linear-gradient(135deg, rgba(0, 242, 195, .095), rgba(0, 242, 195, .035)) !important;
  border-radius: 14px !important;
  padding: 14px 16px 16px !important;
  color: #dffdf8 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.admin-reply-head {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin-bottom: 8px !important;
  line-height: 1 !important;
}

.admin-reply-head span {
  color: rgba(255, 255, 255, .95) !important;
  font-weight: 950 !important;
  letter-spacing: .01em !important;
}

.admin-reply-head strong {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(0, 242, 195, .12) !important;
  border: 1px solid rgba(0, 242, 195, .25) !important;
  color: #8fffea !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.admin-reply-body {
  display: block !important;
  color: #e8fffb !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

.timeline-list .support-item {
  padding: 18px 20px !important;
}

.timeline-list .support-item p + .admin-reply,
.timeline-list .notice p + .admin-reply {
  margin-top: 18px !important;
}

/* EXDEV live preview + server management hotfix */
.client-dashboard .workspace-sidebar,
.admin-dashboard .workspace-sidebar {
  position: fixed !important;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh !important;
  overflow-y: auto;
  overflow-x: hidden;
}
.client-dashboard .workspace-main,
.admin-dashboard .workspace-main {
  min-height: 100vh;
}
.copy-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 10px;
  align-items: center;
}
.server-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.server-manage-card {
  border: 1px solid rgba(255,255,255,.085);
  background: rgba(255,255,255,.035);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.server-manage-card.active {
  border-color: rgba(0,242,195,.28);
  background: linear-gradient(180deg, rgba(0,242,195,.06), rgba(255,255,255,.025));
}
.server-manage-head,
.server-manage-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.server-manage-head > div:first-child { justify-content: flex-start; }
.server-manage-head strong,
.server-manage-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.discord-preview [data-p-desc] { white-space: normal; }
.discord-preview [data-p-title],
.discord-preview [data-p-desc],
.discord-preview [data-p-footer] { transition: color .12s ease; }
@media (max-width: 900px) {
  .server-manage-grid, .copy-row { grid-template-columns: 1fr; }
  .copy-row .btn, .copy-row a.btn { width: fit-content; }
}
