/* ===========================
   VARIABLES
   =========================== */
:root {
  /* Base Layers */
  --bg-primary: #0b0f1a;
  --bg-secondary: #121a2b;
  --bg-elevated: rgba(255, 255, 255, 0.05);
  --bg-elevated-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Accents */
  --accent-primary: #7dd3fc;
  --accent-secondary: #c4f1ff;
  --accent-highlight: #f0f9ff;
  --accent-depth: #1e293b;

  /* Typography */
  --text-primary: #e6f6ff;
  --text-secondary: #b6d7e6;
  --text-muted: #7fa6b8;

  /* Gradients */
  --gradient-crystal: linear-gradient(135deg, #7dd3fc 0%, #c4f1ff 50%, #7dd3fc 100%);
  --gradient-surface: linear-gradient(135deg, rgba(125, 211, 252, 0.1) 0%, rgba(196, 241, 255, 0.05) 100%);
  --gradient-hero: radial-gradient(ellipse at 70% 50%, rgba(125, 211, 252, 0.08) 0%, transparent 60%);
  --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);

  /* Spacing */
  --container-max: 1320px;
  --padding-desktop: 32px;
  --padding-tablet: 24px;
  --padding-mobile: 16px;
  --section-gap-desktop: 110px;
  --section-gap-tablet: 80px;
  --section-gap-mobile: 60px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(125, 211, 252, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(125, 211, 252, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-notification: 500;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

::selection {
  background: rgba(125, 211, 252, 0.3);
  color: var(--accent-highlight);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-desktop);
  width: 100%;
}

.section {
  padding: var(--section-gap-desktop) 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===========================
   GLASS CARD COMPONENT
   =========================== */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-elevated-hover);
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-desktop);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  z-index: var(--z-modal);
}

.logo-diamond {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-diamond svg {
  width: 36px;
  height: 36px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(125, 211, 252, 0.08);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: var(--z-modal);
}

.header-currency {
  display: flex;
  align-items: center;
  gap: 16px;
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.currency-display .coin-icon {
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: var(--z-modal);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-crystal);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--accent-primary);
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.4);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--accent-primary);
  background: rgba(125, 211, 252, 0.05);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
}

.btn-icon:hover {
  background: var(--bg-elevated-hover);
  transform: translateY(-2px);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(125, 211, 252, 0.06) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(196, 241, 255, 0.04) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-game-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.15);
  box-shadow: var(--shadow-glow-strong), var(--shadow-lg);
  position: relative;
  background: var(--bg-secondary);
}

.hero-game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-game-frame .game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity var(--transition-base);
  cursor: pointer;
}

.hero-game-frame .game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-crystal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-strong);
  transition: transform var(--transition-smooth);
}

.play-icon-circle:hover {
  transform: scale(1.1);
}

.play-icon-circle svg {
  width: 32px;
  height: 32px;
  fill: var(--bg-primary);
  margin-left: 4px;
}

.hero-floating-diamonds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-diamond {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.15;
}

.floating-diamond:nth-child(1) { top: 10%; left: -20%; animation: floatDiamond 6s ease-in-out infinite; }
.floating-diamond:nth-child(2) { top: 60%; right: -15%; animation: floatDiamond 8s ease-in-out infinite 2s; }
.floating-diamond:nth-child(3) { bottom: 10%; left: -10%; animation: floatDiamond 7s ease-in-out infinite 4s; }

@keyframes floatDiamond {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===========================
   GAME SHOWCASE
   =========================== */
.game-showcase-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.game-showcase-card:hover {
  border-color: rgba(125, 211, 252, 0.2);
  box-shadow: var(--shadow-glow);
}

.game-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

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

.game-card-image .game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.game-showcase-card:hover .game-card-overlay {
  opacity: 1;
}

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

.game-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.game-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.game-card-stats {
  display: flex;
  gap: 24px;
}

.game-stat {
  display: flex;
  flex-direction: column;
}

.game-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.game-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

/* Game Filters */
.game-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent-primary);
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(125, 211, 252, 0.08);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  max-width: 400px;
  transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
  border-color: rgba(125, 211, 252, 0.3);
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* ===========================
   FEATURE CARDS
   =========================== */
.feature-card {
  text-align: center;
  padding: 40px 28px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  background: var(--gradient-surface);
  border: 1px solid rgba(125, 211, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   LEADERBOARD
   =========================== */
.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.leaderboard-table thead th {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

.leaderboard-table tbody tr {
  background: var(--bg-elevated);
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.leaderboard-table tbody tr:hover {
  background: var(--bg-elevated-hover);
}

.leaderboard-table tbody td {
  padding: 16px 20px;
  font-size: 0.9rem;
}

.leaderboard-table tbody td:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.leaderboard-table tbody td:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0622e); color: #fff; }
.rank-default { background: var(--bg-glass); color: var(--text-muted); }

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-primary);
  border: 1px solid rgba(125, 211, 252, 0.15);
}

.player-name {
  font-weight: 500;
}

.player-level {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===========================
   REWARDS
   =========================== */
.reward-card {
  text-align: center;
  padding: 28px 20px;
  cursor: pointer;
}

.reward-card.claimed {
  opacity: 0.5;
}

.reward-day {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.reward-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.reward-amount {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reward-status {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reward-status.claimed-text {
  color: #4ade80;
}

/* ===========================
   PROGRESS / XP BAR
   =========================== */
.xp-bar-container {
  width: 100%;
  margin: 24px 0;
}

.xp-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.xp-level {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.xp-numbers {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.xp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: var(--gradient-crystal);
  border-radius: var(--radius-full);
  transition: width 1s ease;
  position: relative;
}

.xp-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
}

/* ===========================
   ACHIEVEMENTS
   =========================== */
.achievement-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.achievement-badge:hover {
  border-color: rgba(125, 211, 252, 0.2);
}

.achievement-badge.locked {
  opacity: 0.4;
  filter: grayscale(0.5);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.achievement-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===========================
   DASHBOARD PREVIEW
   =========================== */
.dashboard-preview {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-crystal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.dashboard-user-info h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.dashboard-user-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.dash-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
}

.dash-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.dash-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 40px;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-smooth);
  position: relative;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--bg-elevated-hover);
  color: var(--text-primary);
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal .modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent-primary);
  font-weight: 500;
}

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

.modal-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.modal-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* ===========================
   DAILY REWARD POPUP
   =========================== */
.daily-reward-modal .reward-showcase {
  text-align: center;
  padding: 32px 0;
}

.daily-reward-modal .reward-showcase .big-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
  animation: bounceIn 0.6s ease;
}

.daily-reward-modal .reward-showcase h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.daily-reward-modal .reward-showcase p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===========================
   NOTIFICATIONS
   =========================== */
.notifications-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: var(--z-notification);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  width: 100%;
  pointer-events: none;
}

.notification {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  transform: translateX(120%);
  transition: transform var(--transition-smooth);
  pointer-events: auto;
}

.notification.show {
  transform: translateX(0);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--gradient-surface);
}

.notification-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.notification-close {
  margin-left: auto;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
}

.notification-close:hover {
  color: var(--text-primary);
}

/* ===========================
   FAQ ACCORDION
   =========================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: rgba(125, 211, 252, 0.15);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   NEWSLETTER
   =========================== */
.newsletter-section {
  background: var(--gradient-surface);
  border: 1px solid rgba(125, 211, 252, 0.08);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  background: var(--gradient-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-section p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  border-color: rgba(125, 211, 252, 0.3);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: var(--section-gap-desktop);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent-primary);
}

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

/* ===========================
   PAGE HERO (Interior pages)
   =========================== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(125, 211, 252, 0.06) 0%, transparent 70%);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ===========================
   CONTENT PAGES
   =========================== */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--padding-desktop);
}

.content-section h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--accent-primary);
}

.content-section h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-section ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 8px;
}

/* ===========================
   CONTACT FORM
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  min-height: 140px;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.form-textarea:focus {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

/* ===========================
   RESPONSIBLE GAMING
   =========================== */
.responsible-card {
  padding: 32px;
  margin-bottom: 24px;
}

.responsible-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.responsible-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.disclaimer-banner {
  background: rgba(125, 211, 252, 0.05);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.disclaimer-banner h3 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.disclaimer-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===========================
   MOBILE MENU
   =========================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 0;
  transition: color var(--transition-fast);
  font-family: 'Poppins', sans-serif;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-primary);
}

.mobile-menu-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===========================
   PARTICLES
   =========================== */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(125, 211, 252, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===========================
   UTILITY
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}