﻿/* =========================================================
   Charter Servers â€“ Main Stylesheet (rebuilt)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Orbitron:wght@700;900&display=swap');

:root {
  --rust-orange: #ea580c;
  --rust-orange-dark: #c2410c;
  --dark-slate: #020617;
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.7);
  --line: rgba(234, 88, 12, 0.3);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: var(--rust-orange);
  --accent-2: var(--rust-orange-dark);
  --success: #70ffb5;
  --shadow: 0 18px 60px rgba(2, 8, 24, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--dark-slate);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  position: sticky;
  top: 14px;
  z-index: 20;
  box-shadow: var(--shadow);
}

.left-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cluster {
  margin-left: auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05101f;
  font-weight: 800;
}

.nav-cluster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  align-items: flex-start;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.98);
  border: 1px solid rgba(234, 88, 12, 0.3);
  box-shadow: var(--shadow);
  z-index: 30;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu,
.nav-item.open .nav-submenu {
  display: flex;
}

.nav-submenu a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-submenu a:hover {
  background: rgba(234, 88, 12, 0.18);
  color: #fff;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(234, 88, 12, 0.22);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.pill-button.active,
.pill-button:hover {
  color: #ffffff;
  background: var(--rust-orange);
  border-color: transparent;
}

.site-nav a,
.btn {
  text-decoration: none;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0 56px;
}

.page-hero {
  grid-template-columns: 1fr;
  padding: 40px 24px 28px;
  margin-top: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15, 29, 52, 0.92), rgba(7, 14, 27, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
nav,
.logo-wrap,
.nav-cluster,
.pill-button,
.btn {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.03;
  margin: 0;
}

.page-hero h1 {
  max-width: 920px;
}

.hero-text,
.info-card p,
.cta p {
  color: var(--muted);
  line-height: 1.7;
}

.page-hero .hero-text {
  max-width: 860px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--rust-orange);
  box-shadow: 0 12px 34px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  background: var(--rust-orange-dark);
}

.btn-secondary,
.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(234, 88, 12, 0.24);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
}

.dashboard-card {
  position: relative;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(234, 88, 12, 0.3);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

.home-mockup {
  min-height: 420px;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.98), transparent);
}

.stat-pill {
  position: relative;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 25, 48, 0.9);
  border: 1px solid rgba(105, 174, 255, 0.35);
  color: #d4e9ff;
  font-size: 0.88rem;
}

.server-image-card {
  margin: 24px 0 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(234, 88, 12, 0.3);
  box-shadow: inset 0 0 26px rgba(234, 88, 12, 0.08);
}

.server-image-card img {
  width: 100%;
  max-height: 370px;
  object-fit: contain;
  margin: 0 auto;
}

.shop-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.server-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.server-node {
  height: 130px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(87, 208, 255, 0.34), rgba(125, 124, 255, 0.12)),
    rgba(12, 22, 43, 0.9);
  border: 1px solid rgba(87, 208, 255, 0.34);
  box-shadow: inset 0 0 18px rgba(87, 208, 255, 0.15);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric-row div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-row span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.metric-row strong {
  font-size: 1.1rem;
}

.feature-strip,
.cards-grid,
.stats-panel,
.cta,
.stack-grid,
.contact-panel {
  display: grid;
  gap: 18px;
}

.info-card strong {
  color: var(--accent);
}

.feature-strip {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 44px;
}

.strip-card,
.info-card,
.stat-box,
.cta,
.stack-card,
.contact-card,
.contact-copy {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.strip-card {
  padding: 18px;
}

.strip-card span {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-grid {
  padding: 24px 0 10px;
}

.section-heading h2,
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0;
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.info-card,
.details-card {
  padding: 22px;
}

.info-accordion {
  grid-template-columns: repeat(2, 1fr);
}

.details-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.details-card summary {
  list-style: none;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.details-card summary::-webkit-details-marker {
  display: none;
}

.details-card summary:hover {
  color: var(--accent);
}

.details-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 88, 12, 0.24);
}

.info-card h3 {
  margin-top: 0;
}

.stats-panel {
  grid-template-columns: repeat(4, 1fr);
  margin: 48px 0;
}

.stack-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 0;
}

.stack-card {
  padding: 22px;
}

.stack-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 800;
}

.stat-box {
  padding: 24px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.stat-box span {
  color: var(--muted);
}

.cta {
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  margin-top: 12px;
}

.contact-panel {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  margin-top: 20px;
}

.contact-copy,
.contact-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-card label {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid rgba(234, 88, 12, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.contact-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.discord-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.discord-icon-wrap {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.42);
}

.discord-icon-wrap img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.discord-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--rust-orange);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.hidden-before-load {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero,
  .page-hero,
  .feature-strip,
  .cards-grid,
  .stats-panel,
  .cta,
  .stack-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .left-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .nav-cluster {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1200px);
  }

  .site-header {
    padding: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .server-visual {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   NEW STYLES â€” Steam auth / dashboard / post-login pages
   ========================================================= */

/* Nav submenu links â€” styled like pill buttons */
.nav-submenu a {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Steam user profile in nav */
.nav-user-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: rgba(255, 255, 255, 0.03);
}
.nav-steam-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(234, 88, 12, 0.2);
  border: 2px solid var(--rust-orange);
}
.nav-steam-name {
  font-size: 0.75rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.nav-coin-pill strong {
  color: #ffffff;
  font-size: 0.9rem;
}

/* ---- Info page permanent sections (replaces details accordion) ---- */
.info-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}
.info-section-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 26px;
}
.info-section-heading {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  color: var(--rust-orange);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(234, 88, 12, 0.24);
}
.info-section-body { color: var(--muted); line-height: 1.75; }
.info-section-body ul { padding-left: 20px; margin: 10px 0; }
.info-section-body li { margin-bottom: 8px; }
.info-section-body strong { color: var(--text); }
.info-section-body p { margin: 0 0 12px; }
.info-section-body p:last-child { margin-bottom: 0; }

/* Discord card */
.discord-link:hover { background: rgba(88,101,242,0.14); transform: translateY(-3px); }

/* ---- Dashboard (post-login 6-box grid) ---- */
.dashboard-welcome {
  text-align: center;
  margin: 48px 0 32px;
}
.dashboard-welcome h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 8px; }
.dashboard-welcome p  { color: var(--muted); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.dash-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 20px 28px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.dash-box:hover {
  transform: translateY(-6px);
  border-color: var(--rust-orange);
  background: rgba(234, 88, 12, 0.06);
}
.dash-box-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.3);
  overflow: hidden;
}
.dash-box-icon img  { width: 60px; height: 60px; object-fit: contain; border-radius: 10px; }
.dash-box-icon svg  { width: 48px; height: 48px; }
.dash-box-title {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-align: center;
}
.dash-box-desc { color: var(--muted); font-size: 0.82rem; text-align: center; line-height: 1.5; }

/* ---- Post-login page title + placeholder ---- */
.protected-page-title {
  text-align: center;
  margin: 52px 0 40px;
}
.protected-page-title h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.03;
}
.protected-page-title p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }

.placeholder-box {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 70px 40px;
  border: 2px dashed rgba(234, 88, 12, 0.4);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--muted);
}
.placeholder-box svg { opacity: 0.35; width: 64px; height: 64px; }
.placeholder-box p { max-width: 480px; font-size: 0.95rem; line-height: 1.7; }

/* ---- Login page ---- */
.login-card {
  max-width: 480px;
  margin: 64px auto;
  padding: 52px 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.login-card h2 { font-size: 1.6rem; margin: 0; }
.login-card p  { color: var(--muted); margin: 0; line-height: 1.6; max-width: 340px; }

.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 32px;
  border-radius: 999px;
  background: #1b2838;
  border: 2px solid #4c6b8a;
  color: #c6d4df;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.steam-login-btn:hover {
  background: #2a475e;
  border-color: #66c0f4;
  color: #fff;
  transform: translateY(-3px);
}
.steam-login-btn svg { width: 28px; height: 28px; flex-shrink: 0; }

.login-error {
  padding: 12px 18px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.4);
  border-radius: 12px;
  color: #f87171;
  font-size: 0.88rem;
}

/* ---- Admin panel ---- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.admin-stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-stat-card .stat-value {
  display: block;
  font-size: 2.4rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  color: var(--rust-orange);
  margin-bottom: 6px;
}
.admin-stat-card .stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.admin-table-section {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.admin-management-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 28px;
}
.admin-table-section h3 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.admin-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-filter-select {
  border: 1px solid rgba(234, 88, 12, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.admin-table-scroll {
  max-height: 320px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.12);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(234, 88, 12, 0.12);
  font-size: 0.88rem;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(7, 12, 26, 0.98);
  color: var(--rust-orange);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.admin-player-summary {
  display: grid;
  gap: 16px;
}

.admin-player-summary h3,
.admin-list-card h4 {
  margin: 0;
}

.admin-player-summary p {
  margin: 0;
  color: var(--muted);
}

.admin-input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-input-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-input-grid input {
  width: 100%;
  border: 1px solid rgba(234, 88, 12, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.admin-list-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(234, 88, 12, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.admin-list-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
  max-height: 220px;
  overflow: auto;
}

.admin-search-input {
  width: min(320px, 100%);
  border: 1px solid rgba(234, 88, 12, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.admin-player-row {
  cursor: pointer;
}

.admin-player-row.is-selected td {
  background: rgba(234, 88, 12, 0.14);
}

.admin-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-player-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.admin-status-message {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-status-message[data-kind="success"] {
  color: var(--success);
}

.admin-status-message[data-kind="error"] {
  color: #f87171;
}

.account-hero,
.content-panel,
.tracker-grid,
.catalog-layout,
.bundle-grid,
.inventory-grid,
.status-grid,
.leaderboard-grid,
.lootlogs-grid,
.checkout-layout {
  margin-top: 24px;
}

.account-hero,
.content-panel,
.tracker-card,
.catalog-sidebar,
.shop-card,
.bundle-card,
.inventory-card,
.status-card,
.leaderboard-card,
.log-card,
.checkout-card,
.notice-card,
.challenge-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.account-hero,
.content-panel,
.checkout-card,
.notice-card,
.challenge-card {
  padding: 28px;
}

.account-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.account-hero h1,
.content-panel h2,
.challenge-card h2 {
  margin: 0 0 12px;
}

.account-hero p,
.content-panel p,
.notice-card p,
.challenge-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-badges,
.notice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-badges span,
.notice-list span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-badge-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
}

.hero-badge-link:hover {
  background: rgba(234, 88, 12, 0.18);
}

.hero-side-panel {
  display: grid;
  gap: 16px;
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tracker-card {
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tracker-card:hover {
  transform: translateY(-4px);
  border-color: var(--rust-orange);
}

.tracker-card span,
.shop-meta-grid span,
.bundle-copy p,
.inventory-copy p,
.status-card span,
.leaderboard-card span,
.log-card-header span,
.checkout-list span,
.checkout-list em {
  color: var(--muted);
}

.tracker-card h3,
.bundle-copy h3,
.inventory-copy h3,
.leaderboard-card h3,
.log-card-header h3,
.content-panel h3,
.shop-card h3 {
  margin: 10px 0 8px;
}

.catalog-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.catalog-topbar,
.section-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.pager-links {
  display: flex;
  gap: 10px;
}

.catalog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.pager-links a,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.pager-links a.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.catalog-grid,
.bundle-grid,
.inventory-grid,
.status-grid,
.leaderboard-grid,
.lootlogs-grid {
  display: grid;
  gap: 24px;
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bundle-grid {
  grid-template-columns: repeat(2, 1fr);
}

.inventory-grid,
.leaderboard-grid,
.lootlogs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.status-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shop-card,
.bundle-card,
.inventory-card,
.status-card,
.leaderboard-card,
.log-card {
  padding: 24px;
}

.shop-card-image-wrap,
.bundle-image,
.inventory-image-wrap {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.12), rgba(15, 23, 42, 0.68));
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.shop-card-image,
.bundle-image,
.inventory-image {
  width: 100%;
  height: 182px;
  object-fit: contain;
  padding: 16px;
}

.shop-card-copy p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.6;
}

.shop-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 20px;
}

.shop-meta-grid div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.shop-meta-grid div,
.status-card,
.leaderboard-card,
.notice-card {
  background: rgba(255, 255, 255, 0.03);
}

.shop-meta-grid strong,
.bundle-copy strong,
.status-card strong,
.leaderboard-card p,
.checkout-total strong {
  font-size: 1.08rem;
}

.catalog-sidebar {
  padding: 24px;
  position: sticky;
  top: 24px;
  height: fit-content;
}

.catalog-sidebar .checkout-actions,
.catalog-sidebar .checkout-total {
  margin-top: 0;
}

.cart-items,
.checkout-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cart-items li,
.checkout-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.cart-items li div,
.checkout-list li {
  display: grid;
  gap: 4px;
}

.empty-inline,
.empty-state {
  color: var(--muted);
  text-align: center;
}

.empty-state {
  padding: 28px;
  border-radius: 18px;
  border: 1px dashed rgba(234, 88, 12, 0.28);
}

.bundle-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.bundle-copy {
  padding-top: 14px;
}

.donate-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.qr-card img {
  width: 100%;
  border-radius: 24px;
}

.widget-card {
  min-height: 320px;
}

.widget-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(234, 88, 12, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 20px;
}

.widget-placeholder-live img {
  max-width: 100%;
  height: auto;
}

.donate-notes-list {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.donate-notes-list p {
  margin: 0 0 8px;
  color: var(--text);
}

.donate-notes-list ul {
  margin: 0;
  padding-left: 20px;
}

.donate-notes-list li {
  margin-bottom: 6px;
}

.status-card,
.leaderboard-card {
  padding: 20px;
}

.status-card strong {
  display: block;
  margin-top: 12px;
}

.challenge-meta {
  display: grid;
  gap: 6px;
  margin: 18px 0 22px;
}

.leaderboard-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.leaderboard-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.92), rgba(251, 191, 36, 0.92));
  color: #05101f;
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.log-window {
  margin-top: 16px;
  max-height: 260px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(234, 88, 12, 0.18);
  background: rgba(2, 8, 24, 0.62);
  font-family: Consolas, monospace;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.checkout-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 1200px) {
  .catalog-grid,
  .tracker-grid,
  .status-grid,
  .inventory-grid,
  .leaderboard-grid,
  .lootlogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .account-hero,
  .catalog-layout,
  .donate-layout,
  .checkout-layout,
  .bundle-grid,
  .catalog-grid,
  .tracker-grid,
  .status-grid,
  .inventory-grid,
  .leaderboard-grid,
  .lootlogs-grid,
  .admin-management-grid,
  .admin-input-grid {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .catalog-topbar,
  .section-topbar,
  .checkout-actions,
  .log-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td { color: var(--muted); }
.admin-table td:last-child { color: var(--text); font-weight: 700; }

.admin-refresh-btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1060px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-accordion { grid-template-columns: 1fr; }
}
