/* ══════════════════════════════════════════════════════
   REDEME.CSS — FC Mobile Codes Page
   Minesite · Full Production Stylesheet
   ══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ────────────────────────────────────────────────────── */
:root {
  /* Backgrounds — blue-dark */
  --bg:          #0d1117;
  --bg-2:        #131921;
  --bg-3:        #1a2233;
  --bg-card:     #161d2b;
  --bg-elevated: #1e2a3d;

  /* Borders */
  --border:       #253047;
  --border-2:     #34465e;
  --border-focus: #4ade80;

  /* Green */
  --green:       #4ade80;
  --green-dim:   #2ea855;
  --green-muted: #1e7a40;
  --green-glow:  rgba(74,222,128,0.20);
  --green-soft:  rgba(74,222,128,0.10);

  /* Gold */
  --gold:      #fbbf24;
  --gold-dim:  #d97706;
  --gold-soft: rgba(251,191,36,0.12);
  --gold-glow: rgba(251,191,36,0.20);

  /* Cyan */
  --cyan:      #38bdf8;
  --cyan-dim:  #0284c7;
  --cyan-soft: rgba(56,189,248,0.10);

  /* Purple */
  --purple:      #a78bfa;
  --purple-soft: rgba(167,139,250,0.10);

  /* Red */
  --red:     #f87171;
  --danger:  #f87171;
  --success: #4ade80;
  --warning: #fbbf24;
  --info:    #38bdf8;

  /* Text — improved contrast (all pass WCAG AA) */
  --text:     #e8f0fe;
  --text-1:   #e8f0fe;
  --text-2:   #a8bfce;
  --text-3:   #7a95a8;
  --text-inv: #0d1117;

  /* Typography */
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;
  --pixel: 'Press Start 2P', cursive;

  /* Layout */
  --radius:    6px;
  --radius-lg: 12px;
  --radius-xl: 18px;

  /* Motion */
  --dur-fast: 0.15s;
  --dur-base: 0.22s;
  --dur-slow: 0.4s;
  --ease:     cubic-bezier(0.22,1,0.36,1);
  --transition: all var(--dur-base) var(--ease);

  /* Layout helpers */
  --header-h:  68px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
}

/* ──────────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image: radial-gradient(ellipse 80% 30% at 50% -5%, rgba(74,222,128,0.05) 0%, transparent 55%);
  text-rendering: optimizeLegibility;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
  display: block;
}

a { color: var(--green); }
a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ──────────────────────────────────────────────────────
   3. GLOBAL TEXTURE OVERLAYS
   ────────────────────────────────────────────────────── */
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;
}

/* ──────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hidden { display: none !important; }

.pixel { font-family: var(--pixel); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ──────────────────────────────────────────────────────
   5. HEADER & NAV
   ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.logo:hover { opacity: 0.85; }
.logo-icon-svg {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  object-fit: cover;
}
.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 links */
.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;
  white-space: nowrap;
}
.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%; }

/* CTA pill */
.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 hamburger */
.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);
}
/* Animated burger → X when open */
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ──────────────────────────────────────────────────────
   6. BREADCRUMB
   ────────────────────────────────────────────────────── */
.breadcrumb-nav {
  background: var(--bg);
  border-bottom: 1px solid rgba(31, 51, 32, 0.6);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0.6rem 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.breadcrumb-item a {
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.breadcrumb-item a:hover { color: var(--green); }

.breadcrumb-item[aria-current="page"] { color: var(--text-2); }

.breadcrumb-sep {
  user-select: none;
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ──────────────────────────────────────────────────────
   7. HERO SECTION
   ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.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.38) saturate(0.7);
  z-index: -2;
  will-change: transform;
}

.hero-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(74,222,128,0.16) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(13,17,23,0.15) 0%, rgba(13,17,23,0.5) 55%, var(--bg) 100%);
}

/* Floating particles */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute; width: 5px; height: 5px; border-radius: 1px;
  opacity: 0; animation: floatUp 9s infinite ease-in-out;
}
.p1 { left: 12%; top: 28%; background: var(--green);  animation-delay: 0s; }
.p2 { left: 74%; top: 22%; background: var(--cyan);   animation-delay: 1.8s; }
.p3 { left: 30%; top: 66%; background: var(--green);  animation-delay: 3.2s; }
.p4 { left: 84%; top: 54%; background: var(--gold);   animation-delay: 4.7s; }

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.85s var(--ease) both;
}

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

/* Live badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  animation: fadeUp 0.85s 0s var(--ease) both;
}

.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: livePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  60%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.live-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero title */
.hero-title {
  font-family: var(--pixel);
  font-size: clamp(0.85rem, 3vw, 1.5rem);
  color: #fff;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 60px rgba(74,222,128,0.55),
    0 0 120px rgba(74,222,128,0.22),
    0 6px 28px rgba(0,0,0,0.95);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.85s 0.1s var(--ease) both;
}

.hero-sub {
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.85s 0.2s var(--ease) both;
}

.hero-updated {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 2rem;
  animation: fadeUp 0.85s 0.25s var(--ease) both;
}

/* Glass stats card — sits over the bg image */
.hero-stats-card {
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.5rem 3rem;
  margin-bottom: 1.75rem;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(74,222,128,0.06);
  animation: fadeUp 0.85s 0.3s var(--ease) both;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  margin: 0 2.5rem;
  flex-shrink: 0;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.stat-num {
  font-family: var(--pixel);
  font-size: 1.6rem;
  color: var(--green);
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.6);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.stat-num.gold {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.5);
}

.stat-label {
  font-size: 0.62rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  font-weight: 600;
}

/* Hero CTA button */
.hero-cta {
  animation: fadeUp 0.85s 0.4s var(--ease) both;
}

/* ──────────────────────────────────────────────────────
   8. SECTION SCAFFOLDING
   ────────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; content-visibility: auto; contain-intrinsic-size: 0 600px; }

.section-alt {
  background: var(--bg-2);
  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: 0.75rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-accent {
  width: 4px; height: 24px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-accent.green { background: var(--green); box-shadow: 0 0 8px rgba(74, 222, 128, 0.4); }
.section-accent.cyan  { background: var(--cyan);  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3); }
.section-accent.red   { background: var(--danger); opacity: 0.7; }
.section-accent.gold  { background: var(--gold);  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }

.section-title {
  font-family: var(--pixel);
  font-size: clamp(0.5rem, 1.2vw, 0.68rem);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.section-meta {
  font-size: 0.7rem;
  color: var(--text-3);
  font-family: var(--mono);
}

/* ──────────────────────────────────────────────────────
   8b. TWO-COLUMN CONTENT LAYOUT
   ────────────────────────────────────────────────────── */
.section-two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}

.sources-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.sources-panel-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sources-panel-heading::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
  flex-shrink: 0;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sources-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.source-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.source-body strong {
  font-size: 0.82rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.source-body span {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Tips card grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.tip-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.tip-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tip-body strong {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
}

.tip-body p {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0;
}

.tip-body a {
  color: var(--green);
  transition: color var(--dur-fast) var(--ease);
}
.tip-body a:hover { color: #b9f5d0; }

/* ──────────────────────────────────────────────────────
   9. 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);
  position: relative;
  overflow: hidden;
}

/* Left glow accent */
.code-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.code-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(74, 222, 128, 0.06);
}
.code-card:hover::before { opacity: 1; }

@media (min-width: 640px) {
  .code-card { flex-direction: row; align-items: center; }
}

.code-info { flex: 1; min-width: 0; }

.code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.code-text {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--green);
  background: var(--bg-2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  letter-spacing: 0.07em;
  user-select: all;
  word-break: break-all;
}

/* Status badges */
.badge {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--pixel);
  font-size: 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.badge-new {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green);
}
.badge-limited {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold);
}
.badge-active {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.code-reward {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.68rem;
  color: var(--text-3);
  font-family: var(--mono);
}

.code-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

/* ──────────────────────────────────────────────────────
   10. BUTTONS
   ────────────────────────────────────────────────────── */
.btn {
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: var(--mono);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}
.btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn-copy {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-copy:hover {
  background: rgba(74, 222, 128, 0.09);
  border-color: var(--green-dim);
  color: var(--green);
}
.btn-copy:active { transform: scale(0.97); }

.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);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}
.btn-redeem:active { transform: scale(0.97); }

/* ──────────────────────────────────────────────────────
   11. HOW-TO STEPS GRID
   ────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  list-style: none;
  counter-reset: none;
}

.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);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.step-num {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--green);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--pixel);
  font-size: 0.48rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.step-text {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.65;
}
.step-text strong { color: var(--text-2); }

/* ──────────────────────────────────────────────────────
   12. RICH CONTENT PROSE
   ────────────────────────────────────────────────────── */
.rich-content {
  /* no max-width — full container width now */
}

.rich-content p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.rich-content p:last-child { margin-bottom: 0; }

.rich-content strong { color: var(--text); font-weight: 600; }

.rich-content a {
  color: var(--green);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}
.rich-content a:hover { color: #b9f5d0; }

.rich-sub-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.rich-list {
  padding-left: 1.25rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.rich-list li::marker { color: var(--green); }
.rich-list strong { color: var(--text); }
.rich-list a {
  color: var(--green);
  transition: color var(--dur-fast) var(--ease);
}
.rich-list a:hover { color: #b9f5d0; }

/* ──────────────────────────────────────────────────────
   13. FAQ ACCORDION
   ────────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--dur-base) var(--ease);
}
.faq-item:hover { border-color: var(--border-2); }
.faq-item[open]  { border-color: var(--border-2); }

.faq-question {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background var(--dur-fast) var(--ease);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(74, 222, 128, 0.04); }

.faq-question::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--green);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
  will-change: transform;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  opacity: 1;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 0.75rem;
}
.faq-answer ul, .faq-answer ol {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.75;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.faq-answer li::marker { color: var(--green); }
.faq-answer strong { color: var(--text); }
.faq-answer a {
  color: var(--green);
  transition: color var(--dur-fast) var(--ease);
}
.faq-answer a:hover { color: #b9f5d0; }

/* ──────────────────────────────────────────────────────
   14. EXPIRED CODES TABLE
   ────────────────────────────────────────────────────── */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 480px;
}

.data-table thead th {
  background: var(--bg-3);
  padding: 0.9rem 1.25rem;
  font-family: var(--pixel);
  font-size: 0.42rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(16, 24, 16, 0.55); }

.code-expired {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.45);
  color: var(--text-3);
}

.date-expired {
  color: var(--danger);
  opacity: 0.75;
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────
   15. 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.6s ease-in-out infinite;
  border: 1px solid var(--border);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ──────────────────────────────────────────────────────
   16. TOAST NOTIFICATION
   ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-elevated);
  border: 1px solid var(--green-dim);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(74, 222, 128, 0.1);
  white-space: nowrap;
  will-change: transform;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ──────────────────────────────────────────────────────
   17. ERROR MESSAGE
   ────────────────────────────────────────────────────── */
.error-msg {
  text-align: center;
  color: var(--danger);
  padding: 2.5rem 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  background: rgba(248, 113, 113, 0.04);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius-lg);
}

/* ──────────────────────────────────────────────────────
   18. FOOTER
   ────────────────────────────────────────────────────── */
.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.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--pixel);
  font-size: 0.48rem;
  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.6rem;
}

.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: 1.1rem 0;
  background: rgba(6, 11, 6, 0.65);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-inner small {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ──────────────────────────────────────────────────────
   19. RESPONSIVE — TABLET (≤ 1024px)
   ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section-two-col { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-inner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ──────────────────────────────────────────────────────
   20. RESPONSIVE — MOBILE (≤ 768px)
   ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile nav */
  .mobile-menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem 1rem;
    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;
    font-size: 0.95rem;
  }
  .nav-cta { text-align: center; }

  /* Section two-col → single column */
  .section-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .sources-panel { position: static; }

  /* Tips grid → 1 col */
  .tips-grid { grid-template-columns: 1fr; }

  /* FAQ → single column */
  .faq-list { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 5rem 0 4rem; }
  .hero-title { font-size: 0.8rem; }
  .hero-stats-card { padding: 1.25rem 1.75rem; }
  .stat-divider { margin: 0 1.5rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2.5rem 0 2rem;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    grid-column: auto;
  }
  .footer-brand p { max-width: 100%; }
  .footer-col ul { align-items: center; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  /* FAQ */
  .faq-question { font-size: 0.85rem; }
}

/* ──────────────────────────────────────────────────────
   21. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 60px; height: 1px; margin: 0.25rem 0; }
  .hero-stats-card { padding: 1.25rem 1.5rem; }
  .code-meta  { flex-direction: column; gap: 0.3rem; }
  .code-actions { width: 100%; }
  .btn-copy, .btn-redeem { flex: 1; justify-content: center; }
  .hero-badge { font-size: 0.68rem; }
  .breadcrumb-list { font-size: 0.72rem; }
}

/* ──────────────────────────────────────────────────────
   22. BODY SCROLL LOCK (mobile menu open)
   ────────────────────────────────────────────────────── */
body.menu-open { overflow: hidden; }

/* ──────────────────────────────────────────────────────
   23. REDUCED MOTION
   ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot { animation: none; }
  .particle { display: none; }
  .hero-content, .hero-title, .hero-sub,
  .hero-badge, .hero-updated, .hero-stats-card, .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────
   25. TABLE OF CONTENTS BAR
   ────────────────────────────────────────────────────── */
.toc-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.toc-bar::-webkit-scrollbar { display: none; }

.toc-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.toc-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.toc-list {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.toc-list a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  transition: var(--transition);
  white-space: nowrap;
}
.toc-list a:hover {
  color: var(--green);
  border-color: rgba(74,222,128,0.4);
  background: var(--green-soft);
}

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

/* ──────────────────────────────────────────────────────
   26. RELATED CONTENT SECTION
   ────────────────────────────────────────────────────── */
.related-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.related-heading {
  font-family: var(--pixel);
  font-size: clamp(0.5rem, 1.2vw, 0.65rem);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.related-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.related-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.related-body strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
}

.related-body span {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────
   27. PRINT STYLES
   ────────────────────────────────────────────────────── */
@media print {
  body::before, body::after { display: none; }
  .site-header, .toast, .mobile-menu-toggle,
  .btn-copy, .btn-redeem, .hero-overlay,
  .hero-bg-img, .skeleton-card { display: none !important; }
  .hero { padding: 1rem 0; }
  .code-card { border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; color: #000; }
  .code-text { background: #f0f0f0; color: #000; border-color: #999; }
}


/* ── Mobile performance: disable expensive backdrop-filter on small screens ── */
@media (max-width: 768px) {
  *{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ── Promote animated elements to compositor layer ── */
.main-nav a,
.btn, button,
[class*="card"],
[class*="tag"],
[class*="badge"],
[class*="tab"] {
  will-change: transform;
}
