/* ========================================
   ARCADIAN - Global Styles
   ======================================== */

/* Fonts loaded via HTML link for better performance */
/* Fallback font stacks for FOUT prevention */

/* CSS Variables */
:root {
  --pink: #ff2d75;
  --pink-light: #ff5c8d;
  --cyan: #00f5ff;
  --cyan-light: #5ff5ff;
  --green: #39ff14;
  --yellow: #ffff00;
  --purple: #bf5af2;

  --bg-dark: #0a0a12;
  --bg-card: #0f0f1a;
  --bg-darker: #08080e;

  --white: #ffffff;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);

  --font-pixel: 'Press Start 2P', cursive;
  --font-orbitron: 'Orbitron', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Typography */
.font-pixel { font-family: var(--font-pixel); }
.font-orbitron { font-family: var(--font-orbitron); }

/* Neon Text Effects */
.neon-text-pink {
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink), 0 0 40px var(--pink);
}

.neon-text-cyan {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan), 0 0 40px var(--cyan);
}

.neon-text-green {
  color: var(--green);
  text-shadow: 0 0 10px var(--green), 0 0 20px var(--green), 0 0 40px var(--green);
}

.text-gradient-neon {
  background: linear-gradient(135deg, var(--pink), var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid Background */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   PARALLAX SECTIONS - Fixed Background Effect
   ======================================== */
.parallax-section {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Clip the fixed background to this section */
  clip-path: inset(0);
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

@media (max-width: 768px) {
  .parallax-section {
    clip-path: none;
  }
  .parallax-bg {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-dark) 0%,
    rgba(10, 10, 18, 0.2) 30%,
    rgba(10, 10, 18, 0.2) 70%,
    var(--bg-dark) 100%
  );
  z-index: 1;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--white-10);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo-text {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--white);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  font-family: var(--font-orbitron);
  font-size: 13px;
  font-weight: 500;
  color: var(--white-60);
  transition: color 0.3s;
}

.navbar-link:hover {
  color: var(--white);
}

.navbar-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-mobile-btn {
  display: none;
}

.navbar-user-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-user-name {
  font-family: var(--font-orbitron);
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  padding: 8px 16px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 255, 0.2);
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-mobile-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--white-5);
    border-radius: 8px;
    color: var(--white);
  }

  .navbar-user-name {
    display: none;
  }

  .navbar-user-section .btn {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 45, 117, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 30px rgba(255, 45, 117, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white-5);
  border: 1px solid var(--white-20);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white-10);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg-dark);
}

.btn-outline-cyan {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.5);
  color: var(--cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 245, 255, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 10, 18, 0.9) 0%,
    rgba(10, 10, 18, 0.7) 50%,
    var(--bg-dark) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 128px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 16px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(32px, 8vw, 72px);
  margin-bottom: 32px;
}

.hero-description {
  font-family: var(--font-orbitron);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--white-80);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 50px;
  margin-bottom: 48px;
}

.hero-credits-badge span {
  font-family: var(--font-orbitron);
  font-size: 14px;
  color: var(--green);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
  padding: 16px;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 12px;
}

.hero-stat-value {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-family: var(--font-orbitron);
  font-size: 10px;
  color: var(--white-50);
  text-transform: uppercase;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator-inner {
  width: 24px;
  height: 40px;
  border: 2px solid var(--white-20);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  background: var(--pink);
  border-radius: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #0b0b14;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-badge-cyan {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.section-badge-green {
  color: var(--green);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.section-badge-yellow {
  color: var(--yellow);
  background: rgba(255, 255, 0, 0.1);
  border: 1px solid rgba(255, 255, 0, 0.3);
}

.section-badge-pink {
  color: var(--pink);
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-orbitron);
  font-size: 18px;
  color: var(--white-60);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--white-10);
  transition: all 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--white-20);
}

.game-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.game-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--yellow);
  border-radius: 50px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: black;
  text-transform: uppercase;
}

.game-card-content {
  padding: 24px;
}

.game-card-title {
  font-family: var(--font-pixel);
  font-size: 18px;
  margin-bottom: 8px;
}

.game-card-subtitle {
  font-family: var(--font-orbitron);
  font-size: 12px;
  color: var(--white-50);
  margin-bottom: 16px;
}

.game-card-description {
  font-size: 14px;
  color: var(--white-40);
  margin-bottom: 24px;
  line-height: 1.6;
}

.game-card-info {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--white-40);
}

.game-card-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.game-card-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--white-5);
  color: var(--white-30);
}

.game-card-buttons {
  display: flex;
  gap: 12px;
}

.game-card-btn-secondary {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-orbitron);
  font-weight: 500;
  font-size: 12px;
  color: var(--white-70);
  background: var(--white-5);
  border: 1px solid var(--white-10);
  text-align: center;
  transition: all 0.3s;
}

.game-card-btn-secondary:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  color: var(--white);
}

.game-card-buttons .game-card-btn {
  flex: 1.5;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.step-card {
  text-align: center;
  padding: 24px;
  background: transparent;
  border: 1px solid var(--white-10);
  border-radius: 16px;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--white-20);
}

.step-number {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--white-40);
  margin-bottom: 16px;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--white);
  margin-bottom: 8px;
}

.step-description {
  font-size: 14px;
  color: var(--white-50);
}

.code-example {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.code-example-label {
  font-size: 14px;
  color: var(--white-40);
  margin-bottom: 12px;
}

.code-example-code {
  font-family: var(--font-pixel);
  font-size: clamp(24px, 5vw, 36px);
  color: var(--cyan);
  letter-spacing: 8px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--white-20);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-description {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.6;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--white-10);
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  margin-top: -16px;
  margin-bottom: 16px;
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--pink);
  border-radius: 50px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--white);
  text-transform: uppercase;
}

.pricing-active-badge {
  background: var(--green);
  left: auto;
  right: 12px;
  transform: none;
}

.pricing-card.plan-active {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.pricing-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pricing-name {
  font-family: var(--font-pixel);
  font-size: 14px;
  margin-bottom: 8px;
}

.pricing-description {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 16px;
}

.pricing-price-value {
  font-family: var(--font-pixel);
  font-size: 32px;
  color: var(--white);
}

.pricing-price-period {
  font-size: 14px;
  color: var(--white-40);
  margin-left: 8px;
}

.pricing-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  margin-bottom: 12px;
}

.pricing-credits span {
  font-size: 14px;
  color: var(--green);
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--white-60);
  margin-bottom: 12px;
}

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: rgba(255, 45, 117, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-orbitron);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--white-40);
  transition: all 0.3s;
}

.faq-item.active .faq-question svg {
  color: var(--pink);
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.7;
  border-top: 1px solid var(--white-5);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--white-5);
  padding: 64px 0 32px;
}

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

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--white);
}

.footer-description {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 24px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-column-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--white-80);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--white-50);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-link-badge {
  font-size: 8px;
  padding: 2px 8px;
  background: rgba(255, 45, 117, 0.2);
  color: var(--pink);
  border-radius: 50px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--white-5);
}

.footer-copyright {
  font-size: 14px;
  color: var(--white-30);
}

/* ========================================
   AUTH PAGE
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-title {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--white-50);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-family: var(--font-orbitron);
  font-size: 12px;
  color: var(--white-60);
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  transition: border-color 0.3s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.auth-input::placeholder {
  color: var(--white-30);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--white-10);
}

.auth-divider-text {
  font-size: 12px;
  color: var(--white-40);
}

.auth-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  transition: all 0.3s;
}

.auth-social-btn:hover {
  background: var(--white-10);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--white-50);
}

.auth-footer a {
  color: var(--cyan);
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  padding: 12px;
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 8px;
  color: var(--pink);
  font-size: 14px;
  text-align: center;
  display: none;
  margin-bottom: 16px;
}

.auth-error.show {
  display: block;
}

/* ========================================
   DASHBOARD PAGE
   ======================================== */
.dashboard {
  padding-top: 100px;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 48px;
}

.dashboard-welcome {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}

.dashboard-subtitle {
  font-size: 16px;
  color: var(--white-50);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.dashboard-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 24px;
}

.dashboard-stat-label {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 8px;
}

.dashboard-stat-value {
  font-family: var(--font-pixel);
  font-size: 28px;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.dashboard-action-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.dashboard-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.dashboard-action-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--white);
  margin-bottom: 8px;
}

.dashboard-action-description {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 16px;
  flex: 1;
}

/* ========================================
   JOIN PAGE
   ======================================== */
.join-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 24px;
}

.join-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.join-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.join-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--white-5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-title {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
}

.join-subtitle {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 24px;
}

.join-input {
  width: 100%;
  padding: 16px;
  background: var(--white-5);
  border: 2px solid var(--white-10);
  border-radius: 12px;
  color: var(--cyan);
  font-family: var(--font-pixel);
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.join-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.join-input::placeholder {
  color: var(--white-20);
  letter-spacing: 4px;
}

.join-error {
  display: none;
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 8px;
  color: var(--pink);
  font-size: 14px;
}

.join-error.show {
  display: block;
}

.join-submit {
  width: 100%;
}

.join-qr-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--white-5);
  font-size: 12px;
  color: var(--white-40);
}

.join-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white-5);
  border-radius: 8px;
  margin-bottom: 24px;
}

.join-code-label {
  font-size: 12px;
  color: var(--white-40);
}

.join-code-value {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 4px;
}

.join-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.join-auth-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--white-50);
}

.join-auth-footer a {
  color: var(--cyan);
}

.join-auth-footer a:hover {
  text-decoration: underline;
}

.join-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--white-10);
  border-radius: 8px;
  color: var(--white-40);
  font-size: 14px;
  transition: all 0.3s;
}

.join-back-btn:hover {
  background: var(--white-5);
  color: var(--white);
}

.join-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--green);
}

.join-spinner {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.spinner-large {
  width: 48px;
  height: 48px;
  border: 3px solid var(--white-10);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.join-home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--white-40);
  transition: color 0.3s;
}

.join-home-link:hover {
  color: var(--white);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-pink { color: var(--pink); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-white { color: var(--white); }
.text-white-50 { color: var(--white-50); }

.hidden { display: none; }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--white-20);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   CREDITS PAGE
   ======================================== */
.credits-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.credits-balance {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 16px;
  padding: 24px 32px;
  margin: 40px auto;
  max-width: 400px;
}

.credits-balance-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.credits-balance-info {
  flex: 1;
}

.credits-balance-label {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 4px;
}

.credits-balance-value {
  font-family: var(--font-orbitron);
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.credits-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.credits-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.credits-card.popular {
  border-color: rgba(255, 45, 117, 0.5);
  background: linear-gradient(180deg, rgba(255, 45, 117, 0.1) 0%, var(--bg-card) 50%);
}

.credits-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
}

.credits-card-amount {
  font-family: var(--font-orbitron);
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
}

.credits-card-label {
  font-size: 14px;
  color: var(--white-50);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.credits-card-price {
  font-family: var(--font-orbitron);
  font-size: 24px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 8px;
}

.credits-card-savings {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 4px;
}

.credits-card-unit {
  font-size: 11px;
  color: var(--white-50);
  margin-bottom: 8px;
}

.credits-card-description {
  font-size: 13px;
  color: var(--white-40);
  margin-bottom: 20px;
}

.credits-card-btn {
  width: 100%;
}

.credits-subscriptions {
  margin-top: 80px;
  text-align: center;
}

.credits-subscriptions-title {
  font-family: var(--font-orbitron);
  font-size: 28px;
  font-weight: 700;
}

.credits-subscriptions-subtitle {
  color: var(--white-50);
  margin-top: 8px;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 40px auto 0;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--white-10);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-orbitron);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
}

.profile-email {
  font-size: 14px;
  color: var(--white-50);
  margin-top: 4px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-title {
  font-family: var(--font-orbitron);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-stat {
  text-align: center;
  padding: 16px;
  background: var(--white-5);
  border-radius: 12px;
}

.profile-stat-value {
  font-family: var(--font-orbitron);
  font-size: 28px;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 13px;
  color: var(--white-50);
  margin-top: 4px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.profile-message.success {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--green);
}

.profile-message.error {
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
  color: var(--pink);
}

.btn-danger {
  background: rgba(255, 45, 117, 0.2);
  color: var(--pink);
  border: 1px solid rgba(255, 45, 117, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 45, 117, 0.3);
  border-color: var(--pink);
}

/* ========================================
   LEGAL PAGES (Terms, Privacy)
   ======================================== */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 60px;
}

.legal-title {
  font-family: var(--font-orbitron);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.legal-date {
  font-size: 14px;
  color: var(--white-40);
}

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

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-family: var(--font-orbitron);
  font-size: 20px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--white-10);
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 24px 0 12px;
}

.legal-section p {
  color: var(--white-80);
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-section ul {
  margin: 12px 0 12px 24px;
}

.legal-section li {
  color: var(--white-80);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

.legal-section a {
  color: var(--cyan);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--cyan-light);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 14px;
  color: var(--white-40);
  transition: color 0.3s;
}

.footer-legal-links a:hover,
.footer-legal-links a.active {
  color: var(--cyan);
}

/* ========================================
   RESPONSIVE - Credits & Profile
   ======================================== */
@media (max-width: 768px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .credits-balance {
    flex-direction: column;
    text-align: center;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .legal-title {
    font-size: 24px;
  }

  .legal-section h2 {
    font-size: 18px;
  }
}

/* ========================================
   CREDITS ADDON - Compact Bar
   ======================================== */
.credits-addon {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
}

.credits-addon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.credits-addon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-orbitron);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.credits-addon-note {
  font-size: 12px;
  color: var(--white-40);
}

.credits-addon-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.credits-slider-compact {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: var(--white-10);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.credits-slider-compact::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255, 45, 117, 0.4);
}

.credits-slider-compact::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  cursor: pointer;
  border: none;
}

.credits-addon-display {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.credits-addon-amount {
  font-family: var(--font-orbitron);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.credits-addon-amount::after {
  content: ' coins';
  font-size: 12px;
  font-weight: 400;
  color: var(--white-50);
}

.credits-addon-price {
  font-family: var(--font-orbitron);
  font-size: 16px;
  font-weight: 600;
  color: var(--cyan);
}

.credits-addon-savings {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.credits-addon-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border: none;
  border-radius: 8px;
  color: white;
  font-family: var(--font-orbitron);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.credits-addon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 45, 117, 0.4);
}

.credits-addon-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
  max-width: 400px;
}

.slider-label-compact {
  font-family: var(--font-orbitron);
  font-size: 10px;
  color: var(--white-30);
  cursor: pointer;
  transition: color 0.2s;
}

.slider-label-compact:hover,
.slider-label-compact.active {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .credits-addon-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .credits-addon-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .credits-addon-display {
    justify-content: space-between;
  }

  .credits-addon-btn {
    width: 100%;
    margin-top: 8px;
  }
}

/* ========================================
   GAME MODES SECTION
   ======================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mode-card-featured {
  border-width: 2px;
  background: linear-gradient(180deg, rgba(255, 45, 117, 0.05) 0%, transparent 100%);
}

.mode-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-radius: 50px;
  font-family: var(--font-pixel);
  font-size: 9px;
  text-transform: uppercase;
  color: white;
}

.mode-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-title {
  font-family: var(--font-orbitron);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.mode-description {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.5;
  margin-bottom: 20px;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.mode-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--white-70);
  padding: 8px 0;
  border-top: 1px solid var(--white-5);
}

.mode-features li:first-child {
  border-top: none;
}

@media (max-width: 900px) {
  .modes-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .mode-card-featured {
    order: -1;
  }
}

/* ========================================
   DASHBOARD - New Elements
   ======================================== */

.dashboard-username {
  font-size: 14px;
  color: var(--cyan);
  font-family: var(--font-orbitron);
}

.dashboard-section-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--white-80);
  margin-bottom: 20px;
}

/* Credits Section */
.dashboard-credits-section {
  margin-bottom: 32px;
}

.dashboard-credits-card {
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.credits-info .credits-label {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 4px;
}

.credits-info .credits-value {
  font-family: var(--font-pixel);
  font-size: 32px;
}

.credits-actions {
  display: flex;
  gap: 12px;
}

/* Game Stats Grid */
.dashboard-game-stats {
  margin-bottom: 40px;
}

.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.game-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.3s;
}

.game-stat-card:hover {
  border-color: var(--white-30);
}

.game-stat-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.game-stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-10);
}

.game-stat-icon {
  font-size: 24px;
}

.game-stat-name {
  font-family: var(--font-orbitron);
  font-size: 16px;
  font-weight: 600;
}

.coming-soon-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 4px 8px;
  background: var(--white-10);
  border-radius: 4px;
  color: var(--white-50);
}

.game-stat-details {
  display: flex;
  justify-content: space-between;
}

.game-stat-details .stat-item {
  text-align: center;
}

.game-stat-details .stat-number {
  font-family: var(--font-pixel);
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.game-stat-details .stat-label {
  font-size: 12px;
  color: var(--white-50);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--white-20);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--white-10);
}

.modal-header h2 {
  font-family: var(--font-pixel);
  font-size: 14px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white-50);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--white);
}

.modal-body {
  padding: 20px;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-group label {
  display: block;
  font-size: 14px;
  color: var(--white-60);
  margin-bottom: 8px;
}

.modal-form-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--white-20);
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
}

.modal-form-group input:focus {
  outline: none;
  border-color: var(--cyan);
}

/* Autocomplete dropdown */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--white-20);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 100;
}

.autocomplete-dropdown.hidden {
  display: none;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-item:hover {
  background: var(--white-10);
}

.autocomplete-item:last-child {
  border-radius: 0 0 8px 8px;
}

.autocomplete-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.autocomplete-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autocomplete-avatar svg {
  width: 18px;
  height: 18px;
  stroke: var(--white-40);
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-username {
  font-size: 14px;
  color: var(--cyan);
}

.autocomplete-displayname {
  font-size: 12px;
  color: var(--white-50);
}

.autocomplete-empty {
  padding: 12px;
  text-align: center;
  color: var(--white-40);
  font-size: 14px;
}

.modal-balance {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 16px;
}

.modal-error {
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid var(--pink);
  border-radius: 8px;
  padding: 12px;
  color: var(--pink);
  font-size: 14px;
  margin-bottom: 12px;
}

.modal-success {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 12px;
  color: var(--green);
  font-size: 14px;
  margin-bottom: 12px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--white-10);
}

.modal-footer .btn {
  flex: 1;
}

/* Button variants */
.btn-green {
  background: var(--green);
  color: var(--bg-dark);
}

.btn-green:hover {
  background: #5fff5f;
}

.btn-outline-green {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-outline-green:hover {
  background: rgba(57, 255, 20, 0.1);
}

/* Text colors */
.text-muted {
  color: var(--white-30);
}

/* Modal warning */
.modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid var(--pink);
  border-radius: 8px;
  margin-bottom: 16px;
}

.modal-warning svg {
  flex-shrink: 0;
  color: var(--pink);
}

.modal-warning p {
  color: var(--white-80);
  font-size: 14px;
}

.modal-warning strong {
  color: var(--pink);
}

/* Delete consequences list */
.delete-consequences {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--white-60);
  font-size: 14px;
}

.delete-consequences li {
  margin-bottom: 8px;
}

/* Button danger */
.btn-danger {
  background: var(--pink);
  color: var(--white);
}

.btn-danger:hover {
  background: #ff5c8d;
}

.btn-danger:disabled {
  background: var(--white-20);
  color: var(--white-40);
  cursor: not-allowed;
}

/* ========================================
   CREDITS PAGE - WALLET & EXCHANGE
   ======================================== */
.credits-wallet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 48px;
}

.credits-quick-actions {
  display: flex;
  gap: 12px;
}

.credits-section {
  margin-top: 60px;
  margin-bottom: 24px;
}

.credits-section-title {
  font-family: var(--font-orbitron);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.credits-section-subtitle {
  color: var(--white-50);
  margin-top: 8px;
  font-size: 15px;
}

/* Exchange Grid */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.exchange-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.exchange-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
  transform: translateY(-4px);
}

.exchange-card-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exchange-card-info {
  text-align: center;
}

.exchange-card-name {
  font-family: var(--font-orbitron);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.exchange-card-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

.exchange-card-cost {
  text-align: center;
  padding: 8px 16px;
  background: var(--white-5);
  border-radius: 8px;
}

.exchange-cost-value {
  font-family: var(--font-orbitron);
  font-size: 18px;
  font-weight: 700;
  color: var(--pink);
}

.exchange-cost-label {
  font-size: 12px;
  color: var(--white-50);
  display: block;
}

.exchange-btn {
  width: 100%;
}

.exchange-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--white-5);
  border-radius: 12px;
}

.exchange-note p {
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.5;
}

.exchange-confirm-details {
  text-align: center;
  padding: 20px;
}

.exchange-confirm-details p {
  color: var(--white-60);
  margin: 8px 0;
}

.exchange-confirm-cost {
  font-family: var(--font-orbitron);
  font-size: 28px;
  font-weight: 700;
  color: var(--pink) !important;
}

.exchange-confirm-reward {
  font-family: var(--font-orbitron);
  font-size: 20px;
  font-weight: 700;
  color: var(--green) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .credits-wallet {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .credits-quick-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .exchange-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================================
   GAME GRADES & XP SYSTEM
   ======================================== */
.game-grade {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 4px;
  color: white;
  margin-left: auto;
}

.game-xp-bar {
  position: relative;
  height: 20px;
  background: var(--white-10);
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.xp-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-credits-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--white-10);
}

.credits-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.credits-stat-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.credits-won .credits-stat-icon {
  background: rgba(57, 255, 20, 0.2);
  color: var(--green);
}

.credits-lost .credits-stat-icon {
  background: rgba(255, 45, 117, 0.2);
  color: var(--pink);
}

.credits-stat-value {
  font-family: var(--font-orbitron);
  font-size: 16px;
  font-weight: 700;
}

.credits-won .credits-stat-value {
  color: var(--green);
}

.credits-lost .credits-stat-value {
  color: var(--pink);
}

.credits-stat-label {
  font-size: 12px;
  color: var(--white-40);
}

/* Grade colors by level */
.game-grade.grade-1 { background: linear-gradient(135deg, #8b8b8b, #6b6b6b); }
.game-grade.grade-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.game-grade.grade-3 { background: linear-gradient(135deg, #ffd700, #daa520); }
.game-grade.grade-4 { background: linear-gradient(135deg, #00f5ff, #0099cc); }
.game-grade.grade-5 { background: linear-gradient(135deg, #ff2d75, #bf5af2); }
.game-grade.grade-6 { background: linear-gradient(135deg, #ff2d75, #ff5c8d); }
.game-grade.grade-7 { background: linear-gradient(135deg, #bf5af2, #9945ff); }
.game-grade.grade-8 { background: linear-gradient(135deg, #ffff00, #ffa500); }
.game-grade.grade-9 { background: linear-gradient(135deg, #ff0000, #ff4500); }
.game-grade.grade-10 {
  background: linear-gradient(135deg, #ff2d75, #00f5ff, #39ff14);
  background-size: 200% 200%;
  animation: legendaryGrade 2s ease infinite;
}

@keyframes legendaryGrade {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   CRYPTO PAYMENT SECTION
   ======================================== */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.crypto-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.crypto-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-4px);
}

.crypto-card-logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-card-info {
  text-align: center;
}

.crypto-card-name {
  font-family: var(--font-orbitron);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.crypto-card-symbol {
  font-size: 12px;
  color: var(--white-50);
  margin-top: 4px;
}

.crypto-packs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-outline-crypto {
  border: 1px solid rgba(247, 147, 26, 0.5);
  color: #f7931a;
  background: transparent;
}

.btn-outline-crypto:hover {
  background: rgba(247, 147, 26, 0.15);
  border-color: #f7931a;
}

.crypto-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--white-5);
  border-radius: 12px;
}

.crypto-note p {
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.5;
}

.exchange-rate-info {
  color: var(--green);
  font-weight: 600;
}

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

/* ========================================
   DASHBOARD UNIFIED STYLES
   ======================================== */

/* Profile Header */
.dashboard-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  margin-bottom: 32px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar-large svg {
  color: white;
}

.profile-header-info {
  flex: 1;
}

.profile-header-name {
  font-family: var(--font-orbitron);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.profile-header-email {
  font-size: 14px;
  color: var(--white-50);
  margin-bottom: 4px;
}

.profile-header-username {
  font-size: 16px;
  color: var(--pink);
  font-family: var(--font-orbitron);
}

/* Dashboard Sections */
.dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.dashboard-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-orbitron);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white-10);
}

/* Profile Form Inline */
.profile-form-inline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.profile-form-group label {
  display: block;
  font-size: 12px;
  color: var(--white-60);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 16px;
}

.profile-form-group .auth-input {
  width: 100%;
}

.profile-form-group .auth-input[readonly] {
  background: var(--white-5);
  color: var(--white-50);
  cursor: not-allowed;
}

.input-hint {
  display: block;
  font-size: 11px;
  color: var(--white-40);
  margin-top: 4px;
  min-height: 16px;
}

/* Ensure save button aligns with inputs */
.profile-form-inline .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.profile-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.profile-message.success {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--green);
}

.profile-message.error {
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
  color: var(--pink);
}

/* Credits Balance Row */
.credits-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(57, 255, 20, 0.05));
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 12px;
}

.credits-balance-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.credits-balance-value {
  font-family: var(--font-pixel);
  font-size: 36px;
  color: var(--green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.credits-balance-label {
  font-size: 16px;
  color: var(--white-60);
}

.credits-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Button outline pink */
.btn-outline-pink {
  border: 1px solid rgba(255, 45, 117, 0.5);
  color: var(--pink);
  background: transparent;
}

.btn-outline-pink:hover {
  background: rgba(255, 45, 117, 0.15);
  border-color: var(--pink);
}

/* Credits Purchase Grid */
.credits-purchase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.credits-purchase-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
}

.credits-purchase-card:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  transform: translateY(-2px);
}

.credits-purchase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credits-purchase-info h3 {
  font-family: var(--font-orbitron);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.credits-purchase-info p {
  font-size: 12px;
  color: var(--white-50);
}

/* Account Actions Row */
.account-actions-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.account-actions-row .btn {
  flex: 1;
  min-width: 200px;
}

/* Button Danger */
.btn-danger {
  background: rgba(255, 45, 117, 0.15);
  border: 1px solid rgba(255, 45, 117, 0.3);
  color: var(--pink);
}

.btn-danger:hover {
  background: rgba(255, 45, 117, 0.25);
  border-color: var(--pink);
}

/* Delete Consequences */
.delete-consequences {
  margin: 16px 0;
  padding-left: 20px;
}

.delete-consequences li {
  color: var(--white-60);
  margin-bottom: 8px;
  list-style: disc;
}

/* Modal Warning */
.modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 8px;
  margin-bottom: 16px;
}

.modal-warning svg {
  color: var(--pink);
  flex-shrink: 0;
}

.modal-warning p {
  color: var(--white-80);
  font-size: 14px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-form-inline {
    flex-direction: column;
  }

  .profile-form-group {
    width: 100%;
  }

  .credits-purchase-grid {
    grid-template-columns: 1fr;
  }

  .credits-balance-row {
    flex-direction: column;
    text-align: center;
  }

  .account-actions-row {
    flex-direction: column;
  }

  .account-actions-row .btn {
    width: 100%;
  }
}
