/* ============================================================
   DESIGN SYSTEM (base.html)
   ============================================================ */

    /* ============================================================
       TBC OPTIMIZER -- DESIGN SYSTEM
       A dark-fantasy WoW-themed design for Burning Crusade Classic
       ============================================================ */

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

    /* === CSS CUSTOM PROPERTIES === */
    :root {
      /* Backgrounds */
      --bg-primary: #0a0a0f;
      --bg-surface: #12121a;
      --bg-surface-hover: #1a1a28;
      --bg-surface-alt: #0e0e16;

      /* Borders */
      --border: #1e1e2e;
      --border-gold: #f5c518;
      --border-gold-dim: #a6850f;

      /* Text */
      --text-primary: #e8e6e3;
      --text-secondary: #8a8693;
      --text-gold: #f5c518;
      --text-muted: #5a5666;

      /* Accent: TBC Fel Green */
      --fel-green: #1aff80;
      --fel-green-dim: #0d7a3e;
      --fel-glow: rgba(26, 255, 128, 0.3);

      /* Portal purple */
      --portal-purple: #6b21a8;
      --portal-purple-dim: #3b0764;

      /* Class Colors */
      --class-warrior: #C79C6E;
      --class-paladin: #F58CBA;
      --class-hunter: #ABD473;
      --class-rogue: #FFF569;
      --class-priest: #FFFFFF;
      --class-shaman: #0070DE;
      --class-mage: #69CCF0;
      --class-warlock: #9482C9;
      --class-druid: #FF7D0A;

      /* Quality Colors */
      --quality-legendary: #ff8000;
      --quality-epic: #a335ee;
      --quality-rare: #0070dd;
      --quality-uncommon: #1eff00;
      --quality-common: #ffffff;
      --quality-poor: #9d9d9d;

      /* Demand Colors */
      --demand-very-high: #1eff00;
      --demand-high: #0070dd;
      --demand-medium: #f5c518;
      --demand-low: #ff4444;

      /* Layout */
      --max-width: 1200px;
      --sidebar-width: 240px;

      /* Transitions */
      --transition-fast: 0.15s ease;
      --transition-normal: 0.3s ease;
      --transition-slow: 0.5s ease;
    }

    /* === TYPOGRAPHY === */
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
      line-height: 1.6;
      font-size: 15px;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      line-height: 1.2;
      color: var(--text-primary);
    }

    h1 { font-size: clamp(2rem, 4vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
    h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }
    h4 { font-size: 1.1rem; }

    a {
      color: var(--text-gold);
      text-decoration: none;
      transition: color var(--transition-fast), text-shadow var(--transition-fast);
    }
    a:hover {
      color: var(--fel-green);
      text-shadow: 0 0 8px var(--fel-glow);
    }

    p { margin-bottom: 1rem; color: var(--text-secondary); }

    strong { color: var(--text-primary); font-weight: 600; }

    /* === ANIMATED PORTAL BACKGROUND === */
    .bg-portal {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .bg-portal::before {
      content: '';
      position: absolute;
      top: 25%;
      left: 50%;
      width: 1200px;
      height: 1200px;
      transform: translate(-50%, -50%);
      background:
        radial-gradient(ellipse at center,
          rgba(26, 255, 128, 0.08) 0%,
          rgba(107, 33, 168, 0.06) 25%,
          rgba(26, 255, 128, 0.03) 40%,
          rgba(10, 10, 15, 0) 65%
        );
      animation: portalPulse 8s ease-in-out infinite;
    }

    .bg-portal::after {
      content: '';
      position: absolute;
      top: 25%;
      left: 50%;
      width: 800px;
      height: 800px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      background:
        radial-gradient(ellipse at center,
          rgba(26, 255, 128, 0.05) 0%,
          rgba(107, 33, 168, 0.03) 40%,
          transparent 70%
        );
      animation: portalSpin 25s linear infinite;
    }

    @keyframes portalPulse {
      0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
      50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    }

    @keyframes portalSpin {
      from { transform: translate(-50%, -50%) rotate(0deg); }
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* Noise texture overlay for depth */
    .bg-noise {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.025;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 256px 256px;
    }

    /* Floating particles */
    .particles {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    .particle {
      position: absolute;
      width: 2px;
      height: 2px;
      background: var(--fel-green);
      border-radius: 50%;
      animation: particleFloat linear infinite;
      opacity: 0;
    }

    @keyframes particleFloat {
      0% { transform: translateY(100vh); opacity: 0; }
      10% { opacity: 0.6; }
      90% { opacity: 0.6; }
      100% { transform: translateY(-20vh); opacity: 0; }
    }

    /* === LAYOUT === */
    .site-wrapper {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .page-content {
      flex: 1;
      padding-top: 2rem;
      padding-bottom: 4rem;
    }

    /* Two-column layout for spec guide pages */
    .layout-sidebar {
      display: grid;
      grid-template-columns: var(--sidebar-width) 1fr;
      gap: 2.5rem;
      align-items: start;
    }

    /* === GOLD DIVIDERS === */
    .divider-gold {
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg,
        transparent 0%,
        var(--border-gold-dim) 20%,
        var(--border-gold) 50%,
        var(--border-gold-dim) 80%,
        transparent 100%
      );
      margin: 2rem 0;
      opacity: 0.5;
    }

    .divider-subtle {
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
      margin: 1.5rem 0;
    }

    /* === CARDS === */
    .card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem;
      transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    }

    .card:hover {
      border-color: var(--border-gold-dim);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(245, 197, 24, 0.05);
      transform: translateY(-2px);
    }

    .card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }
    .card-link:hover { color: inherit; text-shadow: none; }

    /* === CLASS COLOR UTILITIES === */
    .class-warrior { --class-color: #C79C6E; --class-glow: rgba(199,156,110,0.3); }
    .class-paladin { --class-color: #F58CBA; --class-glow: rgba(245,140,186,0.3); }
    .class-hunter { --class-color: #ABD473; --class-glow: rgba(171,212,115,0.3); }
    .class-rogue { --class-color: #FFF569; --class-glow: rgba(255,245,105,0.3); }
    .class-priest { --class-color: #FFFFFF; --class-glow: rgba(255,255,255,0.2); }
    .class-shaman { --class-color: #0070DE; --class-glow: rgba(0,112,222,0.3); }
    .class-mage { --class-color: #69CCF0; --class-glow: rgba(105,204,240,0.3); }
    .class-warlock { --class-color: #9482C9; --class-glow: rgba(148,130,201,0.3); }
    .class-druid { --class-color: #FF7D0A; --class-glow: rgba(255,125,10,0.3); }

    .text-class-color { color: var(--class-color); }
    .border-class-color { border-color: var(--class-color); }
    .glow-class {
      box-shadow: 0 0 15px var(--class-glow), 0 0 30px rgba(0,0,0,0.5);
    }

    /* === QUALITY COLOR UTILITIES === */
    .quality-5, .quality-legendary { color: var(--quality-legendary); }
    .quality-4, .quality-epic { color: var(--quality-epic); }
    .quality-3, .quality-rare { color: var(--quality-rare); }
    .quality-2, .quality-uncommon { color: var(--quality-uncommon); }
    .quality-1, .quality-common { color: var(--quality-common); }
    .quality-0, .quality-poor { color: var(--quality-poor); }

    /* === DEMAND / POPULATION BADGES === */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      border: 1px solid;
    }

    .badge-demand-very_high, .badge-demand-very-high {
      color: var(--demand-very-high);
      border-color: rgba(30, 255, 0, 0.3);
      background: rgba(30, 255, 0, 0.08);
    }
    .badge-demand-high {
      color: var(--demand-high);
      border-color: rgba(0, 112, 221, 0.3);
      background: rgba(0, 112, 221, 0.08);
    }
    .badge-demand-medium {
      color: var(--demand-medium);
      border-color: rgba(245, 197, 24, 0.3);
      background: rgba(245, 197, 24, 0.08);
    }
    .badge-demand-low {
      color: var(--demand-low);
      border-color: rgba(255, 68, 68, 0.3);
      background: rgba(255, 68, 68, 0.08);
    }

    .badge-role {
      color: var(--text-primary);
      border-color: var(--border);
      background: var(--bg-surface-hover);
      font-family: 'Nunito Sans', sans-serif;
    }
    .badge-role-tank {
      color: #4fc3f7;
      border-color: rgba(79, 195, 247, 0.3);
      background: rgba(79, 195, 247, 0.08);
    }
    .badge-role-healer {
      color: #81c784;
      border-color: rgba(129, 199, 132, 0.3);
      background: rgba(129, 199, 132, 0.08);
    }
    .badge-role-dps, .badge-role-melee-dps, .badge-role-ranged-dps {
      color: #e57373;
      border-color: rgba(229, 115, 115, 0.3);
      background: rgba(229, 115, 115, 0.08);
    }

    .badge-faction {
      font-size: 0.68rem;
      padding: 0.2rem 0.5rem;
    }
    .badge-alliance {
      color: #4a90d9;
      border-color: rgba(74, 144, 217, 0.3);
      background: rgba(74, 144, 217, 0.08);
    }
    .badge-horde {
      color: #c41f3b;
      border-color: rgba(196, 31, 59, 0.3);
      background: rgba(196, 31, 59, 0.08);
    }

    /* === COMPLEXITY INDICATOR === */
    .complexity {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .complexity-label {
      font-size: 0.72rem;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .complexity-pips {
      display: inline-flex;
      gap: 3px;
    }
    .complexity-pip {
      width: 8px;
      height: 8px;
      border-radius: 2px;
      border: 1px solid var(--border-gold-dim);
      background: transparent;
      transition: background var(--transition-fast);
    }
    .complexity-pip.filled {
      background: var(--border-gold);
      box-shadow: 0 0 4px rgba(245, 197, 24, 0.4);
    }

    /* === CLASS CARD GRID (Homepage) === */
    .class-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .class-card {
      background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem 1.25rem;
      text-align: center;
      transition: all var(--transition-normal);
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    /* Subtle class-colored ambient glow at top */
    .class-card::before {
      content: '';
      position: absolute;
      top: -40px;
      left: 50%;
      transform: translateX(-50%);
      width: 120px;
      height: 80px;
      border-radius: 50%;
      background: var(--class-color);
      opacity: 0.04;
      filter: blur(30px);
      transition: opacity var(--transition-normal), height var(--transition-normal);
    }

    /* Top accent line */
    .class-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 20%;
      right: 20%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--class-color), transparent);
      opacity: 0;
      transition: opacity var(--transition-normal), left var(--transition-normal), right var(--transition-normal);
    }

    .class-card:hover {
      border-color: color-mix(in srgb, var(--class-color) 40%, var(--border));
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 24px var(--class-glow),
        inset 0 1px 0 rgba(255,255,255,0.04);
      transform: translateY(-6px);
    }
    .class-card:hover::before { opacity: 0.1; height: 120px; }
    .class-card:hover::after { opacity: 0.7; left: 10%; right: 10%; }

    .class-card-icon {
      width: 72px;
      height: 72px;
      border-radius: 10px;
      margin: 0 auto 0.85rem;
      border: 2px solid var(--border);
      object-fit: cover;
      transition: all var(--transition-normal);
      background: var(--bg-surface-hover);
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .class-card:hover .class-card-icon {
      border-color: var(--class-color);
      box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 12px var(--class-glow);
      transform: scale(1.05);
    }

    .class-card-name {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--class-color);
      margin-bottom: 0.5rem;
      letter-spacing: 0.02em;
    }

    .class-card-specs {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      justify-content: center;
      margin-bottom: 0.75rem;
    }

    .spec-pill {
      font-size: 0.7rem;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: var(--text-muted);
      transition: all var(--transition-normal);
    }
    .class-card:hover .spec-pill {
      border-color: color-mix(in srgb, var(--class-color) 20%, transparent);
      color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.06);
    }

    .class-card-pop {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
    }
    .pop-pct {
      font-size: 0.62rem;
      color: var(--text-muted);
      letter-spacing: 0.04em;
    }

    /* Class Teaser Strip (homepage) */
    .class-teaser-strip {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .class-teaser-icon {
      display: block;
      width: 56px;
      height: 56px;
      border-radius: 10px;
      border: 2px solid var(--border);
      overflow: hidden;
      background: var(--bg-surface);
      transition: all var(--transition-normal);
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .class-teaser-icon:hover {
      border-color: var(--class-color);
      box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 16px var(--class-glow);
      transform: translateY(-4px) scale(1.1);
    }
    .class-teaser-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* === HERO SECTION === */
    .hero {
      text-align: center;
      padding: 5rem 0 3.5rem;
      position: relative;
    }

    .hero-accent {
      width: 80px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--fel-green), transparent);
      margin: 0 auto 2rem;
      box-shadow: 0 0 20px var(--fel-glow), 0 0 40px rgba(26, 255, 128, 0.15);
      position: relative;
    }
    .hero-accent::before {
      content: '';
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--fel-green), transparent 70%);
      opacity: 0.6;
      animation: accentPulse 3s ease-in-out infinite;
    }
    @keyframes accentPulse {
      0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
      50% { opacity: 0.8; transform: translateX(-50%) scale(1.5); }
    }

    @keyframes felFlameText {
      0%, 100% { background-position: 0% 90%; }
      50% { background-position: 0% 10%; }
    }

    @keyframes felFlameGlow {
      0%, 100% { filter: drop-shadow(0 0 8px rgba(26, 255, 128, 0.4)) drop-shadow(0 0 20px rgba(0, 128, 43, 0.2)); }
      50% { filter: drop-shadow(0 0 16px rgba(26, 255, 128, 0.6)) drop-shadow(0 0 35px rgba(0, 128, 43, 0.35)); }
    }

    .hero h1 {
      font-family: 'Cinzel Decorative', 'Cinzel', serif;
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 700;
      color: transparent;
      -webkit-text-stroke: 1.5px var(--fel-green);
      background: linear-gradient(
        0deg,
        #004d1a 0%,
        #00802b 15%,
        var(--fel-green) 35%,
        #b3ffcc 50%,
        var(--fel-green) 65%,
        #00802b 85%,
        #004d1a 100%
      );
      background-size: 100% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: felFlameText 3s ease-in-out infinite;
      margin-bottom: 1.25rem;
      letter-spacing: 0.03em;
      text-shadow: none;
      filter: drop-shadow(0 0 12px rgba(26, 255, 128, 0.4)) drop-shadow(0 0 30px rgba(0, 128, 43, 0.25));
    }

    .hero-subtitle {
      font-size: clamp(1rem, 2vw, 1.15rem);
      color: var(--text-secondary);
      max-width: 560px;
      margin: 0 auto;
      font-weight: 400;
      line-height: 1.7;
    }

    /* Class-specific hero */
    .hero-class {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding: 3rem 0 2rem;
    }

    .hero-class-icon {
      width: 80px;
      height: 80px;
      border-radius: 12px;
      border: 2px solid var(--class-color);
      box-shadow: 0 0 20px var(--class-glow);
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-surface);
    }

    .hero-class h1 {
      background: none;
      -webkit-text-fill-color: var(--class-color);
      font-size: clamp(2rem, 4vw, 2.8rem);
      margin-bottom: 0.25rem;
    }

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

    /* Spec hero */
    .hero-spec {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding: 3rem 0 2rem;
    }

    .hero-spec h1 {
      background: none;
      -webkit-text-fill-color: var(--class-color);
      font-size: clamp(1.8rem, 3.5vw, 2.5rem);
      margin-bottom: 0.25rem;
    }

    .hero-spec-oneliner {
      color: var(--text-secondary);
      font-size: 1rem;
      margin-top: 0.35rem;
    }

    /* === SECTION HEADERS === */
    .section {
      margin-bottom: 3rem;
    }

    .section-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.25rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border);
    }

    .section-header h2 {
      margin-bottom: 0;
      font-size: 1.4rem;
    }

    .section-icon {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      color: var(--text-gold);
    }

    /* === STAT PRIORITY BARS === */
    .stat-bars {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .stat-bar {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 1rem;
      align-items: center;
    }

    .stat-bar-label {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-primary);
      text-align: right;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stat-bar-track {
      height: 24px;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }

    .stat-bar-fill {
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--border-gold-dim), var(--border-gold));
      transition: width 0.8s ease-out;
      position: relative;
    }

    .stat-bar-fill::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 20px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1));
    }

    .stat-bar-value {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-primary);
      text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    }

    /* === WoW-STYLE ITEM TOOLTIP === */
    .has-tooltip {
      position: relative;
      cursor: pointer;
    }

    .tooltip-content {
      display: none;
      position: absolute;
      z-index: 1000;
      pointer-events: none;
    }

    .wow-tooltip {
      background: linear-gradient(180deg, #1a1125 0%, #0d0a12 100%);
      border: 1px solid var(--border-gold);
      border-radius: 4px;
      padding: 0.75rem 1rem;
      min-width: 250px;
      max-width: 350px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 197, 24, 0.1);
      font-size: 0.82rem;
      line-height: 1.5;
    }

    .tooltip-name {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
    }

    .tooltip-ilvl {
      color: var(--text-gold);
      font-size: 0.78rem;
    }

    .tooltip-slot {
      color: var(--text-primary);
      font-size: 0.78rem;
    }

    .tooltip-stats {
      color: var(--text-primary);
      font-size: 0.78rem;
    }

    .tooltip-stats .stat-bonus {
      color: var(--quality-uncommon);
    }

    .tooltip-source {
      color: var(--text-secondary);
      font-size: 0.75rem;
      margin-top: 0.4rem;
      padding-top: 0.4rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-style: italic;
    }

    /* === GEAR TABLE (BiS Lists) === */
    .gear-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.85rem;
    }

    .gear-table thead th {
      text-align: left;
      padding: 0.6rem 0.75rem;
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-gold);
      border-bottom: 2px solid var(--border-gold-dim);
      background: var(--bg-surface);
      position: sticky;
      top: 0;
      z-index: 5;
    }

    .gear-table tbody tr {
      transition: background var(--transition-fast);
    }

    .gear-table tbody tr:hover {
      background: var(--bg-surface-hover);
    }

    .gear-table td {
      padding: 0.55rem 0.75rem;
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }

    .gear-table .slot-label {
      font-weight: 600;
      color: var(--text-primary);
      text-transform: capitalize;
      white-space: nowrap;
      font-size: 0.8rem;
    }

    .gear-table .item-name {
      font-weight: 500;
      cursor: pointer;
    }
    .gear-table .item-name:hover {
      text-decoration: underline;
    }

    .gear-table .item-source {
      color: var(--text-secondary);
      font-size: 0.78rem;
    }

    .item-with-icon {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .gear-table .item-icon {
      width: 24px;
      height: 24px;
      border-radius: 3px;
      border: 1px solid var(--border);
      flex-shrink: 0;
      background: var(--bg-surface-hover);
    }
    .tooltip-icon {
      float: left;
      width: 36px;
      height: 36px;
      border-radius: 4px;
      border: 1px solid var(--border-gold);
      margin-right: 0.5rem;
      margin-bottom: 0.25rem;
    }

    .gear-row-alt {
      background: var(--bg-surface-alt);
    }
    .gear-row-alt td {
      padding-left: 2.5rem;
      font-size: 0.8rem;
      color: var(--text-secondary);
    }
    .gear-row-alt .item-name {
      color: var(--text-secondary);
    }

    /* === TALENT BUILD DISPLAY === */
    .talent-build {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem;
    }

    .talent-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .talent-points {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1.3rem;
      color: var(--text-gold);
      letter-spacing: 0.05em;
    }

    .talent-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .talent-item {
      background: var(--bg-surface-hover);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.75rem 1rem;
      transition: border-color var(--transition-fast);
    }
    .talent-item:hover {
      border-color: var(--border-gold-dim);
    }

    .talent-item-name {
      font-weight: 600;
      color: var(--text-gold);
      margin-bottom: 0.25rem;
    }

    .talent-item-desc {
      font-size: 0.85rem;
      color: var(--text-secondary);
    }

    /* === PROGRESSION TIMELINE === */
    .timeline {
      position: relative;
      padding-left: 2.5rem;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 15px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(180deg,
        var(--fel-green-dim),
        var(--border-gold-dim) 30%,
        var(--border-gold) 60%,
        var(--quality-epic) 85%,
        var(--quality-legendary)
      );
    }

    .timeline-stage {
      position: relative;
      margin-bottom: 2.5rem;
      padding: 1.25rem 1.5rem;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      transition: border-color var(--transition-normal);
    }

    .timeline-stage:hover {
      border-color: var(--border-gold-dim);
    }

    .timeline-node {
      position: absolute;
      left: -2.5rem;
      top: 1.5rem;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--bg-primary);
      border: 2px solid var(--border-gold);
      transform: translateX(-50%);
      box-shadow: 0 0 8px rgba(245, 197, 24, 0.3);
      z-index: 1;
    }

    .timeline-stage-title {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1.15rem;
      color: var(--text-primary);
      margin-bottom: 0.25rem;
    }

    .timeline-level-badge {
      display: inline-flex;
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 600;
      background: rgba(245, 197, 24, 0.1);
      border: 1px solid var(--border-gold-dim);
      color: var(--text-gold);
      margin-bottom: 0.75rem;
    }

    .timeline-description {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .timeline-dungeons {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 0.75rem;
    }

    .timeline-dungeons li {
      font-size: 0.78rem;
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      background: rgba(0, 112, 221, 0.1);
      border: 1px solid rgba(0, 112, 221, 0.2);
      color: var(--quality-rare);
    }

    .timeline-goals {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .timeline-goals li {
      font-size: 0.82rem;
      color: var(--text-secondary);
      padding-left: 1.2rem;
      position: relative;
    }

    .timeline-goals li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.5em;
      width: 6px;
      height: 6px;
      border-radius: 1px;
      background: var(--border-gold-dim);
      transform: rotate(45deg);
    }

    /* Timeline subheading (used in dungeons page) */
    .timeline-subheading {
      font-family: 'Nunito Sans', sans-serif;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
      margin-top: 0.75rem;
    }
    .timeline-subheading-gold {
      color: var(--text-gold);
    }

    /* === DUNGEON PAGE TABS === */
    .dungeon-tabs {
      position: relative;
      text-align: center;
      margin-bottom: 1rem;
    }
    .dg-tab-input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .dg-tab-label {
      display: inline-block;
      padding: 0.6rem 1.25rem;
      font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: var(--text-secondary);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: all var(--transition-fast);
      margin-bottom: 1.25rem;
    }
    .dg-tab-label:hover {
      color: var(--text-primary);
    }
    .dg-tab-input:checked + .dg-tab-label {
      color: var(--text-gold);
      border-bottom-color: var(--text-gold);
    }
    .dg-tab-content {
      display: none;
      text-align: left;
    }
    .dg-tab-intro {
      font-size: 0.82rem;
      color: var(--text-secondary);
      margin-bottom: 1.25rem;
      line-height: 1.6;
    }
    #dg-tab-leveling:checked ~ .dg-tab-leveling-content {
      display: block;
    }
    #dg-tab-prebis:checked ~ .dg-tab-prebis-content {
      display: block;
    }
    #dg-tab-raids:checked ~ .dg-tab-raids-content {
      display: block;
    }

    /* === SIDEBAR NAV (Spec guide) === */
    .sidebar-nav {
      position: sticky;
      top: 5rem;
    }

    .sidebar-title {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-gold);
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }

    .sidebar-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .sidebar-links a {
      display: block;
      padding: 0.45rem 0.75rem;
      font-size: 0.82rem;
      color: var(--text-secondary);
      border-radius: 4px;
      border-left: 2px solid transparent;
      transition: all var(--transition-fast);
    }

    .sidebar-links a:hover {
      color: var(--text-primary);
      background: var(--bg-surface-hover);
      text-shadow: none;
    }

    .sidebar-links a.active {
      color: var(--text-gold);
      background: rgba(245, 197, 24, 0.05);
      border-left-color: var(--border-gold);
    }

    /* === STRENGTHS / PAIN POINTS LISTS === */
    .pros-cons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }

    .pros-list, .cons-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .pros-list li, .cons-list li {
      font-size: 0.88rem;
      color: var(--text-secondary);
      padding-left: 1.5rem;
      position: relative;
    }

    .pros-list li::before {
      content: '+';
      position: absolute;
      left: 0;
      font-weight: 700;
      color: var(--demand-very-high);
      font-size: 1rem;
    }

    .cons-list li::before {
      content: '-';
      position: absolute;
      left: 0.2rem;
      font-weight: 700;
      color: var(--demand-low);
      font-size: 1rem;
    }

    /* === SPEC CARDS (on class overview page) === */
    .spec-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
    }

    .spec-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.25rem;
      transition: all var(--transition-normal);
      display: flex;
      flex-direction: column;
    }

    .spec-card:hover {
      border-color: var(--class-color);
      box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 15px var(--class-glow);
      transform: translateY(-2px);
    }

    .spec-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.75rem;
    }

    .spec-card-name {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--class-color);
    }

    .spec-card-summary {
      color: var(--text-secondary);
      font-size: 0.88rem;
      flex: 1;
      margin-bottom: 0.75rem;
    }

    .spec-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
    }

    /* === POPULATION BAR === */
    .population-bar {
      height: 8px;
      background: var(--bg-surface-hover);
      border-radius: 4px;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .population-bar-fill {
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--class-color), var(--class-color));
      transition: width 0.8s ease-out;
    }

    /* === FEATURE PILLS (homepage) === */
    .feature-pills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.6rem;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.45rem 1rem;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.02em;
      border: 1px solid var(--border);
      background: rgba(18, 18, 26, 0.8);
      backdrop-filter: blur(8px);
      transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    }

    .pill:hover {
      border-color: var(--fel-green-dim);
      box-shadow: 0 0 12px rgba(26, 255, 128, 0.1);
    }

    .pill-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .pill-dot.legendary { background: var(--quality-legendary); box-shadow: 0 0 6px rgba(255, 128, 0, 0.5); }
    .pill-dot.epic { background: var(--quality-epic); box-shadow: 0 0 6px rgba(163, 53, 238, 0.5); }
    .pill-dot.rare { background: var(--quality-rare); box-shadow: 0 0 6px rgba(0, 112, 221, 0.5); }
    .pill-dot.green { background: var(--fel-green); box-shadow: 0 0 6px var(--fel-glow); }

    /* === ROTATION PRIORITY LIST === */
    .rotation-list {
      list-style: none;
      counter-reset: rotation;
    }

    .rotation-list li {
      counter-increment: rotation;
      padding: 0.6rem 0.75rem 0.6rem 2.5rem;
      position: relative;
      color: var(--text-secondary);
      font-size: 0.9rem;
      border-bottom: 1px solid var(--border);
    }

    .rotation-list li:last-child { border-bottom: none; }

    .rotation-list li::before {
      content: counter(rotation);
      position: absolute;
      left: 0.5rem;
      top: 0.6rem;
      width: 1.4rem;
      height: 1.4rem;
      border-radius: 50%;
      background: var(--bg-surface-hover);
      border: 1px solid var(--border-gold-dim);
      color: var(--text-gold);
      font-size: 0.72rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1;
    }

    /* === ABOUT PAGE === */
    .content-page {
      max-width: 760px;
    }

    .content-page p {
      font-size: 0.95rem;
      line-height: 1.8;
      margin-bottom: 1.25rem;
    }

    .content-page h2 {
      margin-top: 2.5rem;
    }

    .content-page ul {
      list-style: none;
      margin-bottom: 1.5rem;
    }

    .content-page ul li {
      padding: 0.4rem 0 0.4rem 1.2rem;
      position: relative;
      color: var(--text-secondary);
      font-size: 0.92rem;
    }

    .content-page ul li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.85em;
      width: 5px;
      height: 5px;
      background: var(--border-gold-dim);
      border-radius: 50%;
    }

    /* === RESPONSIVE BREAKPOINTS === */

    /* Large tablets and small desktops */
    @media (max-width: 1024px) {
      .layout-sidebar {
        grid-template-columns: 1fr;
      }

      .sidebar-nav {
        position: relative;
        top: 0;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
      }

      .sidebar-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
      }

      .sidebar-links a {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.35rem 0.6rem;
        font-size: 0.78rem;
      }

      .sidebar-links a.active {
        border-left-color: transparent;
        border-bottom-color: var(--border-gold);
      }
    }

    /* Tablets */
    @media (max-width: 768px) {
      .class-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .hero-class, .hero-spec {
        flex-direction: column;
        text-align: center;
      }

      .hero-class-meta {
        justify-content: center;
      }

      .pros-cons {
        grid-template-columns: 1fr;
      }

      .stat-bar {
        grid-template-columns: 140px 1fr;
      }

      .gear-table {
        font-size: 0.8rem;
      }

      .container {
        padding: 0 1rem;
      }
    }

    /* Mobile */
    @media (max-width: 480px) {
      .class-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
      }

      .class-card { padding: 1rem; }
      .class-card-icon { width: 48px; height: 48px; }
      .class-card-name { font-size: 0.95rem; }
      .spec-pill { font-size: 0.62rem; }

      .stat-bar {
        grid-template-columns: 1fr;
        gap: 0.25rem;
      }
      .stat-bar-label { text-align: left; }

      .hero { padding: 2.5rem 0 2rem; }

      .timeline { padding-left: 2rem; }

      .feature-pills { gap: 0.4rem; }
      .pill { font-size: 0.72rem; padding: 0.4rem 0.8rem; }

      .spec-cards {
        grid-template-columns: 1fr;
      }
    }

/* ============================================================
   HEADER (header.html)
   ============================================================ */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(245, 197, 24, 0.08);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
  }

  .header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
  }
  .header-brand:hover {
    opacity: 0.85;
    color: var(--text-primary);
    text-shadow: none;
  }

  .header-portal-icon {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 10px var(--fel-glow));
    transition: filter var(--transition-fast);
  }
  .header-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 48%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 60% at 50% 48%, black 30%, transparent 75%);
    filter: drop-shadow(0 0 8px var(--fel-glow));
    transition: filter var(--transition-fast);
  }
  .header-brand:hover .header-logo-img {
    filter: drop-shadow(0 0 14px var(--fel-glow)) drop-shadow(0 0 24px rgba(26, 255, 128, 0.3));
  }
  .header-brand:hover .header-portal-icon {
    filter: drop-shadow(0 0 14px var(--fel-glow)) drop-shadow(0 0 24px rgba(26, 255, 128, 0.2));
  }

  .header-brand-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, var(--fel-green), transparent);
    opacity: 0.5;
    flex-shrink: 0;
  }
  .header-tagline {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, rgba(26, 255, 128, 0.7) 0%, rgba(179, 255, 204, 0.9) 50%, rgba(26, 255, 128, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: all var(--transition-fast);
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(26, 255, 128, 0.15));
  }
  .header-brand:hover .header-tagline {
    background: linear-gradient(135deg, rgba(26, 255, 128, 0.9) 0%, rgba(179, 255, 204, 1) 50%, rgba(26, 255, 128, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(26, 255, 128, 0.3));
  }

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

  .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    text-decoration: none;
  }
  .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    text-shadow: none;
  }

  .nav-divider {
    width: 1px;
    height: 16px;
    background: linear-gradient(180deg, transparent, var(--border-gold-dim), transparent);
    margin: 0 0.35rem;
    opacity: 0.5;
  }

  /* Mobile hamburger */
  .nav-toggle-input {
    display: none;
  }
  .nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
  }
  .nav-toggle-label span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-normal);
  }

  @media (max-width: 640px) {
    .nav-toggle-label {
      display: flex;
    }

    .header-nav {
      position: fixed;
      top: 56px;
      left: 0;
      right: 0;
      background: rgba(10, 10, 15, 0.97);
      backdrop-filter: blur(16px);
      flex-direction: column;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid var(--border);
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
      transition: all var(--transition-normal);
    }

    .nav-toggle-input:checked ~ .header-nav {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
      padding: 0.6rem 0;
      font-size: 0.95rem;
    }
    .nav-divider {
      display: none;
    }
  }

/* ============================================================
   FOOTER (footer.html)
   ============================================================ */

  .site-footer {
    margin-top: auto;
    padding-bottom: 2rem;
  }

  .footer-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 auto 1.5rem;
  }

  .footer-content {
    text-align: center;
  }

  .footer-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.4rem;
  }

  .footer-sources {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
  }

  .footer-affiliate-disclosure {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 0.4rem;
  }

  .footer-copy {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 0;
  }

/* ============================================================
   HOME PAGE (home.html)
   ============================================================ */

  /* === HERO === */
  .home-hero {
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Background */
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://bnetcmsus-a.akamaihd.net/cms/blog_header/27/27PDGVM8I4B81770056534076.png') center top / cover no-repeat;
    opacity: 0.12;
    filter: saturate(0.6) brightness(0.7);
  }
  .hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(10, 10, 15, 0.5) 0%,
        rgba(10, 10, 15, 0.15) 25%,
        rgba(10, 10, 15, 0.2) 50%,
        rgba(10, 10, 15, 0.85) 80%,
        rgba(10, 10, 15, 1) 100%
      );
  }
  .hero-bg-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 200px 80px rgba(10, 10, 15, 0.7);
  }

  /* Particles */
  .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #1aff80;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
  }
  .p1 { left: 12%; top: 70%; animation-delay: 0s; animation-duration: 7s; }
  .p2 { left: 30%; top: 80%; animation-delay: 1.5s; animation-duration: 9s; width: 2px; height: 2px; }
  .p3 { left: 48%; top: 75%; animation-delay: 3s; animation-duration: 6s; }
  .p4 { left: 62%; top: 72%; animation-delay: 0.8s; animation-duration: 8s; width: 2px; height: 2px; }
  .p5 { left: 78%; top: 78%; animation-delay: 4s; animation-duration: 7.5s; background: #f5c518; width: 2px; height: 2px; }
  .p6 { left: 88%; top: 82%; animation-delay: 2s; animation-duration: 10s; width: 2px; height: 2px; }

  @keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    15% { opacity: 0.5; }
    50% { opacity: 0.25; }
    85% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-200px) scale(0.2); }
  }

  /* === HERO PORTAL ICON === */
  .hero-portal-icon {
    width: clamp(200px, 35vw, 340px);
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 30px rgba(26, 255, 128, 0.4)) drop-shadow(0 0 80px rgba(26, 255, 128, 0.15));
  }

  @keyframes felFlame {
    0%, 100% {
      filter: drop-shadow(0 0 25px rgba(26, 255, 128, 0.4)) drop-shadow(0 0 60px rgba(26, 255, 128, 0.15));
    }
    25% {
      filter: drop-shadow(0 -4px 35px rgba(26, 255, 128, 0.6)) drop-shadow(0 0 80px rgba(100, 255, 50, 0.3)) drop-shadow(0 -8px 20px rgba(26, 255, 128, 0.2));
    }
    50% {
      filter: drop-shadow(0 0 50px rgba(26, 255, 128, 0.7)) drop-shadow(0 -6px 100px rgba(26, 255, 128, 0.35)) drop-shadow(4px -10px 25px rgba(100, 255, 50, 0.25));
    }
    75% {
      filter: drop-shadow(0 -3px 40px rgba(26, 255, 128, 0.55)) drop-shadow(-4px 0 70px rgba(26, 255, 128, 0.2)) drop-shadow(0 -6px 15px rgba(100, 255, 50, 0.15));
    }
  }
  .hero-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 48%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 60% at 50% 48%, black 30%, transparent 75%);
  }
  .portal-ambient {
    animation: portalAmbientPulse 4s ease-in-out infinite;
  }
  .portal-energy {
    animation: portalEnergyPulse 3s ease-in-out infinite;
  }
  .portal-ring-outer {
    animation: portalSpin 25s linear infinite;
    transform-origin: 60px 60px;
  }
  .portal-ring-inner {
    animation: portalSpin 18s linear infinite reverse;
    transform-origin: 60px 60px;
  }
  .portal-ring-core {
    animation: portalSpin 12s linear infinite;
    transform-origin: 60px 60px;
  }
  .portal-core {
    animation: portalCorePulse 2s ease-in-out infinite;
  }
  .wisp {
    animation: wispFlicker 3s ease-in-out infinite;
  }
  .wisp-e { animation-delay: 0.5s; }
  .wisp-s { animation-delay: 1s; }
  .wisp-w { animation-delay: 1.5s; }

  @keyframes portalAmbientPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
  }
  @keyframes portalEnergyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
  }
  @keyframes portalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  @keyframes portalCorePulse {
    0%, 100% { opacity: 0.7; r: 8; }
    50% { opacity: 1; r: 10; }
  }
  @keyframes wispFlicker {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
  }

  /* === TITLE === */
  .tbc-title-block {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
  }
  .tbc-flourish-top, .tbc-flourish-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }
  .tbc-flourish-top { margin-bottom: 1rem; }
  .tbc-flourish-bottom { margin-top: 0.75rem; margin-bottom: 1.5rem; }
  .flourish-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.35));
  }
  .flourish-line:last-child {
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.35), transparent);
  }
  .flourish-diamond {
    font-size: 0.5rem;
    color: var(--text-gold);
    opacity: 0.5;
  }

  .home-hero h1.tbc-title-main {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--fel-green);
    background: linear-gradient(
      0deg,
      #004d1a 0%,
      #00802b 10%,
      #33ff77 30%,
      #ccffdd 50%,
      #33ff77 70%,
      #00802b 90%,
      #004d1a 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: felFlameText 3s ease-in-out infinite;
    filter:
      drop-shadow(0 0 10px rgba(26, 255, 128, 0.4))
      drop-shadow(0 0 30px rgba(26, 255, 128, 0.25))
      drop-shadow(0 0 60px rgba(26, 255, 128, 0.15))
      drop-shadow(0 4px 6px rgba(0, 0, 0, 0.9));
  }
  .tbc-title-emphasis {
    font-style: italic;
    font-weight: 700;
    font-size: 0.85em;
  }

  .tbc-title-sub {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: clamp(0.75rem, 1.6vw, 1rem);
    font-weight: 600;
    color: var(--text-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(245, 197, 24, 0.3);
  }

  .tbc-logo-img {
    display: block;
    margin: 0 auto 1.25rem;
    max-width: clamp(200px, 40vw, 340px);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(26, 255, 128, 0.3)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  }

  /* === FACTION PANELS === */
  .faction-rows {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .faction-row-label {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f5c518;
    text-align: center;
    margin-bottom: 0.35rem;
    margin-top: 0.75rem;
    opacity: 1;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.25), 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .faction-row-label:first-child {
    margin-top: 0;
  }

  .faction-panels {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
    height: 200px;
  }
  .faction-panels-battleart {
    background-size: 0 0 !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }
  .faction-panels-battleart::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
  }
  .faction-panels-battleart:hover::before {
    transform: scale(1.05);
  }

  /* Battleart row: panel hover glow mirrors individual panel hover */
  .faction-panels-battleart .faction-panel-horde:hover {
    box-shadow: 0 8px 40px rgba(196, 31, 59, 0.2), inset 0 0 80px rgba(196, 31, 59, 0.08);
  }
  .faction-panels-battleart .faction-panel-alliance:hover {
    box-shadow: 0 8px 40px rgba(74, 144, 217, 0.2), inset 0 0 80px rgba(74, 144, 217, 0.08);
  }
  .faction-panels-battleart .faction-panel:hover .faction-panel-overlay {
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  .faction-panels-battleart .faction-panel-horde:hover ~ .faction-panel-alliance,
  .faction-panels-battleart .faction-panel-alliance:hover {
    /* push subtle opposing dim */
  }
  .faction-panels-battleart .faction-panel:hover .faction-name {
    text-shadow: 0 0 30px currentColor;
  }
  .faction-panels-battleart .faction-panel:hover .faction-race {
    color: rgba(255, 255, 255, 0.75);
  }

  .faction-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .faction-panel:hover {
    transform: scale(1.015);
    z-index: 3;
  }
  .faction-panel-horde {
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(196, 31, 59, 0.2);
    border-right: none;
  }
  .faction-panel-alliance {
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-left: none;
  }
  .faction-panel-horde:hover {
    box-shadow: 0 8px 40px rgba(196, 31, 59, 0.15), inset 0 0 60px rgba(196, 31, 59, 0.05);
  }
  .faction-panel-alliance:hover {
    box-shadow: 0 8px 40px rgba(74, 144, 217, 0.15), inset 0 0 60px rgba(74, 144, 217, 0.05);
  }

  .faction-panel-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
  }
  .faction-panel:hover .faction-panel-image {
    transform: scale(1.05);
  }

  .faction-panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .faction-overlay-horde {
    background:
      linear-gradient(135deg, rgba(120, 15, 25, 0.25) 0%, rgba(10, 10, 15, 0.4) 100%),
      linear-gradient(to top, rgba(10, 10, 15, 0.7) 0%, transparent 50%);
  }
  .faction-overlay-alliance {
    background:
      linear-gradient(225deg, rgba(30, 60, 140, 0.25) 0%, rgba(10, 10, 15, 0.4) 100%),
      linear-gradient(to top, rgba(10, 10, 15, 0.7) 0%, transparent 50%);
  }

  .faction-panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .faction-panel-horde .faction-panel-content { text-align: left; }
  .faction-panel-alliance .faction-panel-content { text-align: right; }

  .faction-panel-content .faction-name {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .faction-panel-horde .faction-name {
    color: #e8384f;
    text-shadow: 0 0 20px rgba(196, 31, 59, 0.4);
  }
  .faction-panel-alliance .faction-name {
    color: #6aadff;
    text-shadow: 0 0 20px rgba(74, 144, 217, 0.4);
  }
  .faction-panel-content .faction-race {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
  }

  /* Inner edge glow */
  .faction-panel-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 2;
  }
  .faction-edge-horde {
    right: 0;
    background: linear-gradient(to bottom, transparent 10%, rgba(196, 31, 59, 0.3) 50%, transparent 90%);
  }
  .faction-edge-alliance {
    left: 0;
    background: linear-gradient(to bottom, transparent 10%, rgba(74, 144, 217, 0.3) 50%, transparent 90%);
  }

  /* Center VS divider */
  .faction-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
    width: 0;
  }
  .faction-divider-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 255, 128, 0.25) 0%, transparent 70%);
    filter: blur(12px);
    animation: vsPulse 3s ease-in-out infinite;
  }
  .faction-divider-vs {
    position: relative;
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #1aff80;
    opacity: 0.6;
    text-shadow: 0 0 12px rgba(26, 255, 128, 0.5);
    background: rgba(10, 10, 15, 0.8);
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(26, 255, 128, 0.15);
  }

  @keyframes vsPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
  }

  .home-hero .hero-subtitle {
    max-width: 520px;
    position: relative;
    z-index: 2;
  }

  /* === FADE-IN ANIMATION === */
  .hero-portal-icon,
  .tbc-title-block,
  .faction-rows,
  .home-hero .hero-subtitle,
  .home-hero .feature-pills {
    animation: heroFadeIn 0.8s ease-out both;
  }
  .hero-portal-icon {
    animation: heroFadeIn 0.8s ease-out both, felFlame 4s ease-in-out infinite;
  }
  .tbc-title-block { animation-delay: 0.15s; }
  .faction-rows { animation-delay: 0.35s; }
  .home-hero .hero-subtitle { animation-delay: 0.55s; }
  .home-hero .feature-pills { animation-delay: 0.7s; }

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

  /* === HERO ART PANELS (replaces old faction VS panels) === */
  .hero-art-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(245, 197, 24, 0.15);
  }
  .hero-art-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 220px;
  }
  .hero-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.85) 0%, transparent 50%);
    pointer-events: none;
  }
  .hero-art-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .hero-art-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .hero-art-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
  }
  @media (max-width: 600px) {
    .hero-art-img { max-height: 160px; }
    .hero-art-caption { padding: 0.6rem 0.8rem; }
  }

  /* === REP GRIND HERO === */
  .rp-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .rp-hero-art {
    flex-shrink: 0;
    width: clamp(140px, 20vw, 220px);
  }
  .rp-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 0 20px rgba(26, 255, 128, 0.25));
  }
  .rp-hero-text {
    flex: 1;
  }
  .rp-hero-text .rp-intro {
    margin-top: 0.75rem;
  }
  @media (max-width: 600px) {
    .rp-hero {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
    .rp-hero-art { width: clamp(120px, 35vw, 180px); }
  }

  /* === VALUE PROP SECTION === */
  .value-prop-section {
    max-width: 1000px;
    margin: 0 auto;
  }
  .value-prop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .value-prop-card {
    background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
  }
  .value-prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
  }
  .vp-new-player::before {
    background: linear-gradient(90deg, #0070dd, #69CCF0);
  }
  .vp-competitive::before {
    background: linear-gradient(90deg, #ff8000, #f5c518);
  }
  .value-prop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--border-gold-dim);
  }
  .vp-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.3));
  }
  .vp-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.3));
    border-radius: 4px;
  }
  .vp-title {
    font-family: 'Cormorant SC', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
  }
  .vp-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  .vp-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .vp-list li {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 1.3rem;
    position: relative;
  }
  .vp-list li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--text-gold);
    font-size: 0.5rem;
    top: 0.35rem;
    opacity: 0.6;
  }
  .vp-cta {
    display: inline-block;
    font-family: 'Cormorant SC', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--fel-green);
    text-decoration: none;
    transition: all var(--transition-fast);
  }
  .vp-cta:hover {
    color: #b3ffcc;
    text-shadow: 0 0 12px rgba(26, 255, 128, 0.4);
  }

  /* META tips embedded in competitive card */
  .vp-meta-tips {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: rgba(255, 128, 0, 0.04);
    border: 1px solid rgba(255, 128, 0, 0.12);
    border-radius: 8px;
  }
  .vp-meta-label {
    font-family: 'Cormorant SC', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--quality-legendary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }
  .vp-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .vp-meta-tip {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.78rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
  }
  .vp-meta-tip.meta-tip-legendary { border-left-color: #ff8000; }
  .vp-meta-tip.meta-tip-epic { border-left-color: #a335ee; }
  .vp-meta-tip.meta-tip-rare { border-left-color: #0070dd; }
  .vp-meta-category {
    font-family: 'Cormorant SC', serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .vp-meta-text {
    color: var(--text-primary);
  }

  @media (max-width: 768px) {
    .value-prop-grid {
      grid-template-columns: 1fr;
    }
  }

  /* === META TIPS === */
  .meta-tips-section {
    max-width: 900px;
    margin: 0 auto;
  }
  .meta-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .meta-tip-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    border-left: 3px solid var(--border);
    transition: all var(--transition-normal);
  }
  .meta-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .meta-tip-legendary { border-left-color: #ff8000; }
  .meta-tip-epic { border-left-color: #a335ee; }
  .meta-tip-rare { border-left-color: #0070dd; }

  .meta-tip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  .meta-tip-icon {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(245, 197, 24, 0.4));
  }
  .meta-tip-category {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
  .meta-tip-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
  }

  /* === PROGRESSION TABS === */
  .progression-tabs {
    position: relative;
  }
  .prog-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .prog-tab-label {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    margin-bottom: 1.25rem;
  }
  .prog-tab-label:hover {
    color: var(--text-primary);
  }
  .prog-tab-input:checked + .prog-tab-label {
    color: var(--text-gold);
    border-bottom-color: var(--text-gold);
  }

  .prog-tab-content {
    display: none;
  }
  .prog-tab-intro {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }

  /* CSS-only tab switching */
  #prog-tab-casual:checked ~ .prog-tab-casual-content {
    display: block;
  }
  #prog-tab-rep:checked ~ .prog-tab-rep-content {
    display: block;
  }

  /* Account-wide badge */
  .rep-account-badge {
    display: inline-block;
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1aff80;
    background: rgba(26, 255, 128, 0.08);
    border: 1px solid rgba(26, 255, 128, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
  }

  /* Rep Grid */
  .rep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .rep-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    transition: all var(--transition-normal);
  }
  .rep-card:hover {
    border-color: var(--border-gold-dim);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
  }
  .rep-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
  }
  .rep-priority {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-gold);
    min-width: 20px;
  }
  .rep-name {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .rep-account-icon {
    font-size: 0.7rem;
    opacity: 0.5;
  }
  .rep-zone {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    font-weight: 600;
  }
  .rep-why {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .rep-rewards {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }
  .rep-reward-row {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
  }
  .rep-level {
    font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-width: 56px;
    flex-shrink: 0;
  }
  .rep-honored { color: #1eff00; }
  .rep-revered { color: #0070dd; }
  .rep-exalted { color: #a335ee; }

  .rep-reward-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
  }
  .rep-farming {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
  }
  .rep-farming-label {
    font-weight: 700;
    color: var(--text-secondary);
  }

  /* === LOWER SECTIONS === */
  .section-header-accent { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; margin-left: auto; letter-spacing: 0.02em; }

  .section-header-stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
  }
  .section-header-hook {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 480px;
    line-height: 1.5;
  }
  .section-header-hook em { font-style: italic; color: var(--text-gold); }

  .cta-link { font-size: 0.9rem; font-weight: 600; color: var(--text-gold); transition: all var(--transition-normal); padding: 0.5rem 1.25rem; border: 1px solid var(--border); border-radius: 6px; display: inline-block; background: rgba(245, 197, 24, 0.04); }
  .cta-link:hover { border-color: var(--border-gold-dim); background: rgba(245, 197, 24, 0.08); box-shadow: 0 0 16px rgba(245, 197, 24, 0.1); color: var(--text-gold); text-shadow: 0 0 8px rgba(245, 197, 24, 0.3); }

  .info-section { max-width: 900px; margin: 0 auto; }
  .info-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }
  .info-main h2 { margin-bottom: 1rem; }
  .info-stats { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; min-width: 140px; }
  .info-stat { text-align: center; }
  .info-stat-num { display: block; font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 900; color: var(--text-gold); line-height: 1; filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.2)); }
  .info-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

  .progression-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .progression-strip-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.85rem 1.1rem; background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%); border: 1px solid var(--border); border-radius: 10px; min-width: 135px; text-align: center; transition: all var(--transition-normal); text-decoration: none; color: inherit; position: relative; overflow: hidden; }
  .progression-strip-item::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold-dim), transparent); opacity: 0; transition: opacity var(--transition-normal); }
  .progression-strip-item:hover { border-color: var(--border-gold-dim); box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 12px rgba(245, 197, 24, 0.06); transform: translateY(-3px); text-shadow: none; color: inherit; }
  .progression-strip-item:hover::before { opacity: 1; }
  .progression-strip-num { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-surface-hover); border: 1px solid var(--border-gold-dim); color: var(--text-gold); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .progression-strip-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.78rem; color: var(--text-primary); line-height: 1.2; }
  .progression-strip-level { font-size: 0.68rem; color: var(--text-secondary); }

  /* === RESPONSIVE === */
  @media (max-width: 768px) {
    .home-hero { min-height: auto; padding: 2rem 0 2.5rem; }
    .info-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .info-stats { flex-direction: row; justify-content: center; }
    .faction-panels { height: 160px; }
    .faction-rows { max-width: 95%; }
    .faction-panel-content .faction-name { font-size: 0.95rem; }
    .tbc-title-block { margin-bottom: 2rem; }
    .meta-tips-grid { grid-template-columns: 1fr; }
    .rep-grid { grid-template-columns: 1fr; }
    .hero-portal-icon { width: clamp(160px, 30vw, 240px); }
  }

  @media (max-width: 480px) {
    .section-header-accent { display: none; }
    .faction-panels { height: 130px; flex-direction: row; }
    .faction-panel-horde { border-radius: 8px 0 0 8px; }
    .faction-panel-alliance { border-radius: 0 8px 8px 0; }
    .faction-panel-content { padding: 0.75rem; }
    .faction-panel-content .faction-name { font-size: 0.8rem; }
    .faction-panel-content .faction-race { font-size: 0.58rem; }
    .home-hero { padding: 1.5rem 0 2rem; }
    .info-stats { gap: 0.75rem; }
    .info-stat-num { font-size: 1.5rem; }
    .flourish-line { width: 50px; }
    .tbc-title-sub { letter-spacing: 0.15em; }
    .tbc-title-block { margin-bottom: 1.5rem; }
    .faction-divider-vs { font-size: 0.55rem; padding: 0.2rem 0.35rem; }
    .faction-row-label { font-size: 0.7rem; }
    .hero-portal-icon { width: clamp(140px, 40vw, 200px); margin-bottom: 0.5rem; }
    .prog-tab-label { font-size: 0.75rem; padding: 0.5rem 0.85rem; }
    .dg-tab-label { font-size: 0.72rem; padding: 0.45rem 0.7rem; }
  }

/* ============================================================
   CLASS OVERVIEW PAGE (class_overview.html)
   ============================================================ */

  .demand-overview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .demand-pop-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .demand-pop-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 140px;
  }
  .demand-pop-pct {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gold);
    min-width: 36px;
  }

/* ============================================================
   SPEC GUIDE PAGE (spec_guide.html)
   ============================================================ */

  .progression-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .progression-mini-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  .progression-mini-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-gold-dim);
    color: var(--text-gold);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
  }
  .progression-mini-step strong {
    font-size: 0.92rem;
    display: block;
    margin-bottom: 0.15rem;
  }
  .progression-mini-step p {
    margin-bottom: 0;
  }


/* ═══════════════════════════════════════════════════════════════
   EMAIL CAPTURE COMPONENT
   ═══════════════════════════════════════════════════════════════ */

.email-capture {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(26, 255, 128, 0.04) 0%, rgba(26, 255, 128, 0.01) 100%);
  border: 1px solid rgba(26, 255, 128, 0.15);
  border-radius: 12px;
  overflow: hidden;
}
.email-capture-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(26, 255, 128, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.email-capture-content {
  position: relative;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.email-capture-title {
  font-family: 'Cormorant SC', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.email-capture-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.email-capture-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
}
.email-perk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.email-perk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fel-green);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(26, 255, 128, 0.4);
}
.email-capture-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.email-capture-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.email-capture-input::placeholder {
  color: var(--text-muted);
}
.email-capture-input:focus {
  border-color: var(--gold);
}
.email-capture-btn {
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #c5942a 100%);
  border: none;
  border-radius: 6px;
  color: #1a1520;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.email-capture-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.email-capture-privacy {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .email-capture-form {
    flex-direction: column;
  }
  .email-capture-btn {
    width: 100%;
  }
}

/* Gold guide variant */
.email-capture-gold {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.06) 0%, rgba(245, 197, 24, 0.02) 100%);
  border-color: rgba(245, 197, 24, 0.2);
}
.email-capture-gold .email-capture-glow {
  background: radial-gradient(ellipse, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
}
.email-capture-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a1520;
  background: linear-gradient(135deg, var(--text-gold) 0%, #c5942a 100%);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}


/* ═══════════════════════════════════════════════════════════════
   CLASSES PAGE
   ═══════════════════════════════════════════════════════════════ */

.classes-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.classes-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.classes-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}
.classes-hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

/* Role Filter */
.classes-role-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.role-filter-btn {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.role-filter-btn:hover {
  border-color: var(--border-gold-dim);
  color: var(--text-primary);
}
.role-filter-btn.active {
  background: linear-gradient(135deg, var(--text-gold) 0%, #c5942a 100%);
  color: #1a1520;
  border-color: var(--text-gold);
}

/* Class Showcase Cards */
.classes-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.class-showcase-card {
  background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.class-showcase-card:hover {
  border-color: color-mix(in srgb, var(--class-color) 40%, var(--border));
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 30px var(--class-glow);
  transform: translateY(-4px);
}

/* Card Header */
.class-showcase-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.class-showcase-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--class-glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.class-showcase-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--class-color) 50%, var(--border));
  object-fit: cover;
  background: var(--bg-surface-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 12px var(--class-glow);
  flex-shrink: 0;
}
.class-showcase-info {
  position: relative;
}
.class-showcase-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--class-color);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.class-showcase-pop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.class-showcase-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Specs Grid */
.class-showcase-specs {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.class-showcase-spec {
  display: block;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.class-showcase-spec:hover {
  background: rgba(255,255,255,0.05);
  border-color: color-mix(in srgb, var(--class-color) 25%, transparent);
  transform: translateX(4px);
  text-shadow: none;
}
.spec-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.spec-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.spec-role-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.spec-role-tank { background: rgba(0, 112, 221, 0.15); color: #5aafff; border: 1px solid rgba(0, 112, 221, 0.3); }
.spec-role-healer { background: rgba(26, 255, 128, 0.1); color: #1aff80; border: 1px solid rgba(26, 255, 128, 0.25); }
.spec-role-melee-dps { background: rgba(245, 197, 24, 0.1); color: var(--text-gold); border: 1px solid rgba(245, 197, 24, 0.25); }
.spec-role-ranged-dps { background: rgba(148, 130, 201, 0.15); color: #b8a9e0; border: 1px solid rgba(148, 130, 201, 0.3); }
.spec-role-caster-dps { background: rgba(148, 130, 201, 0.15); color: #b8a9e0; border: 1px solid rgba(148, 130, 201, 0.3); }

.spec-summary {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.spec-demand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
}
.spec-demand-label {
  color: var(--text-muted);
}
.spec-demand-badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}
.demand-very_high { color: var(--demand-very-high); }
.demand-high { color: var(--demand-high); }
.demand-medium { color: var(--demand-medium); }
.demand-low { color: var(--demand-low); }

/* Class CTA */
.class-showcase-cta {
  display: block;
  text-align: center;
  padding: 0.85rem 1.25rem;
  margin: 0 1.25rem 1.25rem;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--class-color);
  border: 1px solid color-mix(in srgb, var(--class-color) 25%, var(--border));
  background: color-mix(in srgb, var(--class-color) 5%, transparent);
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
}
.class-showcase-cta:hover {
  background: color-mix(in srgb, var(--class-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--class-color) 50%, var(--border));
  color: var(--class-color);
  text-shadow: 0 0 12px var(--class-glow);
}

@media (max-width: 768px) {
  .classes-showcase {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════
   AD SLOT PLACEHOLDERS
   ═══════════════════════════════════════════════════════════════ */

.ad-slot {
  margin: 2rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-sidebar {
  margin: 1.5rem 0;
  min-height: 250px;
}

/* ═══════════════════════════════════════════════════════════════
   AFFILIATE CARD
   ═══════════════════════════════════════════════════════════════ */

.affiliate-card {
  position: relative;
  margin: 2rem 0;
  border: 1px solid rgba(26, 255, 128, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26, 255, 128, 0.04) 0%, rgba(10, 10, 15, 0.6) 100%);
  overflow: hidden;
}
.affiliate-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #1aff80, #0fa958);
  color: #0a0a0f;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 0 10px 0 8px;
}
.affiliate-card-body {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.affiliate-card-info {
  flex: 1;
}
.affiliate-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 0.5rem 0;
}
.affiliate-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  line-height: 1.55;
}
.affiliate-card-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.affiliate-card-perks li {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.affiliate-card-perks li::before {
  content: '✓ ';
  color: #1aff80;
  font-weight: 700;
}
.affiliate-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.affiliate-card-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #1aff80, #0fa958);
  color: #0a0a0f;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.affiliate-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 255, 128, 0.3);
}
.affiliate-card-disclosure {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .affiliate-card-body {
    flex-direction: column;
    text-align: center;
  }
  .affiliate-card-perks {
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   REP GRIND PLANNER (rep-planner.html)
   ═══════════════════════════════════════════════════════════════ */

.rp-page {
  max-width: 960px;
  margin: 0 auto;
}
.rp-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Summary stats bar */
.rp-summary {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.rp-summary-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 0.5rem;
  background: var(--bg-surface);
}
.rp-summary-num {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-gold);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.2));
}
.rp-summary-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Target toggle */
.rp-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.rp-target-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rp-target-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rp-target-btn {
  padding: 0.4rem 1rem;
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.rp-target-btn:hover {
  border-color: var(--border-gold-dim);
  color: var(--text-primary);
}
.rp-target-btn.active {
  background: rgba(245, 197, 24, 0.08);
  border-color: var(--border-gold);
  color: var(--text-gold);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.1);
}

/* Faction card list */
.rp-factions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual faction card */
.rp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: all var(--transition-normal);
}
.rp-card:hover {
  border-color: var(--border-gold-dim);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.rp-card-done {
  border-color: rgba(26, 255, 128, 0.25);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(26, 255, 128, 0.03) 100%);
}

/* Card header */
.rp-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.rp-priority {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-gold);
  min-width: 22px;
}
.rp-faction-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rp-zone {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-left: auto;
}

/* Controls row */
.rp-card-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.rp-select-wrap,
.rp-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rp-input-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.rp-standing-select,
.rp-rep-input {
  padding: 0.45rem 0.65rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.rp-standing-select:focus,
.rp-rep-input:focus {
  border-color: var(--border-gold-dim);
}
.rp-standing-select {
  cursor: pointer;
  min-width: 120px;
}
.rp-rep-input {
  width: 110px;
}
.rp-rep-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Progress bar */
.rp-bar-wrap {
  margin-bottom: 0.6rem;
}
.rp-bar {
  position: relative;
  height: 10px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.rp-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 0;
}
.rp-bar-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--text-muted);
  opacity: 0.4;
  pointer-events: none;
}
.rp-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
}
.rp-bar-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.rp-bar-remaining {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.rp-done-text {
  color: var(--fel-green);
  font-weight: 700;
}

/* Estimate line */
.rp-estimate {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.65rem;
  background: rgba(245, 197, 24, 0.04);
  border: 1px solid rgba(245, 197, 24, 0.08);
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

/* Collapsible details */
.rp-details {
  margin-top: 0.25rem;
}
.rp-details summary {
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
  user-select: none;
}
.rp-details summary:hover {
  color: var(--text-secondary);
}
.rp-details-body {
  padding: 0.6rem 0 0.2rem;
}
.rp-details-body p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.rp-farming {
  color: var(--text-muted) !important;
}

/* Actions row */
.rp-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.rp-reset-btn {
  padding: 0.5rem 1.25rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.rp-reset-btn:hover {
  border-color: #ff4444;
  color: #ff4444;
}

/* Responsive */
@media (max-width: 600px) {
  .rp-summary { flex-direction: column; gap: 0; }
  .rp-summary-stat { padding: 0.75rem 0.5rem; }
  .rp-summary-stat + .rp-summary-stat { border-top: 1px solid var(--border); }
  .rp-card-controls { flex-direction: column; gap: 0.5rem; }
  .rp-standing-select { min-width: auto; width: 100%; }
  .rp-rep-input { width: 100%; }
  .rp-zone { display: none; }
}

/* ============================================================
   GEAR COMPARE TOOL (gear-compare.html)
   ============================================================ */
.gc-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.gc-spec-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}
.gc-label {
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gc-vs {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-gold);
  padding: 0 0.5rem;
  margin-top: 1rem;
}
.gc-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.gc-select:hover, .gc-select:focus {
  border-color: var(--fel-green);
  outline: none;
}
.gc-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gc-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.gc-filter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.gc-select-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

/* Results table */
.gc-results {
  overflow-x: auto;
}
.gc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}
.gc-th-slot {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  width: 90px;
}
.gc-th-spec {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.gc-slot-label {
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.gc-cell {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}
.gc-cell-empty {
  color: var(--text-muted);
}
.gc-no-item {
  opacity: 0.3;
}
.gc-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.15rem 0;
}
.gc-item-alt {
  opacity: 0.6;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  margin-top: 0.25rem;
}
.gc-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.gc-item-name {
  font-weight: 500;
  white-space: nowrap;
}
.gc-alt-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}
.gc-item-source {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 100%;
  padding-left: 24px;
}
.gc-row-same {
  background: rgba(26, 255, 128, 0.03);
}
.gc-row-same .gc-slot-label {
  color: var(--fel-green);
  opacity: 0.7;
}
.gc-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Summary bar */
.gc-summary {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gc-summary-stat {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.gc-summary-stat strong {
  color: var(--text-gold);
  font-size: 1.1rem;
  margin-right: 0.25rem;
}

/* Empty state */
.gc-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.gc-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.gc-empty-hint {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 700px) {
  .gc-controls { flex-direction: column; }
  .gc-vs { margin-top: 0; }
  .gc-spec-picker { max-width: 100%; }
  .gc-table { font-size: 0.78rem; }
  .gc-th-slot, .gc-slot-label { width: 60px; padding: 0.4rem; }
  .gc-cell { padding: 0.4rem; }
  .gc-item-source { padding-left: 0; }
  .gc-summary { flex-direction: column; gap: 0.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   TALENT BUILD VIEWER — Wowhead-inspired
   ═══════════════════════════════════════════════════════════════ */

/* Controls */
.tb-controls {
  margin-bottom: 2rem;
}
.tb-picker {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.tb-picker .gc-select {
  flex: 1;
}

/* ── Class selection prompt ── */
.tb-class-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.tb-prompt-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.3));
}
.tb-prompt-text {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(245, 197, 24, 0.2);
}

/* ── Class icon buttons ── */
.tb-class-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tb-class-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.55;
}
.tb-class-btn:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.tb-class-btn.active {
  opacity: 1;
  border-color: var(--fel-green);
  background: rgba(26, 255, 128, 0.06);
  box-shadow: 0 0 16px rgba(26, 255, 128, 0.15);
}
.tb-class-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tb-class-btn:hover .tb-class-icon-img,
.tb-class-btn.active .tb-class-icon-img {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.tb-class-btn-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tb-class-btn.active .tb-class-btn-label {
  color: var(--fel-green);
}
.tb-class-abbr {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Build card ── */
.tb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--class-color, var(--fel-green));
  border-radius: 10px;
  padding: 1.75rem;
  animation: tbFadeIn 0.35s ease;
}
@keyframes tbFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header with class icon */
.tb-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.tb-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid var(--class-color, var(--border));
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.tb-header-text {
  min-width: 0;
}
.tb-build-name {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--text-gold);
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}
.tb-spec-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Three-column talent tree display ── */
.tb-trees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.tb-tree-col {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  position: relative;
  transition: border-color 0.3s ease;
  min-height: 120px;
}
.tb-tree-primary {
  border-color: var(--class-color, var(--fel-green));
  background:
    radial-gradient(ellipse at top center, rgba(26, 255, 128, 0.04) 0%, transparent 70%),
    rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Tree header */
.tb-tree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.tb-tree-name {
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tb-tree-primary .tb-tree-name {
  color: var(--text-primary);
}
.tb-tree-points {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

/* Point bar within tree */
.tb-tree-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.tb-tree-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Empty / support messages */
.tb-tree-empty-msg {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.4;
  text-align: center;
  padding: 1rem 0;
  font-style: italic;
}
.tb-tree-support-msg {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
  padding: 0.75rem 0.25rem;
  line-height: 1.5;
}

/* ── Key talent nodes (inside primary tree) ── */
.tb-tree-talents {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tb-talent-node {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tb-talent-node:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Diamond icon for talent */
.tb-talent-diamond {
  width: 10px;
  height: 10px;
  border: 2px solid var(--class-color, var(--fel-green));
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 4px;
  background: rgba(26, 255, 128, 0.15);
  box-shadow: 0 0 6px rgba(26, 255, 128, 0.2);
}

.tb-talent-node-text {
  min-width: 0;
}
.tb-talent-name {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}
.tb-talent-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Section titles ── */
.tb-section-title {
  font-family: 'Cormorant SC', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ── How to Play Section ── */
.tb-play-section {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(165deg, rgba(26, 255, 128, 0.03) 0%, rgba(10, 10, 15, 0.4) 100%);
  border: 1px solid rgba(26, 255, 128, 0.1);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.tb-play-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.tb-play-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.3));
}
.tb-play-title {
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  border: none;
  padding: 0;
}

/* Key Talents sub-section */
.tb-key-section {
  margin-bottom: 1rem;
}
.tb-key-label {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 0.6rem;
  opacity: 0.8;
}
.tb-key-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.tb-key-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(245, 197, 24, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.tb-key-card:hover {
  border-color: rgba(245, 197, 24, 0.25);
  background: rgba(245, 197, 24, 0.04);
}
.tb-key-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(245, 197, 24, 0.3);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.15);
}
.tb-key-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.tb-key-card-name {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1.2;
}
.tb-key-card-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Strategy sub-section */
.tb-strategy-wrap {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tb-strategy-label {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.tb-strategy-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .tb-key-grid {
    grid-template-columns: 1fr;
  }
  .tb-play-section {
    padding: 1rem;
  }
}

/* Legacy compat */
.tb-notes-section {
  margin-bottom: 1.25rem;
}
.tb-notes-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Guide link ── */
.tb-guide-link {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.tb-guide-link a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fel-green);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tb-guide-link a:hover {
  color: #b3ffcc;
  text-decoration: underline;
}

/* ── Visual Talent Grid ── */
.tb-talent-grid {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  grid-template-rows: repeat(7, 44px);
  gap: 4px;
  justify-content: center;
  padding: 0.5rem 0;
  position: relative;
}

.tb-grid-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: visible;
  cursor: default;
  transition: filter 0.2s ease, border-color 0.2s ease;
}

.tb-grid-icon img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: block;
  border: 2px solid #333;
  box-sizing: border-box;
}

/* Unallocated talent (0 points) */
.tb-grid-icon.tb-unallocated img {
  filter: grayscale(100%) brightness(0.4);
  border-color: #222;
}

/* Partially allocated talent */
.tb-grid-icon.tb-partial img {
  filter: brightness(0.85);
  border-color: #5a9e3a;
}

/* Maxed out talent */
.tb-grid-icon.tb-maxed img {
  filter: brightness(1.05) saturate(1.1);
  border-color: #f5c518;
  box-shadow: 0 0 6px rgba(245, 197, 24, 0.3);
}

/* Key talent — extra glow */
.tb-grid-icon.tb-key-talent img {
  border-color: #f5c518;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.5), 0 0 20px rgba(245, 197, 24, 0.2);
}

/* Point badge */
.tb-point-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #333;
  z-index: 1;
}

.tb-unallocated .tb-point-badge {
  color: #555;
}

.tb-partial .tb-point-badge {
  color: #5a9e3a;
  border-color: #5a9e3a;
}

.tb-maxed .tb-point-badge {
  color: #f5c518;
  border-color: #f5c518;
}

/* Tooltip on hover */
.tb-grid-icon .tb-icon-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--border-gold-dim);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.tb-grid-icon:hover .tb-icon-tooltip {
  display: block;
}

.tb-icon-tooltip-name {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-gold);
}

.tb-icon-tooltip-rank {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tree column adjustments for grid mode */
.tb-tree-col.tb-has-grid {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tb-tree-col.tb-has-grid .tb-tree-header {
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .tb-trees { grid-template-columns: 1fr; }
  .tb-tree-col { min-height: auto; }
  .tb-picker { flex-direction: column; }
  .tb-card { padding: 1.25rem; }
  .tb-build-name { font-size: 1.1rem; }
  .tb-class-icon-img { width: 40px; height: 40px; }
  .tb-class-btn-label { font-size: 0.5rem; }
  .tb-header-icon { width: 44px; height: 44px; }
  .tb-talent-grid {
    grid-template-columns: repeat(4, 38px);
    grid-template-rows: repeat(7, 38px);
    gap: 3px;
  }
  .tb-grid-icon { width: 38px; height: 38px; }
}


/* ============================================================
   SPEC QUICK LINKS (Classes page — interlink to talents)
   ============================================================ */
.class-showcase-spec {
  display: flex;
  flex-direction: column;
}
.spec-link-main {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: block;
  padding: 0.75rem 1rem;
}
.spec-link-main:hover { background: var(--bg-surface-hover); }
.spec-quick-links {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 0.6rem;
}
.spec-qlink {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.spec-qlink:hover {
  color: var(--text-gold);
  border-color: var(--border-gold-dim);
  background: rgba(245, 197, 24, 0.05);
}
.spec-qlink-talents { color: var(--fel-green); border-color: var(--fel-green-dim); }
.spec-qlink-talents:hover {
  color: var(--fel-green);
  border-color: var(--fel-green);
  background: rgba(26, 255, 128, 0.05);
}


/* ============================================================
   GOLD MAKING PAGE
   ============================================================ */
.gold-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}
.gold-hero-goblin {
  flex-shrink: 0;
  position: relative;
}
.gold-goblin-img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245, 197, 24, 0.3));
  animation: goblin-bob 3s ease-in-out infinite;
}
@keyframes goblin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.gold-hero-text { text-align: center; }
.gold-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 0.04em;
}
.gold-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}
.gold-hero-ornament {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0.75rem 0;
}

/* Cost cards */
.gold-costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gold-cost-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}
.gold-cost-card:hover { border-color: var(--border-gold-dim); }
.gold-cost-epic { border-color: var(--border-gold); }
.gold-cost-amount {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gold);
}
.gold-cost-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
}
.gold-cost-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Method cards */
.gold-methods { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.gold-method-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.gold-method-card:hover { border-color: var(--border-gold-dim); }
.gold-method-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.gold-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid var(--border-gold-dim);
  flex-shrink: 0;
}
.gold-method-rank {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-gold);
  min-width: 2rem;
}
.gold-method-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.gold-method-gph {
  font-size: 0.85rem;
  color: var(--text-gold);
  font-weight: 600;
}
.gold-method-difficulty {
  margin-left: auto;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}
.gold-diff-easy { background: rgba(26, 255, 128, 0.1); color: var(--fel-green); }
.gold-diff-medium { background: rgba(245, 197, 24, 0.1); color: var(--text-gold); }
.gold-diff-hard { background: rgba(255, 107, 53, 0.1); color: #ff6b35; }
.gold-diff-expert { background: rgba(155, 89, 182, 0.1); color: #b57edc; }
.gold-method-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.5;
}
.gold-method-tips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem;
}
.gold-method-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: var(--bg-surface-alt);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* 30-day plan */
.gold-plan-timeline { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.gold-plan-phase {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--border-gold);
}
.gold-plan-phase-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.gold-plan-week {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-gold);
}
.gold-plan-target {
  font-size: 0.8rem;
  color: var(--fel-green);
  font-weight: 600;
  background: rgba(26, 255, 128, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.gold-plan-steps {
  list-style: none;
  margin-top: 0.6rem;
  padding: 0;
}
.gold-plan-steps li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.gold-plan-steps li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--text-gold);
}

/* Gold Guide CTA */
.gold-guide-cta-section {
  text-align: center;
  padding: 1rem 0;
}
.gold-guide-cta-section h2 {
  font-family: 'Cinzel', serif;
  color: var(--text-gold);
  font-size: 1.4rem;
}
.gold-guide-cta-section p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0.75rem auto;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .gold-hero { flex-direction: column; gap: 1rem; }
  .gold-goblin-img { width: 120px; }
  .gold-costs-grid { grid-template-columns: 1fr 1fr; }
  .gold-method-header { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .gold-method-difficulty { margin-left: 0; }
  .gold-method-icon { width: 32px; height: 32px; }
}


/* ============================================================
   LEVELING GUIDE PAGE
   ============================================================ */
.leveling-hero { text-align: center; padding: 3rem 0 2rem; }
.leveling-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 0.04em;
}
.leveling-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}
.leveling-hero-ornament {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0.75rem 0;
}

/* Quick Tips */
.leveling-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.leveling-tip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}
.leveling-tip-card:hover { border-color: var(--border-gold-dim); }
.leveling-tip-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.leveling-tip-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border-gold-dim);
  margin-bottom: 0.5rem;
}
.leveling-tip-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.leveling-tip-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.leveling-tip-card a { color: var(--fel-green); text-decoration: none; }
.leveling-tip-card a:hover { text-decoration: underline; }

/* Zone Cards */
.leveling-zones { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.leveling-zone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
/* Visual zone card — with background art */
.leveling-zone-visual { padding: 0; border-left: none; }
.leveling-zone-art {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.leveling-zone-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
}
.leveling-zone-art-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
}
.leveling-zone-body { padding: 0 1.5rem 1.5rem; }
.leveling-zone-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.leveling-zone-num {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-gold);
  min-width: 2rem;
  text-align: center;
}
.leveling-zone-name {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.leveling-zone-levels {
  font-size: 0.8rem;
  color: var(--fel-green);
  font-weight: 600;
}
.leveling-zone-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.leveling-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.leveling-zone-areas { margin-top: 0.75rem; }
.leveling-zone-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 0.15rem 0.2rem;
}
.leveling-zone-dungeons { margin-top: 0.75rem; }
.leveling-dungeon-list {
  list-style: none;
  padding: 0;
}
.leveling-dungeon-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}
.leveling-dungeon-list li::before {
  content: '⚔';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}
.leveling-zone-goals { margin-top: 0.75rem; }
.leveling-goal-list {
  list-style: none;
  padding: 0;
}
.leveling-goal-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}
.leveling-goal-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--text-gold);
}

/* ── Leveling Path Chooser ── */
.leveling-paths { margin-top: 1.5rem; }
.lv-path-input { display: none; }
.lv-path-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  margin: 0 0.25rem 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.lv-path-label:hover { border-color: var(--border-gold-dim); color: var(--text-primary); }
.lv-path-input:checked + .lv-path-label {
  border-color: var(--border-gold);
  color: var(--text-gold);
  background: rgba(245, 197, 24, 0.06);
}
.lv-path-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.lv-path-name { font-weight: 600; }
.lv-path-rec {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(26, 255, 128, 0.1);
  color: var(--fel-green);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* Path content visibility */
.lv-path-content { display: none; margin-top: 1rem; }
#lv-path-hybrid:checked ~ .lv-path-hybrid-content { display: block; }
#lv-path-quests:checked ~ .lv-path-quests-content { display: block; }
#lv-path-dungeon:checked ~ .lv-path-dungeon-content { display: block; }

.lv-path-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lv-path-pros, .lv-path-cons {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.lv-path-pros { border-left: 3px solid var(--fel-green); }
.lv-path-cons { border-left: 3px solid #ff6b35; }
.lv-path-pros h4 {
  font-family: 'Cinzel', serif;
  color: var(--fel-green);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.lv-path-cons h4 {
  font-family: 'Cinzel', serif;
  color: #ff6b35;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.lv-path-pros ul, .lv-path-cons ul {
  list-style: none;
  padding: 0;
}
.lv-path-pros li, .lv-path-cons li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
  line-height: 1.5;
}
.lv-path-pros li::before { content: '✓'; position: absolute; left: 0; color: var(--fel-green); }
.lv-path-cons li::before { content: '✗'; position: absolute; left: 0; color: #ff6b35; }
.lv-path-summary {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.lv-path-summary strong { color: var(--text-gold); }

@media (max-width: 600px) {
  .lv-path-pros-cons { grid-template-columns: 1fr; }
  .lv-path-label { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
  .lv-path-icon { width: 24px; height: 24px; }
  .leveling-zone-art { height: 120px; }
}

/* Synergy Table */
.leveling-synergy-table {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.synergy-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1.5fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.synergy-row:last-child { border-bottom: none; }
.synergy-header {
  background: var(--bg-surface-alt);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.synergy-col { font-size: 0.85rem; color: var(--text-secondary); }
.synergy-col-zone { font-weight: 600; color: var(--text-primary); }
.synergy-col-rep { color: var(--fel-green); font-weight: 500; }
.synergy-col-why { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 700px) {
  .leveling-tips-grid { grid-template-columns: 1fr 1fr; }
  .synergy-row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.6rem 0.75rem; }
  .synergy-header { display: none; }
  .synergy-col-zone::before { content: '📍 '; }
  .synergy-col-dungeon::before { content: '⚔ '; }
  .synergy-col-rep::before { content: '⭐ '; }
}
