:root {
  --green: #02b757;
  --gold: #ffc936;
  --gold-dark: #e6a800;
  --panel-dark: #232845;
  --text-on-dark: #eef1ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: 'Nunito', -apple-system, sans-serif;
  background: linear-gradient(165deg, #0f1228 0%, #1a2045 45%, #222a55 100%);
  background-attachment: fixed;
  color: var(--text-on-dark);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; text-decoration: none; }

.topbar {
  background: rgba(18, 22, 43, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-mark {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.topbar-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topbar-nav.mobile-nav { display: none; }

.topbar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(238, 241, 255, 0.72);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.topbar-nav-icon { height: 16px; width: auto; flex-shrink: 0; }

.topbar-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.topbar-nav-link.active {
  color: #fff;
  background: rgba(255, 201, 54, 0.12);
  border: 1px solid rgba(255, 201, 54, 0.28);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.topbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(238, 241, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 201, 54, 0.25);
}

.topbar-tag-icon { height: 16px; width: auto; }

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger-btn.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { opacity: 0; }
.burger-btn.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.mobile-menu-backdrop.show { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.page-head { padding: 28px 0 24px; }

.page-head h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.page-subtitle {
  font-size: 0.92rem;
  color: rgba(238, 241, 255, 0.75);
  max-width: 640px;
}

footer {
  text-align: center;
  padding: 20px 16px 40px;
  font-size: 0.8rem;
  color: rgba(238, 241, 255, 0.4);
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .topbar { padding: 10px 0; }
  .topbar-inner { gap: 12px; }
  .topbar-left { gap: 0; flex: 1; min-width: 0; }
  .topbar-left .topbar-nav { display: none; }
  .logo-mark { height: 24px; }
  .topbar-tag { font-size: 0.68rem; padding: 6px 10px; }
  .topbar-tag-icon { height: 14px; }
  .burger-btn { display: inline-flex; }
  .mobile-menu-backdrop { display: block; }
  .topbar-nav.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    padding: 12px 16px 16px;
    background: rgba(18, 22, 43, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 95;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s, opacity 0.22s;
  }
  .topbar.nav-open .topbar-nav.mobile-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topbar-nav.mobile-nav .topbar-nav-link {
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
  }
  .topbar-nav.mobile-nav .topbar-nav-icon { height: 18px; }
}
