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

/* =========================================================
   THEME TOKENS
   Default theme = "Glacier": black / white / light-blue glow.
   Alternate themes swap only the accent pair - the base black/
   white/glass system stays constant across all of them, so
   switching themes never turns the site "colourful" by default.
   ========================================================= */

:root {
  --bg: #05070A;
  --bg-soft: #0A0D12;
  --surface: rgba(18, 24, 32, 0.6);
  --surface-solid: #10141A;
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F3F6F9;
  --text-muted: #8A97A6;
  --text-dim: #5C6773;

  --accent: #4FC3F7;
  --accent-soft: #9FE3FF;
  --accent-dim: rgba(79, 195, 247, 0.14);
  --accent-line: rgba(79, 195, 247, 0.35);

  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glow: 0 0 0 1px var(--accent-line), 0 0 24px -6px var(--accent-dim);
}

/* Alternate accent themes - toggled via data-theme on <html> */
html[data-theme="aurora"] {
  --accent: #5EEAD4;
  --accent-soft: #B7FFF2;
  --accent-dim: rgba(94, 234, 212, 0.14);
  --accent-line: rgba(94, 234, 212, 0.35);
}
html[data-theme="ember"] {
  --accent: #FF9D66;
  --accent-soft: #FFC9A3;
  --accent-dim: rgba(255, 157, 102, 0.14);
  --accent-line: rgba(255, 157, 102, 0.35);
}
html[data-theme="nebula"] {
  --accent: #B18CFF;
  --accent-soft: #DCCBFF;
  --accent-dim: rgba(177, 140, 255, 0.14);
  --accent-line: rgba(177, 140, 255, 0.35);
}
html[data-theme="white"] {
  --accent: #F5F7FA;
  --accent-soft: #FFFFFF;
  --accent-dim: rgba(245, 247, 250, 0.14);
  --accent-line: rgba(245, 247, 250, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   BACKGROUND PARTICLE FIELD
   Fixed canvas, sits behind all content. Populated by js/particles.js.
   ========================================================= */

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Soft radial vignette so text stays readable over the particle field */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79, 195, 247, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(79, 195, 247, 0.04), transparent 60%);
  pointer-events: none;
}

/* =========================================================
   FLOATING NAV
   ========================================================= */

.floating-nav {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 6vw 0;
  padding: 10px 10px 10px 16px;
  background: rgba(12, 16, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.6);
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.nav-brand img.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow);
}

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 13.5px; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* =========================================================
   THEME SWITCHER
   Segmented pill control, present in header/sidebar.
   ========================================================= */

.theme-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.theme-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.theme-dot:hover { transform: scale(1.08); }
.theme-dot.active { border-color: var(--border-strong); }
.theme-dot.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
}
.theme-dot[data-theme-btn="glacier"] { background: linear-gradient(135deg, #4FC3F7, #0A0D12); }
.theme-dot[data-theme-btn="aurora"] { background: linear-gradient(135deg, #5EEAD4, #0A0D12); }
.theme-dot[data-theme-btn="ember"] { background: linear-gradient(135deg, #FF9D66, #0A0D12); }
.theme-dot[data-theme-btn="nebula"] { background: linear-gradient(135deg, #B18CFF, #0A0D12); }
.theme-dot[data-theme-btn="white"] { background: linear-gradient(135deg, #FFFFFF, #C7CCD4); }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #05070A;
  border-color: var(--accent);
}
.btn-primary:hover { box-shadow: 0 0 22px -4px var(--accent-dim); filter: brightness(1.08); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--accent-line); }

.btn-danger { background: transparent; color: var(--text); border-color: var(--border-strong); border-style: dashed; }
.btn-danger:hover { background: rgba(255,255,255,0.06); border-color: #ff6b6b66; color: #ff9a9a; }

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 9vh 6vw 8vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent-line); }

.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #FFFFFF 30%, var(--accent-soft) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--text-muted); font-size: 17px; max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Dashboard mockup card (hero, right side) ---------- */
.dash-mock {
  position: relative;
  perspective: 1600px;
}
.dash-mock-inner {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.65), var(--glow);
  transform: rotateY(-9deg) rotateX(4deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform .4s ease;
}
.dash-mock:hover .dash-mock-inner {
  transform: rotateY(-5deg) rotateX(2deg) rotateZ(0.5deg);
}
.dm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.dm-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--text);
  color: #05070A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.dm-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 9px;
}
.dm-body { display: flex; }
.dm-sidebar {
  width: 108px;
  flex-shrink: 0;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dm-side-link {
  font-size: 10.5px;
  color: var(--text-dim);
  padding: 7px 9px;
  border-radius: 7px;
}
.dm-side-link.active {
  background: var(--surface-2);
  color: var(--text);
}
.dm-main { flex: 1; padding: 16px; min-width: 0; }
.dm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.dm-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dm-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
}
.dm-stat-value { font-size: 15px; font-weight: 600; color: var(--text); }
.dm-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.dm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.dm-status {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  border-radius: 100px;
  padding: 2px 8px;
}
.dm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.dm-row:first-of-type { border-top: none; }
.dm-row .mono { font-family: var(--font-mono); color: var(--text); font-size: 10.5px; }
.dm-blur {
  font-family: var(--font-mono);
  color: transparent;
  text-shadow: 0 0 7px var(--text-dim);
  letter-spacing: 2px;
}
.dm-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.55);
  transform: translateZ(40px);
}
.dm-badge svg { width: 26px; height: 26px; color: #05070A; }

@media (max-width: 860px) {
  .dash-mock-inner { transform: none; }
  .dm-stats { grid-template-columns: repeat(2, 1fr); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ---------- Feature grid ---------- */
.section { padding: 7vh 6vw; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 15.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--glow); }
.feature-card .idx {
  font-family: var(--font-mono);
  color: var(--accent-soft);
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 600;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Two-door split ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.door:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--glow); }
.door .tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.door h3 { font-size: 20px; margin-bottom: 10px; }
.door p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 22px; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }
.auth-logo img { width: 36px; height: 36px; border-radius: 50%; box-shadow: var(--glow); }
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--glow);
}
.auth-card .eyebrow { margin-bottom: 10px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.field input::placeholder { color: var(--text-dim); }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.form-msg { font-size: 13.5px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 18px; display: none; border: 1px solid var(--border-strong); }
.form-msg.error { display: block; border-color: #ff6b6b55; color: #ff9a9a; }
.form-msg.success { display: block; border-color: var(--accent-line); color: var(--accent-soft); }

.auth-foot { text-align: center; font-size: 13px; color: var(--text-muted); }
.auth-foot a { text-decoration: underline; }
.auth-foot .discord-line { margin-top: 14px; }
.auth-foot .discord-line a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.auth-foot .discord-line a:hover { color: var(--accent-soft); }
.auth-foot .discord-line svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: rgba(10, 13, 18, 0.7);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .nav-brand { padding: 4px 6px; margin-bottom: 30px; }
.side-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s ease, color .12s ease;
}
.side-link.active { background: var(--accent-dim); color: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.side-link:not(.active):hover { background: var(--surface-2); color: var(--text); }
.side-link .lock-tag { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.side-divider { height: 1px; background: var(--border); margin: 10px 4px; }
.side-user { border-top: 1px solid var(--border); padding-top: 16px; font-size: 13px; }
.side-user .who { color: var(--text); margin-bottom: 2px; font-weight: 500; }
.side-user .role { color: var(--accent-soft); font-family: var(--font-mono); font-size: 11px; margin-bottom: 12px; }
.side-theme { margin-top: 12px; }
.side-discord { margin-top: 8px; }
.side-discord a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .12s ease, color .12s ease;
}
.side-discord a:hover { border-color: var(--accent-line); color: var(--accent-soft); }
.side-discord svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.main { padding: 34px 40px; overflow-x: auto; }
.main-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.main-head h1 { font-size: 24px; margin-bottom: 4px; }
.main-head p { color: var(--text-muted); font-size: 14px; }

/* ---------- Stat cards (Overview) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.stat-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-card .stat-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 1px var(--accent-dim); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); }
.stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.panel h2 { font-size: 16px; margin-bottom: 18px; }
.panel-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.panel-row .field { flex: 1; min-width: 160px; margin-bottom: 0; }

.key-mode-toggle { display: flex; gap: 6px; margin-bottom: 14px; }
.key-mode-toggle button {
  flex: 1;
  padding: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.key-mode-toggle button.active { background: var(--accent); color: #05070A; border-color: var(--accent); }
.key-mode-toggle button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.key-mode-toggle button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: none; }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--text-dim); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--border-strong); }
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.mono.key { color: var(--accent-soft); cursor: pointer; font-weight: 500; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
  border: 1px solid var(--border-strong);
}
.badge-active { background: var(--accent-dim); color: var(--accent-soft); border-color: var(--accent-line); }
.badge-warn { background: rgba(255,157,102,0.1); color: #FFC9A3; border-color: rgba(255,157,102,0.35); }
.badge-danger { background: rgba(255,107,107,0.1); color: #FF9A9A; border-color: rgba(255,107,107,0.35); }
.badge-muted { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: var(--surface-2); }

/* ---------- Files feature ---------- */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  margin-bottom: 16px;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
}
.dropzone-icon svg { width: 18px; height: 18px; }
.dropzone-text { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.dropzone-sub { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }

#uploadProgressWrap { margin-bottom: 12px; }
.upload-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-dim);
  transition: width .15s ease;
}

.share-link {
  color: var(--accent-soft);
  cursor: pointer;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.share-link:hover { text-decoration: underline; }

/* =========================================================
   BOT COMMANDS PAGE
   ========================================================= */

.bot-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.bot-hero img { width: 56px; height: 56px; border-radius: 50%; box-shadow: var(--glow); }
.bot-hero h1 { font-size: 22px; margin-bottom: 4px; }
.bot-hero p { color: var(--text-muted); font-size: 14px; }

.cmd-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: border-color .2s ease;
}
.cmd-card:hover { border-color: var(--accent-line); }
.cmd-name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-soft);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmd-name .cmd-tag {
  font-size: 10px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cmd-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.cmd-usage {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  overflow-x: auto;
}
.cmd-usage .arg { color: var(--accent-soft); }

/* =========================================================
   DOCUMENTATION PAGE
   ========================================================= */

.lang-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.lang-tab {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-tab.active { background: var(--accent); color: #05070A; border-color: var(--accent); }
.lang-tab:not(.active):hover { border-color: var(--accent-line); color: var(--text); }

.code-panel {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.code-panel-head .filename { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.code-panel pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
}
.code-panel pre .cm { color: var(--text-dim); }
.code-panel pre .str { color: var(--accent-soft); }
.code-panel pre .kw { color: #FF9D66; }

/* ---------- Reveal-on-scroll utility ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

footer.site-foot {
  border-top: 1px solid var(--border);
  padding: 26px 6vw;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-foot .foot-discord { display: flex; align-items: center; gap: 7px; color: var(--text-muted); transition: color .15s ease; }
footer.site-foot .foot-discord:hover { color: var(--accent-soft); }
footer.site-foot .foot-discord svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 24px; }
  .floating-nav { margin: 12px 4vw 0; flex-wrap: wrap; }
  .nav-links { display: none; }
  footer.site-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .keycard-key span { animation: none; opacity: 1; }
  .status-pill::before { animation: none; }
  * { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
