/* GTA Bot Website - GTA 5 / Money theme, parallax, 3D GUI, multi-page */
/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fixed city background – stays still while UI moves */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: url('../wp8606700.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9;
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.15) 0%, rgba(10, 14, 10, 0.25) 50%, rgba(10, 14, 10, 0.4) 100%);
  pointer-events: none;
}

/* ========== GTA + Money Theme Variables ========== */
:root {
  --gta-green: #00ff88;
  --gta-green-dim: #00cc6a;
  --gta-green-glow: rgba(0, 255, 136, 0.4);
  --gta-gold: #ffd700;
  --gta-gold-dim: #c9a227;
  --gta-gold-glow: rgba(255, 215, 0, 0.35);
  --money-green: #00e676;
  --cash-gold: #ffb300;
  --gta-red: #8b0000;
  --gta-red-bright: #e74c3c;
  --neon-border: rgba(0, 255, 136, 0.5);
  --bg-dark: #0a0e0a;
  --bg-section: #121a12;
  --bg-card: #1a241a;
  --bg-card-elevated: #222e22;
  --text-light: #e8f0e8;
  --text-muted: #7a8a7a;
  --border-subtle: rgba(0, 255, 136, 0.12);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--gta-green-glow);
  --transition-ui: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Typography ========== */
h1, h2, h3, .nav-brand {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

a {
  color: var(--gta-green);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gta-gold); }

/* ========== Layout ========== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(10, 14, 10, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.container--wide {
  max-width: 1100px;
}

section {
  padding: 4rem 0;
  position: relative;
}

/* ========== Multi-page app (slide strip + transitions) ========== */
.app-pages {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
}

.app-pages-inner {
  display: flex;
  flex-direction: row;
  width: 800%;
  min-height: 100vh;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .app-pages-inner {
    transition: none;
  }
}

.app-pages-inner .page {
  width: 12.5%;
  min-width: 12.5%;
  flex-shrink: 0;
  min-height: 100vh;
  position: relative;
  opacity: 1;
  visibility: visible;
}

.page:not(.is-active) {
  pointer-events: none;
  visibility: visible;
}

.page.is-active {
  pointer-events: auto;
}

.page--full {
  min-height: 100vh;
  flex-direction: column;
}

.page-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.page-nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.page-nav-link:hover {
  color: var(--gta-green);
}

.page-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5rem 0 4rem;
  -webkit-overflow-scrolling: touch;
}

.page-scroll--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 0px);
  padding: 6rem 0;
}

.home-features {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.home-features .page-title { margin-bottom: 0.5rem; }
.home-features .page-subtitle { margin-bottom: 1.5rem; }

.page-title {
  text-align: center;
  color: var(--gta-green);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 24px var(--gta-green-glow);
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* Page backgrounds (parallax) */
.page-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-bg--grid {
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.8;
}

.page-bg--grid-alt {
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.9;
}

.page-bg--money {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 230, 118, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 60%, rgba(255, 179, 0, 0.08) 0%, transparent 50%);
}

.page-bg--support {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(231, 76, 60, 0.1) 0%, transparent 60%);
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.5rem;
  color: var(--gta-green);
}
.nav-brand:hover { color: var(--gta-green); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
}
.nav-links a:hover { color: var(--gta-green); }

/* Auth nav: Dashboard hidden until logged in; Login visible until then (JS toggles) */
.nav-item--auth-user {
  display: none;
}

.nav-links a.active {
  color: var(--gta-green);
  text-shadow: 0 0 20px var(--gta-green-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
}

/* ========== Hero (clean: city + logo only) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-emblem {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url('../assets/gta5_emblem.svg') center / 55% contain no-repeat;
  opacity: 0.22;
}

.hero-content {
  position: relative;
  z-index: 1;
  transform: translateY(0);
  background: rgba(10, 14, 10, 0.6);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
}

.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gta-gold-dim);
  border: 1px solid var(--gta-gold-dim);
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  color: var(--gta-green);
  text-shadow: 0 0 30px var(--gta-green-glow);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  background: var(--gta-green);
  color: var(--bg-dark);
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover {
  background: var(--gta-gold);
  color: var(--bg-dark);
  transform: scale(1.02);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-cta--primary {
  box-shadow: 0 10px 30px var(--gta-green-glow);
}

.hero-cta--secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.hero-cta--secondary:hover {
  background: rgba(0, 0, 0, 0.6);
  color: var(--gta-green);
}

/* ========== Features Section ========== */
.features {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.features h2 {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.features-grid li {
  list-style: none;
}

.features-grid--3d {
  perspective: 1200px;
}

.features-grid--3d .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1.5rem 1rem;
  min-height: 200px;
  aspect-ratio: 3 / 4;
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
  transform: translateZ(0);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui), border-color var(--transition-ui), background var(--transition-ui);
}

.features-grid--3d .feature-card:hover {
  transform: translateY(-6px) translateZ(12px);
  border-color: var(--gta-green);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 255, 136, 0.12);
  background: var(--bg-card-elevated);
}

.feature-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.feature-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
  line-height: 1.35;
  margin-top: auto;
}

/* ========== Help Section & Accordions ========== */
.help {
  background: var(--bg-dark);
}

.help h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gta-green);
}

.help-instructions {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gta-green);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.help-instructions h3 {
  color: var(--gta-gold-dim);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.help-instructions ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-light);
}

.help-instructions li {
  margin-bottom: 0.5rem;
}

.help-instructions li:last-child {
  margin-bottom: 0;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.accordion-item.is-open {
  border-color: var(--gta-green-dim);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.accordion-trigger:hover {
  background: #2a2a2a;
  color: var(--gta-green);
}

.accordion-trigger::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.accordion-item.is-open .accordion-trigger::after {
  transform: rotate(-135deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-content {
  overflow: hidden;
}

.accordion-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.accordion-body h3 {
  color: var(--gta-gold-dim);
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.accordion-body h3:first-child { margin-top: 0; }

.accordion-body ul,
.accordion-body p {
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.accordion-body ul {
  list-style: none;
  padding-left: 0;
}

.accordion-body li {
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}
.accordion-body li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gta-green);
}

.accordion-body strong { color: var(--gta-gold-dim); }

/* Commands table inside Help */
.commands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.commands-table th,
.commands-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.commands-table th {
  color: var(--gta-gold-dim);
  font-weight: 600;
}

.commands-table code {
  background: rgba(0, 255, 0, 0.1);
  color: var(--gta-green);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ========== Commands page — 3D animated deck ========== */
.commands-deck {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
  perspective: 1400px;
}

.commands-category {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

.commands-category:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 255, 136, 0.08);
}

.commands-category-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--gta-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.05em;
}

.command-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.command-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  background: rgba(34, 46, 34, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: transform var(--transition-ui), border-color var(--transition-ui), box-shadow var(--transition-ui);
  transform: translateZ(0);
}

.command-card:hover {
  transform: translateY(-2px) translateZ(8px);
  border-color: var(--neon-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 12px var(--gta-green-glow);
}

.command-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  color: var(--gta-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.command-card span {
  color: var(--text-muted);
  font-size: 0.85em;
  line-height: 1.4;
}

/* Staggered reveal for command cards (when page becomes active) */
.page.is-active .commands-category {
  animation: commandCategoryIn 0.5s var(--transition-ui) backwards;
}

.page.is-active .commands-category:nth-child(1) { animation-delay: 0.05s; }
.page.is-active .commands-category:nth-child(2) { animation-delay: 0.1s; }
.page.is-active .commands-category:nth-child(3) { animation-delay: 0.15s; }
.page.is-active .commands-category:nth-child(4) { animation-delay: 0.2s; }
.page.is-active .commands-category:nth-child(5) { animation-delay: 0.25s; }
.page.is-active .commands-category:nth-child(6) { animation-delay: 0.3s; }
.page.is-active .commands-category:nth-child(7) { animation-delay: 0.35s; }

@keyframes commandCategoryIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Stats page ========== */
.stats-connection {
  text-align: center;
  margin: -0.5rem 0 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}
.stats-connection.stats-connection--live {
  color: var(--gta-green);
}
.stats-connection.stats-connection--error {
  color: var(--gta-red-bright);
}
.stats-connection.stats-connection--checking {
  color: var(--text-muted);
}

.stats-connect-msg {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  text-align: center;
}
.stats-connect-msg code { color: var(--gta-green); }

.stats-global {
  margin-bottom: 2.5rem;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.stat-card--cash .stat-value,
.stat-card--earned .stat-value,
.stat-card--networth .stat-value { color: var(--money-green); }
.stat-card--users .stat-value { color: var(--gta-green); }
.stat-card--chips .stat-value { color: var(--gta-gold); }
.stat-card--level .stat-value { color: var(--cash-gold); }
.stat-card--active .stat-value { color: var(--gta-green-dim); }

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
}

.stats-charts {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) {
  .stats-charts { grid-template-columns: 1fr; }
}
.stats-chart-wrap {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  max-height: 280px;
}
.stats-chart-wrap--donut {
  max-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats-chart-title {
  margin-bottom: 0.75rem;
  color: var(--gta-gold-dim);
  font-size: 1rem;
}
.stats-chart {
  max-height: 220px;
}
.stats-chart--donut {
  max-height: 260px;
}
.stat-value[data-animating="true"] {
  transition: opacity 0.15s ease;
}

.stats-leaderboards {
  margin-top: 2rem;
}
.stats-leaderboards .page-title {
  margin-bottom: 1rem;
}
.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.leaderboard-tab {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition-ui), color var(--transition-ui), border-color var(--transition-ui);
}
.leaderboard-tab:hover {
  background: var(--bg-card-elevated);
  color: var(--gta-green);
  border-color: var(--border-subtle);
}
.leaderboard-tab.active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--gta-green);
  border-color: var(--gta-green-dim);
}
.leaderboard-content {
  min-height: 120px;
}
.leaderboard-loading {
  color: var(--text-muted);
  padding: 1rem;
}
.leaderboard-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(8px);
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.leaderboard-table th {
  color: var(--gta-gold-dim);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}
.leaderboard-table tbody tr:hover {
  background: rgba(0, 255, 136, 0.06);
}
.leaderboard-table code {
  font-size: 0.85em;
  color: var(--gta-green);
}
.leaderboard-error {
  color: var(--gta-red-bright);
  padding: 1rem;
}

/* ========== Support Section ========== */
.support {
  background: var(--bg-section);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.support h2 {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.support p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.support-cta {
  display: inline-block;
  background: var(--gta-red-bright);
  color: #fff;
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.support-cta:hover {
  background: #c0392b;
  color: #fff;
  transform: scale(1.02);
}

.support-cta--primary {
  box-shadow: 0 8px 26px rgba(231, 76, 60, 0.45);
}

.support-cta--secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.support-cta--secondary:hover {
  background: rgba(0, 0, 0, 0.6);
  color: var(--gta-green);
}

/* Section grid overlays for futuristic background */
.features::before,
.support::before {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  top: -40%;
  bottom: -40%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(0, 255, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.12) 1px, transparent 1px);
  background-size: 120px 60px, 120px 60px;
  background-position: 0 0, 0 0;
  animation: section-grid-pan 40s linear infinite;
}

.features::before {
  transform-origin: center top;
  transform:
    perspective(900px)
    rotateX(70deg)
    translate3d(0, 0, 0);
}

.support::before {
  transform-origin: center bottom;
  transform:
    perspective(900px)
    rotateX(78deg)
    translate3d(0, 0, 0);
}

@keyframes section-grid-pan {
  0% {
    background-position: 0 0, 0 0;
  }
  50% {
    background-position: 120px 60px, -120px -60px;
  }
  100% {
    background-position: 240px 120px, -240px -120px;
  }
}

/* ========== Login Page ========== */
.login-card {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.login-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #5865f2;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.login-btn:hover {
  background: #4752c4;
  color: #fff;
  transform: scale(1.02);
}

.login-btn-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}

.login-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-note code {
  background: rgba(0, 255, 136, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--gta-green);
}

/* ========== Dashboard Page ========== */
.dashboard-guest-card {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.dashboard-guest-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dashboard-cta {
  display: inline-block;
  background: #5865f2;
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.dashboard-cta:hover {
  background: #4752c4;
  color: #fff;
  transform: scale(1.02);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background-size: cover;
  background-position: center;
}

.dashboard-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-username {
  color: var(--gta-green);
  margin-bottom: 0;
}

.dashboard-user-id {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.dashboard-logout {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(192, 57, 43, 0.2);
  border: 2px solid var(--gta-red, #e74c3c);
  color: #ff6b6b;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.dashboard-logout:hover {
  color: #fff;
  border-color: var(--gta-red, #e74c3c);
  background: rgba(192, 57, 43, 0.45);
}

.dashboard-refresh {
  align-self: flex-start;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.dashboard-refresh:hover:not(:disabled) {
  color: var(--gta-green);
  border-color: var(--gta-green);
  background: rgba(0, 255, 136, 0.08);
}

.dashboard-refresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== Dashboard (Professional Layout) ========== */
.dashboard-container {
  padding: 2rem;
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(26, 36, 26, 0.95) 0%, rgba(18, 26, 18, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.dashboard-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  border: 2px solid var(--gta-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.dashboard-profile-meta {
  flex: 1;
  min-width: 0;
}

.dashboard-profile-name {
  font-size: 1.5rem;
  color: var(--gta-green);
  margin-bottom: 0.25rem;
}

.dashboard-profile-id {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.dashboard-profile-meta-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dashboard-panel {
  background: linear-gradient(145deg, rgba(26, 36, 26, 0.92) 0%, rgba(20, 28, 20, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

.dashboard-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dashboard-panel--full {
  grid-column: 1 / -1;
}

.dashboard-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gta-green);
  padding: 1rem 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-panel-icon {
  font-size: 1.1rem;
}

.dashboard-panel-content {
  padding: 1rem 1.25rem;
}

.dashboard-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.06);
}

.dashboard-stat-row:last-child,
.dashboard-stat-row.dashboard-stat-row--total {
  border-bottom: none;
}

.dashboard-stat-row--total {
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-subtle);
}

.dashboard-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dashboard-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.dashboard-stat-value--cash {
  color: var(--money-green);
}

.dashboard-activity-breakdown {
  padding: 1rem 1.25rem;
  min-height: 80px;
}

.dashboard-activity-breakdown .dashboard-activity-group {
  margin-bottom: 1.25rem;
}

.dashboard-activity-breakdown .dashboard-activity-group:last-child {
  margin-bottom: 0;
}

.dashboard-activity-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gta-gold-dim);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.dashboard-activity-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-activity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.85rem;
}

.dashboard-activity-chip-name {
  color: var(--text-muted);
}

.dashboard-activity-chip-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--gta-green);
}

.dashboard-footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.dashboard-footer-item {
  font-size: 0.9rem;
}

.dashboard-footer-label {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.dashboard-loading {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dashboard-stats-error {
  background: rgba(255, 180, 0, 0.12);
  border: 1px solid rgba(255, 180, 0, 0.4);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.dashboard-stats-error code {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.dashboard-stats-error-refresh {
  margin-left: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gta-green);
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--gta-green);
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
}

.dashboard-stats-error-refresh:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.25);
}

.dashboard-stats-error-refresh:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section-title {
  font-size: 1.1rem;
  color: var(--gta-green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.dashboard-playing-since {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-value--text {
  font-size: 1rem;
  font-family: inherit;
}

.dashboard-cards {
  margin-bottom: 1rem;
}

.dashboard-source {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.dashboard-source code {
  background: rgba(0, 255, 136, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--gta-green);
}

/* ========== Coming Soon (Setup) Page ========== */
.coming-soon-card {
  background: rgba(26, 36, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.2);
  color: var(--gta-gold);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coming-soon-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.coming-soon-features {
  list-style: none;
  text-align: left;
  max-width: 280px;
  margin: 0 auto;
}

.coming-soon-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  padding-left: 1.5rem;
}

.coming-soon-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gta-green);
  font-weight: 600;
}

.coming-soon-features li:last-child {
  border-bottom: none;
}

/* ========== Scroll reveal utility ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--gta-green); }

.footer-back {
  margin-top: 0.5rem;
}

.footer-back a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ========== Legal Pages (shared) ========== */
.legal-page {
  padding-top: 5rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  color: var(--gta-green);
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  color: var(--gta-gold-dim);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page ul {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page li { margin-bottom: 0.35rem; }

/* ========== Parallax section backgrounds ========== */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.features.parallax-section {
  background-image: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, rgba(13,13,13,0.98) 100%);
}

.support.parallax-section {
  background-image: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, rgba(20,10,10,0.98) 100%);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 10, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.is-open { display: flex; }

  .nav-toggle { display: block; }

  section { padding: 3rem 0; }

  .page-scroll { padding: 4rem 0 3rem; }

  .command-cards {
    grid-template-columns: 1fr;
  }

  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .leaderboard-tabs {
    flex-direction: column;
    align-items: center;
  }
  .leaderboard-tab { flex: 0 1 auto; min-width: 200px; }

  .accordion-trigger { font-size: 0.95rem; padding: 0.9rem 1rem; }

  .commands-table {
    font-size: 0.8rem;
  }

  .commands-table th,
  .commands-table td {
    padding: 0.4rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accordion-panel,
  .accordion-trigger::after { transition: none; }
  .page { transition: none; }
  .page.is-active .commands-category { animation: none; }
}
