/* ═══════════════════════════
   CELESTIAL NIGHT — THEME SYSTEM
   Dark mode only
═══════════════════════════ */
:root {
  /* ── Deep celestial navy sky ── */
  --bg0: #0a0e1a;
  --bg1: #0f172a;
  --bg2: #141b30;
  --bg3: #1b2440;
  --card: #161e36;
  --card-h: #1c2545;
  --border: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(249, 168, 212, 0.22);
  --gold: #60a5fa;       /* primary accent — pastel blue */
  --gold-l: #f9a8d4;     /* secondary accent — pastel pink */
  --gold-d: #1e3a8a;     /* deep accent — navy blue */
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #c084fc;
  --text: #b6c2e0;
  --text-dim: #7c89ab;
  --text-hi: #f5f7ff;
  --white: #ffffff;
  --nav-h: 64px;
  --r: 8px;

  /* ── Celestial brand gradients & glow ── */
  --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #f9a8d4 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(96,165,250,.16) 0%, rgba(249,168,212,.16) 100%);
  --gradient-bg: radial-gradient(circle 700px at 50% -10%, rgba(96,165,250,.16), rgba(96,165,250,0)),
                 radial-gradient(circle 600px at 90% 10%, rgba(249,168,212,.10), rgba(249,168,212,0));
  --glow-blue: 0 0 24px rgba(96, 165, 250, 0.35);
  --glow-pink: 0 0 24px rgba(249, 168, 212, 0.30);
  --glow-soft: 0 0 40px rgba(96, 165, 250, 0.18);
  --star-opacity: 1;

  /* Static rgba fades of --bg0/--bg1 (avoids color-mix() Safari bugs) */
  --bg0-15: rgba(10, 14, 26, .15);
  --bg0-30: rgba(10, 14, 26, .30);
  --bg0-60: rgba(10, 14, 26, .60);
  --bg0-85: rgba(10, 14, 26, .85);
  --bg1-92: rgba(15, 23, 42, .92);

  color-scheme: dark;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  background: var(--bg0);
}

body {
  background: var(--bg0);
  background-image: var(--gradient-bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Celestial starfield — visible in dark mode, fades out in light mode */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: var(--star-opacity);
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 12%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 22% 68%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1.5px 1.5px at 35% 24%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 48% 82%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1.5px 1.5px at 62% 14%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 75% 55%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1.5px 1.5px at 88% 30%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 92% 78%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 15% 90%, #ffffff 100%, rgba(255,255,255,0)),
    radial-gradient(1.5px 1.5px at 58% 45%, #ffffff 100%, rgba(255,255,255,0));
  background-repeat: repeat;
  background-size: 100% 100%;
  transition: opacity .5s ease;
}

#gladius-main {
  flex: 1;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

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

button {
  font-family: 'DM Sans', sans-serif;
}

img {
  max-width: 100%;
}

/* Accessible focus states (keyboard navigation) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg0);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-d);
  border-radius: 2px;
}

/* ═══════════════════════════
   PAGE SYSTEM
═══════════════════════════ */
.page {
  display: none;
}

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

/* ═══════════════════════════
   SVG ICONS (inline hidden)
═══════════════════════════ */

/* ═══════════════════════════
   NAVBAR
═══════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--bg1-92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: .02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
  filter: drop-shadow(0 0 14px rgba(96, 165, 250, .35));
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 16px;
  height: 16px;
  color: #07090f;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  gap: 0;
  flex: 1;
  margin-left: .5rem;
}

.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--text-hi);
  border-bottom-color: rgba(255, 255, 255, .15);
}

.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-kakawait {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0 .9rem !important;
  background: rgba(139, 92, 246, .08);
  border: 1px solid rgba(139, 92, 246, .2);
  border-bottom: 2px solid transparent !important;
  border-radius: 4px 4px 0 0;
  margin: 0 .25rem;
  color: #a78bfa !important;
}

.nav-kakawait:hover {
  background: rgba(139, 92, 246, .14) !important;
  color: #c4b5fd !important;
}

.nav-kakawait.active {
  border-bottom-color: #8b5cf6 !important;
  color: #c4b5fd !important;
}

.nav-kakawait .badge-new {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .05em;
  background: #8b5cf6;
  color: #fff;
  padding: .1rem .35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-server-ip {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .9rem;
  background: var(--bg2);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  font-size: .78rem;
}

.nav-server-ip:hover {
  background: var(--bg3);
  border-color: var(--gold);
}

.nav-server-ip .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}

.nav-server-ip code {
  font-family: monospace;
  font-weight: 700;
  color: var(--gold-l);
  font-size: .78rem;
}

.btn-store {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
  font-weight: 700;
  font-size: .78rem;
  padding: .48rem 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: all .2s;
  white-space: nowrap;
}

.btn-store:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(96, 165, 250, .3);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ═══════════════════════════
   HERO — HOME
═══════════════════════════ */
.hero-home {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-home-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg0);
  background-image:
    radial-gradient(circle 500px at 20% 20%, rgba(96,165,250,.28), rgba(96,165,250,0) 70%),
    radial-gradient(circle 450px at 85% 15%, rgba(249,168,212,.20), rgba(249,168,212,0) 70%);
}

.hero-home-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(96, 165, 250, .1);
  border: 1px solid var(--border-gold);
  color: var(--gold-l);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  animation: fadeDown .5s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}

.hero-home-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--white);
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
  animation: fadeDown .5s .08s ease both;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .8), 0 0 60px rgba(96, 165, 250, .2);
}

.hero-home-title .accent {
  color: var(--gold-l);
}

.hero-home-sub {
  font-size: 1rem;
  color: rgba(168, 180, 204, .85);
  max-width: 520px;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
  animation: fadeDown .5s .16s ease both;
}

.hero-home-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeDown .5s .24s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
  font-weight: 700;
  font-size: .88rem;
  padding: .75rem 1.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(96, 165, 250, .4);
}

.btn-primary svg {
  width: 14px;
  height: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, .07);
  color: var(--text-hi);
  font-weight: 600;
  font-size: .88rem;
  padding: .75rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════
   STATS BAR
═══════════════════════════ */
.stats-bar {
  background: var(--bg1);
  border-top: 1px solid rgba(96, 165, 250, .12);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold-l);
  line-height: 1;
  text-shadow: 0 0 20px rgba(96, 165, 250, .25);
}

.stat-lbl {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: .35rem;
}

@media(max-width:600px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════
   MAIN LAYOUT
═══════════════════════════ */
.home-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
}

@media(max-width:900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════
   SECTION HEADER
═══════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .45rem;
}

.section-title svg {
  width: 13px;
  height: 13px;
}

.section-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  transition: color .2s;
}

.section-link:hover {
  color: var(--gold-l);
}

/* ═══════════════════════════
   GAME CARDS
═══════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media(max-width:540px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  background: var(--card-h);
  border-color: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
}

.game-card-thumb {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card-thumb svg {
  width: 40px;
  height: 40px;
  opacity: .7;
}

.thumb-gold {
  background: linear-gradient(135deg, rgba(96, 165, 250, .15), rgba(96, 165, 250, .04));
}

.thumb-red {
  background: linear-gradient(135deg, rgba(231, 76, 60, .15), rgba(231, 76, 60, .04));
}

.thumb-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(59, 130, 246, .04));
}

.thumb-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(139, 92, 246, .04));
}

.thumb-green {
  background: linear-gradient(135deg, rgba(67, 181, 129, .15), rgba(67, 181, 129, .04));
}

.thumb-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, .15), rgba(236, 72, 153, .04));
}

.game-badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  z-index: 2;
}

.game-badge svg {
  width: 9px;
  height: 9px;
}

.badge-hot {
  background: rgba(96, 165, 250, .15);
  color: var(--gold-l);
  border: 1px solid rgba(96, 165, 250, .25);
}

.badge-pvp {
  background: rgba(231, 76, 60, .12);
  color: #fca5a5;
  border: 1px solid rgba(231, 76, 60, .2);
}

.badge-new {
  background: rgba(67, 181, 129, .12);
  color: #a7f3d0;
  border: 1px solid rgba(67, 181, 129, .2);
}

.badge-soon {
  background: rgba(139, 92, 246, .1);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, .2);
}

.game-card-body {
  padding: .85rem;
}

.game-card-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .25rem;
}

.game-card-desc {
  font-size: .75rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: .55rem;
}

.game-card-players {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-dim);
}

.online-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: blink 2s infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════
   SIDEBAR WIDGETS
═══════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.widget-header {
  padding: .7rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.widget-header svg {
  width: 12px;
  height: 12px;
}

.widget-body {
  padding: .85rem 1rem;
}

/* Server status widget */
.server-status-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg1);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: .6rem .85rem;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: .85rem;
}

.server-status-ip:hover {
  border-color: var(--gold);
}

.server-status-ip code {
  font-family: monospace;
  color: var(--gold-l);
  font-size: .85rem;
  font-weight: 700;
}

.copy-hint {
  font-size: .62rem;
  color: var(--text-dim);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
}

.status-row:last-child {
  border-bottom: none;
}

.status-row span:first-child {
  color: var(--text-dim);
}

.status-row strong {
  color: var(--text-hi);
  font-weight: 600;
}

.status-on {
  color: var(--green) !important;
  font-weight: 700 !important;
}

/* Kakawait widget */
.kakawait-widget {
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(109, 40, 217, .07));
  border: 1px solid rgba(139, 92, 246, .25) !important;
}

.kakawait-widget .widget-header {
  background: rgba(139, 92, 246, .1);
  color: #a78bfa;
  border-bottom-color: rgba(139, 92, 246, .2);
}

.kaka-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #c4b5fd;
  margin-bottom: .3rem;
}

.kaka-tagline {
  font-size: .75rem;
  color: #a78bfa;
  margin-bottom: .85rem;
  line-height: 1.5;
}

.kaka-perk {
  font-size: .73rem;
  color: #c4b5fd;
  padding: .18rem 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.kaka-perk::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #8b5cf6;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-kaka {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .58rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.btn-kaka:hover {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 6px 20px rgba(124, 58, 237, .4);
  transform: translateY(-1px);
}

.btn-kaka svg {
  width: 13px;
  height: 13px;
}

/* Ranks widget */
.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .38rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.rank-name svg {
  width: 11px;
  height: 11px;
}

.r-nova {
  color: #F9A8D4;
}

.r-celestial {
  color: #e5e7eb;
}

.r-nebula {
  color: #9b8ef5;
}

.r-comet {
  color: #67e8f9;
}

.r-voyager {
  color: #86efac;
}

.rank-price {
  font-size: .72rem;
  color: var(--text-dim);
}

.btn-store-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  margin-top: .85rem;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
  font-size: .75rem;
  font-weight: 700;
  padding: .55rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: all .2s;
}

.btn-store-widget:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
}

.btn-store-widget svg {
  width: 12px;
  height: 12px;
}

/* ═══════════════════════════
   STORE BANNER
═══════════════════════════ */
.store-banner {
  background: linear-gradient(135deg, rgba(96, 165, 250, .08) 0%, rgba(122, 92, 30, .05) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--r);
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}

.store-banner-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .3rem;
}

.store-banner-text p {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-l);
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 250, .2);
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .55rem;
}

.sale-badge svg {
  width: 10px;
  height: 10px;
}

/* ═══════════════════════════
   MINI HERO (subpages)
═══════════════════════════ */
.mini-hero {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg1);
}

.mini-hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg0);
  background-image:
    radial-gradient(circle 400px at 25% 30%, rgba(96,165,250,.24), rgba(96,165,250,0) 70%),
    radial-gradient(circle 350px at 80% 20%, rgba(249,168,212,.16), rgba(249,168,212,0) 70%);
}

.mini-hero.kakawait-hero .mini-hero-bg {
  background-color: var(--bg0);
  background-image:
    radial-gradient(circle 500px at 50% 0%, rgba(139, 92, 246, .35), rgba(139, 92, 246, 0) 70%);
}

.mini-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.mini-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-l);
  margin-bottom: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.mini-eyebrow-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-l);
  border-radius: 50%;
}

.mini-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .8);
  line-height: 1.05;
}

.mini-hero-title .accent {
  color: var(--gold-l);
}

.mini-hero-sub {
  font-size: .9rem;
  color: var(--text);
  margin-top: .6rem;
  max-width: 600px;
}

/* ═══════════════════════════
   SUBPAGE LAYOUT
═══════════════════════════ */
.subpage-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ═══════════════════════════
   LEADERBOARDS
═══════════════════════════ */
.lb-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lb-tab {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .45rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}

.lb-tab:hover {
  color: var(--text-hi);
  border-color: rgba(255, 255, 255, .12);
}

.lb-tab.active-lb {
  background: rgba(96, 165, 250, .1);
  border-color: var(--border-gold);
  color: var(--gold-l);
}

.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 2rem 0;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: var(--text-dim);
  object-fit: cover;
}

.podium-avatar.gold-av {
  border-color: var(--gold);
}

.podium-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-hi);
}

.podium-score {
  font-size: .68rem;
  color: var(--text-dim);
}

.podium-block {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 4px 4px 0 0;
}

.p1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .2), rgba(96, 165, 250, .06));
  border: 1px solid rgba(96, 165, 250, .35);
  color: var(--gold-l);
}

.p2 {
  width: 68px;
  height: 60px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.p3 {
  width: 68px;
  height: 46px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.podium-crown {
  color: var(--gold);
  margin-bottom: .2rem;
}

.lb-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.lb-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 80px 90px;
  align-items: center;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  gap: .5rem;
}

.lb-row:last-child {
  border-bottom: none;
}

.lb-head {
  background: var(--bg2);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.lb-rank {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: .85rem;
  color: var(--text-dim);
  text-align: center;
}

.lb-rank.r1 {
  color: var(--gold-l);
}

.lb-rank.r2 {
  color: #b0b0b0;
}

.lb-rank.r3 {
  color: #cd7f32;
}

.lb-player {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--text-hi);
}

.lb-av {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--bg3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--gold-l);
  object-fit: cover;
}

.lb-pts {
  font-weight: 700;
  color: var(--text-dim);
  text-align: right;
}

.lb-pts.gold {
  color: var(--gold-l);
}

/* ═══════════════════════════
   FORUMS
═══════════════════════════ */
.forums-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

@media(max-width:860px) {
  .forums-layout {
    grid-template-columns: 1fr;
  }
}

.forum-cat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1rem;
}

.forum-cat-head {
  padding: .65rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.forum-cat-head svg {
  width: 12px;
  height: 12px;
}

.forum-cat-count {
  margin-left: auto;
  background: rgba(255, 255, 255, .05);
  padding: .1rem .4rem;
  border-radius: 3px;
  font-size: .65rem;
}

.forum-thread {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}

.forum-thread:last-child {
  border-bottom: none;
}

.forum-thread:hover {
  background: var(--card-h);
}

.thread-av {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--bg3);
  flex-shrink: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-dim);
}

.thread-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: .2rem;
}

.thread-meta {
  font-size: .7rem;
  color: var(--text-dim);
}

.forum-tag {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .18rem .5rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.tag-hot {
  background: rgba(231, 76, 60, .12);
  color: var(--red);
}

.tag-official {
  background: rgba(96, 165, 250, .12);
  color: var(--gold);
}

.tag-guide {
  background: rgba(59, 130, 246, .1);
  color: #93c5fd;
}

/* ═══════════════════════════
   KAKAWAIT PAGE
═══════════════════════════ */
.kaka-hero-widget {
  background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(13, 16, 35, .98));
  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 12px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media(max-width:680px) {
  .kaka-hero-widget {
    grid-template-columns: 1fr;
  }
}

.kaka-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: .75rem;
}

.kaka-hero-title span {
  color: #c4b5fd;
}

.kaka-hero-sub {
  font-size: .88rem;
  color: #a78bfa;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.kaka-note {
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 1rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.kaka-perks-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.kaka-perk-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(139, 92, 246, .08);
  border: 1px solid rgba(139, 92, 246, .15);
  border-radius: 6px;
}

.kaka-perk-icon {
  width: 32px;
  height: 32px;
  background: rgba(139, 92, 246, .2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a78bfa;
}

.kaka-perk-icon svg {
  width: 16px;
  height: 16px;
}

.kaka-perk-name {
  font-size: .85rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: .15rem;
}

.kaka-perk-desc {
  font-size: .75rem;
  color: #9d8ec5;
}

/* Install steps */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.step-row {
  display: flex;
  gap: 1.2rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, .4), rgba(124, 58, 237, .15));
  border: 1px solid rgba(139, 92, 246, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: .9rem;
  color: #c4b5fd;
  flex-shrink: 0;
  margin-top: .1rem;
}

.step-content-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .3rem;
}

.step-content-desc {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-code {
  font-family: monospace;
  font-size: .8rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, .1);
  border: 1px solid rgba(139, 92, 246, .2);
  padding: .35rem .7rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: .45rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media(max-width:700px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  transition: all .2s;
}

.feat-card:hover {
  background: var(--card-h);
  border-color: rgba(139, 92, 246, .2);
}

.feat-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .4rem;
}

.feat-desc {
  font-size: .76rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: .75rem;
}

.feat-tag {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .18rem .55rem;
  border-radius: 3px;
  background: rgba(139, 92, 246, .1);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, .2);
}

.feat-tag.free {
  background: rgba(67, 181, 129, .1);
  color: #a7f3d0;
  border-color: rgba(67, 181, 129, .2);
}

/* ── Kakawait: modern launcher identity overrides ── */
.kaka-page .mini-hero-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}

.kaka-page .mini-hero-title .accent {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.kaka-page .mini-eyebrow {
  color: #a78bfa;
}

.kaka-page .mini-eyebrow-dot {
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, .7);
}

.kaka-page .kaka-hero-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
}

.kaka-page .step-num {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.kaka-page .page-section-label {
  color: #a78bfa;
}

.kaka-page .page-section-label::before {
  background: #a78bfa;
}

.kaka-page .page-section-h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
}

.kaka-page .page-section-h2 span {
  color: #a78bfa;
}

.kaka-page .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #7c3aed;
  box-shadow: 0 2px 16px rgba(124, 58, 237, .35);
}

.kaka-page .btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, .45);
}

/* ═══════════════════════════
   SUPPORT PAGE
═══════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.3rem;
  transition: all .2s;
}

.faq-card:hover {
  background: var(--card-h);
  transform: translateY(-2px);
}

.faq-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .45rem;
}

/* Hide mobile select by default (desktop) */
.gs-nav-mobile-select {
  display: none;
}

/* Followed Topics grid (two-column on desktop) */
.gladius-followed-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* On the Followed Topics page the nav should NOT be sticky */
.gladius-followed-grid .gs-nav {
  position: static !important;
  top: auto !important;
}

@media(max-width: 760px) {
  .gladius-followed-grid {
    grid-template-columns: 1fr;
  }

  .gs-nav-mobile-select {
    display: block;
  }
}

.faq-card p {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: center;
  transition: all .2s;
}

.contact-card:hover {
  background: var(--card-h);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.ci-gold {
  background: rgba(96, 165, 250, .1);
  color: var(--gold);
}

.ci-blue {
  background: rgba(88, 101, 242, .12);
  color: #818cf8;
}

.ci-green {
  background: rgba(67, 181, 129, .1);
  color: var(--green);
}

.ci-purple {
  background: rgba(139, 92, 246, .1);
  color: #a78bfa;
}

.contact-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .4rem;
}

.contact-card p {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(96, 165, 250, .3);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-outline:hover {
  background: rgba(96, 165, 250, .08);
  border-color: var(--gold);
}

.btn-outline svg {
  width: 13px;
  height: 13px;
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media(max-width:860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-brand-name svg {
  width: 14px;
  height: 14px;
}

.footer-about {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 220px;
}

.footer-founders {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: .6rem;
}

.footer-founders strong {
  color: var(--text);
}

.footer-col h4 {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-dim);
  margin-bottom: .75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: .4rem;
  cursor: pointer;
  transition: color .2s;
}

.footer-col li:hover {
  color: var(--gold);
}

.footer-col li.purple-li {
  color: rgba(167, 139, 250, .6);
}

.footer-col li.purple-li:hover {
  color: #c4b5fd;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .7rem;
  color: var(--text-dim);
}

/* ═══════════════════════════
   TOAST
═══════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20, 25, 40, .96);
  border: 1px solid var(--border-gold);
  color: var(--gold-l);
  font-size: .82rem;
  font-weight: 600;
  padding: .65rem 1.3rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all .28s cubic-bezier(.23, 1, .32, 1);
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════
   MODAL
═══════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, .78);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 9000;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 500px);
  background: linear-gradient(180deg, rgba(20, 25, 40, .99), rgba(13, 16, 26, .99));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-kicker {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-l);
  margin-bottom: .3rem;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  color: var(--white);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.modal-close:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, .16);
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

.modal-body {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.65;
}

.join-code-box {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  background: rgba(96, 165, 250, .06);
}

.join-code-label {
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-dim);
  margin-bottom: .4rem;
}

.join-code {
  display: block;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-l);
  background: rgba(7, 9, 15, .7);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  padding: .75rem 1rem;
  word-break: break-all;
}

.join-version-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.join-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(67, 181, 129, .1);
  border: 1px solid rgba(67, 181, 129, .2);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
}

.join-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.modal-btn {
  border: none;
  border-radius: 8px;
  padding: .7rem 1.1rem;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s;
}

.modal-btn svg {
  width: 13px;
  height: 13px;
}

.mbt-primary {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
}

.mbt-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
}

.mbt-secondary {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-hi);
}

.mbt-secondary:hover {
  background: rgba(255, 255, 255, .09);
}

/* ═══════════════════════════
   ANIMATIONS
═══════════════════════════ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.23, 1, .32, 1), transform .55s cubic-bezier(.23, 1, .32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════
   SECTION LABELS
═══════════════════════════ */
.page-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}

.page-section-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.page-section-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-hi);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.page-section-h2 span {
  color: var(--gold-l);
}

/* ═══════════════════════════
   AUTH BUTTONS (NamelessMC)
═══════════════════════════ */
.btn-login {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-hi);
  font-size: .78rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-login:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
}

.btn-login img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Account button: avatar only, same outline treatment as other icon buttons ── */
.btn-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
}

.btn-account:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
}

.btn-account img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-panel {
  background: rgba(96, 165, 250, .12);
  border: 1px solid rgba(96, 165, 250, .3);
  color: var(--gold);
  padding: .45rem .6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-panel:hover {
  background: rgba(96, 165, 250, .22);
  border-color: var(--gold);
}

.btn-signup {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
  font-weight: 700;
  font-size: .78rem;
  padding: .45rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-signup:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
}

/* ── Single auth icon (login + register merged) ── */
.btn-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(96, 165, 250, .10);
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-auth-icon:hover {
  background: rgba(96, 165, 250, .22);
  border-color: var(--gold);
  color: var(--gold-l);
}

/* ── Auth page tab switcher ── */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  margin-top: -.25rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: .8rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tab:hover {
  color: var(--text-hi);
}

.auth-tab-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ═══════════════════════════
   GLOBAL FORMS, DROPDOWNS, TABLES,
   ALERTS, BADGES, MODALS
═══════════════════════════ */
#gladius-main input[type=text],
#gladius-main input[type=email],
#gladius-main input[type=password],
#gladius-main input[type=search],
#gladius-main input[type=number],
#gladius-main input[type=url],
#gladius-main input[type=tel],
#gladius-main select,
#gladius-main textarea {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .6rem .85rem;
  color: var(--text-hi);
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

#gladius-main input[type=text]:focus,
#gladius-main input[type=email]:focus,
#gladius-main input[type=password]:focus,
#gladius-main input[type=search]:focus,
#gladius-main input[type=number]:focus,
#gladius-main select:focus,
#gladius-main textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .15);
}

#gladius-main select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 14px;
  padding-right: 2rem;
}

/* Dropdown menus (generic popover-style) */
.gladius-dropdown-menu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), var(--glow-soft);
  padding: .4rem;
  min-width: 180px;
}

.gladius-dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .7rem;
  border-radius: 6px;
  color: var(--text);
  font-size: .85rem;
  transition: background .15s, color .15s;
}

.gladius-dropdown-item:hover {
  background: var(--gradient-brand-soft);
  color: var(--text-hi);
}

/* Tables */
#gladius-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

#gladius-main table th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .05em;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border-gold);
}

#gladius-main table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

#gladius-main table tbody tr {
  transition: background .15s;
}

#gladius-main table tbody tr:hover {
  background: var(--gradient-brand-soft);
}

/* Alerts / notifications */
.gladius-alert-box {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  border-radius: var(--r);
  padding: .85rem 1.1rem;
  font-size: .85rem;
  border: 1px solid var(--border);
}

.gladius-alert-box.success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); color: var(--green); }
.gladius-alert-box.error   { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); color: var(--red); }
.gladius-alert-box.info    { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .3); color: var(--gold); }
.gladius-alert-box.warning { background: rgba(249, 168, 212, .12); border-color: rgba(249, 168, 212, .35); color: var(--gold-l); }

/* Modal (generic, used by .gladius-modal wrapper) */
.gladius-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 9, 15, .65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gladius-modal {
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 2rem;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), var(--glow-soft);
}

/* ═══════════════════════════
   GENERIC PAGE CONTAINER
═══════════════════════════ */
.gladius-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.gladius-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.gladius-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--glow-soft);
}

/* ═══════════════════════════
   AUTH PAGES (Login / Register)
═══════════════════════════ */
.gladius-auth-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg0);
}

.gladius-auth-card {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.gladius-auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.gladius-auth-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #07090f;
}

.gladius-auth-icon svg {
  width: 24px;
  height: 24px;
}

.gladius-auth-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-hi);
}

/* NamelessMC form elements */
.gladius-auth-card .form-group,
.gladius-auth-card .form-row {
  margin-bottom: 1rem;
}

.gladius-auth-card label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.gladius-auth-card input[type=text],
.gladius-auth-card input[type=email],
.gladius-auth-card input[type=password] {
  width: 100%;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .65rem .9rem;
  color: var(--text-hi);
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s;
  outline: none;
}

.gladius-auth-card input:focus {
  border-color: var(--gold);
}

.gladius-auth-card .btn,
.gladius-auth-card button[type=submit],
.gladius-auth-card input[type=submit] {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
  font-weight: 700;
  font-size: .88rem;
  padding: .7rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  margin-top: .5rem;
}

.gladius-auth-card .btn:hover,
.gladius-auth-card button[type=submit]:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
}

.gladius-auth-card a {
  color: var(--gold);
}

.gladius-auth-card a:hover {
  color: var(--gold-l);
}

.gladius-auth-card .alert-success {
  background: rgba(67, 181, 129, .1);
  border: 1px solid rgba(67, 181, 129, .2);
  color: #a7f3d0;
  padding: .75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: .85rem;
}

.gladius-auth-card .alert-danger,
.gladius-auth-card .alert-error {
  background: rgba(231, 76, 60, .1);
  border: 1px solid rgba(231, 76, 60, .2);
  color: #fca5a5;
  padding: .75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: .85rem;
}

.gladius-auth-card .forgot-link {
  text-align: right;
  font-size: .78rem;
  margin-top: .25rem;
}

.gladius-auth-card .register-link {
  text-align: center;
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

/* =========================================================
   User Section — shared gs-* layout/nav/section/form styles
   ========================================================= */

/* Two-column layout */
.gs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media(max-width: 760px) {
  .gs-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar nav */
.gs-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.gs-nav-link {
  display: block;
  padding: .7rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: all .15s;
  text-decoration: none;
}

.gs-nav-link:last-child {
  border-bottom: none;
}

.gs-nav-link:hover {
  color: var(--text-hi);
  background: var(--card-h);
  border-left-color: rgba(255, 255, 255, .12);
}

.gs-nav-active {
  color: var(--gold-l) !important;
  background: rgba(96, 165, 250, .06) !important;
  border-left-color: var(--gold) !important;
}

/* Main column */
.gs-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Section cards */
.gs-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
}

.gs-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.gs-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gs-icon-gold {
  background: rgba(96, 165, 250, .12);
  color: var(--gold);
}

.gs-icon-blue {
  background: rgba(59, 130, 246, .1);
  color: #93c5fd;
}

.gs-icon-purple {
  background: rgba(139, 92, 246, .1);
  color: #c4b5fd;
}

.gs-icon-green {
  background: rgba(67, 181, 129, .1);
  color: var(--green);
}

.gs-icon-red {
  background: rgba(231, 76, 60, .1);
  color: #fca5a5;
}

.gs-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.2;
}

.gs-section-sub {
  display: none;
}

.gs-section-desc {
  font-size: .86rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Alert banners */
.gs-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: 7px;
  font-size: .86rem;
  line-height: 1.5;
}

.gs-alert svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

.gs-alert-success {
  background: rgba(67, 181, 129, .08);
  border: 1px solid rgba(67, 181, 129, .2);
  color: #a7f3d0;
}

.gs-alert-error {
  background: rgba(231, 76, 60, .08);
  border: 1px solid rgba(231, 76, 60, .2);
  color: #fca5a5;
}

/* Form elements */
.gs-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gs-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.gs-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media(max-width: 540px) {
  .gs-field-row {
    grid-template-columns: 1fr;
  }
}

.gs-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.gs-input {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .62rem .9rem;
  color: var(--text-hi);
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.gs-input:focus {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .08);
}

.gs-textarea {
  resize: vertical;
  min-height: 96px;
}

.gs-select {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .62rem .9rem;
  color: var(--text-hi);
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23535e78' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.2rem;
}

.gs-select:focus {
  border-color: rgba(96, 165, 250, .45);
}

.gs-select option {
  background: var(--bg2);
}

.gs-form-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .5rem;
  flex-wrap: wrap;
}

.gs-submit {
  font-size: .8rem;
  padding: .55rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.gs-submit svg {
  flex-shrink: 0;
}

.gs-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(231, 76, 60, .1);
  border: 1px solid rgba(231, 76, 60, .25);
  color: #fca5a5;
  font-size: .8rem;
  font-weight: 700;
  padding: .55rem 1.3rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: 'DM Sans', sans-serif;
}

.gs-btn-danger:hover:not([disabled]) {
  background: rgba(231, 76, 60, .18);
  border-color: var(--red);
  color: #fff;
}

.gs-btn-danger[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.gs-btn-danger svg {
  flex-shrink: 0;
}

/* Responsive nav */
@media(max-width: 760px) {

  /* Sticky top tabs bar for user pages on mobile */
  .gs-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: calc(var(--nav-h, 56px));
    z-index: 95;
    padding: .6rem .6rem;
    background: linear-gradient(180deg, rgba(10, 11, 14, .9), rgba(10, 11, 14, .85));
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .gs-nav-mobile-select {
    display: none;
  }

  .gs-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    padding: .45rem .85rem;
    font-size: .86rem;
    font-weight: 700;
    color: var(--text-dim);
    text-align: center;
    background: transparent;
    transition: background .14s, color .14s;
  }

  .gs-nav-link:last-child {
    margin-right: .4rem;
  }

  .gs-nav-link:hover {
    color: var(--text-hi);
  }

  .gs-nav-active {
    background: linear-gradient(90deg, rgba(96, 165, 250, .12), rgba(96, 165, 250, .06));
    color: var(--gold-l) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  }

  .gs-section {
    padding: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE
   Breakpoints: 768px (tablet/phone), 480px (phone)
   All desktop styles unchanged above this block.
═══════════════════════════════════════════════════ */

/* ── Hamburger button — hidden on desktop ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-hi);
  cursor: pointer;
  padding: .5rem .45rem;
  border-radius: 6px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background .15s;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, .07);
}

/* ═══════════════════════════════════════════════════
   SLIDE-IN NAV DRAWER (all screen sizes — fixed overlay)
═══════════════════════════════════════════════════ */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1099;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s;
}

.nav-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(300px, 88vw);
  background: var(--bg1);
  border-left: 1px solid var(--border);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, .3));
}

.nav-drawer-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
  transition: all .15s;
  display: flex;
  align-items: center;
}

.nav-drawer-close:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, .06);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: .5rem 0;
  flex: 1;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.nav-drawer-link:hover,
.nav-drawer-link.active {
  color: var(--text-hi);
  background: rgba(255, 255, 255, .04);
  border-left-color: var(--gold);
}

.nav-drawer-kakawait {
  color: #a78bfa;
  background: rgba(139, 92, 246, .06);
}

.nav-drawer-kakawait:hover {
  color: #c4b5fd;
  background: rgba(139, 92, 246, .12);
  border-left-color: #8b5cf6;
}

.nav-drawer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  flex-shrink: 0;
}

.nav-drawer-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .8rem 1rem;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #07090f;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 8px;
  text-decoration: none;
  transition: filter .2s;
}

.nav-drawer-store:hover {
  filter: brightness(1.12);
}

.nav-drawer-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(96, 165, 250, .08);
  border: 1px solid rgba(96, 165, 250, .25);
  color: var(--gold);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: .65rem;
  box-sizing: border-box;
}

.nav-drawer-panel:hover {
  background: rgba(96, 165, 250, .16);
  border-color: var(--gold);
}

.nav-drawer-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--text-hi);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: .65rem;
  box-sizing: border-box;
}

.nav-drawer-alert:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .3);
}

@media(max-width: 768px) {

  /* ── Navbar ── */
  nav {
    padding: 0 1rem;
    gap: .5rem;
  }

  .nav-links {
    display: none;
  }

  /* all nav links live in the drawer on mobile */
  .nav-hamburger {
    display: flex;
    margin-left: 0;
  }

  .nav-server-ip {
    display: none !important;
  }

  .btn-store {
    display: none !important;
  }

  .btn-panel {
    display: none !important;
  }

  .btn-nav-alert {
    display: none !important;
  }

  /* ── Page containers ── */
  .gladius-page-container {
    padding: 1.5rem 1rem 3rem;
  }

  .subpage-wrap {
    padding: 1.5rem 1rem 3rem;
  }

  .home-layout {
    padding: 1.5rem 1rem 3rem;
  }

  .gladius-card {
    padding: 1.1rem 1.25rem;
  }

  /* ── Profile banner ── */
  .gp-actions {
    top: .75rem;
    right: .75rem;
  }

  .gp-stats {
    gap: 1rem;
  }

  /* ── Forum: hide last-reply column on tight screens ── */
  .forum-thread .thread-reply {
    display: none;
  }
}

@media(max-width: 480px) {

  /* ── Hero ── */
  .hero-home-content {
    padding: 3.5rem 1rem 3rem;
  }

  .mini-hero {
    height: 180px;
  }

  /* ── Stats bar: 2-column ── */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Store banner: stack ── */
  .store-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  /* ── Page header ── */
  .gladius-page-title {
    font-size: 1.35rem !important;
  }

  .gladius-page-header {
    margin-bottom: 1rem;
  }

  /* ── Auth card ── */
  .gladius-auth-card {
    padding: 1.5rem 1.25rem;
  }

  /* ── gs-nav horizontal on tiny screens ── */
  .gs-nav-link {
    padding: .6rem .7rem;
    font-size: .72rem;
  }

  /* ── Leaderboard: keep only rank + player + top score ── */
  .lb-row {
    grid-template-columns: 32px 1fr 72px;
  }

  .lb-row>*:nth-child(4),
  .lb-row>*:nth-child(5) {
    display: none;
  }
}

/* ═══════════════════════════
   FORUM LAYOUT
═══════════════════════════ */

/* Breadcrumb */
.gladius-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-dim);
  list-style: none;
}

.gladius-breadcrumb-item {
  color: var(--text-dim);
  transition: color .2s;
}

.gladius-breadcrumb-item:hover {
  color: var(--gold);
}

.gladius-breadcrumb-item.active {
  color: var(--text-hi);
  font-weight: 600;
}

/* Page header */
.gladius-page-header {
  margin-bottom: 1.5rem;
}

.gladius-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-hi);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}

/* Content grid — single column by default, grows to multi-column with sidebars */
.gladius-content-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gladius-content-grid.has-widgets {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.gladius-content-grid.has-widgets .gladius-sidebar-left {
  order: -1;
}

.gladius-content-grid.has-widgets .gladius-main-content {
  order: 0;
}

.gladius-content-grid.has-widgets .gladius-sidebar-right {
  order: 1;
}

/* Sidebar */
.gladius-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

/* Main content */
.gladius-main-content {
  min-width: 0;
}

/* Widget wrapper */
.gladius-widget-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.gladius-widget-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  background: rgba(96, 165, 250, .04);
}

.gladius-widget-title svg {
  flex-shrink: 0;
}

.gladius-widget-body {
  padding: .75rem 1rem;
}

.gladius-widget-empty {
  font-size: .85rem;
  color: var(--text-dim);
  padding: .25rem 0;
}

/* Alert banner (spam warning etc.) */
.gladius-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid;
  font-size: .875rem;
  line-height: 1.5;
}

.gladius-alert svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

.gladius-alert-warning {
  background: rgba(96, 165, 250, .07);
  border-color: rgba(96, 165, 250, .22);
  color: var(--gold-l);
}

/* Latest-posts widget inside forum sidebar */
.lp-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}

.lp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-info {
  min-width: 0;
  flex: 1;
}

.lp-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color .2s;
}

.lp-title:hover {
  color: var(--gold);
}

.lp-meta {
  font-size: .74rem;
  color: var(--text-dim);
  margin-top: .15rem;
}

/* Mobile: collapse sidebars below the main content */
@media (max-width: 900px) {
  .gladius-content-grid.has-widgets {
    grid-template-columns: 1fr;
  }

  .gladius-sidebar {
    position: static;
  }

  .mobile-hidden {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .mobile-hidden {
    display: block;
  }
}