/* ===== Variables ===== */
:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --bg-raised: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3fb950;
  --accent-dark: #238636;
  --accent-dim: rgba(63, 185, 80, 0.12);
  --discord: #5865f2;
  --radius: 8px;
  --nav-h: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  white-space: nowrap;
}
.logo-icon { font-size: 1.3em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links li { display: flex; }
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-raised); }
/* Join Discord link */
.nav-link-discord {
  color: var(--text-muted) !important;
  background: none !important;
}
.nav-link-discord:hover { color: var(--text) !important; background: var(--bg-raised) !important; }

/* Login button */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius);
  background: var(--discord);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(88,101,242,0.3);
  white-space: nowrap;
}
.nav-login-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88,101,242,0.4);
}

/* ===== Login page ===== */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 120px);
  padding: 48px 24px;
}
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.login-logo { font-size: 2.4rem; margin-bottom: 16px; }
.login-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.login-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.login-info {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.login-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.login-info-row svg { flex-shrink: 0; color: var(--accent); }
.login-info-row strong { color: var(--text); }
.login-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 13px 20px; }
.login-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}
.login-legal a { color: var(--text-muted); text-decoration: underline; }
.login-legal a:hover { color: var(--text); }

/* User menu */
.nav-user-menu { position: relative; display: flex; align-items: center; }
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 99px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.nav-user-btn:hover, .nav-user-btn.open { background: #2d333b; border-color: #444c56; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; }
.nav-username { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-chevron { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.nav-user-btn.open .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
}
.nav-dropdown-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.nav-dropdown-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.nav-dropdown-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 0; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.nav-dropdown-item:hover { background: var(--bg-raised); color: var(--text); }
.nav-dropdown-item-danger:hover { background: rgba(237,66,69,0.1); color: #ed4245; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== Main / Page wrapper ===== */
main { flex: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-raised); }

/* ===== Hero ===== */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Section ===== */
.section {
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 48px;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== Feature cards grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.15s;
}
.card:hover { border-color: var(--accent-dark); transform: translateY(-2px); }
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ===== Features page ===== */
.feat-hero { padding-bottom: 0; text-align: center; }
.feat-section { padding-top: 48px; padding-bottom: 48px; }
.feat-section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.feat-section-icon { font-size: 2rem; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(88,101,242,0.1); border: 1px solid rgba(88,101,242,0.2); border-radius: 14px; flex-shrink: 0; }
.feat-section-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 3px; }
.feat-section-sub { font-size: 0.85rem; color: var(--text-muted); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; transition: border-color .15s, background .15s; }
.feat-card:hover { border-color: rgba(88,101,242,0.35); background: var(--bg-raised); }
.feat-card-icon { font-size: 1.4rem; margin-bottom: 12px; }
.feat-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.feat-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ===== CTA band ===== */
.cta-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== Stats bar ===== */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-surface); padding: 28px 24px; }
.stats-bar-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stats-item { text-align: center; padding: 8px 36px; }
.stats-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stats-lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.stats-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ===== Audience split ===== */
.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.audience-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 28px 24px; }
.audience-card-player { border-color: rgba(88,101,242,0.3); background: linear-gradient(135deg, var(--bg-surface) 60%, rgba(88,101,242,0.04)); }
.audience-card-admin { border-color: rgba(87,242,135,0.25); background: linear-gradient(135deg, var(--bg-surface) 60%, rgba(87,242,135,0.04)); }
.audience-icon { font-size: 2rem; margin-bottom: 14px; }
.audience-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.audience-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 680px) { .audience-split { grid-template-columns: 1fr; } }

/* ===== Store cards ===== */
.store-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.store-card:hover { border-color: rgba(88,101,242,0.4); transform: translateY(-2px); }
.store-card-banner { height: 100px; background-size: cover; background-position: center; flex-shrink: 0; }
.store-card-banner-placeholder { background: linear-gradient(135deg, rgba(88,101,242,0.12), rgba(88,101,242,0.04)); }
.store-card-body { padding: 16px 18px 18px; flex: 1; }
.store-card-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.store-card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: auto; }

/* ===== How steps ===== */
.how-steps { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin: 40px auto 0; }
.how-step { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); }
.how-step:last-child { border-bottom: none; }
.how-step-num { width: 36px; height: 36px; border-radius: 50%; background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.3); color: #818cf8; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-step h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.how-step p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ===== About page ===== */
.about-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-story-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; }
.about-story-icon { font-size: 1.8rem; margin-bottom: 14px; }
.about-story-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.about-story-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.about-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.about-pillar { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.about-pillar-num { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 10px; }
.about-pillar h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.about-pillar p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 768px) { .about-story-grid { grid-template-columns: 1fr; } .about-pillars { grid-template-columns: 1fr; } }
/* ===== Legal pages ===== */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.legal .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 32px 0 10px; }
.legal p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; line-height: 1.7; }
.legal ul { padding-left: 20px; list-style: disc; margin-bottom: 12px; }
.legal ul li { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 6px; line-height: 1.6; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ===== 404 ===== */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  flex: 1;
}
.not-found-code { font-size: 6rem; font-weight: 700; color: var(--border); line-height: 1; }
.not-found h1 { font-size: 1.6rem; font-weight: 600; margin: 12px 0 8px; }
.not-found p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 180px; }
.footer-name { font-weight: 700; font-size: 1rem; margin-left: 6px; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 2px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
.footer-inner { gap: 32px; }
  .footer-links { gap: 28px; }
}
@media (max-width: 480px) {
  .hero { padding: 64px 16px 56px; }
  .section { padding: 48px 16px; }
  .cards { grid-template-columns: 1fr; }
}

/* ===== Hero Banner (home) ===== */
.hero-banner {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 24px;
}
/* CSS-only atmospheric background — drop a real ARK image at /img/hero-bg.jpg to use it */
.hero-banner-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.15) 0%, rgba(13,17,23,0.7) 60%, var(--bg) 100%),
    linear-gradient(135deg, #060d1a 0%, #0a1a10 35%, #08131f 65%, #0d1117 100%);
  /* Uncomment below and add /img/hero-bg.jpg for a real ARK background image: */
  /* background-image: url('/img/hero-bg.jpg'); background-size: cover; background-position: center; */
}
/* Subtle grid overlay for depth */
.hero-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63,185,80,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,185,80,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}
.hero-banner-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 99px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hero-banner-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero-banner-content h1 span { color: var(--accent); }
.hero-banner-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

@media (max-width: 600px) {
  .hero-banner { min-height: 70vh; }
  .hero-banner-content h1 { font-size: 2rem; }
  .btn-lg { padding: 12px 20px; font-size: 0.95rem; }
}

/* ===== Home Feature Grid ===== */
.home-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.home-feat-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, transform 0.15s, background 0.15s;
}
.home-feat-card:hover { border-color: rgba(88,101,242,0.4); transform: translateY(-2px); background: var(--bg-raised); }
.home-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.home-feat-icon-green  { background: rgba(63,185,80,0.12);  border: 1px solid rgba(63,185,80,0.2);  }
.home-feat-icon-red    { background: rgba(237,66,69,0.1);   border: 1px solid rgba(237,66,69,0.2);  }
.home-feat-icon-blue   { background: rgba(88,101,242,0.1);  border: 1px solid rgba(88,101,242,0.2); }
.home-feat-icon-purple { background: rgba(155,89,182,0.12); border: 1px solid rgba(155,89,182,0.2); }
.home-feat-icon-orange { background: rgba(240,132,41,0.12); border: 1px solid rgba(240,132,41,0.2); }
.home-feat-icon-yellow { background: rgba(240,180,41,0.12); border: 1px solid rgba(240,180,41,0.2); }
.home-feat-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.home-feat-card p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 10px; }
.home-feat-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
@media (max-width: 640px) { .home-feat-grid { grid-template-columns: 1fr; } }

/* ===== How layout (two-column) ===== */
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.how-left .section-title { margin-bottom: 16px; }
.how-layout .how-steps { margin-top: 0; max-width: none; }
@media (max-width: 768px) {
  .how-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Features in-page nav ===== */
.feat-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(13,17,23,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.feat-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}
.feat-nav-inner::-webkit-scrollbar { display: none; }
.feat-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.feat-nav-item:hover { color: var(--text); background: var(--bg-raised); }
.feat-nav-item.active { color: var(--text); background: var(--bg-raised); font-weight: 600; }
.feat-nav-select { display: none; }
@media (max-width: 560px) {
  .feat-nav-inner { display: none; }
  .feat-nav-select {
    display: block;
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    padding: 10px 12px;
    margin: 10px 0;
    cursor: pointer;
  }
}

/* ===== Features section accent colours ===== */
.feat-section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.feat-section-icon {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}
.feat-icon-green  { background: rgba(63,185,80,0.12);  border: 1px solid rgba(63,185,80,0.25);  }
.feat-icon-yellow { background: rgba(240,180,41,0.12); border: 1px solid rgba(240,180,41,0.25); }
.feat-icon-blue   { background: rgba(88,101,242,0.12); border: 1px solid rgba(88,101,242,0.25); }
.feat-icon-red    { background: rgba(237,66,69,0.1);   border: 1px solid rgba(237,66,69,0.22);  }
.feat-icon-purple { background: rgba(155,89,182,0.12); border: 1px solid rgba(155,89,182,0.25); }
.feat-icon-orange { background: rgba(240,132,41,0.12); border: 1px solid rgba(240,132,41,0.25); }

/* Feat card accent left-border variants */
.feat-card { position: relative; }
.feat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.feat-card:hover::before { opacity: 1; }
.feat-card-green::before  { background: var(--accent); }
.feat-card-yellow::before { background: #f0b429; }
.feat-card-blue::before   { background: var(--discord); }
.feat-card-red::before    { background: #ed4245; }
.feat-card-purple::before { background: #9b59b6; }
.feat-card-orange::before { background: #f08429; }

.feat-card:hover { border-color: var(--border); }
.feat-card-green:hover  { border-color: rgba(63,185,80,0.35);  }
.feat-card-yellow:hover { border-color: rgba(240,180,41,0.35); }
.feat-card-blue:hover   { border-color: rgba(88,101,242,0.35); }
.feat-card-red:hover    { border-color: rgba(237,66,69,0.35);  }
.feat-card-purple:hover { border-color: rgba(155,89,182,0.35); }
.feat-card-orange:hover { border-color: rgba(240,132,41,0.35); }

.feat-card code {
  display: inline-block;
  font-family: monospace;
  font-size: 0.78rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 4px;
  margin-top: 6px;
  color: var(--accent);
}

/* ===== Slash Commands grid ===== */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cmd-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.cmd-card:hover { background: var(--bg-raised); border-color: #444c56; }
.cmd-name {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.cmd-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.cmd-desc code {
  font-family: monospace;
  font-size: 0.78rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
}
.cmd-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  margin-top: 4px;
  width: fit-content;
}
.cmd-tag-green  { background: rgba(63,185,80,0.12);  color: var(--accent);  border: 1px solid rgba(63,185,80,0.25);  }
.cmd-tag-yellow { background: rgba(240,180,41,0.12); color: #f0b429; border: 1px solid rgba(240,180,41,0.25); }
.cmd-tag-blue   { background: rgba(88,101,242,0.12); color: #818cf8; border: 1px solid rgba(88,101,242,0.25); }
.cmd-tag-red    { background: rgba(237,66,69,0.1);   color: #f85149; border: 1px solid rgba(237,66,69,0.22);  }
.cmd-tag-purple { background: rgba(155,89,182,0.12); color: #c084fc; border: 1px solid rgba(155,89,182,0.25); }
.cmd-tag-orange { background: rgba(240,132,41,0.12); color: #fb923c; border: 1px solid rgba(240,132,41,0.25); }
@media (max-width: 600px) { .cmd-grid { grid-template-columns: 1fr; } }

/* ===== Account pages ===== */
.account-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.account-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.account-profile-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.account-profile-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.account-profile-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.account-nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.account-nav-item:hover { background: var(--bg-raised); color: var(--text); }
.account-nav-item.active { background: var(--bg-raised); color: var(--text); }
.account-nav-item svg { flex-shrink: 0; }

/* Content */
.account-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.account-section { padding: 28px 28px 24px; }
.account-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.account-section-title-danger { color: #ed4245; }
.account-section-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.account-divider { height: 1px; background: var(--border); }

.account-field-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.account-field { flex: 1; min-width: 160px; }
.account-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.account-value {
  padding: 9px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
}
.account-value-mono { font-family: monospace; font-size: 0.8rem; color: var(--text-muted); }

.account-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.2);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--accent);
}

/* Danger zone */
.account-danger-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: rgba(237,66,69,0.06);
  border: 1px solid rgba(237,66,69,0.25);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.account-danger-info { display: flex; flex-direction: column; gap: 3px; }
.account-danger-info strong { font-size: 0.875rem; color: var(--text); }
.account-danger-info span { font-size: 0.82rem; color: var(--text-muted); }
.btn-danger-outline {
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(237,66,69,0.5);
  background: transparent;
  color: #ed4245;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.btn-danger-outline:hover { background: rgba(237,66,69,0.12); border-color: #ed4245; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.modal-icon { font-size: 2.4rem; margin-bottom: 12px; }
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.modal-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.btn-modal-cancel {
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-modal-cancel:hover { background: var(--bg-raised); color: var(--text); }
.btn-modal-danger {
  padding: 9px 20px;
  border-radius: var(--radius);
  border: none;
  background: #ed4245;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-modal-danger:hover { opacity: 0.85; }

/* Invoices empty state */
.invoices-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.invoices-empty-icon { font-size: 2.8rem; margin-bottom: 14px; }
.invoices-empty h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.invoices-empty p { font-size: 0.875rem; max-width: 320px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 768px) {
  .account-wrap { grid-template-columns: 1fr; padding: 24px 16px 60px; }
  .account-sidebar { position: static; }
  .account-section { padding: 20px 18px; }
}

/* ===== Servers page ===== */
.servers-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.servers-header { margin-bottom: 32px; }
.servers-title { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.servers-sub { font-size: 0.9rem; color: var(--text-muted); }

/* Server cards */
.servers-grid { display: flex; flex-direction: column; gap: 10px; }
.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, transform 0.1s;
}
.server-card:hover { border-color: #444c56; transform: translateY(-1px); }
.server-card-icon { flex-shrink: 0; }
.server-icon-img { width: 44px; height: 44px; border-radius: 12px; }
.server-icon-fallback {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--discord);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.server-card-info { flex: 1; min-width: 0; }
.server-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-card-id { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; margin-top: 2px; }
.server-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.server-card-btn:hover { background: #2d333b; border-color: #444c56; }

/* Invite row (shown when some servers exist) */
.servers-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.servers-invite-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.15s;
}
.servers-invite-link:hover { opacity: 0.8; }

/* Empty state */
.servers-empty {
  text-align: center;
  padding: 64px 24px;
}
.servers-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.servers-empty h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.servers-empty p { font-size: 0.875rem; color: var(--text-muted); max-width: 340px; margin: 0 auto 24px; line-height: 1.6; }
.btn-invite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(35,134,54,0.3);
}
.btn-invite:hover { opacity: 0.88; transform: translateY(-1px); }
.servers-empty-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; }

@media (max-width: 600px) {
  .servers-wrap { padding: 28px 16px 60px; }
  .server-card-id { display: none; }
}

/* ===== Dashboard layout ===== */
.db-wrap {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* Sidebar */
.db-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.db-sidebar-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  color: var(--text);
  transition: background 0.12s;
  flex-shrink: 0;
}
.db-sidebar-server:hover { background: var(--bg-raised); }
.db-sidebar-server-icon { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.db-sidebar-server-fallback {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--discord); color: #fff;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.db-sidebar-server-info { flex: 1; min-width: 0; }
.db-sidebar-server-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-sidebar-server-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.db-sidebar-server-chevron { color: var(--text-muted); flex-shrink: 0; }

.db-sidebar-divider { height: 1px; background: var(--border); }

.db-sidebar-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 2px; }

/* Top-level nav item (Overview) */
.db-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.db-nav-item:hover { background: var(--bg-raised); color: var(--text); }
.db-nav-item.active { background: var(--bg-raised); color: var(--text); }
.db-nav-item svg { flex-shrink: 0; }

/* Collapsible group */
.db-nav-group { border: none; }
.db-nav-group summary { list-style: none; }
.db-nav-group summary::-webkit-details-marker { display: none; }

.db-nav-group-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.db-nav-group-header:hover { background: var(--bg-raised); color: var(--text); }
.db-nav-chevron { margin-left: auto; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
details[open] .db-nav-chevron { transform: rotate(180deg); }

.db-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 24px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.db-nav-sub-item {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.db-nav-sub-item:hover { background: var(--bg-raised); color: var(--text); }
.db-nav-sub-item.active { color: var(--accent); font-weight: 500; }

/* Sidebar footer */
.db-sidebar-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.db-sidebar-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
}
.db-sidebar-back:hover { background: var(--bg-raised); color: var(--text); }

/* Main content */
.db-main {
  flex: 1;
  min-width: 0;
  padding: 36px 36px 60px;
}
.db-page-header { margin-bottom: 28px; }
.db-page-header-server { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.db-page-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.db-page-sub { font-size: 0.875rem; color: var(--text-muted); }

/* Stat cards */
.db-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.db-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.db-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.db-stat-icon-blue   { background: rgba(88,101,242,0.15); color: #5865f2; }
.db-stat-icon-green  { background: rgba(63,185,80,0.15);  color: var(--accent); }
.db-stat-icon-purple { background: rgba(155,89,182,0.15); color: #9b59b6; }
.db-stat-icon-orange { background: rgba(230,126,34,0.15); color: #e67e22; }
.db-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.db-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }

/* Extra stat icon colours */
.db-stat-icon-teal   { background: rgba(0,184,163,0.15);  color: #00b8a3; }
.db-stat-icon-indigo { background: rgba(99,102,241,0.15); color: #6366f1; }
.db-stat-icon-red    { background: rgba(248,81,73,0.15);  color: #f85149; }

/* Charts */
.db-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.db-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.db-chart-card-donut { display: flex; flex-direction: column; }
.db-chart-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.db-donut-wrap { flex: 1; display: flex; align-items: center; justify-content: center; max-height: 200px; }

/* Panels (recent activity / top lists) */
.db-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.db-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.db-panel-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.db-panel-empty { font-size: 0.85rem; color: var(--text-muted); padding: 12px 0; }

/* Feed items */
.db-feed { display: flex; flex-direction: column; gap: 10px; }
.db-feed-item { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.db-feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.db-feed-item-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-feed-label { font-size: 0.85rem; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.db-feed-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Status badges */
.db-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; text-transform: capitalize; flex-shrink: 0; }
.db-badge-pending   { background: rgba(240,180,41,0.15);  color: #f0b429; }
.db-badge-delivered { background: rgba(63,185,80,0.15);   color: #3fb950; }
.db-badge-assigned  { background: rgba(88,101,242,0.15);  color: #5865f2; }
.db-badge-cancelled { background: rgba(248,81,73,0.15);   color: #f85149; }

/* Credit amount */
.db-credit-amount { font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.db-credit-amount.pos { color: #3fb950; }
.db-credit-amount.neg { color: #f85149; }

/* Online dot */
.db-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; flex-shrink: 0; }
.db-session-dur { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

/* Top lists */
.db-top-list { display: flex; flex-direction: column; gap: 8px; }
.db-top-item { display: flex; align-items: center; gap: 10px; }
.db-top-rank { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); width: 20px; flex-shrink: 0; }
.db-top-name { font-size: 0.85rem; color: var(--text); font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-top-name.db-discord-id { font-family: monospace; font-size: 0.78rem; }
.db-top-val { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }

/* Coming soon stub */
.db-coming-soon {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.db-coming-soon-icon { font-size: 2.8rem; margin-bottom: 14px; }
.db-coming-soon h2 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.db-coming-soon p { font-size: 0.875rem; }

@media (max-width: 1100px) {
  .db-bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .db-sidebar { display: none; }
  .db-main { padding: 24px 16px 48px; }
  .db-charts-row { grid-template-columns: 1fr; }
  .db-bottom-row { grid-template-columns: 1fr; }
}

/* ── Shared buttons ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  padding: 8px 16px; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.87; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-raised); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 16px; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background 0.12s;
}
.btn-secondary:hover { background: var(--bg-surface); }
.btn-danger {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(248,81,73,0.15); color: #f85149; border: 1px solid rgba(248,81,73,0.3);
  border-radius: var(--radius); padding: 8px 16px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: background 0.12s;
}
.btn-danger:hover { background: rgba(248,81,73,0.25); }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200;
  display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto;
}
.modal {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; width: 100%; max-width: 420px; margin: auto 0;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.modal-body { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Pack list page ──────────────────────────────────────────────────────── */
.packs-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.packs-count { font-size: 0.85rem; color: var(--text-muted); }
.packs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pack-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; display: flex; align-items: flex-start; gap: 14px; transition: border-color 0.15s;
}
.pack-card:hover { border-color: var(--accent); }
.pack-card-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px;
  background: var(--bg-raised); display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--text-muted);
}
.pack-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.pack-card-body { flex: 1; min-width: 0; }
.pack-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.pack-card-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-card-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pack-meta-price { color: var(--accent); font-weight: 600; }
.pack-meta-dot { color: var(--border); }
.pack-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pack-action-btn {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.pack-action-btn:hover { background: var(--bg-surface); color: var(--text); }
.pack-delete-btn:hover { background: rgba(248,81,73,0.12); color: #f85149; border-color: rgba(248,81,73,0.3); }
.packs-empty {
  text-align: center; padding: 64px 24px; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.packs-empty h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.packs-empty p { font-size: 0.875rem; }

/* Pack toggle (list page) */
.pack-toggle { display: flex; align-items: center; cursor: pointer; }
.pack-toggle-input { display: none; }
.pack-toggle-track {
  width: 36px; height: 20px; border-radius: 99px; background: var(--bg-raised);
  border: 1px solid var(--border); position: relative; transition: background 0.15s;
}
.pack-toggle-track::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted);
  transition: left 0.15s, background 0.15s;
}
.pack-toggle-input:checked + .pack-toggle-track { background: rgba(63,185,80,0.2); border-color: #3fb950; }
.pack-toggle-input:checked + .pack-toggle-track::after { left: 19px; background: #3fb950; }

/* ── Pack editor ─────────────────────────────────────────────────────────── */
.pe-main { max-width: 860px; }
.pe-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.pe-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.pe-save-msg { padding: 10px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 16px; }
.pe-save-ok { background: rgba(63,185,80,0.12); color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }
.pe-save-err { background: rgba(248,81,73,0.12); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.pe-layout { display: flex; flex-direction: column; gap: 20px; }
.pe-section {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
}
.pe-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pe-section-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.pe-section-header .pe-section-title { margin-bottom: 0; }
.pe-section-hint { font-size: 0.75rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.pe-fields { display: flex; flex-direction: column; gap: 14px; }
.pe-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pe-field { display: flex; flex-direction: column; gap: 6px; }
.pe-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.pe-required { color: #f85149; }
.pe-input {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 0.875rem; color: var(--text); font-family: inherit;
  transition: border-color 0.12s; outline: none; width: 100%; box-sizing: border-box;
}
.pe-input:focus { border-color: var(--accent); }
.pe-textarea { resize: vertical; min-height: 72px; }
.pe-select { cursor: pointer; }
.pe-enabled-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 0; }
.pe-toggle-track {
  width: 40px; height: 22px; border-radius: 99px; background: var(--bg-raised);
  border: 1px solid var(--border); position: relative; flex-shrink: 0; transition: background 0.15s;
}
.pe-toggle-track::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--text-muted);
  transition: left 0.15s, background 0.15s;
}
.pe-enabled-toggle input:checked + .pe-toggle-track { background: rgba(63,185,80,0.2); border-color: #3fb950; }
.pe-enabled-toggle input:checked + .pe-toggle-track::after { left: 21px; background: #3fb950; }
.pe-enabled-toggle input { display: none; }
.pe-toggle-label { font-size: 0.875rem; color: var(--text); }
.pe-checkboxes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.pe-check { display: flex; align-items: center; gap: 7px; font-size: 0.875rem; color: var(--text); cursor: pointer; }
.pe-check input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* Item rows in editor */
.pe-items-list { display: flex; flex-direction: column; }
.pe-items-empty { font-size: 0.85rem; color: var(--text-muted); padding: 10px 0; }
.pe-item-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pe-item-row:last-child { border-bottom: none; }
.pe-item-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px;
  background: var(--bg-raised); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pe-item-icon-sm { width: 26px; height: 26px; flex-shrink: 0; }
.pe-item-icon-img { width: 100%; height: 100%; object-fit: contain; }
.pe-item-icon-fb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); }
.pe-item-info { flex: 1; min-width: 0; }
.pe-item-name { font-size: 0.875rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-item-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.pe-item-btns { display: flex; gap: 6px; flex-shrink: 0; }
.pe-quality-badge { font-size: 0.7rem; padding: 1px 7px; border-radius: 99px; font-weight: 600; }
.pe-q-ramshackle  { background: rgba(127,127,127,0.2); color: #aaa; }
.pe-q-apprentice  { background: rgba(63,185,80,0.15); color: #3fb950; }
.pe-q-journeyman  { background: rgba(88,101,242,0.15); color: #5865f2; }
.pe-q-mastercraft { background: rgba(155,89,182,0.15); color: #9b59b6; }
.pe-q-ascendant   { background: rgba(240,180,41,0.15); color: #f0b429; }

/* Choice groups */
.pe-choices-list { display: flex; flex-direction: column; gap: 14px; }
.pe-choice-group { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.pe-choice-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pe-choice-name { flex: 1; }
.pe-choice-items { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-choice-item { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 7px; padding: 6px 10px; }

/* Stats grid */
.pe-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pe-stat-field { display: flex; flex-direction: column; gap: 4px; }
.pe-stat-field label { font-size: 0.75rem; color: var(--text-muted); }

/* ── Picker modal ────────────────────────────────────────────────────────── */
.picker-modal { max-width: 760px; width: 100%; padding: 0; overflow: hidden; max-height: 80vh; display: flex; flex-direction: column; }
.picker-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.picker-tabs { display: flex; gap: 4px; }
.picker-tab { background: transparent; border: none; color: var(--text-muted); padding: 6px 14px; border-radius: 7px; cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: background 0.12s, color 0.12s; }
.picker-tab:hover { background: var(--bg-raised); color: var(--text); }
.picker-tab.active { background: var(--bg-raised); color: var(--text); }
.picker-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; line-height: 1; }
.picker-close:hover { background: var(--bg-raised); color: var(--text); }
.picker-search-row { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.picker-search { width: 100%; }
.picker-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-cat-pill { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 99px; padding: 3px 12px; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: background 0.12s, color 0.12s; }
.picker-cat-pill:hover { color: var(--text); }
.picker-cat-pill.active { background: rgba(63,185,80,0.15); border-color: #3fb950; color: #3fb950; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 16px 20px; overflow-y: auto; flex: 1; }
.picker-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: border-color 0.12s, background 0.12s; text-align: center; }
.picker-card:hover { border-color: var(--accent); background: var(--bg-surface); }
.picker-card-img { width: 48px; height: 48px; object-fit: contain; }
.picker-card-fb { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-muted); }
.picker-card-name { font-size: 0.72rem; color: var(--text); line-height: 1.3; word-break: break-word; }
.picker-more { grid-column: 1/-1; font-size: 0.8rem; color: var(--text-muted); text-align: center; padding: 10px 0; }

/* ── Config modal ────────────────────────────────────────────────────────── */
.config-modal { max-width: 480px; max-height: calc(100vh - 48px); overflow-y: auto; }
.config-modal-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.config-modal-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.config-modal-icon img { width: 100%; height: 100%; object-fit: contain; }
.config-modal-class { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; margin-top: 4px; }

.pe-hint{font-weight:400;color:var(--text-muted);font-size:0.78rem;}
.picker-footer{padding:10px 20px;border-top:1px solid var(--border);font-size:0.8rem;color:var(--text-muted);flex-shrink:0;}
.modal-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;flex-shrink:0;}
.modal-icon-danger{background:rgba(248,81,73,0.12);color:#f85149;}
.shop-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap;}
.shop-new-btn{white-space:nowrap;}
.shop-stats-bar{display:flex;align-items:center;background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:12px 20px;margin-bottom:18px;width:fit-content;}
.shop-stat{display:flex;align-items:baseline;gap:7px;}
.shop-stat-val{font-size:1.15rem;font-weight:700;color:var(--text);}
.shop-stat-val.shop-stat-live{color:var(--accent);}
.shop-stat-label{font-size:0.78rem;color:var(--text-muted);font-weight:500;}
.shop-stat-div{width:1px;height:20px;background:var(--border);margin:0 18px;flex-shrink:0;}
.shop-table{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;}
.shop-table-head{display:grid;grid-template-columns:1fr 90px 100px 130px 110px 90px;padding:10px 16px;border-bottom:1px solid var(--border);font-size:0.72rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--text-muted);}
.shop-row{display:grid;grid-template-columns:1fr 90px 100px 130px 110px 90px;padding:12px 16px;border-bottom:1px solid var(--border);align-items:center;transition:background 0.1s;}
.shop-row:last-child{border-bottom:none;}
.shop-row:hover{background:var(--bg-raised);}
.shop-col-product{display:flex;align-items:center;gap:12px;min-width:0;}
.shop-col-type,.shop-col-price,.shop-col-items,.shop-col-status,.shop-col-actions{display:flex;align-items:center;}
.shop-col-actions{gap:6px;justify-content:flex-end;}
.shop-listing-thumb{width:40px;height:40px;flex-shrink:0;border-radius:8px;background:var(--bg-raised);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.shop-listing-thumb img{width:100%;height:100%;object-fit:contain;}
.shop-listing-thumb-fb{color:var(--text-muted);display:flex;align-items:center;justify-content:center;}
.shop-listing-info{min-width:0;flex:1;}
.shop-listing-name{font-size:0.88rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.shop-listing-desc{font-size:0.75rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;}
.shop-type-badge{font-size:0.7rem;font-weight:600;padding:2px 9px;border-radius:99px;text-transform:capitalize;}
.shop-type-pack{background:rgba(88,101,242,0.15);color:#7b8aff;}
.shop-type-item{background:rgba(63,185,80,0.15);color:var(--accent);}
.shop-price{font-size:0.88rem;font-weight:700;color:var(--text);}
.shop-price-unit{font-size:0.75rem;color:var(--text-muted);margin-left:3px;}
.shop-contents{font-size:0.8rem;color:var(--text-muted);}
.shop-toggle-wrap{display:flex;align-items:center;gap:8px;cursor:pointer;user-select:none;}
.shop-toggle-input{display:none;}
.shop-toggle-track{width:34px;height:18px;border-radius:99px;background:var(--bg-raised);border:1px solid var(--border);position:relative;flex-shrink:0;transition:background 0.15s,border-color 0.15s;}
.shop-toggle-track::after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--text-muted);transition:left 0.15s,background 0.15s;}
.shop-toggle-input:checked+.shop-toggle-track{background:rgba(63,185,80,0.18);border-color:var(--accent);}
.shop-toggle-input:checked+.shop-toggle-track::after{left:18px;background:var(--accent);}
.shop-toggle-label{font-size:0.78rem;color:var(--text-muted);font-weight:500;}
.shop-row-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:6px;background:var(--bg-raised);border:1px solid var(--border);color:var(--text-muted);font-size:0.78rem;font-weight:500;cursor:pointer;white-space:nowrap;text-decoration:none;transition:background 0.12s,color 0.12s;}
.shop-row-btn:hover{background:var(--bg-surface);color:var(--text);}
.shop-row-btn-del:hover{background:rgba(248,81,73,0.1);color:#f85149;border-color:rgba(248,81,73,0.3);}
.shop-empty{text-align:center;padding:72px 24px;display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--text-muted);}
.shop-empty-icon{width:64px;height:64px;border-radius:16px;background:var(--bg-raised);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-muted);margin-bottom:4px;}
.shop-empty h3{font-size:1.05rem;font-weight:600;color:var(--text);}
.shop-empty p{font-size:0.875rem;max-width:340px;line-height:1.6;}
@media(max-width:860px){.shop-table-head{grid-template-columns:1fr 90px 90px 90px;}.shop-table-head .shop-col-items,.shop-table-head .shop-col-type{display:none;}.shop-row{grid-template-columns:1fr 90px 90px 90px;}.shop-row .shop-col-items,.shop-row .shop-col-type{display:none;}}
@media(max-width:600px){.shop-table-head{display:none;}.shop-row{grid-template-columns:1fr auto auto;}.shop-row .shop-col-price,.shop-row .shop-col-items,.shop-row .shop-col-type{display:none;}}
.editor-main{padding:0!important;display:flex;flex-direction:column;overflow:hidden;height:calc(100vh - var(--nav-h));}
.editor-topbar{display:flex;align-items:center;gap:12px;padding:12px 24px;background:var(--bg-surface);border-bottom:1px solid var(--border);flex-shrink:0;}
.editor-back{display:inline-flex;align-items:center;gap:6px;font-size:0.8rem;color:var(--text-muted);padding:5px 8px;border-radius:6px;transition:background 0.12s,color 0.12s;flex-shrink:0;white-space:nowrap;}
.editor-back:hover{background:var(--bg-raised);color:var(--text);}
.editor-topbar-title{flex:1;font-size:0.95rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.editor-topbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.editor-save-status{font-size:0.8rem;font-weight:500;padding:4px 12px;border-radius:6px;}
.save-ok{background:rgba(63,185,80,0.12);color:#3fb950;border:1px solid rgba(63,185,80,0.25);}
.save-err{background:rgba(248,81,73,0.12);color:#f85149;border:1px solid rgba(248,81,73,0.25);}
.editor-status-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;user-select:none;}
.editor-status-toggle input{display:none;}
.editor-status-track{width:36px;height:20px;border-radius:99px;background:var(--bg-raised);border:1px solid var(--border);position:relative;flex-shrink:0;transition:background 0.15s,border-color 0.15s;}
.editor-status-track::after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--text-muted);transition:left 0.15s,background 0.15s;}
.editor-status-toggle input:checked+.editor-status-track{background:rgba(63,185,80,0.18);border-color:var(--accent);}
.editor-status-toggle input:checked+.editor-status-track::after{left:19px;background:var(--accent);}
.editor-status-label{font-size:0.8rem;color:var(--text-muted);font-weight:500;}
.editor-body{flex:1;overflow-y:auto;display:grid;grid-template-columns:1fr 280px;gap:20px;padding:24px;align-items:start;}
.editor-left{display:flex;flex-direction:column;gap:16px;min-width:0;}
.editor-right{display:flex;flex-direction:column;gap:16px;}
.editor-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;padding:20px;}
.editor-card-sm{padding:16px;}
.editor-card-meta{background:var(--bg-raised);}
.editor-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.editor-card-title{font-size:0.9rem;font-weight:600;color:var(--text);margin-bottom:14px;}
.editor-card-header .editor-card-title{margin-bottom:0;}
.editor-card-sub{font-size:0.78rem;color:var(--text-muted);margin-top:2px;}
.editor-empty{font-size:0.85rem;color:var(--text-muted);padding:10px 0;}
.editor-status-row{display:flex;align-items:center;gap:10px;margin-top:4px;}
.editor-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;background:var(--text-muted);transition:background 0.2s;}
.editor-status-dot.live{background:var(--accent);box-shadow:0 0 6px rgba(63,185,80,0.4);}
.editor-status-dot.draft{background:var(--text-muted);}
.editor-status-name{font-size:0.875rem;font-weight:600;color:var(--text);}
.editor-status-hint{font-size:0.75rem;color:var(--text-muted);margin-top:1px;}
.editor-price-preview{margin-top:14px;padding:10px 12px;border-radius:8px;background:var(--bg-raised);border:1px solid var(--border);}
.editor-preview-label{font-size:0.7rem;text-transform:uppercase;letter-spacing:0.07em;color:var(--text-muted);font-weight:600;margin-bottom:6px;}
.editor-preview-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.editor-preview-original{font-size:0.85rem;color:var(--text-muted);text-decoration:line-through;}
.editor-preview-current{font-size:1.1rem;font-weight:700;color:var(--text);}
.editor-preview-badge{font-size:0.7rem;font-weight:600;padding:2px 8px;border-radius:99px;background:rgba(240,180,41,0.15);color:#f0b429;}
.editor-stock-toggle{margin-bottom:4px;}
.editor-stock-note{font-size:0.8rem;color:var(--text-muted);margin-top:8px;}
.editor-meta-row{display:flex;align-items:center;justify-content:space-between;font-size:0.78rem;padding:5px 0;}
.editor-meta-row:not(:last-child){border-bottom:1px solid var(--border);margin-bottom:5px;}
.editor-meta-id{font-family:monospace;font-size:0.75rem;color:var(--text-muted);}
.editor-item-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);}
.editor-item-row:last-child{border-bottom:none;}
.editor-item-icon{width:36px;height:36px;flex-shrink:0;border-radius:7px;background:var(--bg-raised);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.editor-item-body{flex:1;min-width:0;}
.editor-item-name{font-size:0.85rem;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.editor-item-meta{font-size:0.74rem;color:var(--text-muted);margin-top:2px;}
.editor-item-actions{display:flex;gap:5px;flex-shrink:0;}
.editor-item-btn{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:5px;font-size:0.75rem;font-weight:500;border:1px solid var(--border);background:var(--bg-raised);color:var(--text-muted);cursor:pointer;transition:background 0.12s,color 0.12s;}
.editor-item-btn:hover{background:var(--bg-surface);color:var(--text);}
.ei-del:hover{background:rgba(248,81,73,0.1);color:#f85149;border-color:rgba(248,81,73,0.3);}
.editor-choice-group{background:var(--bg-raised);border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:10px;}
.editor-choice-group:last-child{margin-bottom:0;}
.editor-choice-header{display:flex;align-items:center;gap:8px;margin-bottom:10px;}
.editor-choice-name{flex:1;font-size:0.85rem;}
.editor-choice-opts{display:flex;flex-direction:column;gap:4px;}
.editor-choice-opt{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;background:var(--bg-surface);border:1px solid var(--border);}
.config-item-header{display:flex;align-items:center;gap:14px;margin-bottom:20px;}
.config-item-icon{width:52px;height:52px;flex-shrink:0;border-radius:10px;background:var(--bg-raised);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.config-item-meta{flex:1;min-width:0;}
.config-item-name{font-size:0.95rem;font-weight:600;color:var(--text);}
.config-item-class{font-size:0.72rem;color:var(--text-muted);font-family:monospace;margin-top:3px;word-break:break-all;}
.config-checks{display:flex;flex-wrap:wrap;gap:16px;margin-top:6px;}
.config-stats-title{font-size:0.78rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:10px;}
@media(max-width:900px){.editor-body{grid-template-columns:1fr;}.editor-right{order:-1;}.editor-main{height:auto;overflow:visible;}}
.colour-pick-row{display:flex;align-items:center;gap:6px;}
.colour-swatch{width:22px;height:22px;flex-shrink:0;border-radius:5px;background:transparent;border:1px dashed var(--border);transition:background 0.15s;}
.colour-select{flex:1;min-width:0;}
.colour-stat .pe-input{font-size:0.78rem;}
.pe-stat-field.colour-stat{min-width:0;}
/* ── Public Store ──────────────────────────────────────────────────────────── */
.store-upload-area {
  border: 2px dashed var(--border); border-radius: 10px; padding: 20px;
  text-align: center; cursor: pointer; color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s;
}
.store-upload-area:hover { border-color: var(--accent-blue); background: rgba(88,101,242,0.04); }
.store-upload-area.hidden { display: none; }
.store-pack-table { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.store-pack-row { display: grid; grid-template-columns: 1fr 80px 80px 180px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.store-pack-row:last-child { border-bottom: none; }
.store-pack-header { background: var(--bg-raised); font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.store-toggle-label { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.store-toggle-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.store-toggle-track {
  width: 36px; height: 20px; background: var(--bg-hover); border-radius: 10px;
  transition: background 0.2s; border: 1px solid var(--border);
}
.store-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform 0.2s, background 0.2s;
}
.store-toggle-label input:checked + .store-toggle-track { background: rgba(63,185,80,0.25); border-color: #3fb950; }
.store-toggle-label input:checked + .store-toggle-track::after { transform: translateX(16px); background: #3fb950; }


/* ── Public Store Pages ─────────────────────────────────────────────────────── */
.store-subnav { background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.store-subnav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; height: 48px; }
.store-subnav-name { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.store-subnav-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.store-subnav-links { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
.store-subnav-link { padding: 5px 12px; border-radius: var(--radius); font-size: 0.85rem; color: var(--text-muted); font-weight: 500; transition: color 0.15s, background 0.15s; }
.store-subnav-link:hover, .store-subnav-link.active { color: var(--text); background: var(--bg-raised); }
.store-subnav-right { margin-left: auto; }
.store-cart-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-muted); font-size: 0.83rem; font-weight: 600; transition: border-color 0.15s, color 0.15s; }
.store-cart-btn:hover, .store-cart-btn.active { border-color: var(--accent); color: var(--text); }
.store-cart-count { background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 0.72rem; font-weight: 700; min-width: 20px; text-align: center; }
.store-hero { position: relative; width: 100%; height: 280px; overflow: hidden; background: var(--bg-surface); }
.store-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.store-hero-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg) 100%); }
.store-hero-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px 24px; }
.store-hero-title { font-size: 2rem; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); line-height: 1.2; }
.store-hero-sub { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 6px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.store-cats { max-width: 1100px; margin: 20px auto 0; padding: 0 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.store-cat-btn { padding: 5px 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted); font-size: 0.81rem; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.store-cat-btn:hover { border-color: var(--accent); color: var(--text); }
.store-cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.store-grid { max-width: 1100px; margin: 20px auto 60px; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pub-pack-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.pub-pack-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.pub-pack-img { width: 100%; height: 170px; background: radial-gradient(ellipse at 50% 40%, var(--bg-raised) 0%, var(--bg-surface) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; padding: 16px; }
.pub-pack-img img { max-width: 100%; max-height: 138px; width: auto; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.pub-pack-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.pub-pack-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 0.7rem; font-weight: 700; margin-bottom: 8px; }
.pub-badge-popular   { background: rgba(240,180,41,0.12); color: #f0b429; border: 1px solid rgba(240,180,41,0.3); }
.pub-badge-recommended { background: rgba(63,185,80,0.1); color: #3fb950; border: 1px solid rgba(63,185,80,0.25); }
.pub-badge-new       { background: rgba(88,101,242,0.1); color: #818cf8; border: 1px solid rgba(88,101,242,0.25); }
.pub-badge-sale      { background: rgba(248,81,73,0.1); color: #f85149; border: 1px solid rgba(248,81,73,0.25); }
.pub-badge-limited   { background: rgba(255,107,53,0.1); color: #ff6b35; border: 1px solid rgba(255,107,53,0.25); }
.pub-badge-exclusive { background: rgba(153,102,255,0.1); color: #a78bfa; border: 1px solid rgba(153,102,255,0.25); }
.pub-pack-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pub-pack-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.pub-pack-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.pub-pack-orig { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; margin-right: 4px; }
.pub-pack-discount { background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; }
.pub-pack-desc { font-size: 0.81rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; flex: 1; }
.pub-pack-items { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pub-item-tag { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.pub-item-tag img { width: 14px; height: 14px; object-fit: contain; }
.pub-item-more { cursor: pointer; background: none; color: var(--accent); border-color: rgba(88,101,242,0.3); transition: background 0.1s; }
.pub-item-more:hover { background: rgba(88,101,242,0.08); }
.pub-link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
.pub-pack-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); gap: 8px; }
.badge-available { background: rgba(63,185,80,0.1); color: #3fb950; border: 1px solid rgba(63,185,80,0.25); border-radius: 5px; padding: 3px 9px; font-size: 0.73rem; font-weight: 600; }
.badge-soon      { background: rgba(255,193,7,0.1); color: #f0b429; border: 1px solid rgba(255,193,7,0.25); border-radius: 5px; padding: 3px 9px; font-size: 0.73rem; font-weight: 600; }
.btn-add-cart { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 5px 13px; font-size: 0.79rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.15s, background 0.15s; white-space: nowrap; }
.btn-add-cart:hover { opacity: 0.85; }
.btn-add-cart.added { background: var(--accent-dark); }
.store-content { max-width: 820px; margin: 40px auto; padding: 0 24px; }
.store-page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.cart-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-surface); }
.cart-row { display: grid; grid-template-columns: 52px 1fr 130px 110px 36px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; overflow: hidden; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; }
.cart-item-unit { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.qty-wrap { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 27px; height: 27px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: border-color 0.12s; }
.qty-btn:hover { border-color: var(--accent); }
.qty-num { width: 32px; text-align: center; font-weight: 700; font-size: 0.88rem; }
.cart-sub { font-weight: 700; color: var(--accent); font-size: 0.88rem; text-align: right; }
.cart-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 4px; border-radius: 4px; font-family: inherit; }
.cart-remove:hover { color: #f85149; }
.cart-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cart-total-val { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.cart-total-lbl { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.cart-empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); }
.cart-empty-state a { color: var(--accent); }
.checkout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.co-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.co-card-title { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.co-field { margin-bottom: 16px; }
.co-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.co-field input { width: 100%; padding: 9px 12px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.88rem; font-family: inherit; transition: border-color 0.15s; }
.co-field input:focus { outline: none; border-color: var(--accent); }
.co-hint { font-size: 0.74rem; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }
.co-order-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.co-order-row:last-of-type { border-bottom: none; }
.co-order-thumb { width: 34px; height: 34px; border-radius: 6px; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; font-size: 1rem; overflow: hidden; flex-shrink: 0; }
.co-order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-order-name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.co-order-qty { font-size: 0.74rem; color: var(--text-muted); }
.co-order-price { font-size: 0.85rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.co-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.co-total-row { display: flex; justify-content: space-between; align-items: center; }
.co-total-lbl { font-size: 0.82rem; color: var(--text-muted); }
.co-total-val { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.co-balance-row { display: flex; justify-content: space-between; font-size: 0.79rem; color: var(--text-muted); margin-top: 6px; }
.co-balance-ok { color: #3fb950; font-weight: 600; }
.co-balance-low { color: #f85149; font-weight: 600; }
.co-err { background: rgba(248,81,73,0.08); border: 1px solid rgba(248,81,73,0.25); border-radius: 8px; padding: 10px 14px; color: #f85149; font-size: 0.83rem; margin-bottom: 16px; display: none; }
.co-success-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
.co-success-box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 36px 32px; text-align: center; max-width: 380px; width: calc(100% - 40px); }
.co-success-icon { font-size: 2.8rem; margin-bottom: 14px; }
.co-success-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.co-success-sub { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 22px; }
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.order-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.order-card-id { font-weight: 700; font-size: 0.88rem; }
.order-card-date { font-size: 0.77rem; color: var(--text-muted); }
.order-card-cost { font-weight: 700; color: var(--accent); font-size: 0.88rem; margin-left: auto; }
.order-status { padding: 3px 11px; border-radius: 99px; font-size: 0.73rem; font-weight: 700; }
.os-pending   { background: rgba(255,193,7,0.1); color: #f0b429; border: 1px solid rgba(255,193,7,0.25); }
.os-assigned  { background: rgba(88,101,242,0.1); color: #818cf8; border: 1px solid rgba(88,101,242,0.25); }
.os-delivered { background: rgba(63,185,80,0.1); color: #3fb950; border: 1px solid rgba(63,185,80,0.25); }
.os-cancelled { background: rgba(248,81,73,0.08); color: #f85149; border: 1px solid rgba(248,81,73,0.2); }
.order-card-body { padding: 14px 18px; }
.order-packs-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.order-pack-chip { display: flex; align-items: center; gap: 5px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; font-size: 0.8rem; }
.order-pack-chip-qty { color: var(--text-muted); font-size: 0.73rem; }
.order-meta-row { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.order-meta-field { display: flex; flex-direction: column; gap: 2px; }
.order-meta-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }
.order-meta-val { color: var(--text); font-weight: 600; font-size: 0.82rem; }
.order-room-box { background: rgba(88,101,242,0.06); border: 1px solid rgba(88,101,242,0.18); border-radius: 9px; padding: 10px 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.order-room-lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.order-room-val { font-weight: 800; color: #818cf8; font-size: 1.05rem; }
.store-empty-orders { text-align: center; padding: 60px 24px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); }
.store-empty-orders a { color: var(--accent); }

/* ── Admin Orders & Credits Pages ────────────────────────────────────────── */
.adm-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-filter-search { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; flex: 1; min-width: 200px; max-width: 340px; }
.adm-filter-input { background: none; border: none; outline: none; color: var(--text); font-size: 0.85rem; padding: 8px 0; width: 100%; }
.adm-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-tab { padding: 6px 14px; border-radius: var(--radius); font-size: 0.82rem; font-weight: 500; color: var(--text-muted); background: var(--bg-surface); border: 1px solid var(--border); cursor: pointer; text-decoration: none; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.adm-tab:hover, .adm-tab.active { color: var(--text); background: var(--bg-raised); border-color: var(--accent); }
.adm-tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.adm-tab-bar .adm-tab { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; margin-bottom: -1px; }
.adm-tab-bar .adm-tab.active { border-color: var(--border); border-bottom-color: var(--bg); background: var(--bg); color: var(--text); }
.adm-result-count { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }

/* Orders table */
.adm-orders-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.adm-orders-head { display: grid; grid-template-columns: 60px 140px 130px 1fr 100px 110px 130px 120px; gap: 10px; padding: 10px 16px; background: var(--bg-raised); font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-order-row { display: grid; grid-template-columns: 60px 140px 130px 1fr 100px 110px 130px 120px; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.83rem; transition: background 0.12s; }
.adm-order-row:hover { background: var(--bg-raised); }
.adm-order-id { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.adm-order-discord, .adm-code { font-size: 0.75rem; }
.adm-code { font-family: monospace; color: var(--text-muted); background: var(--bg-raised); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
.adm-order-packs { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-pack-chip { font-size: 0.72rem; padding: 2px 7px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 20px; color: var(--text-muted); white-space: nowrap; }
.adm-chip-qty { opacity: 0.6; margin-left: 3px; }
.adm-chip-more { background: none; border-color: transparent; }
.adm-order-total { font-weight: 600; color: var(--text); font-size: 0.82rem; }
.adm-order-date { font-size: 0.78rem; color: var(--text); }
.adm-order-time { font-size: 0.72rem; color: var(--text-muted); display: block; }
.adm-room-info { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }
.adm-status-badge { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; display: inline-block; }
.adm-status-pending   { background: rgba(210,153,34,0.12); color: #d2991a; border: 1px solid rgba(210,153,34,0.3); }
.adm-status-assigned  { background: rgba(88,101,242,0.1);  color: var(--accent); border: 1px solid rgba(88,101,242,0.3); }
.adm-status-delivered { background: rgba(63,185,80,0.1);   color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }
.adm-status-cancelled { background: rgba(248,81,73,0.08);  color: #f85149; border: 1px solid rgba(248,81,73,0.25); }
.adm-status-select { font-size: 0.78rem; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text); cursor: pointer; width: 100%; }

/* Credits table */
.adm-credits-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.adm-credits-head { display: grid; grid-template-columns: 180px 120px 120px 80px 130px 1fr; gap: 10px; padding: 10px 16px; background: var(--bg-raised); font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-credit-row { display: grid; grid-template-columns: 180px 120px 120px 80px 130px 1fr; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.83rem; transition: background 0.12s; }
.adm-credit-row:hover { background: var(--bg-raised); }
.adm-credit-balance { font-weight: 700; color: var(--text); }
.adm-credit-spent { color: var(--text-muted); font-size: 0.8rem; }

/* Transactions table */
.adm-tx-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.adm-tx-head { display: grid; grid-template-columns: 60px 160px 110px 120px 1fr 160px; gap: 10px; padding: 10px 16px; background: var(--bg-raised); font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-tx-row { display: grid; grid-template-columns: 60px 160px 110px 120px 1fr 160px; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.82rem; transition: background 0.12s; }
.adm-tx-row:hover { background: var(--bg-raised); }
.adm-tx-pos { font-weight: 700; color: #3fb950; }
.adm-tx-neg { font-weight: 700; color: #f85149; }
.adm-tx-type { font-size: 0.72rem; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-muted); }
.adm-tx-type-purchase { border-color: rgba(248,81,73,0.3); color: #f85149; background: rgba(248,81,73,0.06); }
.adm-tx-type-admin_give { border-color: rgba(63,185,80,0.3); color: #3fb950; background: rgba(63,185,80,0.06); }
.adm-tx-type-admin_take { border-color: rgba(210,153,34,0.3); color: #d2991a; background: rgba(210,153,34,0.08); }
.adm-tx-reason { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pagination */
.adm-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 20px; flex-wrap: wrap; }
.adm-page-btn { font-size: 0.82rem; padding: 5px 11px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-surface); color: var(--text); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.adm-page-btn:hover:not(:disabled) { background: var(--bg-raised); }
.adm-page-btn:disabled { opacity: 0.4; cursor: default; }
.adm-page-btn.active { background: rgba(88,101,242,0.12); border-color: rgba(88,101,242,0.35); color: #818cf8; font-weight: 600; }
.adm-page-ellipsis { font-size: 0.82rem; color: var(--text-muted); padding: 0 4px; }
.adm-page-info { font-size: 0.78rem; color: var(--text-muted); margin-left: 8px; }

/* Adjust modal */
.adm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(3px); }
.adm-modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; width: 420px; max-width: calc(100vw - 32px); }
.adm-modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.adm-modal-body { margin-bottom: 16px; }
.adm-modal-err { font-size: 0.82rem; color: #f85149; background: rgba(248,81,73,0.08); border: 1px solid rgba(248,81,73,0.25); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.adm-modal-foot { display: flex; justify-content: flex-end; gap: 10px; }
/* ── Config pages (cfg) ───────────────────────────────────────────────────── */
.cfg-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cfg-table-head { display: grid; grid-template-columns: var(--cfg-cols, repeat(6, 1fr)); gap: 10px; padding: 10px 16px; background: var(--bg-raised); font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cfg-table-row { display: grid; grid-template-columns: var(--cfg-cols, repeat(6, 1fr)); gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: center; font-size: 0.85rem; transition: background 0.1s; }
.cfg-table-row:hover { background: var(--bg-raised); }
/* Toggle switch */
.cfg-toggle { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; }
.cfg-toggle input { opacity: 0; width: 0; height: 0; }
.cfg-toggle-slider { position: absolute; inset: 0; background: var(--bg-3); border-radius: 22px; transition: background 0.2s; }
.cfg-toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.cfg-toggle input:checked + .cfg-toggle-slider { background: #57f287; }
.cfg-toggle input:checked + .cfg-toggle-slider::before { transform: translateX(16px); }
/* Permission badges */
.perm-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-badge { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: rgba(88,101,242,0.15); color: #818cf8; border: 1px solid rgba(88,101,242,0.25); }
/* Modal box (shared, used by cfg pages) */
.modal-box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; width: 90%; box-shadow: 0 16px 48px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-header .modal-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 24px; flex: 1; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
/* Permission checkbox grid */
.perm-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.perm-check-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-3); transition: background 0.1s, border-color 0.1s; }
.perm-check-item:hover { background: var(--bg-raised); }
.perm-check-item input { accent-color: #5865f2; width: 15px; height: 15px; }
.det-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.det-pill-on { background: rgba(87,242,135,0.12); border: 1px solid rgba(87,242,135,0.3); color: #57f287; }
.det-pill-off { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-muted); }
.det-channel-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 16px; }
.det-info-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.det-actions { display: flex; gap: 8px; margin-top: 0; }
/* ── Store Settings Page (sps) ────────────────────────────────────────────── */
.sps-status-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 0; transition: border-color 0.2s, background 0.2s; }
.sps-status-card.is-open { border-color: rgba(63,185,80,0.4); background: rgba(63,185,80,0.04); }
.sps-status-left { flex: 1; min-width: 0; }
.sps-status-indicator { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sps-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sps-status-dot.open { background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,0.2); }
.sps-status-dot.closed { background: var(--text-muted); }
.sps-status-text { font-size: 1rem; font-weight: 700; color: var(--text); }
.sps-status-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.sps-status-right { flex-shrink: 0; }
.sps-big-toggle { position: relative; display: inline-block; cursor: pointer; }
.sps-big-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.sps-big-toggle-track { display: flex; align-items: center; width: 100px; height: 36px; border-radius: 18px; background: var(--bg-raised); border: 1.5px solid var(--border); transition: background 0.25s, border-color 0.25s; padding: 0 10px; position: relative; }
.sps-big-toggle input:checked + .sps-big-toggle-track { background: rgba(63,185,80,0.15); border-color: #3fb950; }
.sps-big-toggle-track::before { content: ''; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--text-muted); left: 5px; transition: transform 0.25s, background 0.25s; }
.sps-big-toggle input:checked + .sps-big-toggle-track::before { transform: translateX(62px); background: #3fb950; }
.sps-big-toggle-label-off, .sps-big-toggle-label-on { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: opacity 0.2s; }
.sps-big-toggle-label-off { color: var(--text-muted); margin-left: auto; }
.sps-big-toggle-label-on { color: #3fb950; display: none; }
.sps-big-toggle input:checked + .sps-big-toggle-track .sps-big-toggle-label-off { display: none; }
.sps-big-toggle input:checked + .sps-big-toggle-track .sps-big-toggle-label-on { display: block; }

.sps-url-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg-raised); border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; margin-bottom: 20px; }
.sps-url-label { font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; }
.sps-url-val { font-size: 0.8rem; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sps-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .sps-grid { grid-template-columns: 1fr; } }

.sps-section-title { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }

.sps-pack-list { display: flex; flex-direction: column; gap: 0; }
.sps-pack-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sps-pack-item:last-child { border-bottom: none; padding-bottom: 0; }
.sps-pack-item:first-child { padding-top: 0; }
.sps-pack-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-raised); border: 1px solid var(--border); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sps-pack-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sps-pack-info { flex: 1; min-width: 0; }
.sps-pack-name { font-size: 0.88rem; font-weight: 600; color: var(--text); text-decoration: none; display: block; margin-bottom: 2px; }
.sps-pack-name:hover { color: var(--accent); }
.sps-pack-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sps-pack-price { font-size: 0.76rem; color: var(--text-muted); }
.sps-pack-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sps-pack-status-dot.live { background: #3fb950; }
.sps-pack-status-dot.draft { background: var(--text-muted); }
.sps-pack-badge-row { display: flex; flex-wrap: wrap; gap: 4px; }
.sps-badge-chip { font-size: 0.7rem; font-weight: 500; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.sps-badge-chip:hover { border-color: var(--accent); color: var(--text); }
.sps-badge-chip.active { border-color: var(--accent); background: rgba(88,101,242,0.12); color: var(--accent); font-weight: 600; }
.sps-pack-toggles { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.sps-toggle-row { display: flex; align-items: center; gap: 6px; }
.sps-toggle-lbl { font-size: 0.72rem; color: var(--text-muted); }

/* Choice picker */
.co-choice-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.co-choice-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.co-choice-label { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-choice-meta { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px; margin-left: auto; }
.co-choice-options { display: flex; flex-wrap: wrap; gap: 8px; }
.co-choice-opt { display: flex; align-items: center; gap: 0; cursor: pointer; }
.co-choice-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.co-choice-opt-label { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--bg-raised); border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.83rem; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.co-choice-opt input:checked + .co-choice-opt-label { border-color: var(--accent); color: var(--text); background: rgba(88,101,242,0.08); }
.co-choice-opt-label:hover { border-color: var(--accent); color: var(--text); }
.co-choice-opt-img { width: 20px; height: 20px; object-fit: contain; }
.co-choice-opt-qty { opacity: 0.55; font-size: 0.77rem; }
.store-closed-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.store-closed-box { text-align: center; max-width: 400px; }
.store-closed-icon { font-size: 3rem; margin-bottom: 16px; }
.store-closed-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.store-closed-sub { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 720px) { .checkout-grid { grid-template-columns: 1fr; } .cart-row { grid-template-columns: 44px 1fr 100px 90px 30px; gap: 8px; } }
@media (max-width: 600px) { .store-hero { height: 200px; } .store-hero-title { font-size: 1.5rem; } .store-grid { grid-template-columns: 1fr; } .store-subnav-links { display: none; } }

/* ── Server Logs ─────────────────────────────────────────────────────────── */
.sl-step-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.sl-server-card { padding: 16px 20px; }
.sl-loading { color: var(--text-muted); font-size: 0.85rem; }
.sl-empty-state { color: var(--text-muted); font-size: 0.85rem; }
.sl-server-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 8px; cursor: pointer; transition: background 0.13s; }
.sl-server-row:hover { background: var(--bg-raised); }
.sl-server-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-raised); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
.sl-server-info { flex: 1; min-width: 0; }
.sl-server-name { font-size: 0.9rem; font-weight: 600; }
.sl-server-id { font-size: 0.73rem; color: var(--text-muted); }
.sl-server-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 20px; }
.sl-status-dot-online  { color: #3fb950; background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.25); }
.sl-status-dot-offline { color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--border); }
.sl-server-arrow { color: var(--text-muted); flex-shrink: 0; }

.sl-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sl-section-title { font-size: 1rem; font-weight: 700; }
.sl-section-sub { font-size: 0.77rem; color: var(--text-muted); }
.sl-back-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted); font-size: 0.8rem; cursor: pointer; transition: background 0.13s, color 0.13s; flex-shrink: 0; }
.sl-back-btn:hover { background: var(--bg-raised); color: var(--text); }

.sl-file-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.sl-file-row:last-child { border-bottom: none; }
.sl-file-icon { color: var(--text-muted); flex-shrink: 0; }
.sl-file-info { flex: 1; min-width: 0; }
.sl-file-name { font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sl-file-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.sl-file-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(88,101,242,0.1); color: #818cf8; border: 1px solid rgba(88,101,242,0.25); padding: 1px 7px; border-radius: 20px; }

.sl-filter-bar { padding: 12px 16px; margin-bottom: 12px; }
.sl-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sl-tab { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background 0.13s, color 0.13s, border-color 0.13s; }
.sl-tab:hover { background: var(--bg-raised); color: var(--text); }
.sl-tab.active { background: rgba(88,101,242,0.1); color: #818cf8; border-color: rgba(88,101,242,0.3); }
.sl-search { flex: 1; min-width: 200px; }

.sl-stats { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; }
.sl-stat { display: flex; flex-direction: column; align-items: center; padding: 4px 16px; border-right: 1px solid var(--border); }
.sl-stat:last-of-type { border-right: none; }
.sl-stat-val { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.sl-stat-lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sl-stat-chat .sl-stat-val  { color: #5865f2; }
.sl-stat-join .sl-stat-val  { color: #3fb950; }
.sl-stat-tribe .sl-stat-val { color: #c084fc; }
.sl-stat-kill .sl-stat-val  { color: #f85149; }
.sl-stat-admin .sl-stat-val { color: #f0b429; }
.sl-stat-time { margin-left: auto; font-size: 0.73rem; color: var(--text-muted); }

.sl-status { padding: 10px 16px; border-radius: 8px; font-size: 0.84rem; margin-bottom: 12px; }
.sl-status-info { background: rgba(88,101,242,0.08); color: #818cf8; border: 1px solid rgba(88,101,242,0.2); }
.sl-status-err  { background: rgba(248,81,73,0.08); color: #f85149; border: 1px solid rgba(248,81,73,0.2); }

.sl-log-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sl-log-head { display: grid; grid-template-columns: 78px 82px 1fr; padding: 8px 14px; background: var(--bg-raised); border-bottom: 1px solid var(--border); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.sl-log-row { display: grid; grid-template-columns: 78px 82px 1fr; padding: 6px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.81rem; line-height: 1.45; transition: background 0.1s; }
.sl-log-row:last-child { border-bottom: none; }
.sl-log-row:hover { background: var(--bg-raised); }
.sl-log-time { color: var(--text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; padding-top: 2px; display: flex; flex-direction: column; gap: 1px; }
.sl-log-date { font-size: 0.68rem; opacity: 0.65; }
.sl-log-msg { color: var(--text); word-break: break-word; }

.sl-cat-badge { display: inline-block; font-size: 0.67rem; font-weight: 600; padding: 1px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.sl-cat-badge-chat  { background: rgba(88,101,242,0.12); color: #818cf8; }
.sl-cat-badge-join  { background: rgba(63,185,80,0.12); color: #3fb950; }
.sl-cat-badge-tribe { background: rgba(155,89,182,0.12); color: #c084fc; }
.sl-cat-badge-kill  { background: rgba(248,81,73,0.12); color: #f85149; }
.sl-cat-badge-admin { background: rgba(240,180,41,0.12); color: #f0b429; }

/* ── Getting Started ──────────────────────────────────────────────────────── */
.gs-steps-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 20px 0 40px; }
.gs-step-pill { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted); font-size: 0.82rem; font-weight: 500; text-decoration: none; transition: background 0.13s, color 0.13s, border-color 0.13s; }
.gs-step-pill:hover { background: var(--bg-raised); color: var(--text); border-color: var(--text-muted); }
.gs-step { scroll-margin-top: 80px; }
.gs-step-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.gs-step-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.35); color: #818cf8; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gs-step-header h2 { margin: 0 0 4px; font-size: 1.3rem; }
.gs-step-sub { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.gs-step-body { padding-left: 68px; }
@media (max-width: 600px) { .gs-step-body { padding-left: 0; } }
.gs-list { padding-left: 20px; color: var(--text-muted); line-height: 1.8; font-size: 0.93rem; }
.gs-list li { margin-bottom: 6px; }
.gs-list strong { color: var(--text); }
.gs-list code { background: var(--bg-raised); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: 0.85rem; color: #818cf8; }
.gs-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: rgba(88,101,242,0.07); border: 1px solid rgba(88,101,242,0.2); border-radius: 10px; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.gs-tip p { margin: 0; }
.gs-tip-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.gs-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.gs-feature-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; }
.gs-feature-icon { font-size: 1.3rem; flex-shrink: 0; }
.gs-feature-item strong { display: block; font-size: 0.9rem; margin-bottom: 4px; color: var(--text); }
.gs-feature-item p { margin: 0; font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.gs-substeps { display: flex; flex-direction: column; gap: 20px; }
.gs-substep { padding: 18px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid rgba(88,101,242,0.5); border-radius: 0 10px 10px 0; }
.gs-substep-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #818cf8; margin-bottom: 8px; }
.gs-substep p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.gs-substep strong { color: var(--text); }
.gs-substep code { background: var(--bg-raised); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: 0.83rem; color: #818cf8; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-group { margin-bottom: 48px; }
.faq-group-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; background: var(--bg-surface); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: none; border: none; color: var(--text); font-size: 0.95rem; font-weight: 500; text-align: left; cursor: pointer; transition: background 0.1s; }
.faq-question:hover { background: var(--bg-raised); }
.faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 16px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; border-top: 1px solid var(--border); padding-top: 14px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin: 0 0 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer code { background: var(--bg-raised); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: 0.83rem; color: #818cf8; }
.faq-answer a { color: #818cf8; text-decoration: underline; }

/* ── Status ───────────────────────────────────────────────────────────────── */
.status-banner { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 0.95rem; border: 1px solid; }
.status-banner-operational { background: rgba(63,185,80,0.08); border-color: rgba(63,185,80,0.25); color: #3fb950; }
.status-banner-degraded { background: rgba(240,180,41,0.08); border-color: rgba(240,180,41,0.25); color: #f0b429; }
.status-banner-outage { background: rgba(248,81,73,0.08); border-color: rgba(248,81,73,0.25); color: #f85149; }
.status-banner-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-banner-operational .status-banner-dot { background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,0.2); }
.status-banner-degraded .status-banner-dot { background: #f0b429; box-shadow: 0 0 0 3px rgba(240,180,41,0.2); }
.status-banner-outage .status-banner-dot { background: #f85149; box-shadow: 0 0 0 3px rgba(248,81,73,0.2); }
.status-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 32px; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.status-row:last-child { border-bottom: none; }
.status-row-name { display: flex; align-items: center; gap: 12px; }
.status-icon { font-size: 1.1rem; }
.status-row-label { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.status-row-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.status-badge { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid; }
.status-badge-operational { background: rgba(63,185,80,0.1); color: #3fb950; border-color: rgba(63,185,80,0.25); }
.status-badge-degraded { background: rgba(240,180,41,0.1); color: #f0b429; border-color: rgba(240,180,41,0.25); }
.status-badge-outage { background: rgba(248,81,73,0.1); color: #f85149; border-color: rgba(248,81,73,0.25); }
.status-badge-maintenance { background: rgba(88,101,242,0.1); color: #818cf8; border-color: rgba(88,101,242,0.25); }
.status-incidents h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 12px; }
.status-no-incidents { font-size: 0.88rem; color: var(--text-muted); padding: 20px; text-align: center; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; }
.status-incident { padding: 16px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; font-size: 0.88rem; }
.status-incident-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.status-incident-title { font-weight: 600; color: var(--text); }
.status-incident-date { font-size: 0.78rem; color: var(--text-muted); }
.status-incident-update { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; margin-bottom: 0; padding-left: 12px; border-left: 2px solid var(--border); }
.status-incident-resolved { color: #3fb950; margin-top: 6px; margin-bottom: 0; }
.status-footer-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 24px; }
.status-footer-note a { color: #818cf8; }

/* ── Changelog ────────────────────────────────────────────────────────────── */
.cl-entry { padding: 28px 0; border-bottom: 1px solid var(--border); }
.cl-entry:last-child { border-bottom: none; }
.cl-entry-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.cl-version { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-right: 10px; }
.cl-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 20px; border: 1px solid; }
.cl-label-new { background: rgba(63,185,80,0.1); color: #3fb950; border-color: rgba(63,185,80,0.3); }
.cl-label-default { background: rgba(88,101,242,0.1); color: #818cf8; border-color: rgba(88,101,242,0.3); }
.cl-date { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }
.cl-section-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 16px 0 6px; }
.cl-entry:first-child .cl-section-title:first-of-type { margin-top: 0; }
.cl-list { padding-left: 20px; margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.75; }
.cl-list li { margin-bottom: 2px; }

/* ── Admin pages ──────────────────────────────────────────────────────────── */
.adm-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.adm-card-title { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.adm-flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.88rem; border: 1px solid; }
.adm-flash-success { background: rgba(63,185,80,0.08); color: #3fb950; border-color: rgba(63,185,80,0.25); }
.adm-flash-error { background: rgba(248,81,73,0.08); color: #f85149; border-color: rgba(248,81,73,0.25); }
.adm-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.adm-optional { font-weight: 400; opacity: 0.7; }
.adm-input { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color 0.13s; }
.adm-input:focus { border-color: rgba(88,101,242,0.5); }
.adm-textarea { min-height: 90px; resize: vertical; }
.adm-select { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 0.88rem; font-family: inherit; outline: none; cursor: pointer; }
.adm-service-list { display: flex; flex-direction: column; gap: 10px; }
.adm-service-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; }
.adm-service-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.adm-service-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.adm-service-note { font-size: 0.77rem; color: var(--text-muted); }
.adm-incident-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.adm-incident-row:last-child { border-bottom: none; padding-bottom: 0; }
.adm-incident-info { flex: 1; font-size: 0.88rem; color: var(--text); }
.adm-cl-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.adm-cl-row:last-child { border-bottom: none; padding-bottom: 0; }
.adm-cl-info { flex: 1; }
.adm-muted { color: var(--text-muted); }
.adm-empty { color: var(--text-muted); font-size: 0.88rem; text-align: center; padding: 20px 0; }
.adm-delete-btn { padding: 5px 12px; border-radius: 6px; border: 1px solid rgba(248,81,73,0.3); background: rgba(248,81,73,0.08); color: #f85149; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.13s; white-space: nowrap; }
.adm-delete-btn:hover { background: rgba(248,81,73,0.18); }
.adm-action-btn { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.13s; white-space: nowrap; width: 100%; }
.adm-action-btn:hover { background: var(--bg-surface); color: var(--text); }
.sl-cat-badge-other { background: var(--bg-raised); color: var(--text-muted); }
