/* ============================================
   FREEMCFA — Modern Premium Design
   Clean Glassmorphism + Elegant Typography
   ============================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --mc-green:    #50C878;
  --mc-dark:     #101018;
  --mc-darker:   #0a0a12;
  --mc-gold:     #FFD700;
  --mc-diamond:  #4AEDED;
  --mc-emerald:  #17D45F;
  --mc-redstone: #FF3333;
  --mc-lapis:    #345EC3;

  --glass-bg:    rgba(16, 16, 28, 0.6);
  --glass-border:rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.10);
  --glass-blur:  24px;

  --text-primary:   #f2f2f6;
  --text-secondary:  #9a9ab0;
  --text-muted:      #5e5e74;
  --text-accent:     var(--mc-emerald);

  --section-pad: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
  --border-radius: 16px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--mc-darker);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--mc-emerald);
  color: var(--mc-darker);
}

a { color: var(--mc-diamond); text-decoration: none; transition: color .25s; }
a:hover { color: var(--mc-emerald); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--mc-darker); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ---------- BACKGROUND SYSTEM ---------- */
.bg-parallax {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  overflow: hidden;
}

.bg-parallax img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.15) saturate(0.6) blur(2px);
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(80,200,120,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74,237,237,0.03) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,10,18,0.4) 0%, rgba(10,10,18,0.85) 100%);
  pointer-events: none;
}

#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 30px rgba(0,0,0,0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--mc-emerald);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(80,200,120,0.15);
}

.logo-icon svg {
  width: 17px; height: 17px;
  fill: #071219;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--mc-emerald);
  border-radius: 1px;
}

.nav-cta {
  padding: 0.5rem 1.15rem !important;
  background: var(--mc-emerald) !important;
  color: var(--mc-darker) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 0 16px rgba(80,200,120,0.15);
  transition: all 0.3s var(--spring) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(80,200,120,0.3) !important;
  background: #1cdf6a !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--section-pad) + 2rem) 0 clamp(2.5rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero .container { display: flex; justify-content: center; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(80,200,120,0.08);
  border: 1px solid rgba(80,200,120,0.15);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mc-emerald);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out-expo);
}

.hero-badge .pulse {
  width: 7px; height: 7px;
  background: var(--mc-emerald);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero h1 .accent { color: var(--mc-emerald); }
.hero h1 .gold   { color: var(--mc-gold); }

/* No gradient text — solid colors only */
.gradient-text { color: var(--mc-emerald); }
.gold-text     { color: var(--mc-gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3.5rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-stat { text-align: center; }

.hero-stat .stat-number {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.02em;
}

.hero-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--spring);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--mc-emerald);
  color: var(--mc-darker);
  box-shadow: 0 2px 12px rgba(80,200,120,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(80,200,120,0.35);
  color: var(--mc-darker);
  background: #1cdf6a;
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.btn-gold {
  background: var(--mc-gold);
  color: var(--mc-darker);
  box-shadow: 0 2px 12px rgba(255,215,0,0.2);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,215,0,0.35);
  color: var(--mc-darker);
}

.btn-outline {
  background: transparent;
  color: var(--mc-emerald);
  border: 1px solid rgba(80,200,120,0.3);
}
.btn-outline:hover {
  background: var(--mc-emerald);
  color: var(--mc-darker);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 2px 12px rgba(88,101,242,0.25);
}
.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88,101,242,0.4);
  color: #fff;
  background: #6872f5;
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.83rem; border-radius: 8px; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; border-radius: 14px; }

.icon-inline { width: 1rem; height: 1rem; fill: currentColor; flex-shrink: 0; }
.icon-inline.dark { fill: #0b1620; }

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: rgba(16, 16, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  backdrop-filter: blur(var(--glass-blur));
  padding: 2rem;
  transition: all 0.4s var(--ease-out-expo);
  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.06), transparent);
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.glass-card.card-glow:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.25), 0 0 30px rgba(80,200,120,0.05);
}

/* ---------- SECTION HEADINGS ---------- */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--mc-emerald);
  margin-bottom: 0.75rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 16px; height: 1px;
  background: var(--mc-emerald);
  opacity: 0.3;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- FEATURES GRID ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card { padding: 2.25rem 2rem; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg { width: 22px; height: 22px; fill: currentColor; }

.feature-icon.green  { background: rgba(80,200,120,0.1); color: var(--mc-emerald); }
.feature-icon.blue   { background: rgba(74,237,237,0.1); color: var(--mc-diamond); }
.feature-icon.gold   { background: rgba(255,215,0,0.1); color: var(--mc-gold); }
.feature-icon.red    { background: rgba(255,51,51,0.1); color: var(--mc-redstone); }
.feature-icon.purple { background: rgba(155,89,182,0.1); color: #9B59B6; }
.feature-icon.brown  { background: rgba(139,94,60,0.1); color: #8B5E3C; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ---------- GIVEAWAY CARDS ---------- */
.giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.giveaway-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.giveaway-card:hover { transform: translateY(-4px); }

.giveaway-img { height: 180px; overflow: hidden; position: relative; }

.giveaway-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.giveaway-card:hover .giveaway-img img { transform: scale(1.04); }

.giveaway-img .giveaway-tag {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: var(--mc-emerald);
  color: var(--mc-darker);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
}

.giveaway-tag.gold    { background: var(--mc-gold); }
.giveaway-tag.diamond { background: var(--mc-diamond); }
.giveaway-tag.redstone{ background: var(--mc-redstone); color: white; }

.giveaway-body { padding: 1.25rem 1.75rem 1.75rem; }
.giveaway-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.giveaway-body p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.6; }

.giveaway-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.giveaway-timer { display: flex; align-items: center; gap: 0.4rem; color: var(--mc-gold); font-weight: 600; }

/* ---------- GUIDE CARDS ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide-card { padding: 1.75rem; cursor: pointer; }

.guide-card .guide-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mc-diamond);
  margin-bottom: 0.6rem;
  display: block;
}

.guide-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
  letter-spacing: -0.01em;
}

.guide-card:hover h3 { color: var(--mc-emerald); }

.guide-card p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; margin-bottom: 1rem; }

.guide-card .guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.guide-card .read-time { display: flex; align-items: center; gap: 0.3rem; }

/* ---------- ARTICLE LAYOUT ---------- */
.article-hero {
  padding: calc(var(--section-pad) + 5rem) 0 3rem;
  text-align: center;
}

.article-hero .article-category {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(80,200,120,0.08);
  border: 1px solid rgba(80,200,120,0.15);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mc-emerald);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.article-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.article-meta span { display: flex; align-items: center; gap: 0.4rem; }

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.article-content .glass-card { padding: 3rem clamp(1.5rem, 5vw, 3.5rem); }

.article-body h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 2.5rem 0 1rem;
  color: var(--mc-emerald);
  letter-spacing: -0.01em;
}

.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 0.75rem; }

.article-body p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 0.98rem; line-height: 1.85; }

.article-body ul, .article-body ol { color: var(--text-secondary); margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-body .info-box {
  background: rgba(74,237,237,0.05);
  border-left: 3px solid var(--mc-diamond);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.article-body .warning-box {
  background: rgba(255,215,0,0.05);
  border-left: 3px solid var(--mc-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.article-body .success-box {
  background: rgba(80,200,120,0.05);
  border-left: 3px solid var(--mc-emerald);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.article-body .step-list { counter-reset: steps; list-style: none; padding-left: 0; }

.article-body .step-list li {
  counter-increment: steps;
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1.25rem;
}

.article-body .step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: rgba(80,200,120,0.1);
  color: var(--mc-emerald);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ---------- SIDEBAR ---------- */
.article-sidebar { position: sticky; top: 6rem; }
.sidebar-toc { padding: 1.5rem; }

.sidebar-toc h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-toc ul { list-style: none; }
.sidebar-toc li { margin-bottom: 0.5rem; }

.sidebar-toc a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  display: block;
  transition: all 0.25s;
}

.sidebar-toc a:hover,
.sidebar-toc a.active {
  color: var(--mc-emerald);
  border-left-color: var(--mc-emerald);
  background: rgba(80,200,120,0.04);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 750px; margin: 0 auto; }
.faq-item { border-radius: var(--border-radius); overflow: hidden; }

.faq-question {
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  transition: background 0.25s;
}

.faq-question:hover { background: rgba(255,255,255,0.02); }

.faq-question .faq-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(80,200,120,0.08);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--mc-emerald);
  transition: transform 0.3s var(--spring);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out-expo); }

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.94rem;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: rgba(16, 16, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(80,200,120,0.04) 0%, transparent 50%);
  animation: rotate 40s linear infinite;
}

.cta-banner h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
  font-size: 0.98rem;
}

/* ---------- DISCORD CTA BOX ---------- */
.discord-cta-box {
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.15);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}

.discord-cta-box h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.discord-cta-box p {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  margin-bottom: 1.25rem !important;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- DISCORD STEP-ONE HERO (Auto-injected) ---------- */
.discord-step-one {
  background: linear-gradient(135deg, rgba(88,101,242,0.18) 0%, rgba(80,200,120,0.10) 100%);
  border: 2px solid rgba(88,101,242,0.35);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.discord-step-one::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(88,101,242,0.08), transparent);
  animation: stepOneShimmer 3s ease-in-out infinite;
}
@keyframes stepOneShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.discord-step-one .step-one-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(88,101,242,0.25);
  border: 1px solid rgba(88,101,242,0.4);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b9fff;
  margin-bottom: 0.75rem;
}
.discord-step-one h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
}
.discord-step-one p {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  margin-bottom: 1.25rem !important;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.discord-step-one .step-one-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.discord-step-one .step-one-stat {
  text-align: center;
}
.discord-step-one .step-one-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mc-gold);
}
.discord-step-one .step-one-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.discord-step-one .btn {
  position: relative;
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
}
@media (max-width: 768px) {
  .discord-step-one { padding: 1.5rem 1.25rem; }
  .discord-step-one .step-one-stats { gap: 1rem; }
  .discord-step-one .step-one-stat strong { font-size: 0.95rem; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--section-pad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--mc-emerald); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-socials { display: flex; gap: 0.6rem; }

.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: all 0.25s;
}

.footer-socials a:hover {
  background: var(--mc-emerald);
  color: var(--mc-darker);
  border-color: var(--mc-emerald);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: calc(5rem + 1rem) 0 0;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--mc-emerald); }
.breadcrumbs .sep { opacity: 0.4; }

/* ---------- TAG PILLS ---------- */
.tag-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  transition: all 0.25s;
}

.tag-pill:hover {
  background: rgba(80,200,120,0.08);
  border-color: rgba(80,200,120,0.15);
  color: var(--mc-emerald);
}

/* ---------- SEARCH BAR ---------- */
.search-bar { position: relative; max-width: 460px; margin: 0 auto; }

.search-bar input {
  width: 100%;
  padding: 0.8rem 1.15rem 0.8rem 2.8rem;
  background: rgba(16, 16, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.search-bar input:focus {
  border-color: rgba(80,200,120,0.3);
  box-shadow: 0 0 16px rgba(80,200,120,0.08);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ---------- RELATED ARTICLES ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ---------- SECTION DIVIDER ---------- */
.pixel-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin: var(--section-pad) 0;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .features-grid, .giveaway-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .article-body .glass-card { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ---------- TOP ANNOUNCEMENT BAR ---------- */
.top-announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #5865F2 0%, #7B68EE 50%, #5865F2 100%);
  background-size: 200% 100%;
  animation: barShimmer 4s ease infinite;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(88,101,242,0.3);
}

.top-announce-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.top-announce-bar a:hover { color: #FFD700; }

.top-announce-bar .announce-pulse {
  width: 8px; height: 8px;
  background: #FFD700;
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
  flex-shrink: 0;
}

.top-announce-bar .announce-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.top-announce-bar .announce-close:hover { color: #fff; }

@keyframes barShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body.has-announce-bar .navbar { top: 36px; }
body.has-announce-bar .breadcrumbs { padding-top: calc(5rem + 1rem + 36px); }
body.has-announce-bar .article-hero { padding-top: calc(var(--section-pad) + 5rem + 36px); }
body.has-announce-bar .hero { padding-top: calc(var(--section-pad) + 2rem + 36px); }

/* ---------- DISCORD POPUP MODAL ---------- */
.discord-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.discord-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.discord-popup {
  background: linear-gradient(145deg, rgba(20, 20, 36, 0.98), rgba(30, 25, 50, 0.98));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 460px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px rgba(88,101,242,0.15);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s var(--spring);
}

.discord-popup-overlay.active .discord-popup {
  transform: translateY(0) scale(1);
}

.discord-popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all 0.25s;
}

.discord-popup-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.discord-popup-icon {
  width: 64px; height: 64px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.discord-popup-icon svg {
  width: 32px; height: 32px;
  fill: #5865F2;
}

.discord-popup h3 {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.discord-popup h3 .gold { color: var(--mc-gold); }

.discord-popup p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.discord-popup .popup-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.discord-popup .popup-stat { text-align: center; }

.discord-popup .popup-stat-num {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--mc-gold);
}

.discord-popup .popup-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.discord-popup .btn-discord {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

.discord-popup .popup-dismiss {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.25s;
}

.discord-popup .popup-dismiss:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .top-announce-bar { font-size: 0.72rem; padding: 0.45rem 2.5rem 0.45rem 1rem; }
  .discord-popup { padding: 2rem 1.5rem 1.5rem; }
}

/* ============================================
   FREEMCFA — Minecraft Giveaway Hub (LEGACY)
   ============================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Core palette */
  --mc-green:    #50C878;
  --mc-dark:     #1a1a2e;
  --mc-darker:   #0f0f1a;
  --mc-brown:    #8B5E3C;
  --mc-gold:     #FFD700;
  --mc-diamond:  #4AEDED;
  --mc-emerald:  #17D45F;
  --mc-redstone: #FF3333;
  --mc-lapis:    #345EC3;
  --mc-obsidian: #1B1030;
  --mc-netherite:#4A3B4E;
  --mc-dirt:     #866043;

  /* Glassmorphism */
  --glass-bg:    rgba(15, 15, 26, 0.65);
  --glass-border:rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --glass-blur:  20px;

  /* Text */
  --text-primary:   #f0f0f0;
  --text-secondary:  #a0a0b8;
  --text-muted:      #6b6b80;
  --text-accent:     var(--mc-emerald);

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #0f0f1a 0%, #1a1a3e 50%, #0f0f1a 100%);
  --grad-card:    linear-gradient(145deg, rgba(80,200,120,0.08) 0%, rgba(74,237,237,0.04) 100%);
  --grad-glow:    linear-gradient(135deg, var(--mc-emerald), var(--mc-diamond));
  --grad-gold:    linear-gradient(135deg, #FFD700, #FFA500);
  --grad-redstone:linear-gradient(135deg, #FF3333, #FF6B6B);

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 7rem);
  --container-max: 1280px;
  --border-radius: 16px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--mc-darker);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--mc-emerald);
  color: var(--mc-darker);
}

a { color: var(--mc-diamond); text-decoration: none; transition: color .25s; }
a:hover { color: var(--mc-emerald); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--mc-darker); }
::-webkit-scrollbar-thumb { background: var(--mc-netherite); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mc-emerald); }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ---------- BACKGROUND SYSTEM ---------- */
.bg-parallax {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  overflow: hidden;
}

.bg-parallax img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.22) saturate(0.9) contrast(1.08);
  transform: none;
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(80,200,120,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,237,237,0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15,15,26,0.3) 0%, rgba(15,15,26,0.8) 100%);
  pointer-events: none;
}

/* ---------- PARTICLES CANVAS ---------- */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(140deg, #15d26b, #3ec7ff);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(80,200,120,0.2);
  border: 1px solid rgba(255,255,255,0.25);
}

.logo-icon svg {
  width: 19px;
  height: 19px;
  fill: #071219;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--mc-emerald);
  border-radius: 1px;
}

.nav-cta {
  padding: 0.55rem 1.25rem !important;
  background: var(--grad-glow) !important;
  color: var(--mc-darker) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px rgba(80,200,120,0.2);
  transition: all 0.3s var(--spring) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(80,200,120,0.4) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--section-pad) + 2rem) 0 clamp(2.5rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(80,200,120,0.1);
  border: 1px solid rgba(80,200,120,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mc-emerald);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out-expo);
}

.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--mc-emerald);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--grad-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: var(--mc-diamond);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--spring);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-glow);
  color: var(--mc-darker);
  box-shadow:
    0 4px 15px rgba(80,200,120,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(80,200,120,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  color: var(--mc-darker);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--mc-darker);
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.4);
  color: var(--mc-darker);
}

.btn-outline {
  background: transparent;
  color: var(--mc-emerald);
  border: 2px solid var(--mc-emerald);
}

.btn-outline:hover {
  background: var(--mc-emerald);
  color: var(--mc-darker);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

.icon-inline {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-inline.dark {
  fill: #0b1620;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(var(--glass-blur));
  padding: 2rem;
  transition: all 0.4s var(--ease-out-expo);
  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 {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.glass-card.card-glow:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    0 0 40px rgba(80,200,120,0.08);
}

/* ---------- SECTION HEADINGS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--mc-emerald);
  margin-bottom: 1rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 20px; height: 1px;
  background: var(--mc-emerald);
  opacity: 0.4;
}

.section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- FEATURES GRID ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2.5rem 2rem;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-icon.green  { background: rgba(80,200,120,0.12); color: var(--mc-emerald); }
.feature-icon.blue   { background: rgba(74,237,237,0.12); color: var(--mc-diamond); }
.feature-icon.gold   { background: rgba(255,215,0,0.12); color: var(--mc-gold); }
.feature-icon.red    { background: rgba(255,51,51,0.12); color: var(--mc-redstone); }
.feature-icon.purple { background: rgba(155,89,182,0.12); color: #9B59B6; }
.feature-icon.brown  { background: rgba(139,94,60,0.12); color: var(--mc-brown); }

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- GIVEAWAY CARDS ---------- */
.giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.giveaway-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.giveaway-card:hover {
  transform: translateY(-6px);
}

.giveaway-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.giveaway-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.giveaway-card:hover .giveaway-img img {
  transform: scale(1.05);
}

.giveaway-img .giveaway-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--mc-emerald);
  color: var(--mc-darker);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
}

.giveaway-tag.gold { background: var(--mc-gold); }
.giveaway-tag.diamond { background: var(--mc-diamond); }
.giveaway-tag.redstone { background: var(--mc-redstone); color: white; }

.giveaway-body {
  padding: 1.5rem 2rem 2rem;
}

.giveaway-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.giveaway-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.giveaway-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.giveaway-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mc-gold);
  font-weight: 600;
}

/* ---------- GUIDE CARDS ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  padding: 1.75rem;
  cursor: pointer;
}

.guide-card .guide-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mc-diamond);
  margin-bottom: 0.75rem;
}

.guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

.guide-card:hover h3 {
  color: var(--mc-emerald);
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.guide-card .guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.guide-card .read-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- ARTICLE LAYOUT ---------- */
.article-hero {
  padding: calc(var(--section-pad) + 5rem) 0 3rem;
  text-align: center;
}

.article-hero .article-category {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(80,200,120,0.1);
  border: 1px solid rgba(80,200,120,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mc-emerald);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.article-hero h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.article-content .glass-card {
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
}

.article-body h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  margin: 2.5rem 0 1rem;
  color: var(--mc-emerald);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body .info-box {
  background: rgba(74,237,237,0.06);
  border-left: 3px solid var(--mc-diamond);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.article-body .warning-box {
  background: rgba(255,215,0,0.06);
  border-left: 3px solid var(--mc-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.article-body .success-box {
  background: rgba(80,200,120,0.06);
  border-left: 3px solid var(--mc-emerald);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.article-body .step-list {
  counter-reset: steps;
  list-style: none;
  padding-left: 0;
}

.article-body .step-list li {
  counter-increment: steps;
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1.25rem;
}

.article-body .step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: rgba(80,200,120,0.12);
  color: var(--mc-emerald);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ---------- SIDEBAR ---------- */
.article-sidebar {
  position: sticky;
  top: 6rem;
}

.sidebar-toc {
  padding: 1.5rem;
}

.sidebar-toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-toc ul {
  list-style: none;
}

.sidebar-toc li {
  margin-bottom: 0.5rem;
}

.sidebar-toc a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  display: block;
  transition: all 0.25s;
}

.sidebar-toc a:hover,
.sidebar-toc a.active {
  color: var(--mc-emerald);
  border-left-color: var(--mc-emerald);
  background: rgba(80,200,120,0.04);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  transition: background 0.25s;
}

.faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(80,200,120,0.1);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--mc-emerald);
  transition: transform 0.3s var(--spring);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}

.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(80,200,120,0.06) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

.cta-banner h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--section-pad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--mc-emerald);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: all 0.25s;
}

.footer-socials a:hover {
  background: var(--mc-emerald);
  color: var(--mc-darker);
  border-color: var(--mc-emerald);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: calc(5rem + 1rem) 0 0;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--mc-emerald);
}

.breadcrumbs .sep {
  opacity: 0.4;
}

/* ---------- TAG PILLS ---------- */
.tag-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all 0.25s;
}

.tag-pill:hover {
  background: rgba(80,200,120,0.1);
  border-color: rgba(80,200,120,0.2);
  color: var(--mc-emerald);
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all 0.25s;
}

.pagination a:hover, .pagination .active {
  background: var(--mc-emerald);
  color: var(--mc-darker);
  border-color: var(--mc-emerald);
}

/* ---------- SEARCH BAR ---------- */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.search-bar input:focus {
  border-color: var(--mc-emerald);
  box-shadow: 0 0 20px rgba(80,200,120,0.15);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ---------- RELATED ARTICLES ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

/* ---------- PIXEL DIVIDER ---------- */
.pixel-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--mc-emerald) 0px,
    var(--mc-emerald) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.3;
  margin: var(--section-pad) 0;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .features-grid,
  .giveaway-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .article-body .glass-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

section {
  padding: var(--section-pad) 0;
  position: relative;
}
