/* ============================================================
   FlyMacro - World of Warcraft Inspired Theme
   Style: Dark Fantasy / Gold Embossed / Item Tooltip
   ============================================================ */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cinzel+Decorative:wght@400;700;900&family=IM+Fell+English+SC&family=Marcellus+SC&family=Noto+Sans+SC:wght@300;400;500;600;700;800&family=Noto+Serif+SC:wght@400;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----- Design Tokens ----- */
:root {
  /* Surfaces (warm dark) */
  --bg-base:        #0a0807;
  --bg-deep:        #050403;
  --bg-surface:     #15110d;
  --bg-elevated:    #1f1812;
  --bg-parchment:   #2a201a;

  /* Gold metalwork */
  --gold:           #c9aa6a;
  --gold-bright:    #ffd100;
  --gold-dim:       #8c7339;
  --gold-deep:      #5e4a23;

  /* Borders */
  --border:         #3a2f24;
  --border-strong:  #5a4632;
  --border-gold:    #8c7339;

  /* Text (warm parchment) */
  --text:           #f4e6c8;
  --text-muted:     #a89880;
  --text-dim:       #75695a;
  --text-bright:    #ffffff;

  /* Item quality (Blizzard standard) */
  --q-poor:         #9d9d9d;
  --q-common:       #ffffff;
  --q-uncommon:     #1eff00;
  --q-rare:         #0070dd;
  --q-epic:         #a335ee;
  --q-legendary:    #ff8000;
  --q-artifact:     #e6cc80;

  /* Status */
  --health:         #22c55e;
  --mana:           #3b82f6;
  --rage:           #c41e3a;
  --warning:        #f97316;

  /* Effects */
  --glow-gold:      0 0 12px rgba(255, 209, 0, 0.35);
  --glow-soft:      0 0 24px rgba(201, 170, 106, 0.25);
  --shadow-deep:    0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-frame:   0 4px 16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 209, 0, 0.08);

  /* Typography */
  --font-hero:      'Cinzel Decorative', 'Cinzel', 'Noto Serif SC', serif;
  --font-display:   'Cinzel', 'Marcellus SC', 'Noto Serif SC', serif;
  --font-caps:      'Marcellus SC', 'Cinzel', 'Noto Serif SC', serif;
  --font-decor:     'IM Fell English SC', 'Marcellus SC', serif;
  --font-body:      'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:     'Noto Serif SC', 'Cinzel', serif;
  --font-mono:      'JetBrains Mono', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse at top, rgba(94, 74, 35, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(20, 14, 9, 0.6) 0%, transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.2 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

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

::selection { background: var(--gold-deep); color: var(--text-bright); }

/* ============================================================
   Container
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { min-height: calc(100vh - 200px); }

/* ============================================================
   Site Header — Ornamental top bar
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(31, 24, 18, 0.96) 0%, rgba(15, 11, 8, 0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dim) 20%,
    var(--gold-bright) 50%,
    var(--gold-dim) 80%,
    transparent 100%);
  opacity: 0.7;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-hero);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(255, 209, 0, 0.4), 0 2px 0 rgba(0,0,0,0.6);
  text-transform: uppercase;
}

.site-logo::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd100'><path d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 4.5l1.5 3 3.3.5-2.4 2.3.6 3.3L12 13l-3 1.6.6-3.3-2.4-2.3 3.3-.5L12 5.5z'/></svg>") center/contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 209, 0, 0.6));
}

.site-logo:hover { color: var(--gold-bright); }

.site-nav { display: flex; gap: 0.25rem; align-items: center; }

.site-nav a {
  position: relative;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.25s;
}

.site-nav a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(255, 209, 0, 0.5);
}

.site-nav a::before,
.site-nav a::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.25s;
}
.site-nav a::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.site-nav a::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.site-nav a:hover::before,
.site-nav a:hover::after { opacity: 1; }

/* ============================================================
   Buttons — Embossed metal
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-caps);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(140, 115, 57, 0.2) 0%, rgba(58, 47, 36, 0.4) 100%),
    var(--bg-elevated);
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 209, 0, 0.18),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.2s;
  cursor: pointer;
}

.btn:hover {
  background:
    linear-gradient(180deg, rgba(201, 170, 106, 0.28) 0%, rgba(94, 74, 35, 0.45) 100%),
    var(--bg-parchment);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 209, 0, 0.3),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 0 18px rgba(255, 209, 0, 0.3),
    0 4px 12px rgba(0,0,0,0.4);
  color: #ffefb0;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background:
    linear-gradient(180deg, #d4a84a 0%, #8c6e2a 100%);
  border-color: #ffd100;
  color: #1a0f00;
  text-shadow: 0 1px 0 rgba(255, 240, 180, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffd76b 0%, #c9892a 100%);
  color: #1a0f00;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 24px rgba(255, 209, 0, 0.55);
}

.btn-secondary { /* default style above */ }

.btn-download {
  background: linear-gradient(180deg, #2eb360 0%, #185a32 100%);
  border-color: #5fdc8b;
  color: #ffffff;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}
.btn-download:hover {
  background: linear-gradient(180deg, #4ddc7d 0%, #1e7a44 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 24px rgba(95, 220, 139, 0.5);
}

.btn-buy-cn {
  background: linear-gradient(180deg, #c93b3b 0%, #6b1818 100%);
  border-color: #ff6b6b;
  color: #ffffff;
}
.btn-buy-cn:hover {
  background: linear-gradient(180deg, #e15555 0%, #8a2424 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 18px rgba(255, 107, 107, 0.45);
}

.btn-buy-global {
  background: linear-gradient(180deg, #b86a1e 0%, #5a3210 100%);
  border-color: #ff8c1f;
  color: #ffffff;
}
.btn-buy-global:hover {
  background: linear-gradient(180deg, #d68538 0%, #74441a 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 18px rgba(255, 140, 31, 0.45);
}

/* ============================================================
   Hero — Epic landing
   ============================================================ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 209, 0, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(94, 74, 35, 0.35) 0%, transparent 70%),
    url("/images/hero-bg.svg") center 30% / cover no-repeat,
    var(--bg-deep);
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dim) 20%,
    var(--gold-bright) 50%,
    var(--gold-dim) 80%,
    transparent 100%);
}

.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffefb0 0%, #ffd76b 35%, #c9aa6a 65%, #8c7339 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 209, 0, 0.35);
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.55)) drop-shadow(0 0 20px rgba(255, 209, 0, 0.25));
}

.hero .lead {
  font-family: var(--font-decor);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero ornament — subtle rune */
.hero .container::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffd100' stroke-width='1.5'><circle cx='32' cy='32' r='28' opacity='0.5'/><circle cx='32' cy='32' r='20' opacity='0.7'/><path d='M32 8v12M32 44v12M8 32h12M44 32h12M16 16l8 8M40 40l8 8M48 16l-8 8M24 40l-8 8'/><circle cx='32' cy='32' r='4' fill='%23ffd100'/></svg>") center/contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(255, 209, 0, 0.5));
  animation: rune-pulse 4s ease-in-out infinite;
}

@keyframes rune-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .container::before { animation: none; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 5rem 0; position: relative; }

.section-alt {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-bright);
  margin-bottom: 3rem;
  text-shadow: 0 0 20px rgba(255, 209, 0, 0.3), 0 2px 0 rgba(0,0,0,0.55);
}

.section h2::after {
  content: "";
  display: block;
  width: 220px;
  height: 18px;
  margin: 0.75rem auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18' fill='none' stroke='%23c9aa6a' stroke-width='1'><line x1='0' y1='9' x2='90' y2='9' opacity='0.5'/><line x1='130' y1='9' x2='220' y2='9' opacity='0.5'/><circle cx='110' cy='9' r='4' fill='%23ffd100' stroke='none'/><circle cx='110' cy='9' r='7' opacity='0.7'/></svg>") center/contain no-repeat;
}

.section-footer { text-align: center; margin-top: 3rem; }

.section-divider {
  display: flex;
  justify-content: center;
  margin: -1.75rem auto 2.5rem;
  pointer-events: none;
}

.section-divider img {
  width: min(380px, 70%);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(255, 209, 0, 0.18));
}

/* ============================================================
   Feature Grid — Scroll cards
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature {
  position: relative;
  padding: 2.5rem 1.75rem 2rem;
  background:
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  transition: all 0.3s;
  isolation: isolate;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 209, 0, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 50%, transparent 100%);
  opacity: 0.7;
}

.feature:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft), var(--shadow-deep);
}

.feature:hover::before { opacity: 1; }

.feature .feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(94, 74, 35, 0.4) 0%, transparent 70%),
    var(--bg-deep);
  color: var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(255, 209, 0, 0.3));
}

.feature .feature-icon svg { width: 28px; height: 28px; }
.feature .feature-icon img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(255, 209, 0, 0.45));
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.65rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   Class Panel — class-color showcase
   ============================================================ */
.class-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.class-tile {
  position: relative;
  padding: 1.25rem 1rem 1.1rem 3.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--class-color, var(--gold));
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.class-tile .class-crest {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--class-color, var(--gold-bright));
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
}

.class-tile .class-crest svg,
.class-tile .class-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.class-tile:hover .class-crest {
  opacity: 1;
  transform: translateY(-50%) rotate(-6deg) scale(1.08);
}

.class-tile:hover {
  background: var(--bg-parchment);
  border-color: var(--class-color, var(--gold));
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.15);
  transform: translateX(2px);
}

.class-tile .class-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--class-color, var(--gold-bright));
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.class-tile .class-count {
  font-family: var(--font-decor);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* WoW class colors */
.class-deathknight  { --class-color: #C41E3A; }
.class-demonhunter  { --class-color: #A330C9; }
.class-druid        { --class-color: #FF7C0A; }
.class-evoker       { --class-color: #33937F; }
.class-hunter       { --class-color: #AAD372; }
.class-mage         { --class-color: #3FC7EB; }
.class-monk         { --class-color: #00FF98; }
.class-paladin      { --class-color: #F48CBA; }
.class-priest       { --class-color: #FFFFFF; }
.class-rogue        { --class-color: #FFF468; }
.class-shaman       { --class-color: #0070DD; }
.class-warlock      { --class-color: #8788EE; }
.class-warrior      { --class-color: #C69B6D; }

/* ============================================================
   Macro Grid (item bag)
   ============================================================ */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   Macro Card — Item Tooltip Style
   ============================================================ */
.macro-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(31, 24, 18, 0.95) 0%, rgba(15, 11, 8, 0.95) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-frame);
}

.macro-card::before,
.macro-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  pointer-events: none;
  transition: all 0.3s;
  z-index: 2;
}
.macro-card::before {
  top: 6px; left: 6px;
  border-right: 0; border-bottom: 0;
}
.macro-card::after {
  bottom: 6px; right: 6px;
  border-left: 0; border-top: 0;
}

.macro-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow:
    0 0 24px rgba(255, 209, 0, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 209, 0, 0.15);
}

.macro-card:hover::before,
.macro-card:hover::after {
  width: 18px;
  height: 18px;
  border-color: var(--gold-bright);
  filter: drop-shadow(0 0 4px rgba(255, 209, 0, 0.6));
}

/* Quality indicator strip on top */
.macro-card[data-type="premium"] {
  border-top: 2px solid var(--q-epic);
  box-shadow:
    var(--shadow-frame),
    0 0 0 1px rgba(163, 53, 238, 0.2);
}
.macro-card[data-type="premium"]:hover {
  box-shadow:
    0 0 28px rgba(163, 53, 238, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.7);
}

.macro-card[data-type="free"] {
  border-top: 2px solid var(--q-uncommon);
}

.card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 8, 7, 0.85) 100%);
  pointer-events: none;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.macro-card:hover .card-img img { transform: scale(1.04); }

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.macro-card[data-type="premium"] .card-body h3 a { color: #cb84ff; }
.macro-card[data-type="free"] .card-body h3 a { color: #6dff42; }

.card-body h3 a:hover { color: #ffefb0; }

.card-body .summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Tags — quality marks
   ============================================================ */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 1px;
  background: rgba(0,0,0,0.4);
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

/* Class color tags */
.tag.class { color: #f4e6c8; border-color: var(--gold-dim); }
.tag.class[data-class="deathknight"]  { color: #C41E3A; border-color: #C41E3A; }
.tag.class[data-class="demonhunter"]  { color: #A330C9; border-color: #A330C9; }
.tag.class[data-class="druid"]        { color: #FF7C0A; border-color: #FF7C0A; }
.tag.class[data-class="evoker"]       { color: #33937F; border-color: #33937F; }
.tag.class[data-class="hunter"]       { color: #AAD372; border-color: #AAD372; }
.tag.class[data-class="mage"]         { color: #3FC7EB; border-color: #3FC7EB; }
.tag.class[data-class="monk"]         { color: #00FF98; border-color: #00FF98; }
.tag.class[data-class="paladin"]      { color: #F48CBA; border-color: #F48CBA; }
.tag.class[data-class="priest"]       { color: #FFFFFF; border-color: #FFFFFF; }
.tag.class[data-class="rogue"]        { color: #FFF468; border-color: #FFF468; }
.tag.class[data-class="shaman"]       { color: #0070DD; border-color: #0070DD; }
.tag.class[data-class="warlock"]      { color: #8788EE; border-color: #8788EE; }
.tag.class[data-class="warrior"]      { color: #C69B6D; border-color: #C69B6D; }

.tag.spec    { color: var(--text); border-color: var(--border-strong); }
.tag.version { color: var(--text-muted); border-color: var(--border); }

.tag.type-free {
  color: var(--q-uncommon);
  border-color: var(--q-uncommon);
  text-shadow: 0 0 6px rgba(30, 255, 0, 0.4);
}
.tag.type-premium {
  color: var(--q-epic);
  border-color: var(--q-epic);
  text-shadow: 0 0 6px rgba(163, 53, 238, 0.5);
}

/* ============================================================
   Page List
   ============================================================ */
.page-list { padding: 3.5rem 0 4rem; }

.page-list h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 209, 0, 0.3), 0 2px 0 rgba(0,0,0,0.55);
}

.page-list h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 12px;
  margin-top: 0.75rem;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12' fill='none' stroke='%23c9aa6a' stroke-width='1'><line x1='0' y1='6' x2='80' y2='6'/><line x1='100' y1='6' x2='180' y2='6'/><circle cx='90' cy='6' r='3' fill='%23ffd100' stroke='none'/></svg>") left center/contain no-repeat;
}

.page-content {
  margin: 1.25rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
  font-family: var(--font-decor);
  letter-spacing: 0.02em;
}

/* ============================================================
   Filters — class/quality bar
   ============================================================ */
.filters {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 209, 0, 0.05);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  background: rgba(94, 74, 35, 0.15);
}

.filter-btn.active {
  background: linear-gradient(180deg, rgba(201, 170, 106, 0.25) 0%, rgba(94, 74, 35, 0.4) 100%);
  border-color: var(--gold);
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(255, 209, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 209, 0, 0.2),
    0 0 12px rgba(255, 209, 0, 0.2);
}

/* ============================================================
   Taxonomy Cloud
   ============================================================ */
.taxonomy-cloud {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
}

.taxonomy-cloud::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.taxonomy-cloud h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-link {
  padding: 0.45rem 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 1px;
  transition: all 0.2s;
}

.tag-link:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(255, 209, 0, 0.06);
  text-shadow: 0 0 6px rgba(255, 209, 0, 0.4);
}

/* ============================================================
   Detail Page — Item tooltip full
   ============================================================ */
.page-single { padding: 3.5rem 0 4rem; }

.macro-detail {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.detail-header {
  margin-bottom: 2rem;
  padding: 2rem 2rem 1.5rem;
  background:
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  position: relative;
  box-shadow: var(--shadow-frame);
}

.detail-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.detail-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(255, 209, 0, 0.35), 0 2px 0 rgba(0,0,0,0.6);
}

.detail-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.detail-preview {
  margin-bottom: 2rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-deep);
  position: relative;
}

.detail-preview::before,
.detail-preview::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  z-index: 2;
}
.detail-preview::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.detail-preview::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.detail-content {
  padding: 2rem 2.25rem;
  background:
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  position: relative;
}

.detail-content > *:first-child { margin-top: 0; }

.detail-content h2,
.detail-content h3,
.detail-content h4 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin: 2.25rem 0 1rem;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
  position: relative;
  padding-bottom: 0.5rem;
}
.detail-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); }
.detail-content h3 { font-size: 1.2rem; }
.detail-content h4 { font-size: 1.05rem; color: var(--gold); }

.detail-content p { margin: 0.9rem 0; }

.detail-content ul, .detail-content ol {
  margin: 1rem 0 1rem 1.5rem;
}
.detail-content ul li,
.detail-content ol li { margin: 0.5rem 0; }
.detail-content ul li::marker { color: var(--gold); }

.detail-content strong { color: var(--gold-bright); }

.detail-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(94, 74, 35, 0.15);
  border-left: 3px solid var(--gold);
  font-family: var(--font-decor);
  font-style: italic;
  color: var(--text);
}

.detail-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  color: var(--gold-bright);
}

.detail-content pre {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.detail-content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
}

.detail-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
}
.detail-content th,
.detail-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.detail-content th {
  background: var(--bg-elevated);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.detail-content tr:hover td { background: rgba(94, 74, 35, 0.12); }

/* ============================================================
   Download / Purchase Areas
   ============================================================ */
.download-area, .purchase-area {
  margin-top: 2.5rem;
  padding: 2.5rem 2rem;
  background:
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-frame);
}

.download-area::before, .purchase-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.download-area .hint {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-decor);
  font-style: italic;
}

.purchase-area h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 2rem;
  text-shadow: 0 0 12px rgba(255, 209, 0, 0.3);
}

.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.model-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(31, 24, 18, 0.95) 0%, rgba(15, 11, 8, 0.95) 100%);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--q-epic);
  border-radius: 2px;
  transition: all 0.3s;
  isolation: isolate;
}

.model-card::before, .model-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--gold-dim);
  transition: all 0.3s;
}
.model-card::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.model-card::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.model-card:hover {
  border-color: var(--gold);
  border-top-color: var(--q-epic);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(163, 53, 238, 0.2), var(--shadow-deep);
}
.model-card:hover::before, .model-card:hover::after {
  border-color: var(--gold-bright);
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.model-header h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--q-epic);
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.model-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 209, 0, 0.4), 0 1px 0 rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}

.model-features {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.model-features li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border);
  line-height: 1.55;
}
.model-features li:last-child { border-bottom: 0; }

.model-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(255, 209, 0, 0.6);
}

.model-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.model-actions .btn { width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, #000 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--gold-dim), var(--gold-bright), var(--gold-dim), transparent);
}

.footer-links { margin-bottom: 1rem; font-family: var(--font-decor); letter-spacing: 0.04em; }
.footer-links a { color: var(--gold); margin: 0 0.25rem; }
.footer-links a:hover { color: var(--gold-bright); }

.site-footer p {
  font-family: var(--font-decor);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .site-header .container { gap: 1rem; }
  .site-nav { gap: 0.1rem; }
  .site-nav a { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
  .hero { padding: 4rem 0 3rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .site-header .container {
    flex-direction: column;
    height: auto;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }
  .site-header { position: relative; }
  .site-logo { font-size: 1.2rem; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 2rem; letter-spacing: 0.04em; }
  .hero .lead { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 1rem; }
  .hero-actions .btn { width: 100%; }
  .macro-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .class-panel { grid-template-columns: repeat(2, 1fr); }
  .filters { padding: 0.65rem; }
  .filter-btn { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
  .detail-header { padding: 1.5rem 1.25rem; }
  .detail-content { padding: 1.5rem 1.25rem; }
  .download-area, .purchase-area { padding: 1.75rem 1.25rem; }
  .models { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
