/* ============================================
   RPG SKILLS — Components
   ============================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav.scrolled {
  background: rgba(7, 8, 15, 0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: var(--ls-tight);
}

.nav-brand .brand-icon {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-links a.btn {
  color: #000;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.btn:hover {
  color: #000;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #120a00;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  text-shadow: none;
}

.btn-primary span,
.btn-primary strong {
  color: inherit;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #120a00;
  box-shadow: 0 0 20px rgba(212, 136, 28, .35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(212, 136, 28, .35);
}

.btn-outline:hover {
  background: rgba(212, 136, 28, .06);
  border-color: var(--gold);
  color: #fff;
}

.btn-steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  color: #c7d5e0;
  border: 1px solid rgba(199, 213, 224, 0.15);
}

.btn-steam:hover {
  background: linear-gradient(135deg, #2a475e, #1b2838);
  border-color: rgba(199, 213, 224, 0.3);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-base);
}

.hero-buttons .btn-primary {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 136, 28, 0);
  }

  50% {
    box-shadow: 0 0 20px 2px rgba(212, 136, 28, 0.2);
  }
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.lang-option .fi {
  display: inline-block;
  width: 16px;
  height: 12px;
  border-radius: 1px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lang-option.active .fi {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.lang-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.lang-option.active {
  color: var(--dark);
  background: var(--gold);
  border-color: var(--gold);
}

.lang-option.active:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 136, 28, .15), transparent);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-icon.green {
  background: rgba(212, 136, 28, .08);
  color: var(--gold);
}

.card-icon.blue {
  background: rgba(96, 165, 250, .08);
  color: var(--blue);
}

.card-icon.red {
  background: rgba(239, 68, 68, .08);
  color: var(--red);
}

.card-icon.gold {
  background: rgba(212, 136, 28, .08);
  color: var(--gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.card-chip {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 136, 28, 0.1);
  border: 1px solid rgba(212, 136, 28, 0.22);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  margin-bottom: var(--space-md);
}

/* ---------- XP JOURNEY ---------- */
.xp-journey {
  margin-top: var(--space-2xl);
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg) calc(var(--space-2xl) + 20px);
  position: relative;
  overflow: hidden;
}

.xp-journey-head {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.xp-journey-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.xp-journey-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
}

.xp-journey-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.xp-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 var(--space-md);
}

.xp-track-line {
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 136, 28, 0.15), rgba(212, 136, 28, 0.55), rgba(212, 136, 28, 0.15));
  border-radius: 2px;
}

.xp-milestone {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  padding: 0 6px;
}

.xp-node {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 50%;
  background: var(--dark3);
  border: 2px solid rgba(212, 136, 28, 0.3);
  box-shadow: 0 0 0 4px rgba(212, 136, 28, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.xp-milestone:hover .xp-node {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 0 18px rgba(212, 136, 28, 0.35);
}

.xp-node-final {
  background: linear-gradient(135deg, rgba(212, 136, 28, 0.25), rgba(212, 136, 28, 0.08));
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 136, 28, 0.15), 0 0 22px rgba(212, 136, 28, 0.4);
}

.xp-level {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.xp-xp {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 136, 28, 0.1);
  border: 1px solid rgba(212, 136, 28, 0.22);
  border-radius: var(--radius-full);
  padding: 2px 12px;
  margin-bottom: var(--space-sm);
}

.xp-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 150px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- XP BIOME CHIPS ---------- */
.xp-biomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.xp-biome-group-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.xp-biome-range {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: rgba(212, 136, 28, 0.1);
  border: 1px solid rgba(212, 136, 28, 0.2);
  border-radius: var(--radius-full);
  padding: 1px 10px;
}

.xp-biome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xp-biome-chip {
  font-size: 0.8rem;
  color: var(--text-body);
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.xp-biome-chip:hover {
  border-color: rgba(212, 136, 28, 0.35);
  color: #fff;
}

.xp-biome-chip b {
  color: var(--gold);
  font-weight: 700;
  margin-left: 6px;
}

/* ---------- BOSS CALLOUT ---------- */
.xp-boss-callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) var(--space-2xl);
  background:
    linear-gradient(135deg, rgba(212, 136, 28, 0.14), rgba(212, 136, 28, 0.03) 55%, rgba(212, 136, 28, 0.09));
  border: 1px solid rgba(212, 136, 28, 0.45);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(212, 136, 28, 0.08),
    0 10px 36px rgba(212, 136, 28, 0.14),
    inset 0 0 44px rgba(212, 136, 28, 0.07);
  overflow: hidden;
}

.xp-boss-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 50%, rgba(212, 136, 28, 0.20), transparent 46%);
  pointer-events: none;
}

.xp-boss-icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 136, 28, 0.28), rgba(212, 136, 28, 0.05));
  border: 1px solid rgba(212, 136, 28, 0.5);
  box-shadow: 0 0 22px rgba(212, 136, 28, 0.4), inset 0 0 16px rgba(212, 136, 28, 0.22);
  filter: drop-shadow(0 0 8px rgba(212, 136, 28, 0.45));
}

.xp-boss-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 136, 28, 0.12);
  border: 1px solid rgba(212, 136, 28, 0.38);
  border-radius: 999px;
  padding: 3px 13px;
  margin-bottom: 10px;
}

.xp-boss-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(212, 136, 28, 0.28);
}

.xp-boss-block {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 136, 28, 0.18);
}

.xp-boss-block:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}

.xp-boss-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.xp-boss-formula {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin: 0 0 9px;
}

.xp-boss-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xp-boss-stats span {
  font-size: 0.8rem;
  color: var(--text-body);
  background: rgba(212, 136, 28, 0.08);
  border: 1px solid rgba(212, 136, 28, 0.22);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
}

.xp-boss-stats b {
  color: var(--gold);
  font-weight: 700;
  margin-right: 5px;
}

@media (max-width: 640px) {
  .xp-boss-callout {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }

  .xp-boss-tag {
    margin-bottom: 8px;
  }
}

/* ---------- XP SOURCES GRID ---------- */
.xp-subhead {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.xp-subhead::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: var(--space-sm) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.xp-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-md);
}

.xp-source {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.xp-source:hover {
  border-color: rgba(212, 136, 28, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.xp-source-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--gold)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 35%, transparent);
}

.xp-source-name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.xp-source-value {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.xp-source-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---------- XP FORMULA STRIP ---------- */
.xp-formula {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.xp-formula-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  color: var(--text-body);
}

.xp-formula-item strong {
  color: var(--gold);
}

.xp-formula-icon {
  font-size: 1.1rem;
}

/* ---------- CLASS CARD ---------- */
.class-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.class-card::after {
  content: '\203A';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  font-size: 1.4rem;
  color: var(--text-dim);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.class-card:hover {
  border-color: rgba(212, 136, 28, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(212, 136, 28, 0.12);
}

.class-card:hover::after {
  opacity: 1;
  color: var(--gold);
  transform: translateY(-50%) translateX(0);
}

.class-info {
  padding-right: 22px;
}

.class-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(212, 136, 28, .06);
}

.class-info h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 2px;
}

.class-info p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- STAT CARD ---------- */
.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ---------- TAG / BADGE ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(212, 136, 28, .08);
  color: var(--gold);
  border: 1px solid rgba(212, 136, 28, .15);
}

.tag.blue {
  background: rgba(96, 165, 250, .08);
  color: var(--blue);
  border-color: rgba(96, 165, 250, .15);
}

.tag.red {
  background: rgba(239, 68, 68, .08);
  color: var(--red);
  border-color: rgba(239, 68, 68, .15);
}

.tag.gold {
  background: rgba(212, 136, 28, .08);
  color: var(--gold);
  border-color: rgba(212, 136, 28, .15);
}

.tag-version {
  background: rgba(212, 136, 28, .12);
  color: #fff;
  border-color: rgba(212, 136, 28, .3);
  font-weight: 600;
}

/* ---------- FEATURE ROW ---------- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row-icon {
  font-size: 1.25rem;
  color: var(--gold);
  min-width: 24px;
  text-align: center;
  margin-top: 2px;
}

.feature-row-content h4 {
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.feature-row-content p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---------- CATEGORY HEADER ---------- */
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid;
}

.category-header.combat {
  border-color: var(--cat-combat);
}

.category-header.defense {
  border-color: var(--cat-defense);
}

.category-header.mobility {
  border-color: var(--cat-mobility);
}

.category-header.utility {
  border-color: var(--cat-utility);
}

.category-header.settler {
  border-color: var(--cat-settler);
}

.category-header h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
}

.category-header .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.category-header.combat .cat-dot {
  background: var(--cat-combat);
}

.category-header.defense .cat-dot {
  background: var(--cat-defense);
}

.category-header.mobility .cat-dot {
  background: var(--cat-mobility);
}

.category-header.utility .cat-dot {
  background: var(--cat-utility);
}

.category-header.settler .cat-dot {
  background: var(--cat-settler);
}

/* ---------- DIVIDER ---------- */
.divider {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  letter-spacing: 8px;
}

/* ---------- CLASS MODAL ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  animation: modalFade 0.25s ease;
}

.modal {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cat-fg, var(--gold));
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 136, 28, 0.10);
  animation: modalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--dark-card);
  z-index: 1;
}

.modal-header .class-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 1px solid var(--cat-bg, rgba(212, 136, 28, 0.2));
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-header .modal-tab-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cat-fg, var(--gold));
  background: var(--cat-bg, rgba(212, 136, 28, 0.1));
  border: 1px solid rgba(212, 136, 28, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  z-index: 2;
}

.modal-close:hover {
  color: #fff;
  background: rgba(212, 136, 28, 0.18);
  border-color: rgba(212, 136, 28, 0.45);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-note {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--cat-fg, var(--gold));
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 0;
}

.modal-section {
  margin-bottom: var(--space-xl);
}

.modal-section h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 12px;
  border-left: 3px solid var(--cat-fg, var(--gold));
}

.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.bonus-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.bonus-item .bonus-name {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.bonus-item .bonus-value {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--cat-fg, var(--green));
}

.passive-tag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--cat-bg, rgba(212, 136, 28, 0.08));
  border: 1px solid rgba(212, 136, 28, 0.2);
  border-left: 3px solid var(--cat-fg, var(--gold));
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 8px 0;
  line-height: 1.45;
}

.passive-tag strong {
  color: #fff;
}

.passive-tag small {
  color: var(--text-dim);
}

.passive-tag .passive-icon {
  font-size: 14px;
}

/* ---------- PASSIVES GRID ---------- */
.passive-card {
  padding: var(--space-lg);
  border-left: 3px solid var(--gold);
}

.passive-card .passive-req {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--space-sm);
}

.passive-card .passive-effect {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ---------- XP TABLE ---------- */
.xp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.xp-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}

.xp-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.xp-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.xp-table .xp-value {
  color: var(--green);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ---------- CHANGELOG ---------- */
.changelog-item {
  padding: var(--space-lg);
  border-left: 3px solid var(--border);
  margin-bottom: var(--space-md);
  transition: border-color 0.2s;
}

.changelog-item:hover {
  border-left-color: var(--gold);
}

.changelog-item .changelog-version {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--gold);
}

.changelog-item .changelog-date {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-left: var(--space-sm);
}

.changelog-item .changelog-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: var(--space-sm);
}

.changelog-tag.major {
  background: rgba(212, 136, 28, 0.15);
  color: var(--gold);
}

.changelog-tag.minor {
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue);
}

.changelog-tag.fix {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.changelog-list li {
  padding: 4px 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
}

.changelog-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.changelog-list li.fix::before {
  content: '~';
  color: var(--gold);
}

.changelog-list li.removed::before {
  content: '-';
  color: var(--red);
}
