/* ============================================ */
/* KelleyNet Console — Dark Glassmorphism Theme */
/* ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #3b82f6;
  --accent-dim: rgba(59,130,246,0.15);
  --accent-glow: rgba(59,130,246,0.25);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --orange: #f97316;
  --bg: #000000;
  --bg-raised: rgba(255,255,255,0.03);
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.04);
  --text: #ffffff;
  --text2: #a1a1aa;
  --text3: #71717a;
  --glass: rgba(255,255,255,0.02);
  --glass-border: rgba(255,255,255,0.06);
  --glass-blur: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================ */
/* Auth / Login Page                            */
/* ============================================ */
.auth-page {
  min-height: 100vh;
  display: block;
  background: #000;
  position: relative;
}
/* Network mesh canvas */
.auth-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Top bar on login */
.auth-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  z-index: 2;
}
.auth-topbar-text {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.01em;
  text-transform: none;
  text-decoration: none;
}
.auth-topbar-text .brand-highlight {
  font-weight: 700;
  color: #3b82f6;
}
.brand-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -2px;
}
.auth-topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.auth-topbar-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-topbar-link:hover { color: rgba(255,255,255,0.6); }

/* Auth center — flat, no card */
.auth-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(255,255,255,0.12);
}
.auth-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
}
.auth-form {
  width: 100%;
}
.auth-error {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(239,68,68,0.2);
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-field input:focus {
  border-color: rgba(59,130,246,0.5);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1), 0 0 20px rgba(59,130,246,0.05);
}
.auth-field input::placeholder { color: rgba(255,255,255,0.15); }
.auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.auth-submit:hover { background: #2563eb; box-shadow: 0 0 30px rgba(59,130,246,0.35), 0 4px 16px rgba(59,130,246,0.2); }
.auth-submit:active { transform: scale(0.98); }
.auth-toggle {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}
.auth-toggle a { color: rgba(59,130,246,0.7); text-decoration: none; font-weight: 500; }
.auth-toggle a:hover { color: #60a5fa; text-decoration: underline; }

/* ============================================ */
/* Discord OAuth Auth Card                      */
/* ============================================ */
.discord-auth-card {
  text-align: center;
  padding: 48px 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 400px;
  margin: 0 auto;
}
.discord-auth-logo {
  color: #5865F2;
  margin-bottom: 24px;
}
.discord-auth-logo svg {
  filter: drop-shadow(0 0 20px rgba(88,101,242,0.4));
}
.discord-auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(88,101,242,0.25), 0 4px 12px rgba(88,101,242,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  margin-top: 8px;
}
.discord-auth-btn:hover {
  background: #4752C4;
  box-shadow: 0 0 30px rgba(88,101,242,0.4), 0 6px 20px rgba(88,101,242,0.3);
  transform: translateY(-1px);
}
.discord-auth-btn:active { transform: scale(0.98) translateY(0); }
.discord-auth-btn-loading {
  opacity: 0.7;
  pointer-events: none;
}
.discord-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.discord-auth-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 24px 0 16px;
}
.discord-auth-note {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  line-height: 1.5;
}
.discord-btn-landing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(88,101,242,0.2);
}
.discord-btn-landing:hover {
  background: #4752C4;
  box-shadow: 0 0 30px rgba(88,101,242,0.35);
  transform: translateY(-1px);
}

/* Topbar avatar for Discord users */
.topbar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.topbar-right .topbar-user {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Sign In CTA in topbar */
.auth-topbar-cta {
  padding: 5px 16px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 6px;
  color: #60a5fa !important;
  font-weight: 600 !important;
  transition: all 0.15s;
}
.auth-topbar-cta:hover { background: rgba(59,130,246,0.25) !important; color: #fff !important; }

/* ============================================ */
/* Landing Page                                 */
/* ============================================ */
.landing-brand-logo {
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.3));
}
.landing-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 40px 60px;
  max-width: 720px;
  margin: 0 auto;
}
.landing-h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}
.landing-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 520px;
  margin: 0 auto 36px;
}
.landing-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.landing-btn-primary {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
}
.landing-btn-primary:hover { background: #2563eb; box-shadow: 0 0 30px rgba(59,130,246,0.35); transform: translateY(-1px); }
.landing-btn-secondary {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.landing-btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

/* Stats strip */
.landing-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  max-width: 800px;
  margin: 0 auto;
}
.landing-stat { flex: 1; text-align: center; transition: transform 0.3s; }
.landing-stat:hover { transform: scale(1.05); }
.landing-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  transition: color 0.3s, text-shadow 0.3s;
}
.landing-stat:hover .landing-stat-num { color: #60a5fa; text-shadow: 0 0 20px rgba(59,130,246,0.4); }
.landing-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.landing-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,0.06); flex-shrink: 0; }

/* Feature grid */
.landing-section {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.landing-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}
.landing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.landing-card:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.05);
}
.landing-card:hover::before { opacity: 1; }
.landing-card:hover h3 { color: #60a5fa; }
.landing-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; z-index: 1; transition: transform 0.2s ease; will-change: transform; }
.landing-card:hover .landing-card-icon { transform: scale(1.15); }
.landing-card-icon svg { width: 20px; height: 20px; }
.landing-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; transition: color 0.3s; position: relative; z-index: 1; }
.landing-card p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; position: relative; z-index: 1; }
.landing-card:hover p { color: rgba(255,255,255,0.6); }

/* Compare table */
.landing-compare {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}
.landing-compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.landing-compare-row:last-child { border-bottom: none; }
.landing-compare-row:not(.landing-compare-head) { transition: background 0.2s; }
.landing-compare-row:not(.landing-compare-head):hover { background: rgba(59,130,246,0.04); }
.landing-compare-head { background: rgba(255,255,255,0.02); }
.landing-compare-head .landing-compare-cell { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); padding: 12px 16px; }
.landing-compare-cell { padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,0.35); }
.landing-compare-label { font-weight: 600; color: rgba(255,255,255,0.5); }
.landing-compare-hl { color: var(--accent) !important; font-weight: 600 !important; }
.landing-compare-head .landing-compare-hl { color: #60a5fa !important; }

/* Steps section */
.landing-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.landing-step {
  flex: 1;
  text-align: center;
  padding: 24px;
}
.landing-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s;
}
.landing-step:hover .landing-step-num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}
.landing-step h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.landing-step p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.landing-step-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(59,130,246,0.3), rgba(59,130,246,0.05));
  flex-shrink: 0;
  margin-top: -40px;
}

/* Code snippet */
.landing-code-wrap {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.landing-code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.landing-code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.landing-code-lang {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}
.landing-code {
  padding: 24px;
  margin: 0;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  overflow-x: auto;
}
.landing-code .code-kw { color: #c084fc; }
.landing-code .code-type { color: #67e8f9; }
.landing-code .code-str { color: #86efac; }
.landing-code .code-fn { color: #60a5fa; }

/* Section subtitle */
.landing-section-sub {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin-top: -36px;
  margin-bottom: 48px;
}

/* Trust grid */
.landing-trust-section { padding: 40px 40px 60px; }
.landing-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.landing-trust-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
  transition: all 0.3s;
}
.landing-trust-item:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-2px);
  background: rgba(59,130,246,0.03);
}
.landing-trust-icon { font-size: 24px; margin-bottom: 8px; }
.landing-trust-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.landing-trust-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CTA section */
.landing-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 40px 80px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.landing-cta h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.landing-cta p { font-size: 15px; color: rgba(255,255,255,0.35); margin-bottom: 24px; }
.landing-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Active topbar link */
.auth-topbar-active { color: rgba(255,255,255,0.6) !important; border-bottom: 1px solid rgba(59,130,246,0.5); padding-bottom: 2px; }

/* Comment color for code blocks */
.landing-code .code-cmt { color: rgba(255,255,255,0.25); font-style: italic; }

/* ============================================ */
/* Documentation Page                           */
/* ============================================ */
.docs-layout {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 64px;
  min-height: 100vh;
}

/* --- Sidebar --- */
.docs-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.docs-sidebar-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.docs-sidebar-btn {
  flex: 1;
  padding: 5px 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-align: center;
}
.docs-sidebar-btn:hover {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.docs-nav-group { margin-bottom: 16px; }
.docs-nav-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 6px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.docs-nav-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}
.docs-nav-link {
  display: block;
  padding: 5px 8px 5px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
  margin-bottom: 2px;
  border-left: 2px solid transparent;
}
.docs-nav-link:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.03); }
.docs-nav-link.active {
  color: #60a5fa;
  background: rgba(59,130,246,0.08);
  border-left-color: #3b82f6;
}

/* --- Content Area --- */
.docs-content {
  flex: 1;
  padding: 24px 40px 80px;
  min-width: 0;
}

/* --- Collapsible Sections --- */
.docs-section {
  margin-bottom: 0;
  scroll-margin-top: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.docs-section:last-child { border-bottom: none; }
.docs-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}
.docs-section-header:hover { opacity: 0.85; }
.docs-section-header h1,
.docs-section-header h2 {
  margin: 0;
  flex: 1;
  padding-left: 14px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #3b82f6, #6366f1) 1;
}
.docs-section-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  color: rgba(255,255,255,0.25);
}
.docs-section-chevron svg {
  width: 14px;
  height: 14px;
}
.docs-section.collapsed .docs-section-chevron {
  transform: rotate(-90deg);
}
.docs-section-body {
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
  padding-bottom: 32px;
}
.docs-section.collapsed .docs-section-body {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
}

/* --- Typography --- */
.docs-h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.5px; }
.docs-h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; margin-top: 32px; }
.docs-h3 { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 8px; margin-top: 24px; }
.docs-p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 640px;
}

/* --- Code Blocks --- */
.docs-code-wrap {
  margin: 16px 0 24px;
  max-width: 640px;
  position: relative;
}
.docs-code-copy {
  position: absolute;
  top: 44px;
  right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
}
.docs-code-copy:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.docs-code-copy.copied {
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.1);
}
.docs-inline-code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 5px;
  color: #c084fc;
}
.docs-inline-code.docs-xref {
  color: #60a5fa;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.docs-inline-code.docs-xref:hover {
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  text-decoration: underline;
}

/* --- Tables --- */
.docs-api-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0 24px;
  border-radius: 8px;
  overflow: hidden;
}
.docs-api-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.docs-api-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  transition: background 0.15s;
}
.docs-api-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}
.docs-api-table tr:hover td {
  background: rgba(255,255,255,0.03);
}
.docs-api-table td:first-child {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #60a5fa;
  white-space: nowrap;
}

/* --- Callouts --- */
.docs-callout {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 8px;
  padding: 12px 16px 12px 40px;
  margin: 16px 0;
  max-width: 640px;
  position: relative;
}
.docs-callout::before {
  content: '\2139';
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 14px;
  color: #60a5fa;
  font-weight: 700;
  line-height: 1;
}
.docs-callout.callout-warning {
  background: rgba(234,179,8,0.06);
  border-color: rgba(234,179,8,0.15);
}
.docs-callout.callout-warning::before {
  content: '\26A0';
  color: #eab308;
}
.docs-callout.callout-tip {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.15);
}
.docs-callout.callout-tip::before {
  content: '\2713';
  color: #22c55e;
}
.docs-callout-title { font-size: 12px; font-weight: 700; color: #60a5fa; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.docs-callout.callout-warning .docs-callout-title { color: #eab308; }
.docs-callout.callout-tip .docs-callout-title { color: #22c55e; }
.docs-callout p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; margin: 0; }

/* ============================================ */
/* Landing / Docs Responsive                    */
/* ============================================ */
@media (max-width: 768px) {
  /* ---- Top Nav ---- */
  .auth-topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }
  .auth-topbar-text {
    font-size: 14px;
    flex-shrink: 0;
  }
  .auth-topbar-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    order: 2;
  }
  .auth-topbar-link {
    font-size: 12px;
    padding: 4px 0;
  }
  .auth-topbar-cta {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  /* ---- Hero ---- */
  .landing-hero { padding: 80px 20px 32px; }
  .landing-hero-inner { padding: 0; }
  .landing-brand-logo svg { width: 40px; height: 40px; }
  .landing-h1 { font-size: 28px; letter-spacing: -0.5px; line-height: 1.15; }
  .landing-sub { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
  .dev-only-notice { margin: 16px auto 0 !important; padding: 16px; }
  .dev-only-notice h3 { font-size: 14px; }
  .dev-only-notice p { font-size: 12px; }

  /* ---- Stats strip ---- */
  .landing-stats {
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 16px;
  }
  .landing-stat {
    flex: 0 0 50%;
    padding: 10px 0;
  }
  .landing-stat-num { font-size: 22px; }
  .landing-stat-label { font-size: 10px; }
  .landing-stat-div { display: none; }

  /* ---- Section titles ---- */
  .landing-section { padding: 40px 16px; }
  .landing-section-title { font-size: 22px; }
  .landing-section-sub { font-size: 14px; margin-bottom: 32px !important; }

  /* ---- Feature cards ---- */
  .landing-actions { flex-direction: column; align-items: center; }
  .landing-grid { grid-template-columns: 1fr; gap: 12px; }
  .landing-card { padding: 20px; }
  .landing-card h3 { font-size: 15px; }
  .landing-card p { font-size: 13px; }

  /* ---- Steps ---- */
  .landing-steps { flex-direction: column; gap: 0; }
  .landing-step-line { width: 1px; height: 24px; background: linear-gradient(180deg, rgba(59,130,246,0.3), rgba(59,130,246,0.05)); margin-top: 0; }
  .landing-step { padding: 20px; }
  .landing-step h3 { font-size: 15px; }
  .landing-step p { font-size: 13px; }

  /* ---- Code snippet ---- */
  .landing-code-wrap { margin: 0 -8px; }
  .landing-code { font-size: 12px; padding: 16px; overflow-x: auto; }

  /* ---- Comparison table ---- */
  .landing-compare-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: 11px; }
  .landing-compare-cell { padding: 8px 4px; }
  .landing-compare-head .landing-compare-cell { font-size: 10px; }

  /* ---- Architecture diagram ---- */
  .landing-arch { flex-direction: column; gap: 16px; align-items: center; }
  .landing-arch-arrows { transform: rotate(90deg); margin: 8px 0; }

  /* ---- FAQ ---- */
  .landing-faq-q { font-size: 14px; padding: 14px 16px; }
  .landing-faq-a { font-size: 13px; padding: 0 16px 14px; }

  /* ---- CTA ---- */
  .landing-cta { padding: 40px 20px; }
  .landing-cta h2 { font-size: 22px; }
  .landing-cta p { font-size: 14px; }
  .landing-cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .discord-btn-landing { width: 100%; max-width: 300px; justify-content: center; }

  /* ---- Footer ---- */
  .landing-footer-inner { flex-direction: column; gap: 28px; text-align: center; }
  .landing-footer-cols { flex-direction: column; gap: 20px; }
  .landing-footer-col { text-align: center; }
  .landing-footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px; }

  /* ---- Auth card (sign-in page) ---- */
  .discord-auth-card { padding: 32px 20px; max-width: 100%; }
  .auth-title { font-size: 22px; }
  .auth-sub { font-size: 13px; }
  .discord-auth-btn { font-size: 14px; padding: 12px 24px; width: 100%; justify-content: center; }

  /* ---- Docs ---- */
  .docs-sidebar { display: none; }
  .docs-content { padding: 24px 16px 80px; }
  .docs-layout { padding-top: 48px; }
  .docs-section-header h1,
  .docs-section-header h2 { font-size: 18px; }
  .docs-code-copy { padding: 3px 8px; font-size: 10px; }
}
@media (max-width: 1024px) {
  .docs-sidebar { width: 180px; }
}

/* ============================================ */
/* Layout                                       */
/* ============================================ */
#main-app { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================================ */
/* Top Bar                                      */
/* ============================================ */
.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); }
.topbar-status.online .status-dot { background: var(--green); }
.topbar-status.offline .status-dot { background: var(--red); }
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--accent); background: rgba(59,130,246,0.08); border-bottom: 2px solid var(--accent); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-user { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); }
.btn-logout {
  padding: 5px 12px;
  font-size: 11px;
  background: transparent;
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout:hover { color: #fff; border-color: rgba(255,255,255,0.12); }

/* ============================================ */
/* Main Content                                 */
/* ============================================ */
#content { flex: 1; padding: 28px 40px; max-width: 1000px; margin: 0 auto; width: 100%; overflow-y: auto; }

/* Page head */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-head h1 { font-size: 20px; font-weight: 600; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.1); }

/* ============================================ */
/* Stats                                        */
/* ============================================ */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 3px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}
.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.stat-num small { font-size: 12px; font-weight: 400; color: var(--text2); }
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Colored stat variants */
.stat-blue { border-left-color: var(--accent); }
.stat-blue .stat-num { color: #60a5fa; }
.stat-green { border-left-color: var(--green); }
.stat-green .stat-num { color: #4ade80; }
.stat-purple { border-left-color: var(--purple); }
.stat-purple .stat-num { color: #c084fc; }
.stat-cyan { border-left-color: var(--cyan); }
.stat-cyan .stat-num { color: #22d3ee; }
.stat-orange { border-left-color: var(--orange); }
.stat-orange .stat-num { color: #fb923c; }
.stat-pink { border-left-color: var(--pink); }
.stat-pink .stat-num { color: #f472b6; }

/* Plan bar */
.plan-bar {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
}
.plan-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.plan-progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.plan-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 3px; transition: width 0.3s; box-shadow: 0 0 8px rgba(59,130,246,0.3); }

/* Columns */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ============================================ */
/* Cards — Glass panels                         */
/* ============================================ */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card-danger { border-color: rgba(239,68,68,0.3); }
.columns .card { margin-bottom: 0; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 { font-size: 13px; font-weight: 600; color: var(--text); }

/* Colored card variants */
.card-blue { border-left: 3px solid var(--accent); }
.card-green { border-left: 3px solid var(--green); }
.card-purple { border-left: 3px solid var(--purple); }
.card-cyan { border-left: 3px solid var(--cyan); }
.card-orange { border-left: 3px solid var(--orange); }
.card-body { padding: 12px 16px; max-height: 280px; overflow-y: auto; }
.chart-container { padding: 8px; max-height: none; }
.chart-container canvas { width: 100%; height: 200px; }
.badge {
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
}
.badge-green { background: rgba(34,197,94,0.2); color: #4ade80; }
.badge-purple { background: rgba(168,85,247,0.2); color: #c084fc; }
.empty { padding: 24px 0; text-align: center; font-size: 13px; color: var(--text2); }

/* ============================================ */
/* Buttons                                      */
/* ============================================ */
.btn-primary {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-primary:hover { background: #2563eb; box-shadow: 0 2px 12px rgba(59,130,246,0.25); }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-sm:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.btn-danger { color: var(--red); border-color: rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.1); border-color: var(--red); }
.btn-go-live { background: var(--green); color: #fff; border-color: var(--green); }
.btn-go-live:hover { background: #16a34a; }

/* ============================================ */
/* Inputs                                       */
/* ============================================ */
.input {
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  width: 100%;
  color: var(--text);
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(59,130,246,0.12); }
.input::placeholder { color: var(--text3); }

select.input {
  background: rgba(0,0,0,0.3);
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ============================================ */
/* Room / Player Items                          */
/* ============================================ */
.room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.room-item:last-child { border-bottom: none; }
.room-name { font-weight: 500; color: var(--text); }
.room-meta { color: var(--text2); font-size: 12px; }
.player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.player-item:last-child { border-bottom: none; }
.player-left { display: flex; align-items: center; gap: 8px; }
.player-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #60a5fa;
}
.player-name { font-weight: 500; color: var(--text); }
.ping { font-size: 12px; font-family: monospace; }
.ping-good { color: var(--green); }
.ping-ok { color: var(--yellow); }
.ping-bad { color: var(--red); }

/* ============================================ */
/* Log                                          */
/* ============================================ */
.log-body { max-height: 160px; font-size: 12px; font-family: monospace; }
.log-line { padding: 3px 0; display: flex; gap: 10px; }
.log-time { color: var(--text3); white-space: nowrap; }
.log-msg { color: var(--text2); }
.log-line.log-connect .log-msg { color: var(--green); }
.log-line.log-disconnect .log-msg { color: var(--red); }
.log-line.log-warning .log-msg { color: var(--yellow); }

/* ============================================ */
/* Tabs                                         */
/* ============================================ */
.tab-group { display: flex; gap: 4px; }
.tab {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================ */
/* Locked Overlay                               */
/* ============================================ */
.locked-overlay { text-align: center; padding: 48px 24px; }
.locked-overlay h2 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.locked-overlay p { font-size: 14px; color: var(--text2); margin-bottom: 16px; }

/* ============================================ */
/* Plans                                        */
/* ============================================ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.plan-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover { border-color: rgba(255,255,255,0.08); }
.plan-active { border-color: rgba(59,130,246,0.4); border-width: 1px; box-shadow: 0 0 30px rgba(59,130,246,0.08); }
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.plan-card h2 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.plan-price { margin-bottom: 16px; }
.price-big { font-size: 32px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #fff, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-period { font-size: 14px; color: var(--text2); }
.plan-features {
  list-style: none;
  text-align: left;
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--text2);
}
.plan-features li { padding: 4px 0; border-bottom: 1px solid var(--border-light); }
.plan-features li:last-child { border-bottom: none; }
.btn-plan {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-plan:hover { background: #2563eb; box-shadow: 0 2px 12px rgba(59,130,246,0.25); }
.plans-note { text-align: center; font-size: 12px; color: var(--text3); margin-top: 8px; }
.plan-recommended { border-color: rgba(59,130,246,0.5); box-shadow: 0 0 40px rgba(59,130,246,0.12); }
.plan-recommended-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.btn-plan-outline {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--text2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-plan-outline:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.btn-plan-manage {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-plan-manage:hover { background: rgba(34,197,94,0.25); }

/* ============================================ */
/* Releases                                     */
/* ============================================ */
.upload-zone {
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  background: rgba(255,255,255,0.01);
  transition: border-color 0.15s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); }
.upload-icon { font-size: 28px; color: var(--text3); margin-bottom: 4px; }
.upload-title { font-size: 14px; font-weight: 500; color: var(--text); }
.upload-sub { font-size: 12px; color: var(--text2); }
.upload-sub a { color: #60a5fa; cursor: pointer; text-decoration: none; }
.upload-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.upload-form .input { margin-bottom: 8px; }
.upload-actions { display: flex; align-items: center; gap: 8px; }
.upload-filename { font-size: 12px; color: var(--text2); flex: 1; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text2);
  margin-bottom: 10px;
}
.release-list { display: flex; flex-direction: column; gap: 8px; }
.release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.release-info { display: flex; flex-direction: column; gap: 2px; }
.release-top { display: flex; align-items: center; gap: 8px; }
.release-version { font-size: 14px; font-weight: 600; color: var(--text); }
.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag-live { background: rgba(34,197,94,0.15); color: var(--green); }
.tag-staged { background: rgba(234,179,8,0.15); color: var(--yellow); }
.tag-archived { background: rgba(255,255,255,0.05); color: var(--text2); }
.release-notes { font-size: 13px; color: var(--text2); }
.release-meta { font-size: 12px; color: var(--text3); display: flex; gap: 12px; }
.release-actions { display: flex; gap: 8px; }

/* ============================================ */
/* Settings                                     */
/* ============================================ */
.settings-form { padding: 16px; }
.field { margin-bottom: 0; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 4px; }
.field-row { display: flex; gap: 8px; }
.field-row .input { flex: 1; }
.field-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }
.app-id-display {
  display: block;
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  padding: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  color: var(--text);
}

/* App Keys Table */
.app-keys-table { display: flex; flex-direction: column; gap: 0; }
.app-keys-header, .app-keys-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}
.app-keys-header {
  color: var(--text3);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.app-keys-row {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text2);
}
.app-keys-row:last-child { border-bottom: none; }
.app-id-code {
  font-family: monospace;
  font-size: 12px;
  padding: 3px 6px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 4px;
  color: var(--accent);
  user-select: all;
}
.app-secret-hint {
  font-family: monospace;
  font-size: 12px;
  color: var(--text3);
}

/* New Key Display */
.new-key-box {
  margin-top: 12px;
  padding: 12px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 8px;
}
.new-key-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}
.new-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.new-key-row:last-child { margin-bottom: 0; }
.new-key-row label {
  font-size: 11px;
  color: var(--text3);
  width: 70px;
  flex-shrink: 0;
}
.new-key-row code {
  font-family: monospace;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}
.btn-copy {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-copy:hover { background: rgba(255,255,255,0.1); }
.btn-delete-key { font-size: 11px !important; padding: 2px 8px !important; }

/* Dev Only Notice */
.dev-only-notice {
  text-align: center;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: 8px;
}
.dev-only-icon { font-size: 28px; margin-bottom: 6px; }
.dev-only-notice h3 { font-size: 15px; color: #eab308; margin-bottom: 4px; }
.dev-only-notice p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================ */
/* Toast                                        */
/* ============================================ */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 999;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================ */
/* Scrollbar                                    */
/* ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ============================================ */
/* Admin Panel                                  */
/* ============================================ */
.admin-controls { display: flex; gap: 8px; align-items: center; }
.admin-search {
  width: 200px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  outline: none;
}
.admin-search:focus { border-color: var(--accent); }
.admin-search::placeholder { color: var(--text3); }
.admin-filter {
  width: 120px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.admin-filter option { background: #18181b; color: var(--text); }

.admin-table-wrap { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.admin-row-banned { opacity: 0.5; }
.admin-user-cell { display: flex; align-items: center; gap: 8px; }

.admin-plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: capitalize;
}
.admin-plan-free { background: rgba(255,255,255,0.06); color: var(--text2); }
.admin-plan-indie { background: rgba(59,130,246,0.12); color: #60a5fa; }
.admin-plan-studio { background: rgba(34,197,94,0.12); color: var(--green); }

.admin-role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: capitalize;
}
.admin-role-user { background: rgba(255,255,255,0.06); color: var(--text2); }
.admin-role-moderator { background: rgba(234,179,8,0.12); color: var(--yellow); }
.admin-role-admin { background: rgba(236,72,153,0.12); color: #ec4899; }

.admin-status-active { color: var(--green); font-size: 12px; font-weight: 600; }
.admin-status-banned { color: var(--red); font-size: 12px; font-weight: 600; }

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.admin-page-info { font-size: 12px; color: var(--text2); }

.admin-detail-panel { margin-top: 16px; }
.admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 16px; }
.admin-detail-field { font-size: 13px; color: var(--text); }
.admin-detail-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text2);
  margin-bottom: 2px;
}
.admin-detail-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.admin-detail-section > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}
.admin-plan-breakdown { display: flex; gap: 6px; justify-content: center; }

/* ============================================ */
/* Analytics Chart fixes for dark theme         */
/* ============================================ */
canvas { filter: none; }

/* ============================================ */
/* Responsive                                   */
/* ============================================ */
/* ============================================ */
/* Status Page                                  */
/* ============================================ */
.status-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 40px 40px;
}
.status-hero-inner { max-width: 600px; margin: 0 auto; }
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.status-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  position: relative;
}
.status-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: statusPulse 2s ease-in-out infinite;
}
.status-pulse-green { background: #4ade80; }
.status-pulse-green::before { background: #4ade80; }
.status-pulse-red { background: #f87171; }
.status-pulse-red::before { background: #f87171; }
.status-text {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
@keyframes statusPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0; transform: scale(2.5); } }

/* Status metrics */
.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}
.status-metric {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}
.status-metric:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-2px);
  background: rgba(59,130,246,0.03);
}
.status-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
}
.status-metric-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

/* Status chart */
.status-chart-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
}

/* Status services */
.status-services {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}
.status-svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.status-svc-row:last-child { border-bottom: none; }
.status-svc-row:hover { background: rgba(255,255,255,0.02); }
.status-svc-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.status-svc-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.status-svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-svc-green { color: #4ade80; }
.status-svc-green .status-svc-dot { background: #4ade80; }
.status-svc-red { color: #f87171; }
.status-svc-red .status-svc-dot { background: #f87171; }
.status-svc-checking { color: rgba(255,255,255,0.3); }
.status-svc-checking .status-svc-dot { background: rgba(255,255,255,0.2); }

/* Status uptime bars */
.status-uptime-bars {
  display: flex;
  gap: 2px;
  max-width: 700px;
  margin: 0 auto;
  height: 32px;
}
.status-bar {
  flex: 1;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: default;
  min-width: 2px;
}
.status-bar:hover { transform: scaleY(1.3); opacity: 0.8; }
.status-bar-green { background: #4ade80; }
.status-bar-yellow { background: #eab308; }
.status-bar-red { background: #f87171; }
.status-uptime-legend {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 8px auto 0;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}
.status-uptime-pct {
  color: #4ade80;
  font-weight: 600;
}

/* ============================================ */
/* Architecture Diagram                         */
/* ============================================ */
.landing-arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.landing-arch-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.landing-arch-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-arch-node {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  transition: all 0.3s;
}
.landing-arch-node:hover {
  border-color: rgba(59,130,246,0.25);
  transform: translateY(-2px);
  background: rgba(59,130,246,0.04);
}
.landing-arch-node span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.landing-arch-node small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 2px;
}
.landing-arch-icon {
  font-size: 18px;
  margin-bottom: 4px;
}
.landing-arch-server {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.2);
  padding: 24px 32px;
}
.landing-arch-server span { color: #60a5fa; }
.landing-arch-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  gap: 4px;
}
.landing-arch-arrow {
  font-size: 18px;
  color: rgba(59,130,246,0.4);
  line-height: 1;
}
.landing-arch-arrow-label {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================ */
/* FAQ Accordion                                */
/* ============================================ */
.landing-faq {
  max-width: 700px;
  margin: 0 auto;
}
.landing-faq-item {
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.landing-faq-item:hover { border-color: rgba(255,255,255,0.1); }
.landing-faq-q {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}
.landing-faq-q:hover { color: #fff; background: rgba(255,255,255,0.02); }
.landing-faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.landing-faq-open .landing-faq-q::after { content: '-'; color: #60a5fa; }
.landing-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  padding: 0 20px;
}
.landing-faq-open .landing-faq-a {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* ============================================ */
/* Footer                                       */
/* ============================================ */
.landing-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 60px 40px 0;
}
.landing-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.landing-footer-brand { flex: 1; }
.landing-footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.3px;
}
.landing-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.15);
  margin-top: 8px;
  max-width: 200px;
}
.landing-footer-cols {
  display: flex;
  gap: 48px;
}
.landing-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}
.landing-footer-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}
.landing-footer-link:hover { color: rgba(255,255,255,0.6); }
.landing-footer-bottom {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.12);
}
.landing-footer-links-bottom {
  display: flex;
  gap: 20px;
}
.landing-footer-links-bottom a {
  color: rgba(255,255,255,0.12);
  text-decoration: none;
  transition: color 0.15s;
}
.landing-footer-links-bottom a:hover { color: rgba(255,255,255,0.4); }

/* ============================================ */
/* Auth Provider Cards (Settings)               */
/* ============================================ */
.auth-providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.auth-provider-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.auth-provider-card:hover {
  border-color: rgba(255,255,255,0.1);
}
.auth-provider-card.auth-provider-enabled {
  border-color: rgba(59,130,246,0.25);
}
.auth-provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.auth-provider-header:hover { background: rgba(255,255,255,0.02); }
.auth-provider-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-provider-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.auth-provider-icon-steam { background: rgba(59,130,246,0.12); color: #60a5fa; }
.auth-provider-icon-oculus { background: rgba(168,85,247,0.12); color: #c084fc; }
.auth-provider-icon-discord { background: rgba(88,101,242,0.12); color: #818cf8; }
.auth-provider-icon-google { background: rgba(34,197,94,0.12); color: #4ade80; }
.auth-provider-icon-apple { background: rgba(255,255,255,0.08); color: #fff; }
.auth-provider-icon-epic { background: rgba(249,115,22,0.12); color: #fb923c; }
.auth-provider-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.auth-provider-status {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 1px;
}
.auth-provider-status-on { color: #4ade80; }

/* Toggle switch */
.auth-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.auth-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.auth-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.25s;
}
.auth-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: transform 0.25s, background 0.25s;
}
.auth-toggle input:checked + .auth-toggle-slider {
  background: rgba(59,130,246,0.4);
}
.auth-toggle input:checked + .auth-toggle-slider::before {
  transform: translateX(18px);
  background: #3b82f6;
}

/* Provider body (collapsible) */
.auth-provider-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 16px;
}
.auth-provider-card.auth-provider-open .auth-provider-body {
  max-height: 500px;
  padding: 0 16px 16px;
}
.auth-provider-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-provider-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.auth-provider-field input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.auth-provider-field input:focus {
  border-color: rgba(59,130,246,0.4);
}
.auth-provider-field input::placeholder {
  color: rgba(255,255,255,0.15);
}
.auth-provider-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.auth-provider-actions .btn-sm {
  flex: 1;
}
.auth-test-result {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  display: none;
}
.auth-test-result.auth-test-ok {
  display: block;
  background: rgba(34,197,94,0.08);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.15);
}
.auth-test-result.auth-test-fail {
  display: block;
  background: rgba(239,68,68,0.08);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.15);
}

/* ============================================ */
/* Dashboard Responsive (end)                   */
/* ============================================ */
@media (max-width: 768px) {
  .topbar { padding: 0 12px; height: 44px; }
  .topbar-nav { gap: 2px; }
  .nav-link { padding: 4px 8px; font-size: 12px; }
  .topbar-user { display: none; }
  #content { padding: 16px; }
  .stats-row { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .auth-center { padding: 0 20px; }
  .auth-providers-grid { grid-template-columns: 1fr; }
  .status-metrics { grid-template-columns: repeat(2, 1fr); }
  .landing-arch { flex-direction: column; gap: 16px; }
  .landing-arch-arrows { flex-direction: row; padding: 8px 0; }
  .landing-footer-inner { flex-direction: column; gap: 32px; }
  .landing-footer-cols { flex-wrap: wrap; gap: 32px; }
  .landing-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================ */
/* SDKs Page                                    */
/* ============================================ */
.page-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }
.sdk-grid { display: flex; flex-direction: column; gap: 20px; }
.sdk-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  transition: border-color 0.2s;
}
.sdk-card:hover { border-color: var(--accent); }
.sdk-card-beta { border-color: #f59e0b33; }
.sdk-card-beta:hover { border-color: #f59e0b; }
.sdk-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 1px;
}
.sdk-icon { font-size: 48px; flex-shrink: 0; width: 64px; text-align: center; }
.sdk-info { flex: 1; }
.sdk-info h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sdk-version { font-size: 13px; color: var(--accent); font-weight: 600; }
.sdk-info p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.sdk-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.tag-blue { background: #3b82f620; color: #60a5fa; border: 1px solid #3b82f640; }
.tag-green { background: #22c55e20; color: #4ade80; border: 1px solid #22c55e40; }
.tag-orange { background: #f59e0b20; color: #fbbf24; border: 1px solid #f59e0b40; }
.tag-purple { background: #a855f720; color: #c084fc; border: 1px solid #a855f740; }
.sdk-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.sdk-feature { font-size: 13px; color: var(--text-muted); }
.sdk-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}
.sdk-actions .btn-primary,
.sdk-actions .btn-sm {
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.sdk-section { margin-top: 32px; }
.sdk-section h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

@media (max-width: 768px) {
  .sdk-card { flex-direction: column; }
  .sdk-actions { flex-direction: row; width: 100%; }
  .sdk-features { grid-template-columns: 1fr; }
}
