@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #080a0d;
  --bg-1:        #0d1117;
  --bg-2:        #131920;
  --bg-3:        #1a2230;
  --border:      #1f2d3d;
  --border-hot:  #c0132a;
  --text:        #e8edf2;
  --text-2:      #7a8fa6;
  --text-3:      #3d5068;
  --red:         #c0132a;
  --red-glow:    rgba(192,19,42,0.18);
  --red-dim:     rgba(192,19,42,0.1);
  --neon:        #00f5c0;
  --neon-dim:    rgba(0,245,192,0.1);
  --neon-glow:   rgba(0,245,192,0.25);
  --yellow:      #f5c842;
  --yellow-dim:  rgba(245,200,66,0.1);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59,130,246,0.1);
  --font:        'Space Grotesk', sans-serif;
  --mono:        'DM Mono', monospace;
  --sidebar-w:   230px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* noise grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9998;
}

/* custom cursor */
body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='4' cy='4' r='3' fill='none' stroke='%2300f5c0' stroke-width='1.2'/%3E%3Cline x1='4' y1='8' x2='4' y2='14' stroke='%2300f5c0' stroke-width='1'/%3E%3Cline x1='8' y1='4' x2='14' y2='4' stroke='%2300f5c0' stroke-width='1'/%3E%3C/svg%3E") 4 4, crosshair; }
button, a, [onclick], select, input[type="checkbox"], label.toggle { cursor: pointer; }

a { color: var(--text-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }

/* custom scrollbar — CRT/neon style */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--red) 0%, var(--neon) 100%); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

.page { display: none; }
.page.active { display: block; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--red);
  color: #fff; border: none;
  border-radius: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: background .15s, transform .1s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%); pointer-events: none; }
.btn-primary:hover { background: #d4162f; box-shadow: 0 0 18px rgba(192,19,42,0.4); transform: translateY(-1px) scale(1.01); }
.btn-primary:active { transform: scale(.97); box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); background: var(--neon-dim); }

.btn-large { padding: 13px 30px; font-size: 14px; }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 5px; }

.btn-discord {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px;
  background: #5865F2; color: #fff; border: none;
  border-radius: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: filter .2s, transform .1s;
}
.btn-discord:hover { filter: brightness(1.12); color: #fff; transform: scale(1.01); }

.btn-remove {
  display: flex; align-items: center; justify-content: center;
  padding: 6px; background: transparent;
  border: 1px solid var(--border); border-radius: 5px;
  color: var(--text-3);
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.btn-remove:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }

.btn-logout {
  display: flex; align-items: center; justify-content: center;
  padding: 6px; background: transparent; border: none;
  color: var(--text-3); border-radius: 6px;
  transition: color .15s; margin-left: auto; flex-shrink: 0;
}
.btn-logout:hover { color: var(--red); }

.btn-save {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  background: var(--red); color: #fff; border: none;
  border-radius: 4px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
}
.btn-save.pulsing { animation: save-pulse 1.4s ease-in-out infinite; }
@keyframes save-pulse {
  0%,100%{box-shadow:0 0 0 0 rgba(192,19,42,0)}
  50%{box-shadow:0 0 0 5px rgba(192,19,42,0.3),0 0 20px rgba(192,19,42,0.2)}
}
.btn-save:hover { background: #d4162f; }

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 38px; height: 58px;
  background: rgba(8,10,13,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 13px; font-weight: 500; }
.nav-discord { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }

/* logo mark */
.logo-mark {
  width: 30px; height: 30px;
  background: var(--red);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  transform: rotate(-1.5deg);
  box-shadow: 0 0 12px rgba(192,19,42,0.35);
}
.logo-mark.large { width: 50px; height: 50px; font-size: 22px; border-radius: 11px; transform: rotate(-2deg); }

/* ── HERO ─────────────────────────────────────────────── */
.hero { max-width: 860px; margin: 0 auto; padding: 72px 40px 60px; text-align: center; }
.hero-badge {
  display: inline-block; padding: 4px 13px;
  background: var(--red-dim);
  border: 1px solid rgba(192,19,42,0.35);
  border-radius: 3px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--red); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px;
}
.hero-title { font-size: clamp(38px,6vw,64px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 18px; }
.hero-title .accent { color: var(--neon); }
.hero-sub { font-size: 15px; color: var(--text-2); max-width: 520px; margin: 0 auto 34px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 56px; }

/* preview frame */
.hero-preview { margin: 0 auto; max-width: 760px; }
.preview-frame {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 40px rgba(0,245,192,0.03);
}
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.preview-dot:nth-child(1){background:#c0132a}
.preview-dot:nth-child(2){background:#f5c842}
.preview-dot:nth-child(3){background:#00f5c0}
.preview-url { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.preview-content { display: flex; height: 180px; }
.preview-sidebar { width: 46px; background: var(--bg-2); border-right: 1px solid var(--border); padding: 10px 7px; display: flex; flex-direction: column; gap: 5px; }
.preview-logo-sm { width: 26px; height: 26px; background: var(--red); border-radius: 5px; margin-bottom: 5px; transform: rotate(-1deg); }
.preview-nav-item { height: 7px; background: var(--bg-3); border-radius: 2px; }
.preview-nav-item.active { background: var(--red); opacity: .5; }
.preview-main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.preview-header-bar { height: 9px; background: var(--bg-3); border-radius: 2px; width: 38%; }
.preview-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.preview-card { height: 36px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; }
.preview-table { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; }

/* ── SECTIONS ─────────────────────────────────────────── */
.features,.pricing { max-width: 1080px; margin: 0 auto; padding: 76px 40px; }
.section-label { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); margin-bottom: 10px; }
.section-title { font-size: clamp(26px,4vw,38px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; }
.section-sub { font-size: 14px; color: var(--text-2); max-width: 480px; margin-bottom: 44px; line-height: 1.75; }

.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.feature-card { background: var(--bg-1); padding: 26px 22px 28px; transition: background .2s; }
.feature-card:hover { background: var(--bg-2); }
.feature-card:hover .feature-icon { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 10px var(--neon-glow); }
.feature-icon { width: 38px; height: 38px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--red); transition: border-color .2s, color .2s, box-shadow .2s; }
.feature-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 7px; letter-spacing: -.01em; }
.feature-card p { font-size: 12px; color: var(--text-2); line-height: 1.65; }

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pricing-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px 24px; position: relative; transition: border-color .2s; }
.pricing-card:hover { border-color: rgba(0,245,192,0.2); }
.pricing-card.featured { border-color: var(--red); background: var(--bg-2); box-shadow: 0 0 30px rgba(192,19,42,0.12); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 11px; background: var(--red); border-radius: 3px; font-family: var(--mono); font-size: 10px; font-weight: 500; color: #fff; letter-spacing: .08em; text-transform: uppercase; }
.plan-name { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 22px; font-family: var(--mono); }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--text-2); font-family: var(--font); }
.plan-features { list-style: none; margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.plan-features li svg { color: var(--neon); flex-shrink: 0; }

.footer { border-top: 1px solid var(--border); padding: 36px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 12px; color: var(--text-3); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

/* ── AUTH ─────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px;
  background: radial-gradient(ellipse at 30% 20%, rgba(192,19,42,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(0,245,192,0.05) 0%, transparent 50%);
}
.auth-card { width: 100%; max-width: 370px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 13px; padding: 36px 32px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo h1 { font-size: 19px; font-weight: 700; margin-top: 12px; margin-bottom: 4px; letter-spacing: -.02em; }
.auth-logo p { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.auth-logo .logo-mark { margin: 0 auto; }
.auth-divider { position: relative; text-align: center; margin: 18px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--bg-1); padding: 0 10px; font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.license-input-group { display: flex; gap: 7px; }
.input-license { flex: 1; padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: var(--mono); font-size: 11px; outline: none; transition: border-color .15s; }
.input-license:focus { border-color: var(--neon); box-shadow: 0 0 0 2px rgba(0,245,192,0.08); }
.input-license::placeholder { color: var(--text-3); }
.auth-note { margin-top: 18px; text-align: center; font-size: 11px; color: var(--text-3); }
.auth-note a { color: var(--red); }
.auth-back { display: flex; align-items: center; gap: 6px; margin: 16px auto 0; background: none; border: none; color: var(--text-3); font-family: var(--font); font-size: 11px; transition: color .15s; }
.auth-back:hover { color: var(--text); }

/* ── DASHBOARD LAYOUT ─────────────────────────────────── */
.dash-layout { display: flex; height: 100vh; overflow: hidden; }

/* SIDEBAR */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-1); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; position: relative; }
/* scanlines */
.sidebar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,245,192,0.012) 2px, rgba(0,245,192,0.012) 4px); pointer-events: none; z-index: 0; }
.sidebar > * { position: relative; z-index: 1; }

.sidebar-logo { display: flex; align-items: center; gap: 9px; padding: 16px 15px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; flex-shrink: 0; letter-spacing: -.01em; }
.sidebar-logo span::after { content: '_'; color: var(--neon); animation: blink 1.1s step-end infinite; margin-left: 2px; font-weight: 300; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.server-selector { display: flex; align-items: center; gap: 9px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; flex-shrink: 0; }
.server-selector:hover { background: var(--bg-2); }
.server-avatar { width: 30px; height: 30px; background: var(--red-dim); border: 1px solid rgba(192,19,42,0.25); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--red); flex-shrink: 0; letter-spacing: .05em; }
.server-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.server-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-sub { font-size: 9px; color: var(--text-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.server-dropdown { display: none; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.server-dropdown.open { display: block; }
.server-option { padding: 9px 14px; font-size: 12px; color: var(--text-2); cursor: pointer; transition: background .1s, color .1s; font-family: var(--mono); }
.server-option:hover,.server-option.active { background: var(--bg-3); color: var(--neon); }
.server-add { padding: 9px 14px; font-size: 11px; color: var(--neon); cursor: pointer; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); transition: background .15s; font-family: var(--mono); letter-spacing: .03em; }
.server-add:hover { background: var(--bg-3); }

.sidebar-nav { flex: 1; padding: 10px 7px; display: flex; flex-direction: column; gap: 1px; }
.nav-group-label { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); padding: 9px 9px 3px; margin-top: 3px; }
.nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; background: transparent; border: none; border-radius: 5px; color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 500; cursor: pointer; text-align: left; transition: background .12s, color .12s; position: relative; }
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: rgba(192,19,42,0.12); color: #ff4455; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px; background: var(--red); border-radius: 0 2px 2px 0; }
.nav-item svg { flex-shrink: 0; }

.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-avatar { width: 28px; height: 28px; background: var(--bg-3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-2); flex-shrink: 0; border: 1px solid var(--border); }
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tag { font-size: 9px; color: var(--text-3); font-family: var(--mono); }

/* MAIN */
.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 26px; height: 52px; background: var(--bg-1); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.topbar-title { font-size: 13px; font-weight: 600; font-family: var(--mono); color: var(--text-2); letter-spacing: .03em; }
.topbar-title::before { content: '> '; color: var(--neon); }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.online { background: var(--neon); box-shadow: 0 0 8px var(--neon-glow); }
.status-text { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

.tab-content { display: none; flex: 1; overflow-y: auto; padding: 24px 26px; }
.tab-content.active { display: block; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; display: flex; align-items: center; gap: 13px; transition: border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.stat-card:nth-child(1){border-radius:10px 10px 14px 10px}
.stat-card:nth-child(2){border-radius:14px}
.stat-card:nth-child(3){border-radius:10px}
.stat-card:nth-child(4){border-radius:10px 14px 10px 10px}
.stat-card:hover { border-color: rgba(0,245,192,0.15); box-shadow: 0 0 20px rgba(0,245,192,0.04); }
.stat-icon { width: 38px; height: 38px; background: var(--red-dim); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.stat-icon.accent-green { background: var(--neon-dim); color: var(--neon); }
.stat-icon.accent-yellow { background: var(--yellow-dim); color: var(--yellow); }
.stat-icon.accent-red { background: var(--red-dim); color: var(--red); }
.stat-body { display: flex; flex-direction: column; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-family: var(--mono); }
.stat-label { font-size: 10px; color: var(--text-3); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: .05em; text-transform: uppercase; }

.activity-list { padding: 4px 0; }
.activity-item { display: flex; align-items: center; gap: 11px; padding: 9px 16px; transition: background .12s; }
.activity-item:hover { background: var(--bg-2); }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.activity-dot.green { background: var(--neon); box-shadow: 0 0 6px var(--neon-glow); }
.activity-dot.blue { background: var(--blue); }
.activity-dot.red { background: var(--red); }
.activity-dot.yellow { background: var(--yellow); }
.activity-text { flex: 1; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.activity-text strong { color: var(--text); }
.activity-time { font-size: 10px; color: var(--text-3); font-family: var(--mono); }

.status-list { padding: 4px 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; font-size: 12px; color: var(--text-2); }
.status-badge { padding: 2px 9px; border-radius: 3px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.status-badge.online { background: var(--neon-dim); color: var(--neon); border: 1px solid rgba(0,245,192,0.2); }
.status-badge.yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245,200,66,0.2); }
.status-badge.offline { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }

/* ── SETTINGS ─────────────────────────────────────────── */
.settings-section,.module-card,.control-panel,.log-window { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 22px 20px; margin-bottom: 16px; }
.log-window { border-radius: 8px; border-color: rgba(0,245,192,0.1); background: #0a0f14; }
.settings-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; letter-spacing: -.01em; }
.settings-desc { font-size: 11px; color: var(--text-3); margin-bottom: 18px; font-family: var(--mono); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.setting-group { display: flex; flex-direction: column; gap: 5px; }
.setting-group.full { grid-column: 1/-1; }
.setting-group label { font-size: 11px; font-weight: 600; color: var(--text-2); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.input { padding: 8px 11px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: var(--font); font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.input:focus { border-color: var(--neon); box-shadow: 0 0 0 2px rgba(0,245,192,0.07); }
.input::placeholder { color: var(--text-3); }
.input.mono { font-family: var(--mono); font-size: 11px; }
.textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
select.input { cursor: pointer; }
.input-hint { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.color-input-row { display: flex; gap: 7px; align-items: center; }
.input-color { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2); cursor: pointer; padding: 2px; flex-shrink: 0; }

/* toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.toggle-row.full { grid-column: 1/-1; }
.toggle-info { display: flex; flex-direction: column; gap: 1px; }
.toggle { position: relative; display: inline-block; width: 38px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg-3); border-radius: 999px; cursor: pointer; transition: background .2s; border: 1px solid var(--border); }
.toggle-slider::before { content: ''; position: absolute; height: 14px; width: 14px; left: 2px; bottom: 2px; background: var(--text-3); border-radius: 50%; transition: transform .2s, background .2s; }
.toggle input:checked + .toggle-slider { background: rgba(0,245,192,0.15); border-color: rgba(0,245,192,0.3); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--neon); }

.module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.module-info h3 { font-size: 13px; font-weight: 600; }
.module-info p { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.category-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; margin-bottom: 8px; transition: border-color .2s; }
.category-card:hover { border-color: rgba(0,245,192,0.15); }
.category-card-header { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.category-color { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.category-tag { font-family: var(--mono); font-size: 10px; color: var(--neon); background: var(--neon-dim); padding: 2px 6px; border-radius: 3px; border: 1px solid rgba(0,245,192,0.15); }
.ml-auto { margin-left: auto; }

.tier-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 14px; margin-bottom: 9px; }
.tier-card-header { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 11px; }
.rank-list { display: flex; flex-direction: column; gap: 7px; }
.rank-row { display: flex; gap: 7px; align-items: center; }
.rank-row .input { flex: 1; }
.ping-role-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 7px; align-items: center; margin-bottom: 7px; }

.license-info-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 18px; display: flex; align-items: flex-start; gap: 18px; }
.license-plan { padding: 5px 14px; background: var(--red-dim); border: 1px solid rgba(192,19,42,0.3); border-radius: 4px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--red); flex-shrink: 0; letter-spacing: .05em; }
.license-details { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.license-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.license-row:last-child { border-bottom: none; padding-bottom: 0; }
.obscured { letter-spacing: .1em; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.license-purchase { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-3); }

/* ── DIRTY INDICATOR ──────────────────────────────────── */
.dirty-indicator {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(13,17,23,0.95);
  border: 1px solid var(--red); border-radius: 6px;
  padding: 8px 18px 8px 14px;
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  display: none; align-items: center; gap: 10px;
  z-index: 9990;
  box-shadow: 0 0 20px rgba(192,19,42,0.2);
  backdrop-filter: blur(8px);
}
.dirty-indicator.show { display: flex; }
.dirty-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: dirty-pulse 1s ease-in-out infinite; }
@keyframes dirty-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ── TOAST ─────────────────────────────────────────────── */
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 9999; padding: 10px 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; transform: translateY(70px); opacity: 0; transition: transform .22s cubic-bezier(.22,1,.36,1), opacity .22s; pointer-events: none; letter-spacing: .02em; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(0,245,192,0.35); color: var(--neon); }
.toast.error { border-color: rgba(192,19,42,0.4); color: var(--red); }

/* ── SERVER SWITCH LOADING ────────────────────────────── */
.server-loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9); background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 28px 36px; text-align: center; z-index: 9997; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; backdrop-filter: blur(12px); }
.server-loading.show { opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto; }
.server-loading-icon { width: 40px; height: 40px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; margin: 0 auto 14px; animation: icon-spin .6s ease-in-out; transform: rotate(-1deg); }
@keyframes icon-spin { from{transform:rotate(-90deg) scale(.7)} to{transform:rotate(-1deg) scale(1)} }
.server-loading-text { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.server-loading-name { font-size: 14px; font-weight: 600; margin-top: 4px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:900px){.features-grid{grid-template-columns:1fr 1fr}.pricing-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.nav{padding:0 18px}.hero{padding:56px 20px 36px}.features,.pricing{padding:56px 20px}.features-grid{grid-template-columns:1fr}.dash-layout{flex-direction:column}.sidebar{width:100%;height:auto}}
