/* ══════════════════════════════════════
   VARIABLES & RESET
   ══════════════════════════════════════ */
   :root {
    --bg:           #060b06;
    --bg-2:         #0d160d;
    --bg-3:         #131f13;
    --bg-card:      #0f1a0f;
    --bg-elevated:  #172417;
    --border:       #1f3320;
    --border-2:     #2e5030;
    --border-focus: #4ade80;
    --green:        #4ade80;
    --green-dim:    #34c265;
    --green-muted:  #2a9e52;
    --green-glow:   rgba(74, 222, 128, 0.18);
    --green-soft:   rgba(74, 222, 128, 0.08);
    --gold:         #f59e0b;
    --cyan:         #06b6d4;
    --text:         #e2f0e2;
    --text-2:       #9dbe9d;
    --text-3:       #5e7e5e;
    --text-inv:     #060b06;
    --danger:       #f87171;
    --sans:   'DM Sans', system-ui, -apple-system, sans-serif;
    --mono:   'DM Mono', 'Courier New', monospace;
    --pixel:  'Press Start 2P', cursive;
    --radius:    6px;
    --radius-lg: 12px;
    --dur-fast:  0.15s;
    --dur-base:  0.22s;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --transition: all var(--dur-base) var(--ease);
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  
  /* ══════════════════════════════════════
     GLOBAL BACKGROUNDS
     ══════════════════════════════════════ */
  body::before {
    content: ''; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 9999;
  }
  
  body::after {
    content: ''; position: fixed; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
    pointer-events: none; z-index: 9998;
  }
  
  /* ══════════════════════════════════════
     LAYOUT & UTILITY
     ══════════════════════════════════════ */
  .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
  .hidden { display: none !important; }
  
  /* ══════════════════════════════════════
     HEADER — matches index / style.css
     ══════════════════════════════════════ */
  .site-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(6, 11, 6, 0.9);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
  }
  .nav-container {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 68px; gap: 1rem;
  }
  .logo {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none; flex-shrink: 0;
    transition: var(--transition);
  }
  .logo-icon-svg {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 8px; border: 1px solid var(--border-2);
  }
  .logo-text {
    font-family: var(--pixel); font-size: 0.65rem;
    color: var(--green); letter-spacing: 0.1em;
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.55);
    transition: color var(--dur-base) var(--ease);
  }
  .logo:hover .logo-text { color: #b9f5d0; }
  .main-nav ul { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
  .main-nav a {
    font-family: var(--sans); font-size: 0.875rem;
    font-weight: 500; color: var(--text-2);
    text-decoration: none; letter-spacing: 0.01em;
    transition: color var(--dur-base) var(--ease);
    position: relative; padding-bottom: 2px;
  }
  .main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--green); border-radius: 1px;
    transition: width var(--dur-base) var(--ease);
  }
  .main-nav a:hover        { color: var(--text); }
  .main-nav a:hover::after { width: 100%; }
  .main-nav a.active       { color: var(--green); }
  .main-nav a.active::after { width: 100%; }
  .nav-cta {
    background: var(--green-soft) !important;
    border: 1px solid var(--border-2) !important;
    border-radius: 999px !important;
    padding: 0.42rem 1.1rem !important;
    color: var(--green) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }
  .nav-cta:hover {
    background: rgba(74, 222, 128, 0.14) !important;
    border-color: var(--green-muted) !important;
    color: #b9f5d0 !important;
  }
  .nav-cta::after { display: none !important; }
  .mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 1px solid transparent; cursor: pointer;
    padding: 0.5rem; border-radius: var(--radius);
    transition: border-color var(--dur-base) var(--ease);
  }
  .mobile-menu-toggle:hover { border-color: var(--border-2); }
  .burger-line {
    display: block; width: 22px; height: 2px;
    background: var(--text-2); border-radius: 2px;
    transition: var(--transition);
  }
  
  /* ══════════════════════════════════════
     HERO SECTION
     ══════════════════════════════════════ */
  .hero {
    position: relative; padding: 8rem 0 6rem;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
  }
  .hero-bg-img {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1587573089734-599d584d64f5?q=80&w=1600&auto=format&fit=crop');
    background-size: cover; background-position: center;
    filter: brightness(0.25) saturate(0.6);
    z-index: 0;
  }
  .hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(7,12,7,0.4) 0%, rgba(7,12,7,0.8) 70%, var(--bg) 100%);
  }
  .hero-content { position: relative; z-index: 2; }
  
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem; padding: 0.5rem 1rem;
    background: rgba(14, 21, 14, 0.8); border: 1px solid var(--border-2);
    border-radius: 20px; backdrop-filter: blur(8px);
  }
  .live-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
  .live-text { font-family: 'Press Start 2P'; font-size: 0.5rem; color: var(--green-dim); text-transform: uppercase; letter-spacing: 0.1em; }
  
  .hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #fff; margin-bottom: 1rem; line-height: 1.3;
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.4);
  }
  .hero-sub { font-size: 0.95rem; color: var(--text-2); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8; }
  
  .hero-stats { display: flex; justify-content: center; gap: 3rem; }
  .stat-box { text-align: center; }
  .stat-num { display: block; font-family: 'Press Start 2P'; font-size: 1.25rem; color: var(--green); margin-bottom: 0.25rem; }
  .stat-num.gold { color: var(--gold); }
  .stat-label { font-size: 0.5rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.15em; }
  
  @keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green); } 50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; } }
  
  /* ══════════════════════════════════════
     SECTIONS
     ══════════════════════════════════════ */
  .section { padding: 4rem 0; }
  .section-alt { background: rgba(12, 19, 12, 0.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  
  .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
  .section-title-wrap { display: flex; align-items: center; gap: 0.75rem; }
  .section-accent { width: 4px; height: 24px; border-radius: 2px; }
  .section-accent.green { background: var(--green); }
  .section-accent.cyan { background: var(--cyan); }
  .section-accent.red { background: var(--danger); opacity: 0.6; }
  .section-title { font-family: 'Press Start 2P'; font-size: 0.65rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
  .section-meta { font-size: 0.6rem; color: var(--text-3); }
  
  /* ══════════════════════════════════════
     CODE CARDS
     ══════════════════════════════════════ */
  .codes-grid { display: flex; flex-direction: column; gap: 1rem; }
  
  .code-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
    transition: var(--transition);
  }
  @media (min-width: 768px) {
    .code-card { flex-direction: row; align-items: center; }
  }
  .code-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
  
  .code-info { flex: 1; }
  .code-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
  .code-text { font-family: 'Space Mono'; font-size: 1rem; color: var(--green); background: var(--bg-2); padding: 0.4rem 0.75rem; border-radius: 4px; border: 1px solid var(--border-2); letter-spacing: 0.05em; }
  
  .badge { padding: 0.2rem 0.5rem; border-radius: 4px; font-family: 'Press Start 2P'; font-size: 0.45rem; text-transform: uppercase; letter-spacing: 0.05em; }
  .badge-new { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--green); }
  .badge-limited { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--gold); }
  .badge-active { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-3); }
  
  .code-reward { font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.5rem; }
  .code-meta { display: flex; gap: 1.5rem; font-size: 0.65rem; color: var(--text-3); }
  
  .code-actions { display: flex; gap: 0.5rem; }
  .btn { padding: 0.6rem 1rem; border-radius: var(--radius); font-size: 0.75rem; font-family: 'Space Mono'; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; text-decoration: none; border: none; }
  .btn-copy { background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); }
  .btn-copy:hover { background: rgba(74, 222, 128, 0.1); border-color: var(--green-dim); color: var(--green); }
  .btn-redeem { background: rgba(74, 222, 128, 0.1); border: 1px solid var(--green-dim); color: var(--green); }
  .btn-redeem:hover { background: rgba(74, 222, 128, 0.2); }
  
  /* ══════════════════════════════════════
     STEPS GRID
     ══════════════════════════════════════ */
  .steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
  .step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition); }
  .step-card:hover { border-color: var(--border-2); }
  .step-num { width: 32px; height: 32px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Press Start 2P'; font-size: 0.6rem; color: var(--green); margin-bottom: 1rem; }
  .step-title { font-family: 'Press Start 2P'; font-size: 0.5rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.5; }
  .step-text { font-size: 0.8rem; color: var(--text-3); line-height: 1.6; }
  
  /* ══════════════════════════════════════
     TABLE
     ══════════════════════════════════════ */
  .table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }
  .data-table { width: 100%; border-collapse: collapse; text-align: left; }
  .data-table th { background: var(--bg-3); padding: 1rem 1.25rem; font-family: 'Press Start 2P'; font-size: 0.45rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--border); }
  .data-table td { padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--text-2); border-bottom: 1px solid var(--border); }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table tr:hover td { background: rgba(16, 24, 16, 0.5); }
  .code-expired { text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, 0.4); color: var(--text-3); }
  .date-expired { color: var(--danger); opacity: 0.7; }
  
  /* ══════════════════════════════════════
     FOOTER — matches index / style.css
     ══════════════════════════════════════ */
  .site-footer { margin-top: auto; background: var(--bg-2); border-top: 1px solid var(--border); }
  .footer-inner-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0 3rem;
  }
  .footer-brand { display: flex; flex-direction: column; gap: 1rem; }
  .footer-logo {
    font-family: var(--pixel); font-size: 0.7rem;
    color: var(--green); letter-spacing: 0.1em;
    text-shadow: 0 0 12px rgba(74,222,128,0.4);
  }
  .footer-brand p { font-size: 0.85rem; color: var(--text-3); line-height: 1.7; max-width: 280px; }
  .footer-col h4 {
    font-family: var(--pixel); font-size: 0.5rem;
    color: var(--text-2); letter-spacing: 0.12em;
    text-transform: uppercase; margin-bottom: 1rem;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
  .footer-col a { font-size: 0.85rem; color: var(--text-3); text-decoration: none; transition: color var(--dur-base) var(--ease); }
  .footer-col a:hover { color: var(--green); }
  .footer-bottom-bar { border-top: 1px solid var(--border); padding: 1rem 0; background: rgba(6,11,6,0.6); }
  .footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .footer-bottom-inner small { font-size: 0.78rem; color: var(--text-3); }
  
  /* ══════════════════════════════════════
     COMPONENTS
     ══════════════════════════════════════ */
  /* Skeleton Loader */
  .skeleton-card {
    height: 100px; border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-3) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  
  /* Toast */
  .toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card); border: 1px solid var(--green-dim);
    padding: 0.85rem 1.5rem; border-radius: var(--radius);
    font-size: 0.8rem; color: var(--green); z-index: 1000;
    opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
  
  .error-msg { text-align: center; color: var(--danger); padding: 2rem; }
  /* ══════════════════════════════════════
     RESPONSIVE
     ══════════════════════════════════════ */
  @media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .main-nav {
      position: fixed; top: 68px; left: 0; right: 0;
      background: rgba(6, 11, 6, 0.98); backdrop-filter: blur(20px);
      padding: 1.5rem; visibility: hidden; opacity: 0; pointer-events: none;
      transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
      border-bottom: 1px solid var(--border); z-index: 199;
    }
    .main-nav.open { visibility: visible; opacity: 1; pointer-events: auto; }
    .main-nav ul { flex-direction: column; gap: 1.2rem; align-items: stretch; }
    .main-nav a { display: block; text-align: center; padding: 0.5rem 0; }
    .nav-cta { text-align: center; }
    .hero { padding: 5rem 0 4rem; }
    .hero-stats { gap: 1.5rem; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand p { max-width: 100%; }
    .footer-col ul { align-items: center; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
  }

  @media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .code-meta { flex-direction: column; gap: 0.3rem; }
  }

/* Prevent body scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════
   MOBILE OVERFLOW — FINAL GUARD
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  img, video, iframe, canvas {
    max-width: 100% !important;
  }
}
