/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  background: #0a0e17;
  color: #c8d0d8;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #7ec8e3; text-decoration: none; transition: color 0.3s; }
a:hover { color: #b8e6ff; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e17; }
::-webkit-scrollbar-thumb { background: #2a3a4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a5a7a; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #e8edf2; }
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #7ec8e3, #f0c040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: #8899aa;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
section { padding: 5rem 1.5rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 200, 227, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(10, 14, 23, 0.98); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8edf2;
}
.nav-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7ec8e3, #f0c040);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #a0b0c0;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #e8edf2;
  background: rgba(126, 200, 227, 0.1);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #c8d0d8;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 80, 140, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 160, 40, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(20, 60, 120, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0a0e17 0%, #0d1528 50%, #0a0e17 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.008) 2px,
      rgba(255,255,255,0.008) 4px
    );
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #f0c040;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: rgba(240, 192, 64, 0.06);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e8edf2 0%, #7ec8e3 40%, #f0c040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #8899aa;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: #7a8a9a;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #1a6a9a, #2a8aba);
  color: #fff;
  box-shadow: 0 4px 20px rgba(42, 138, 186, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(42, 138, 186, 0.45);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #c8d0d8;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  color: #e8edf2;
}
.btn-gold {
  background: linear-gradient(135deg, #b8860b, #f0c040);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(240, 192, 64, 0.35);
  color: #1a1a1a;
}

/* ===== Frost Particle Canvas ===== */
#frostCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Section Shared ===== */
.container { max-width: 1200px; margin: 0 auto; }

/* ===== Server Info ===== */
.server-info { background: linear-gradient(180deg, #0d1528, #0a0e17); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s;
}
.info-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(126, 200, 227, 0.2);
  transform: translateY(-3px);
}
.info-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: #e0e8f0; }
.info-card p { font-size: 0.92rem; color: #8899aa; line-height: 1.6; }

/* ===== Class Guide ===== */
.class-guides { background: #0d1528; }
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}
.class-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.class-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 200, 227, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.class-card .class-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid rgba(255,255,255,0.1);
}
.class-card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.class-card .class-role {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  display: inline-block;
}
.role-dps { background: rgba(220, 50, 50, 0.2); color: #ff6b6b; }
.role-tank { background: rgba(50, 120, 220, 0.2); color: #5a9eff; }
.role-healer { background: rgba(50, 200, 100, 0.2); color: #4cd964; }
.role-mixed { background: rgba(200, 160, 50, 0.2); color: #f0c040; }

/* ===== Dungeon & Raid ===== */
.dungeons { background: #0a0e17; }
.dungeon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.dungeon-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.dungeon-card:hover {
  border-color: rgba(126, 200, 227, 0.2);
  transform: translateY(-3px);
}
.dungeon-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dungeon-header h3 { font-size: 1.1rem; }
.dungeon-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
}
.badge-raid { background: rgba(200, 50, 50, 0.2); color: #ff6b6b; }
.badge-dungeon { background: rgba(50, 120, 200, 0.2); color: #5a9eff; }
.badge-heroic { background: rgba(200, 160, 50, 0.2); color: #f0c040; }
.dungeon-body { padding: 1.2rem 1.5rem; }
.dungeon-body p { font-size: 0.9rem; color: #8899aa; margin-bottom: 0.8rem; }
.dungeon-body .boss-list { font-size: 0.85rem; color: #7a8a9a; }
.dungeon-body .boss-list span { display: inline-block; margin: 0.15rem 0.3rem; padding: 0.15rem 0.5rem; background: rgba(255,255,255,0.04); border-radius: 4px; }

/* ===== Profession ===== */
.professions { background: #0d1528; }
.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.prof-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.4rem;
  transition: all 0.3s;
}
.prof-card:hover {
  border-color: rgba(240, 192, 64, 0.2);
  transform: translateY(-3px);
}
.prof-card .prof-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.prof-card h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.prof-card p { font-size: 0.85rem; color: #8899aa; }
.prof-card .prof-bonus {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6aaa3a;
}

/* ===== Professions Pairing ===== */
.prof-pairing {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
}
.prof-pairing h3 { margin-bottom: 1.5rem; color: #e0e8f0; }
.pairing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.pairing-item {
  font-size: 0.9rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.pairing-item strong { color: #f0c040; }

/* ===== Leveling Guide ===== */
.leveling { background: #0a0e17; }
.leveling-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.leveling-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(126,200,227,0.3), rgba(240,192,64,0.1));
}
.level-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.level-step:last-child { margin-bottom: 0; }
.level-number {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a5a, #2a5a8a);
  border: 2px solid rgba(126,200,227,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #7ec8e3;
  flex-shrink: 0;
  z-index: 1;
}
.level-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  flex: 1;
}
.level-content h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.level-content p { font-size: 0.88rem; color: #8899aa; }

/* ===== PvP Guide ===== */
.pvp-guide { background: #0d1528; }
.pvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pvp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s;
  text-align: center;
}
.pvp-card:hover {
  border-color: rgba(220, 50, 50, 0.2);
  transform: translateY(-3px);
}
.pvp-card .pvp-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.pvp-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.pvp-card p { font-size: 0.9rem; color: #8899aa; line-height: 1.6; }
.pvp-card .pvp-stats {
  margin-top: 0.8rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.pvp-card .pvp-stats span {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}

/* ===== Reputation ===== */
.reputation { background: #0a0e17; }
.rep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.rep-card {
  display: flex;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.2rem;
  align-items: flex-start;
  transition: all 0.3s;
}
.rep-card:hover {
  border-color: rgba(126, 200, 227, 0.15);
}
.rep-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.rep-info h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.rep-info p { font-size: 0.82rem; color: #7a8a9a; }
.rep-info .rep-reward {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #f0c040;
}

/* ===== Footer ===== */
footer {
  background: #060a12;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 3rem 2rem;
  text-align: center;
}
footer p { color: #5a6a7a; font-size: 0.85rem; }
footer .footer-links { margin-bottom: 0.8rem; }
footer .footer-links a {
  color: #6a7a8a;
  font-size: 0.85rem;
  margin: 0 0.6rem;
}
footer .footer-links a:hover { color: #7ec8e3; }

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: rgba(42, 138, 186, 0.2);
  border: 1px solid rgba(126, 200, 227, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
  color: #7ec8e3;
  font-size: 1.2rem;
}
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover {
  background: rgba(42, 138, 186, 0.4);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(10, 14, 23, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links a { width: 100%; padding: 0.7rem 1rem; }
  section { padding: 3rem 1rem; }
  .section-title { font-size: 1.6rem; }
  .class-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .dungeon-grid { grid-template-columns: 1fr; }
  .level-step { flex-direction: column; gap: 0.5rem; }
  .level-number { width: 36px; height: 36px; font-size: 0.85rem; }
  .leveling-timeline::before { left: 18px; }
  .hero { min-height: 90vh; padding: 5rem 1.5rem 3rem; }
  .rep-card { flex-direction: column; }
}

/* ===== Page Sub-header ===== */
.page-header {
  padding: 7rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, #0d1528, #0a0e17);
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-header p { color: #8899aa; }

/* ===== Content Page Layout ===== */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
.content-page h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.content-page h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.content-page p { margin-bottom: 1rem; color: #a0b0c0; }
.content-page ul { margin-bottom: 1rem; list-style: disc; padding-left: 1.5rem; }
.content-page li { margin-bottom: 0.4rem; color: #a0b0c0; }
.content-page .info-box {
  background: rgba(126, 200, 227, 0.06);
  border: 1px solid rgba(126, 200, 227, 0.15);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.content-page .info-box strong { color: #7ec8e3; }
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.content-page th, .content-page td {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  font-size: 0.9rem;
}
.content-page th {
  background: rgba(255,255,255,0.04);
  color: #c8d0d8;
  font-weight: 600;
}
.content-page td { color: #a0b0c0; }

/* ===== Talent Calculator Placeholder ===== */
.talent-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
.talent-tier {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  color: #b0c0d0;
}
.talent-tier .points { color: #f0c040; font-weight: 700; }

/* ===== Expanded Class Page Styles ===== */
.spec-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.spec-section h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  font-size: 1.3rem !important;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.2rem !important;
}
.spec-section h2.spec-dps { background: rgba(220,50,50,0.12); color: #ff6b6b; }
.spec-section h2.spec-heal { background: rgba(50,200,100,0.12); color: #4cd964; }
.spec-section h2.spec-tank { background: rgba(50,120,220,0.12); color: #5a9eff; }
.spec-section h2.spec-mixed { background: rgba(200,160,50,0.12); color: #f0c040; }
.talent-tree {
  margin: 1rem 0 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.talent-tree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.talent-tree-header .tree-name { font-weight: 600; color: #e0e8f0; }
.talent-tree-header .tree-total { color: #f0c040; font-weight: 700; }
.talent-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center;
}
.talent-tier-row:last-child { border-bottom: none; }
.talent-tier-label {
  font-size: 0.75rem;
  color: #5a6a7a;
  width: 3.2rem;
  flex-shrink: 0;
  font-weight: 600;
}
.talent-node {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.talent-node .t-points { font-weight: 700; color: #f0c040; }
.talent-node.taken { background: rgba(126,200,227,0.08); border-color: rgba(126,200,227,0.15); color: #c8e8f5; }
.talent-node.not-taken { opacity: 0.35; }
.info-block-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a0b0c0;
  margin: 1.2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.gear-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
}
.gear-table th {
  background: rgba(255,255,255,0.04);
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-weight: 600;
  color: #c0d0e0;
  border: 1px solid rgba(255,255,255,0.05);
}
.gear-table td {
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.04);
  color: #a0b0c0;
  vertical-align: top;
}
.gear-table tr:hover td { background: rgba(255,255,255,0.02); }
.gear-item-name { color: #c8d0d8; font-weight: 500; }
.gear-source { font-size: 0.75rem; color: #6a8a5a; }
.gear-bis { color: #f0c040; }
.compact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.3rem 0 1rem;
  font-size: 0.82rem;
}
.compact-table th {
  background: rgba(255,255,255,0.03);
  padding: 0.35rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: #b0c0d0;
  border: 1px solid rgba(255,255,255,0.04);
}
.compact-table td {
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.03);
  color: #9aabba;
}
.prof-recs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 0.5rem 0 1rem;
}
.prof-rec-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.prof-rec-card .rec-label {
  font-size: 0.8rem;
  color: #f0c040;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}
.prof-rec-card .rec-value { font-size: 0.85rem; color: #b0c0d0; }
.prof-rec-card .rec-note { font-size: 0.75rem; color: #7a8a9a; margin-top: 0.2rem; }
.consume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.consume-item {
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
}
.consume-item .c-label { color: #7a8a9a; }
.consume-item .c-value { color: #c8d0d8; font-weight: 500; }
.rotation-list {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
  margin: 0.5rem 0;
}
.rotation-list li {
  counter-increment: step;
  padding: 0.3rem 0 0.3rem 1.8rem;
  position: relative;
  font-size: 0.88rem;
  color: #b0c0d0;
  margin-bottom: 0.15rem;
}
.rotation-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.3rem;
  width: 1.3rem; height: 1.3rem;
  background: rgba(126,200,227,0.1);
  border: 1px solid rgba(126,200,227,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #7ec8e3;
}
.race-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.race-tag {
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.race-tag.ally { border-color: rgba(50,120,200,0.2); color: #5a9eff; }
.race-tag.horde { border-color: rgba(200,50,50,0.2); color: #ff6b6b; }

/* ===== Raid Boss Guide Styles ===== */
.boss-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}
.boss-section h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  font-size: 1.25rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.boss-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(200,50,50,0.2);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff6b6b;
}
.boss-desc {
  font-size: 0.92rem;
  color: #a0b0c0;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.boss-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0;
}
.boss-role-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.boss-role-card .role-title {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}
.boss-role-card .role-title.tank-title { color: #5a9eff; }
.boss-role-card .role-title.heal-title { color: #4cd964; }
.boss-role-card .role-title.dps-title { color: #ff6b6b; }
.boss-role-card ul { list-style: disc; padding-left: 1rem; }
.boss-role-card li {
  font-size: 0.82rem;
  color: #a0b0c0;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.boss-mech {
  background: rgba(255,200,50,0.04);
  border: 1px solid rgba(255,200,50,0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
}
.boss-mech .mech-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f0c040;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.boss-mech p {
  font-size: 0.85rem;
  color: #b0c0d0;
  margin: 0.3rem 0 0;
}
.boss-prep {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.boss-prep .prep-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(126,200,227,0.06);
  border: 1px solid rgba(126,200,227,0.12);
  color: #7ec8e3;
}
.boss-prep .prep-tag.prep-danger {
  background: rgba(200,50,50,0.06);
  border-color: rgba(200,50,50,0.12);
  color: #ff6b6b;
}
.boss-prep .prep-tag.prep-gold {
  background: rgba(240,192,64,0.06);
  border-color: rgba(240,192,64,0.12);
  color: #f0c040;
}
.raid-header-banner {
  background: linear-gradient(135deg, rgba(30,60,100,0.2), rgba(60,30,30,0.2));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.raid-header-banner .raid-info { font-size: 0.9rem; color: #a0b0c0; }
.raid-header-banner .raid-info strong { color: #e0e8f0; }
.raid-header-banner .raid-difficulty {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: rgba(200,50,50,0.1);
  color: #ff6b6b;
  font-weight: 600;
}
/* ===== Raid Prep Checklist ===== */
.prep-checklist {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.prep-checklist h3 { margin-bottom: 1rem; color: #e0e8f0; }
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}
.checklist-item {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
}
.checklist-item .check-label { color: #7a8a9a; }
.checklist-item .check-value { color: #c8d0d8; }

/* ===== Macro Block ===== */
.macro-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.macro-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: #e0e8f0;
}
.macro-section .macro-desc {
  font-size: 0.85rem;
  color: #7a8a9a;
  margin-bottom: 1rem;
}
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.macro-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(126,200,227,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.macro-card .macro-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7ec8e3;
  padding: 0.5rem 0.8rem;
  background: rgba(126,200,227,0.04);
  border-bottom: 1px solid rgba(126,200,227,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.macro-card .macro-title .macro-copy {
  font-size: 0.7rem;
  color: #5a6a7a;
  cursor: pointer;
  user-select: none;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.06);
}
.macro-card .macro-title .macro-copy:hover {
  color: #7ec8e3;
  border-color: rgba(126,200,227,0.2);
}
.macro-card pre {
  margin: 0;
  padding: 0.6rem 0.8rem;
  font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #b0c8d8;
  overflow-x: auto;
  white-space: pre;
  background: rgba(0,0,0,0.15);
}
.macro-card .macro-use {
  font-size: 0.75rem;
  color: #6a8a5a;
  padding: 0.3rem 0.8rem 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ===== Key Binding Section ===== */
.keybind-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.keybind-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: #e0e8f0;
}
.keybind-section .kb-desc {
  font-size: 0.85rem;
  color: #7a8a9a;
  margin-bottom: 0.3rem;
}
.kb-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.kb-principles .kb-tip {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(126,200,227,0.04);
  border: 1px solid rgba(126,200,227,0.08);
  color: #7ec8e3;
}
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.kb-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kb-card .kb-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px; height: 28px;
  background: rgba(200,230,255,0.08);
  border: 1px solid rgba(200,230,255,0.15);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c8e8ff;
  padding: 0 6px;
  font-family: 'Menlo', 'Consolas', monospace;
  flex-shrink: 0;
}
.kb-card .kb-key.mod {
  background: rgba(240,192,64,0.08);
  border-color: rgba(240,192,64,0.15);
  color: #f0c040;
  font-size: 0.65rem;
}
.kb-card .kb-key.mouse {
  background: rgba(100,200,100,0.08);
  border-color: rgba(100,200,100,0.15);
  color: #6aee6a;
  font-size: 0.65rem;
}
.kb-card .kb-skill {
  font-size: 0.82rem;
  color: #b0c0d0;
  line-height: 1.2;
}
.kb-card .kb-skill small {
  font-size: 0.72rem;
  color: #7a8a9a;
  display: block;
}

/* ===== POE Specific ===== */
.poe-header-banner {
  background: linear-gradient(135deg, rgba(80,20,20,0.3), rgba(20,20,40,0.3));
  border: 1px solid rgba(200,80,30,0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.poe-header-banner .poe-info { font-size: 0.9rem; color: #a0b0c0; }
.poe-header-banner .poe-info strong { color: #e0e8f0; }
.poe-ascend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 0.5rem 0 1rem;
}
.poe-ascend-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: center;
}
.poe-ascend-card .ascend-icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.poe-ascend-card h5 { font-size: 0.9rem; color: #e0e8f0; margin-bottom: 0.2rem; }
.poe-ascend-card p { font-size: 0.78rem; color: #7a8a9a; line-height: 1.4; }
.poe-build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}
.poe-build-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,80,30,0.1);
  border-radius: 10px;
  padding: 1.2rem;
}
.poe-build-card h4 { font-size: 1rem; margin-bottom: 0.3rem; color: #f0a060; }
.poe-build-card .build-meta { font-size: 0.78rem; color: #7a8a9a; margin-bottom: 0.5rem; }
.poe-build-card .build-meta span { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.4rem; border-radius: 3px; background: rgba(255,255,255,0.03); }
.poe-build-card ul { list-style: disc; padding-left: 1rem; }
.poe-build-card li { font-size: 0.82rem; color: #a0b0c0; margin-bottom: 0.2rem; }
.currency-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.85rem; }
.currency-table th { background: rgba(200,80,30,0.08); padding: 0.4rem 0.6rem; text-align: left; font-weight: 600; color: #f0a060; border: 1px solid rgba(200,80,30,0.08); }
.currency-table td { padding: 0.35rem 0.6rem; border: 1px solid rgba(255,255,255,0.04); color: #a0b0c0; }

/* ===== Crafting Case Cards ===== */
.crafting-case {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,80,30,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.case-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(200,80,30,0.04);
  border-bottom: 1px solid rgba(200,80,30,0.06);
}
.case-header .case-icon { font-size: 1.5rem; }
.case-header .case-title { font-size: 1rem; font-weight: 700; color: #f0a060; }
.case-header .case-base { font-size: 0.78rem; color: #7a8a9a; }
.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.stat-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #b0c0d0;
}
.stat-tag.t1 { background: rgba(240,192,64,0.08); border-color: rgba(240,192,64,0.15); color: #f0c040; }
.stat-tag.t2 { background: rgba(126,200,227,0.06); border-color: rgba(126,200,227,0.12); color: #7ec8e3; }
.stat-tag.t3 { color: #8899aa; }
.case-steps { padding: 0.6rem 1.2rem; }
.case-step {
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: flex-start;
}
.case-step:last-child { border-bottom: none; }
.case-step .step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(200,80,30,0.12);
  border: 1px solid rgba(200,80,30,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f0a060;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.case-step .step-body { flex: 1; }
.case-step .step-body .step-desc { font-size: 0.82rem; color: #b0c0d0; }
.case-step .step-body .step-desc strong { color: #e0e8f0; }
.case-step .step-body .step-detail { font-size: 0.75rem; color: #7a8a9a; margin-top: 0.15rem; }
.case-total {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: rgba(200,80,30,0.03);
  border-top: 1px solid rgba(200,80,30,0.06);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.case-total .cost-label { color: #7a8a9a; }
.case-total .cost-value { font-weight: 600; }
.case-total .cost-value.positive { color: #4cd964; }
.case-total .cost-value.negative { color: #ff6b6b; }
