:root {
  --bg: #07080d;
  --bg-2: #0d1018;
  --panel: rgba(18, 21, 31, .82);
  --panel-2: rgba(25, 29, 42, .88);
  --panel-3: #0f121b;
  --text: #f7f9ff;
  --muted: #a8b0c3;
  --border: #282d3d;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --danger: #fb7185;
  --success: #4ade80;
  --warning: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(125, 211, 252, .15), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(167, 139, 250, .12), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .primary, .ghost, .danger, .soft {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
button:hover, .ghost:hover, .soft:hover { border-color: rgba(125, 211, 252, .8); }
.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071017;
  border: 0;
  font-weight: 850;
}
.danger { background: rgba(251, 113, 133, .14); border-color: rgba(251, 113, 133, .4); color: #fff; }
.soft { background: rgba(255,255,255,.04); }
.large { padding: 14px 18px; border-radius: 18px; }
.nav, .container, .dashboard-shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 22px 0; }
.brand { font-weight: 900; letter-spacing: .2px; font-size: 20px; display:flex; gap:10px; align-items:center; }
.brand-icon { filter: drop-shadow(0 0 14px rgba(125, 211, 252, .45)); }
.nav-actions, .hero-buttons, .row, .toolbar-actions { display:flex; gap:12px; align-items:center; flex-wrap: wrap; }
.lang-select { width: auto; min-width: 120px; }
.hero { min-height: 610px; }
.hero-content { display:grid; grid-template-columns: 1.15fr .85fr; gap:44px; align-items:center; padding: 74px 0 56px; }
.eyebrow { color: var(--accent); font-weight:900; text-transform:uppercase; letter-spacing:.16em; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height:.96; margin: 12px 0 20px; }
h2 { margin: 0 0 10px; }
h3 { margin: 22px 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width:760px; line-height:1.65; }
.preview-card, .feature-card, .sidebar, .main-panel, .server-card, .metric-card, .ticket-type, .toolbar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.preview-card { padding: 26px; min-height: 360px; }
.card-topline { height: 5px; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-bottom: 24px; }
.fake-select { margin-top: 24px; padding: 16px; background: #0f1118; border: 1px solid var(--border); border-radius: 14px; color: var(--muted); }
.grid { display:grid; gap:18px; }
.features { grid-template-columns: repeat(4, 1fr); margin-bottom: 60px; }
.feature-card { padding: 22px; }
.feature-card p, .muted, .hint { color: var(--muted); line-height:1.55; }
.hint { font-size: 13px; margin:8px 0 0; }
.footer { text-align:center; color:var(--muted); padding:36px 16px; border-top:1px solid var(--border); }
.dashboard-shell { margin-bottom:50px; }
.dashboard-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:24px 0 14px; }
.toolbar { padding: 14px; display:flex; justify-content:space-between; align-items:center; gap:14px; margin: 0 0 16px; }
.toolbar-left { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.selected-server-label { color: var(--muted); font-size: 13px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
#serverSelect { min-width: 280px; }
.dashboard-layout { display:grid; grid-template-columns: 300px 1fr; gap:18px; align-items:start; }
.sidebar, .main-panel { padding:18px; }
.server-list { display:grid; gap:10px; margin-top:14px; }
.server-item, .server-card { text-align:left; width:100%; display:block; padding:14px; color:var(--text); }
.server-item { background:#0f1118; border:1px solid var(--border); border-radius:16px; }
.server-item.active, .server-card.active { border-color:var(--accent); box-shadow: 0 0 0 2px rgba(125,211,252,.14); }
.server-item small, .server-card small { color:var(--muted); display:block; margin-top:6px; }
.server-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.server-card { min-height:112px; position:relative; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:800; margin-top:10px; border:1px solid var(--border); }
.badge.ok { background:rgba(74,222,128,.12); color:#bbf7d0; border-color:rgba(74,222,128,.35); }
.badge.warn { background:rgba(251,191,36,.12); color:#fde68a; border-color:rgba(251,191,36,.35); }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.form-full { grid-column:1 / -1; }
label { display:grid; gap:7px; color:var(--muted); font-size:14px; }
input, select, textarea {
  width:100%; padding:12px; border-radius:14px; border:1px solid var(--border); background:#0f1118; color:var(--text); min-height:44px;
}
textarea { min-height: 120px; resize: vertical; }
select[multiple] { min-height: 165px; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 4px 0 18px; }
.ticket-type { padding:14px; background:#0f1118; margin-bottom:12px; }
.status { padding: 12px 14px; border-radius: 14px; margin: 12px 0; display:none; }
.status.show { display:block; }
.status.ok { background: rgba(74,222,128,.12); border:1px solid rgba(74,222,128,.3); }
.status.err { background: rgba(251,113,133,.12); border:1px solid rgba(251,113,133,.3); }
.status.info { background: rgba(125,211,252,.12); border:1px solid rgba(125,211,252,.3); }
.tabs { display:flex; gap:10px; flex-wrap:wrap; margin: 12px 0 18px; border-bottom:1px solid var(--border); padding-bottom:12px; }
.tab-btn { background:transparent; }
.tab-btn.active { background:rgba(125,211,252,.12); border-color:rgba(125,211,252,.55); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.metrics { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin: 14px 0 18px; }
.metric-card { padding:16px; }
.metric-card strong { display:block; font-size:24px; margin-top:4px; }
.selected-preview { margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); }
.role-chip { border:1px solid var(--border); background:#0f1118; color:var(--text); border-radius:999px; padding:6px 10px; font-size:13px; }
@media (max-width: 1050px) {
  .hero-content, .dashboard-layout, .features, .server-grid, .metrics { grid-template-columns: 1fr; }
  .toolbar { align-items:stretch; flex-direction:column; }
  .toolbar-left, .toolbar-actions { width:100%; }
  #serverSelect { min-width: 100%; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
}

.preview-wrap { margin-top:22px; padding-top:18px; border-top:1px solid var(--border); }
.discord-preview { display:grid; gap:12px; max-width:760px; }
.discord-embed { position:relative; display:grid; grid-template-columns:5px 1fr; overflow:hidden; border-radius:14px; background:#2b2d31; border:1px solid rgba(255,255,255,.08); }
.embed-accent { width:5px; background:#2B2D31; }
.embed-body { padding:14px 16px; display:grid; gap:10px; }
.embed-title { color:#fff; font-weight:800; font-size:16px; }
.embed-description, .embed-field span, .embed-footer { white-space:pre-wrap; color:#dbdee1; line-height:1.45; }
.embed-field { display:grid; gap:4px; }
.embed-field strong { color:#fff; }
.embed-footer { color:#aeb3bd; font-size:12px; margin-top:2px; }
.component-preview { max-width:420px; }
.component-preview button, .select-preview { width:100%; padding:11px 13px; min-height:42px; border-radius:8px; border:1px solid rgba(255,255,255,.16); background:#313338; color:#f2f3f5; text-align:left; }
.component-preview button { opacity:1; cursor:not-allowed; }
.select-preview { display:flex; align-items:center; justify-content:space-between; color:#b5bac1; }

.panel-manager {
  display:grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap:14px;
  align-items:end;
  padding:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  border-radius:20px;
  margin: 4px 0 18px;
}
.panel-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
input[readonly] { opacity:.74; cursor:not-allowed; }
@media (max-width: 720px) {
  .panel-manager { grid-template-columns:1fr; }
  .panel-actions { width:100%; }
  .panel-actions button { flex:1; }
}


/* Landingpage v9 */
.landing-hero { min-height: 760px; position: relative; overflow: hidden; }
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 84px auto auto 50%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125,211,252,.22), transparent 68%);
  filter: blur(4px);
  transform: translateX(-10%);
  pointer-events: none;
}
.landing-nav { position: relative; z-index: 2; }
.landing-hero-grid { position: relative; z-index: 1; padding-top: 84px; }
.landing-stack { position: relative; min-height: 460px; }
.landing-preview { position: relative; min-height: 390px; transform: rotate(1.5deg); }
.window-dots { display:flex; gap:7px; margin-bottom:18px; }
.window-dots span { width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,.22); }
.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(15, 18, 27, .92);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  max-width: 230px;
}
.floating-card strong { color: var(--text); }
.floating-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.floating-card.one { left: -24px; bottom: 52px; }
.floating-card.two { right: -18px; top: 52px; }
.trust-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.trust-row span {
  display:inline-flex;
  padding: 8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.landing-main { margin-top: -28px; position: relative; z-index: 3; }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-bottom:70px; }
.stat-card {
  padding:22px;
  border-radius:24px;
  background:var(--panel);
  border:1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.stat-card strong { display:block; font-size:32px; line-height:1; margin-bottom:8px; color:var(--accent); }
.stat-card span { color:var(--muted); font-weight:700; }
.landing-section { margin: 78px 0; }
.section-heading { max-width: 860px; margin-bottom: 28px; }
.section-heading h2, .split-section h2, .cta-card h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; margin: 8px 0 14px; }
.landing-features { grid-template-columns: repeat(3, 1fr); }
.landing-features .feature-card { min-height: 178px; }
.split-section { display:grid; grid-template-columns: .9fr 1.1fr; gap:28px; align-items:start; }
.steps { display:grid; gap:14px; }
.steps article {
  display:grid;
  grid-template-columns: 44px 1fr;
  gap:14px;
  padding:18px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  border-radius:22px;
}
.steps span {
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#071017;
  font-weight:900;
}
.steps h3 { margin: 0 0 5px; }
.steps p { margin: 0; color:var(--muted); line-height:1.55; }
.faq-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
details {
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:22px;
  padding:16px 18px;
}
summary { cursor:pointer; font-weight:850; }
details p { color:var(--muted); line-height:1.6; margin-bottom:0; }
.cta-card {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:30px;
  border-radius:30px;
  border:1px solid rgba(125,211,252,.28);
  background:
    linear-gradient(135deg, rgba(125,211,252,.12), rgba(167,139,250,.10)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  margin-bottom: 80px;
}
@media (max-width: 1050px) {
  .stats-grid, .landing-features, .split-section, .faq-grid { grid-template-columns: 1fr; }
  .landing-stack { min-height:auto; }
  .landing-preview { transform:none; }
  .floating-card { position: static; margin-top:12px; max-width:none; }
  .cta-card { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 720px) {
  .landing-hero { min-height:auto; }
  .nav-actions { justify-content:flex-start; }
  .stats-grid { margin-bottom:42px; }
  .landing-section { margin: 52px 0; }
}

/* Landingpage v10: customer-facing docs section */
.docs-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.doc-card {
  padding:20px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border:1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.doc-card h3 { margin:0 0 10px; }
.doc-card p { margin:0; color:var(--muted); line-height:1.62; }
@media (max-width: 1050px) {
  .docs-grid { grid-template-columns: 1fr; }
}


/* Dashboard v12: Backup / export */
.backup-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top: 12px;
}
.backup-card {
  padding:18px;
  border-radius:22px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  display:grid;
  gap:12px;
  align-content:start;
}
.backup-card h3 { margin:0; }
.backup-card p { margin:0; color:var(--muted); line-height:1.6; }
.backup-card button { justify-self:start; }
.danger-zone { border-color:rgba(251,113,133,.32); background:rgba(251,113,133,.07); }
.backup-note {
  margin-top:14px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(125,211,252,.28);
  background:rgba(125,211,252,.08);
}
.backup-note p { margin:6px 0 0; color:var(--muted); line-height:1.6; }
@media (max-width: 720px) {
  .backup-grid { grid-template-columns:1fr; }
  .backup-card button { width:100%; }
}


/* Dashboard v13: Audit logs */
.audit-log-list {
  display:grid;
  gap:12px;
  margin-top:14px;
}
.audit-entry {
  display:grid;
  gap:10px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.04);
}
.audit-main {
  display:grid;
  gap:4px;
}
.audit-main strong { font-size:15px; }
.audit-main span { color:var(--muted); line-height:1.5; }
.audit-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.audit-meta span {
  font-size:12px;
  color:var(--muted);
  padding:6px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.audit-meta b { color:var(--text); font-weight:700; }

/* Branding & high-level polish v14 */
:root {
  --brand-blue: #21d4ff;
  --brand-purple: #8b5cf6;
  --brand-gold: #facc15;
  --glass: rgba(10, 13, 22, .72);
}
body {
  background:
    radial-gradient(circle at 12% -10%, rgba(33, 212, 255, .22), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(139, 92, 246, .28), transparent 34%),
    radial-gradient(circle at 50% 55%, rgba(250, 204, 21, .055), transparent 30%),
    linear-gradient(180deg, #05060b 0%, #0b0e18 46%, #07080d 100%);
}
body::before {
  content: "";
  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: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}
.brand-with-logo { gap: 12px; }
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 18px rgba(33, 212, 255, .28)) drop-shadow(0 0 18px rgba(139, 92, 246, .24));
}
.landing-nav, .dashboard-header {
  padding: 18px 0;
  position: relative;
  z-index: 5;
}
.landing-nav::after, .dashboard-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.28), rgba(167,139,250,.32), transparent);
}
.hero-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(125,211,252,.26);
  background: rgba(125,211,252,.08);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: 0 0 34px rgba(125,211,252,.08);
}
.hero-mini-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(125,211,252,.45));
}
.landing-hero { min-height: 830px; }
.landing-hero-grid { padding-top: 72px; }
h1 { letter-spacing: -0.055em; }
.lead { color: #c5cbe0; }
.primary {
  background: linear-gradient(135deg, #21d4ff 0%, #a78bfa 58%, #facc15 135%);
  box-shadow: 0 18px 44px rgba(33, 212, 255, .16);
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 24px 54px rgba(139, 92, 246, .22); }
.ghost, .soft, button { transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.ghost:hover, .soft:hover, button:hover { transform: translateY(-1px); }
.logo-showcase {
  width: min(420px, 90%);
  margin: 0 auto -54px;
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
}
.logo-showcase::before {
  content: "";
  position: absolute;
  inset: 16% 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33,212,255,.22), rgba(139,92,246,.16), transparent 65%);
  filter: blur(18px);
  z-index: -1;
}
.showcase-logo {
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 55px rgba(0,0,0,.5));
}
.branded-preview { padding-top: 78px; background: linear-gradient(180deg, rgba(18,21,31,.86), rgba(12,15,24,.86)); }
.preview-card, .feature-card, .sidebar, .main-panel, .server-card, .metric-card, .ticket-type, .toolbar, .stat-card, .doc-card, details, .backup-card, .backup-note {
  border-color: rgba(255,255,255,.105) !important;
  background: linear-gradient(180deg, rgba(20,23,35,.86), rgba(12,15,24,.74));
  box-shadow: 0 24px 70px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.035);
}
.feature-card, .doc-card, .stat-card, details, .backup-card, .server-card, .metric-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.feature-card:hover, .doc-card:hover, .stat-card:hover, details:hover, .server-card:hover, .metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,.36) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(125,211,252,.08);
}
.card-topline { background: linear-gradient(90deg, #21d4ff, #8b5cf6, #facc15); }
.fake-select, input, select, textarea, .server-item, .ticket-type { background: rgba(7, 10, 18, .78); }
.footer-branded {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  background: linear-gradient(180deg, transparent, rgba(8,10,18,.72));
}
.footer-logo { width: 38px; height: 38px; object-fit: contain; }
.dashboard-shell { position: relative; z-index: 1; }
.dashboard-header .brand-logo { width: 50px; height: 50px; }
.toolbar {
  position: sticky;
  top: 12px;
  z-index: 4;
  background: rgba(12, 15, 24, .88);
  backdrop-filter: blur(18px);
}
.sidebar, .main-panel { min-height: 520px; }
.tabs {
  background: rgba(255,255,255,.025);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-top: 18px;
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(33,212,255,.16), rgba(139,92,246,.18));
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.22);
}
.status.show {
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 55px rgba(0,0,0,.25);
}
.discord-preview {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(7,10,18,.42);
}
.audit-log-item {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(7,10,18,.55);
  border-radius: 18px;
  padding: 14px;
}
@media (max-width: 1050px) {
  .landing-stack { order: -1; min-height: auto; }
  .logo-showcase { margin-bottom: -42px; }
  .showcase-logo { width: min(300px, 90%); }
  .branded-preview { padding-top: 64px; }
}
@media (max-width: 720px) {
  .brand-logo { width: 40px; height: 40px; }
  .landing-hero { min-height: auto; }
  .hero-product-badge { letter-spacing: .07em; font-size: 11px; }
  .footer-branded { padding-bottom: 44px; }
}

/* Dashboard v15: UX polish, setup checklist and better server cards */
.dashboard-empty-state { display: grid; gap: 22px; }
.dashboard-welcome-card {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 14%, rgba(139,92,246,.20), transparent 34%),
    linear-gradient(135deg, rgba(33,212,255,.10), rgba(139,92,246,.08)),
    rgba(12, 15, 24, .82);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
}
.dashboard-welcome-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250,204,21,.16), transparent 65%);
  pointer-events: none;
}
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy h1 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 14px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.welcome-mini-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(7,10,18,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.welcome-logo { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 22px 38px rgba(0,0,0,.45)); }
.welcome-mini-panel strong { font-size: 20px; }
.welcome-mini-panel span, .welcome-mini-panel li { color: var(--muted); line-height: 1.55; }
.welcome-mini-panel ul { margin: 4px 0 0; padding-left: 20px; }
.server-overview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}
.server-grid-polished { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-card-polished {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
  text-align: left;
  overflow: hidden;
}
.server-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.server-card-icon, .server-item-icon {
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(33,212,255,.20), rgba(139,92,246,.22));
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-weight: 900;
}
.server-card-icon { width:58px; height:58px; border-radius:18px; }
.server-item-icon { width:38px; height:38px; border-radius:13px; }
.server-card-icon img, .server-item-icon img { width:100%; height:100%; object-fit:cover; }
.server-card-polished strong { font-size: 17px; line-height: 1.35; }
.server-card-polished small { line-height: 1.45; min-height: 38px; }
.server-card-action {
  margin-top:auto;
  display:inline-flex;
  justify-self:start;
  color: var(--accent);
  font-weight: 850;
}
.server-item {
  display:flex;
  align-items:center;
  gap:10px;
}
.server-item-text { display:grid; gap:3px; min-width:0; }
.server-item-text strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.setup-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}
.section-title.compact { margin-bottom: 14px; }
.section-title.compact h3 { margin: 0 0 5px; }
.setup-progress-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius:999px;
  border:1px solid rgba(251,191,36,.35);
  background:rgba(251,191,36,.11);
  color:#fde68a;
  font-weight:850;
  white-space: nowrap;
}
.setup-progress-badge.ready {
  border-color: rgba(74,222,128,.38);
  background: rgba(74,222,128,.12);
  color: #bbf7d0;
}
.setup-checklist { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setup-check {
  display:grid;
  grid-template-columns: 34px 1fr;
  gap:10px;
  align-items:start;
  padding: 13px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(7,10,18,.48);
}
.setup-check .check-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display:grid;
  place-items:center;
  font-weight:900;
  background: rgba(251,191,36,.13);
  color: #fde68a;
}
.setup-check.ok .check-icon { background: rgba(74,222,128,.13); color:#bbf7d0; }
.setup-check strong { display:block; margin-bottom: 4px; }
.setup-check small { color: var(--muted); line-height: 1.45; }
@media (max-width: 1120px) {
  .server-grid-polished { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-welcome-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .server-overview-heading { align-items: stretch; flex-direction: column; }
  .server-grid-polished, .setup-checklist { grid-template-columns: 1fr; }
  .dashboard-welcome-card { padding: 20px; }
}


/* Dashboard v16: selected server workspace polish */
body.has-selected-guild .dashboard-layout {
  grid-template-columns: 1fr;
}
body.has-selected-guild .sidebar {
  display: none;
}
body.has-selected-guild .main-panel {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  min-height: auto;
}
.selected-server-toolbar {
  align-items: center;
  padding: 12px 14px;
  border-radius: 24px;
}
.selected-server-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}
.selected-server-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}
.selected-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(33,212,255,.22), rgba(139,92,246,.26));
  border: 1px solid rgba(255,255,255,.13);
  font-weight: 900;
  flex: 0 0 auto;
}
.selected-server-icon img { width: 100%; height: 100%; object-fit: cover; }
.selected-server-copy { display: grid; gap: 2px; min-width: 0; }
.selected-server-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.selected-server-copy small { color: var(--muted); font-size: 12px; }
.selected-server-picker { width: min(390px, 38vw); }
.server-workspace-form { display: grid; gap: 18px; }
.server-workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 12%, rgba(33,212,255,.16), transparent 36%),
    radial-gradient(circle at 86% 20%, rgba(139,92,246,.18), transparent 34%),
    linear-gradient(135deg, rgba(20,23,35,.92), rgba(10,13,22,.82));
  box-shadow: 0 30px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.045);
  overflow: hidden;
  position: relative;
}
.server-workspace-hero::after {
  content:"";
  position:absolute;
  inset:auto -110px -130px auto;
  width:300px;
  height:300px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(250,204,21,.14), transparent 66%);
  pointer-events:none;
}
.server-workspace-copy, .workspace-summary-card { position: relative; z-index: 1; }
.server-workspace-copy h1 {
  font-size: clamp(32px, 4vw, 56px);
  margin: 8px 0 12px;
  line-height: 1.02;
}
.workspace-kicker { margin: 0; }
.workspace-summary-card {
  display:grid;
  align-content:start;
  gap:10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(7,10,18,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.workspace-summary-card span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.workspace-summary-card strong {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  min-height:38px;
  padding: 8px 12px;
  border-radius:999px;
  border:1px solid rgba(251,191,36,.35);
  background:rgba(251,191,36,.11);
  color:#fde68a;
  font-size: 15px;
}
.workspace-summary-card strong.ready { border-color: rgba(74,222,128,.38); background: rgba(74,222,128,.12); color:#bbf7d0; }
.workspace-summary-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.workspace-metrics { margin: 0; }
.workspace-metrics .metric-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: center;
  padding: 20px;
  border-radius: 24px;
}
.workspace-metrics .metric-card strong { font-size: 30px; line-height: 1; }
body.has-selected-guild .tabs {
  position: sticky;
  top: 94px;
  z-index: 3;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
  background: rgba(8, 11, 19, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
body.has-selected-guild .tab-btn {
  border-radius: 16px;
  min-height: 44px;
  padding: 10px 14px;
}
body.has-selected-guild .tab-panel.active {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(20,23,35,.82), rgba(12,15,24,.70));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
}
body.has-selected-guild .tab-panel > h3:first-child,
body.has-selected-guild .tab-panel .section-title h3 {
  margin-top: 0;
}
body.has-selected-guild .form-grid label {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(7,10,18,.34);
}
body.has-selected-guild .form-grid label:focus-within {
  border-color: rgba(125,211,252,.40);
  box-shadow: 0 0 0 3px rgba(125,211,252,.08);
}
body.has-selected-guild input,
body.has-selected-guild select,
body.has-selected-guild textarea {
  background: rgba(7,10,18,.82);
  border-color: rgba(255,255,255,.10);
}
body.has-selected-guild .panel-manager,
body.has-selected-guild .setup-card,
body.has-selected-guild .preview-wrap,
body.has-selected-guild .backup-card,
body.has-selected-guild .backup-note,
body.has-selected-guild .ticket-type {
  border-radius: 24px;
}
body.has-selected-guild .panel-manager {
  padding: 18px;
  background: linear-gradient(135deg, rgba(33,212,255,.07), rgba(139,92,246,.08));
}
body.has-selected-guild .ticket-type {
  padding: 18px;
  background: rgba(7,10,18,.46);
  border: 1px solid rgba(255,255,255,.09);
}
body.has-selected-guild .discord-preview {
  max-width: none;
}
body.has-selected-guild .backup-grid {
  align-items: stretch;
}
@media (max-width: 1050px) {
  .server-workspace-hero { grid-template-columns: 1fr; }
  .selected-server-toolbar { align-items: stretch; flex-direction: column; }
  .selected-server-bar { width: 100%; align-items: stretch; flex-direction: column; }
  .selected-server-picker { width: 100%; }
  .selected-server-identity { min-width: 0; }
  body.has-selected-guild .tabs { top: 8px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 720px) {
  .server-workspace-hero { padding: 22px; border-radius: 26px; }
  body.has-selected-guild .tab-panel.active { padding: 18px; border-radius: 24px; }
  .selected-server-toolbar .toolbar-actions { display:grid; grid-template-columns: 1fr; }
}


/* v17 legal/docs polish */
.site-footer-expanded,
.dashboard-footer-expanded {
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.footer-brand-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.035);
}
.footer-links a:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.12);
}
.legal-page-body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34rem), #080811;
  color: #fff;
}
.page-hero-small {
  padding: 34px 0 10px;
}
.page-hero-card {
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.page-hero-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}
.page-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 24px 0 44px;
}
.doc-sidebar {
  position: sticky;
  top: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  border-radius: 24px;
  padding: 18px;
}
.doc-sidebar strong { display:block; margin-bottom: 10px; }
.doc-sidebar a {
  display: block;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 12px;
}
.doc-sidebar a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.doc-content {
  display: grid;
  gap: 18px;
}
.doc-panel {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  border-radius: 24px;
  padding: 24px;
}
.doc-panel h2 { margin-top: 0; }
.doc-panel p, .doc-panel li { color: rgba(255,255,255,0.74); line-height: 1.7; }
.doc-panel ul, .doc-panel ol { padding-left: 22px; }
.notice-box {
  border: 1px solid rgba(250, 204, 21, 0.24);
  background: rgba(250, 204, 21, 0.08);
  border-radius: 18px;
  padding: 16px;
  color: rgba(255,255,255,0.82);
}
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.placeholder-item {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.12);
  border-radius: 18px;
  padding: 16px;
}
.placeholder-item small {
  display:block;
  color: rgba(255,255,255,0.50);
  margin-bottom: 4px;
}
@media (max-width: 880px) {
  .page-grid { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
  .placeholder-grid { grid-template-columns: 1fr; }
}
