/* =============================================
   ⚔ VNLand Network ⚔ — Design System
   Minecraft Server Website
   ============================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Press+Start+2P&display=swap');

/* === CSS Variables === */
:root {
  /* Colors - Dark Gaming Theme */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: rgba(22, 33, 62, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Minecraft Accents */
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --diamond: #22d3ee;
  --diamond-glow: rgba(34, 211, 238, 0.3);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --redstone: #ef4444;
  --redstone-glow: rgba(239, 68, 68, 0.3);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.3);
  --amethyst: var(--purple);
  
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, #10b981, #22d3ee);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-purple: linear-gradient(135deg, #a855f7, #ec4899);
  --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
  
  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-pixel: 'Press Start 2P', cursive;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --border-color: rgba(255, 255, 255, 0.08);
  --border: var(--border-color);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--emerald-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--diamond);
}

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

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* === Header / Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__logo span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--emerald);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.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.5s ease;
}

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

.btn--primary {
  background: var(--gradient-main);
  color: #000;
  font-weight: 700;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #000;
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gradient-gold);
  color: #000;
  font-weight: 700;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--gold-glow);
}

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

.btn--outline:hover {
  background: var(--emerald);
  color: #000;
}

.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1.1rem; }

.btn--copy {
  background: var(--gradient-main);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  padding: 14px 28px;
  letter-spacing: 1px;
}

.btn--copy:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px var(--emerald-glow);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, var(--bg-primary));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--emerald);
  margin-bottom: var(--space-lg);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.hero__ip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero__ip-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 28px;
  background: rgba(17, 24, 39, 0.9);
  border: 2px solid var(--emerald);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.hero__ip-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__ip-value {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--emerald);
  letter-spacing: 1px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* === Section === */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section__title span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* === Grid === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

/* === Server Status Panel === */
.status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.status-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.status-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.status-card__value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-online .dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.status-offline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50px;
  color: var(--redstone);
  font-size: 0.85rem;
  font-weight: 600;
}

/* === Donate Leaderboard === */
.leaderboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leaderboard__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
  border-bottom: 1px solid var(--border-color);
}

.leaderboard__header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.leaderboard__list {
  list-style: none;
}

.leaderboard__item {
  display: flex;
  align-items: center;
  padding: 14px var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.leaderboard__item:last-child {
  border-bottom: none;
}

.leaderboard__item:hover {
  background: var(--bg-glass);
}

.leaderboard__rank {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.leaderboard__rank--1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; }
.leaderboard__rank--2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #000; }
.leaderboard__rank--3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.leaderboard__rank--default { background: var(--bg-secondary); color: var(--text-muted); }

.leaderboard__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  margin-right: var(--space-md);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.leaderboard__name {
  flex: 1;
  font-weight: 600;
}

.leaderboard__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}

/* === News / Updates === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-md);
}

.news-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card__body {
  padding: var(--space-lg);
}

.news-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.news-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.news-card__date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-md);
}

/* === Tables === */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.table th {
  background: rgba(16, 185, 129, 0.1);
  padding: 14px var(--space-md);
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--emerald);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-glass);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--ban { background: rgba(239, 68, 68, 0.15); color: var(--redstone); }
.badge--mute { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.badge--warn { background: rgba(168, 85, 247, 0.15); color: var(--purple); }

/* === Tabs === */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.tab-btn.active {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}

.tab-btn.active::after {
  background: var(--gradient-main);
}

.tab-btn:hover {
  color: var(--emerald);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* === Forms === */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

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

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* === Gift Code Box === */
.giftcode-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.giftcode-input {
  display: flex;
  gap: var(--space-sm);
}

.giftcode-input input {
  flex: 1;
  padding: 16px var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.giftcode-input input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* === Auth Forms === */
.auth-container {
  max-width: 460px;
  margin: 120px auto var(--space-3xl);
  padding: 0 var(--space-md);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
}

.auth-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* === Contact Cards === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.contact-card:hover {
  border-color: var(--emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.contact-card__icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-card__info h4 {
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-card__info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === Guide Steps === */
.guide-steps {
  counter-reset: step;
}

.guide-step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.guide-step:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.guide-step::before {
  counter-increment: step;
  content: counter(step);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-step__content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

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

/* === Video Embed === */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: var(--space-lg);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === Footer === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__col h4 {
  font-weight: 700;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: var(--space-sm);
}

.footer__col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__col a:hover {
  color: var(--emerald);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer__socials a:hover {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald);
  transform: translateY(-2px);
}

/* === Page Header (inner pages) === */
.page-header {
  padding: 140px 0 var(--space-2xl);
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* === Notifications === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--emerald);
  color: #000;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__ip-box { flex-direction: column; gap: var(--space-sm); }
  
  .section__title { font-size: 1.5rem; }
  .page-header__title { font-size: 1.8rem; }
  
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  
  .footer__grid { grid-template-columns: 1fr; }
  
  .nav__links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav__links.open {
    display: flex;
  }
  
  .nav__mobile-toggle {
    display: flex;
  }
  
  .guide-step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .leaderboard__item {
    padding: 12px var(--space-md);
  }
  
  .auth-container {
    margin-top: 100px;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .hero__ip-value { font-size: 0.8rem; }
  .btn--copy { padding: 12px 20px; font-size: 0.6rem; }
  .giftcode-input { flex-direction: column; }
  .tabs { gap: 4px; }
  .tab-btn { padding: 10px 16px; font-size: 0.85rem; }
}
