/* ===========================================
   Focus and Dragons - Epic Landing Page Styles
   =========================================== */

/* CSS Variables - Color Palette: Dark Fantasy / Diablo Style */
:root {
  /* Primary: Blood red / crimson */
  --color-primary: #8B0000;
  --color-primary-hover: #A52A2A;
  --color-primary-glow: rgba(139, 0, 0, 0.5);

  /* Secondary accent: Bone/parchment */
  --color-accent-light: #C9B896;
  --color-accent-warm: #8B7355;

  /* Backgrounds: Abyss blacks */
  --color-background: #0A0A0C;
  --color-surface: #12121A;
  --color-surface-elevated: #1A1A24;

  --color-secondary: #4A3728;
  --color-accent: #2A2A3A;
  --color-error: #FF4444;

  /* Text: Whiter tones for better readability */
  --color-text: #E8E4E0;
  --color-text-muted: #A8A0A0;
  --color-text-bright: #F5F2F0;

  --color-border: #2A2420;
  --color-border-glow: #3D2A20;

  /* Rarity Colors - Darker, more saturated */
  --rarity-common: #6B6B6B;
  --rarity-uncommon: #1A5C1A;
  --rarity-rare: #1E3A6E;
  --rarity-epic: #4A1A6E;
  --rarity-legendary: #8B5A00;
  --rarity-mythic: #8B0000;

  /* Rarity Glows - More intense */
  --glow-common: rgba(107, 107, 107, 0.3);
  --glow-uncommon: rgba(26, 92, 26, 0.5);
  --glow-rare: rgba(30, 58, 110, 0.5);
  --glow-epic: rgba(74, 26, 110, 0.6);
  --glow-legendary: rgba(139, 90, 0, 0.6);
  --glow-mythic: rgba(139, 0, 0, 0.7);

  /* Blood effect */
  --color-blood: #6B0000;
  --color-blood-bright: #8B0000;
  --color-blood-glow: rgba(107, 0, 0, 0.4);

  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-default: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 5px var(--glow-color)); }
  50% { filter: drop-shadow(0 0 20px var(--glow-color)) drop-shadow(0 0 40px var(--glow-color)); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes dragonBreath {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
    transform: scale(1);
  }
  50% {
    filter: hue-rotate(15deg) brightness(1.2);
    transform: scale(1.02);
  }
}

/* =========================================
   BASE STYLES
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3rem; }

  /* Smaller hero title for desktop to fit in 2 lines */
  .hero-title {
    font-size: 3.5rem;
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.container-wide {
  max-width: 1400px;
}

/* =========================================
   PARTICLES BACKGROUND
   ========================================= */

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255, 220, 180, 0.85);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
  box-shadow: 0 0 15px rgba(255, 220, 180, 0.7), 0 0 25px rgba(255, 220, 180, 0.4);
}

/* Some particles as embers */
.particle:nth-child(odd) {
  background: rgba(255, 180, 120, 0.8);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 18px rgba(255, 180, 120, 0.6), 0 0 30px rgba(255, 180, 120, 0.3);
}

.particle:nth-child(3n) {
  background: rgba(220, 200, 170, 0.7);
  width: 4px;
  height: 4px;
  box-shadow: 0 0 12px rgba(220, 200, 170, 0.5);
}

/* Red ember particles */
.particle:nth-child(5n) {
  background: rgba(220, 100, 60, 0.8);
  width: 5px;
  height: 5px;
  box-shadow: 0 0 20px rgba(220, 100, 60, 0.7), 0 0 35px rgba(220, 100, 60, 0.4);
}

/* Golden sparkle particles */
.particle:nth-child(7n) {
  background: rgba(255, 215, 0, 0.9);
  width: 4px;
  height: 4px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.4);
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 20s; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-duration: 18s; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-duration: 22s; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-duration: 19s; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-duration: 21s; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-duration: 17s; animation-delay: 4s; }
.particle:nth-child(9) { left: 90%; animation-duration: 23s; animation-delay: 1s; }
.particle:nth-child(10) { left: 5%; animation-duration: 20s; animation-delay: 3s; }
.particle:nth-child(11) { left: 15%; animation-duration: 18s; animation-delay: 6s; }
.particle:nth-child(12) { left: 25%; animation-duration: 24s; animation-delay: 2s; }
.particle:nth-child(13) { left: 35%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(14) { left: 45%; animation-duration: 22s; animation-delay: 0s; }
.particle:nth-child(15) { left: 55%; animation-duration: 19s; animation-delay: 4s; }
.particle:nth-child(16) { left: 65%; animation-duration: 21s; animation-delay: 1s; }
.particle:nth-child(17) { left: 75%; animation-duration: 17s; animation-delay: 3s; }
.particle:nth-child(18) { left: 85%; animation-duration: 25s; animation-delay: 6s; }
.particle:nth-child(19) { left: 95%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(20) { left: 50%; animation-duration: 20s; animation-delay: 5s; }
.particle:nth-child(21) { left: 8%; animation-duration: 19s; animation-delay: 7s; }
.particle:nth-child(22) { left: 22%; animation-duration: 21s; animation-delay: 3s; }
.particle:nth-child(23) { left: 38%; animation-duration: 17s; animation-delay: 8s; }
.particle:nth-child(24) { left: 52%; animation-duration: 23s; animation-delay: 1s; }
.particle:nth-child(25) { left: 68%; animation-duration: 18s; animation-delay: 6s; }
.particle:nth-child(26) { left: 78%; animation-duration: 20s; animation-delay: 4s; }
.particle:nth-child(27) { left: 88%; animation-duration: 16s; animation-delay: 9s; }
.particle:nth-child(28) { left: 3%; animation-duration: 22s; animation-delay: 2s; }
.particle:nth-child(29) { left: 33%; animation-duration: 19s; animation-delay: 5s; }
.particle:nth-child(30) { left: 63%; animation-duration: 24s; animation-delay: 0s; }

/* =========================================
   HEADER
   ========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Cinzel', var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-accent-light);
  text-shadow: 0 0 15px var(--color-blood-glow), 2px 2px 4px rgba(0,0,0,0.5);
  transition: var(--transition-default);
  letter-spacing: 0.05em;
}

.logo:hover {
  text-shadow: 0 0 20px var(--color-blood-glow), 0 0 40px var(--color-blood-glow), 2px 2px 4px rgba(0,0,0,0.5);
  color: var(--color-text-bright);
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: var(--transition-default);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-default);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-default);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #6B0000 0%, #8B0000 50%, #4A0000 100%);
  color: var(--color-text-bright);
  border-color: #8B0000;
  box-shadow: 0 4px 15px var(--color-blood-glow), inset 0 1px 0 rgba(255,255,255,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8B0000 0%, #A52A2A 50%, #6B0000 100%);
  border-color: #A52A2A;
  color: var(--color-text-bright);
  box-shadow: 0 6px 30px var(--color-blood-glow), 0 0 20px rgba(139, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-epic {
  background: linear-gradient(135deg, var(--rarity-epic) 0%, #7C3AED 100%);
  border-color: var(--rarity-epic);
  box-shadow: 0 4px 15px var(--glow-epic);
}

.btn-epic:hover {
  box-shadow: 0 6px 25px var(--glow-epic);
}

.btn-white-text {
  color: #FFFFFF;
}

.btn-white-text:hover {
  color: #FFFFFF;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  margin-right: 0.5rem;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--color-blood);
}

.lang-arrow {
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 120px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: rgba(139, 0, 0, 0.2);
  color: var(--color-text);
}

.lang-option.active {
  background: var(--color-blood);
  color: white;
}

/* Mobile Language Selector */
.lang-dropdown-mobile {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.lang-select-mobile {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  cursor: pointer;
}

.lang-select-mobile:focus {
  outline: none;
  border-color: var(--color-blood);
}

/* Platform Buttons */
.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.platform-btn:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--color-blood);
  transform: translateY(-2px);
}

.platform-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.platform-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.platform-text small {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.platform-text strong {
  font-size: 0.95rem;
}

/* Platform-specific button colors */
.platform-btn[data-store="ios"] {
  background: rgba(0, 0, 0, 0.6);
  border-color: #555;
}

.platform-btn[data-store="ios"]:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: #999;
}

.platform-btn[data-store="ios"] svg {
  color: #fff;
}

.platform-btn[data-store="ios"]:hover svg {
  color: #fff;
}

.platform-btn[data-store="android"] {
  background: rgba(60, 135, 90, 0.2);
  border-color: #3DDC84;
}

.platform-btn[data-store="android"]:hover {
  background: rgba(60, 135, 90, 0.35);
  border-color: #3DDC84;
}

.platform-btn[data-store="android"] svg {
  color: #3DDC84;
}

.platform-btn[data-store="web"] {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border-color: #818CF8;
}

.platform-btn[data-store="web"]:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.35));
  border-color: #A78BFA;
}

.platform-btn[data-store="web"] svg {
  color: #A78BFA;
}

.platform-buttons-left {
  justify-content: flex-start;
}

.platform-btn-uniform {
  min-width: 180px;
  padding: 1rem 1.5rem;
}

.platform-btn-uniform svg {
  width: 32px;
  height: 32px;
}

.platform-btn-uniform .platform-text strong {
  font-size: 1.1rem;
}

/* Golden Step Card (Step 4 - Loot) */
.step-card-golden {
  border: 2px solid var(--rarity-legendary);
  box-shadow: 0 0 30px rgba(139, 90, 0, 0.4), 0 0 60px rgba(139, 90, 0, 0.2);
  position: relative;
}

.step-card-golden::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--rarity-legendary), #FFD700, var(--rarity-legendary));
  border-radius: inherit;
  z-index: -1;
  animation: goldenBorderGlow 2s ease-in-out infinite;
}

@keyframes goldenBorderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.step-number-golden {
  /* Normal number style, no special glow */
}

.card-title-golden {
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
}

/* Golden glow on chest icon */
.step-card-golden .step-image-container img {
  border-color: var(--rarity-legendary);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.6),
    0 0 50px rgba(255, 215, 0, 0.4),
    0 0 80px rgba(139, 90, 0, 0.3),
    inset 0 0 20px rgba(139, 90, 0, 0.2);
  animation: goldenIconPulse 2s ease-in-out infinite;
}

@keyframes goldenIconPulse {
  0%, 100% {
    box-shadow:
      0 0 25px rgba(255, 215, 0, 0.6),
      0 0 50px rgba(255, 215, 0, 0.4),
      0 0 80px rgba(139, 90, 0, 0.3),
      inset 0 0 20px rgba(139, 90, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 40px rgba(255, 215, 0, 0.8),
      0 0 70px rgba(255, 215, 0, 0.5),
      0 0 100px rgba(139, 90, 0, 0.4),
      inset 0 0 30px rgba(139, 90, 0, 0.3);
  }
}

/* SOCIAL + RAIDS Section */
.section-social-raids {
  position: relative;
  overflow: hidden;
}

.social-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .social-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-image-square {
  height: 180px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.feature-image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RAIDS Integrated Section */
.raids-section {
  margin-top: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 2px solid var(--color-blood);
  border-radius: 1.5rem;
  box-shadow: 0 0 40px var(--color-blood-glow);
  position: relative;
  overflow: hidden;
}

/* Raids background image - only in raids section */
.raids-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/features/raid.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(2px);
  z-index: 0;
}

.raids-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(139, 0, 0, 0.2) 0%, transparent 60%);
  animation: raidsBackgroundPulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes raidsBackgroundPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.raids-header-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.raids-title-white {
  font-size: 2.5rem;
  color: white;
  text-shadow:
    0 0 30px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(255, 255, 255, 0.3),
    0 0 90px var(--color-blood-glow);
  margin: 0;
}

@media (min-width: 768px) {
  .raids-title-white {
    font-size: 3.5rem;
  }
}

.raids-badge-inline {
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--color-blood) 0%, #6B0000 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px var(--color-blood-glow);
}

.raids-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.raids-content-unified {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .raids-content-unified {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.raids-text-section {
  text-align: center;
  max-width: 700px;
}

@media (min-width: 1024px) {
  .raids-text-section {
    text-align: left;
    max-width: none;
  }
}

.raids-description {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.raids-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .raids-sizes {
    justify-content: flex-start;
  }
}

.raid-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-bright);
}

.raid-size small {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.raid-size-rare {
  border-color: var(--rarity-rare);
  box-shadow: 0 0 15px var(--glow-rare);
  color: var(--rarity-rare);
}

.raid-size-epic {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 18px var(--glow-epic);
  color: var(--rarity-epic);
}

.raid-size-legendary {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 20px var(--glow-legendary);
  color: var(--rarity-legendary);
}

.raid-size-mythic {
  border-color: var(--rarity-mythic);
  box-shadow: 0 0 25px var(--glow-mythic);
  color: var(--rarity-mythic);
  animation: mythicRaidPulse 2s ease-in-out infinite;
}

@keyframes mythicRaidPulse {
  0%, 100% { box-shadow: 0 0 25px var(--glow-mythic); }
  50% { box-shadow: 0 0 35px var(--glow-mythic), 0 0 50px var(--glow-mythic); }
}

.raids-rewards {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .raids-rewards {
    justify-content: flex-start;
  }
}

.raid-reward {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.raids-loot-probability {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 0.75rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .raids-loot-probability {
    text-align: left;
  }
}

.raid-reward.epic {
  background: rgba(163, 53, 238, 0.2);
  border: 1px solid var(--rarity-epic);
  color: #A335EE;
}

.raid-reward.legendary {
  background: rgba(139, 90, 0, 0.2);
  border: 1px solid var(--rarity-legendary);
  color: #FFD700;
}

.raid-reward.mythic {
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid var(--rarity-mythic);
  color: #FF4444;
  animation: mythicRewardGlow 2s ease-in-out infinite;
}

@keyframes mythicRewardGlow {
  0%, 100% { box-shadow: 0 0 10px var(--glow-mythic); }
  50% { box-shadow: 0 0 20px var(--glow-mythic), 0 0 30px var(--glow-mythic); }
}

/* Raids Party - Formation Layout */
.raids-party-unified {
  position: relative;
  width: 100%;
  height: 380px;
  padding: 1rem;
  background-image: url('../assets/images/classes/character-background.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

@media (min-width: 768px) {
  .raids-party-unified {
    height: 480px;
  }
}

.raids-party-unified .party-member {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  user-select: none;
}

/* Back row - Healer and Ranged DPS (smallest, in the back) */
.raids-party-unified .party-member.row-back {
  top: 2%;
  z-index: 1;
  width: 120px;
  height: 155px;
}

.raids-party-unified .party-member.row-back.pos-left {
  left: 2%;
}

.raids-party-unified .party-member.row-back.pos-right {
  right: 2%;
}

.raids-party-unified .party-member.row-back .party-member-img {
  width: 120px;
  height: 155px;
  opacity: 0.85;
  filter: brightness(0.75);
}

@media (min-width: 768px) {
  .raids-party-unified .party-member.row-back {
    width: 160px;
    height: 205px;
  }
  .raids-party-unified .party-member.row-back .party-member-img {
    width: 160px;
    height: 205px;
  }
}

/* Middle row - Melee DPS (medium size) */
.raids-party-unified .party-member.row-middle {
  top: 18%;
  z-index: 2;
  width: 130px;
  height: 170px;
}

.raids-party-unified .party-member.row-middle.pos-left {
  left: 14%;
}

.raids-party-unified .party-member.row-middle.pos-right {
  right: 14%;
}

.raids-party-unified .party-member.row-middle .party-member-img {
  width: 130px;
  height: 170px;
  opacity: 0.9;
  filter: brightness(0.82);
}

@media (min-width: 768px) {
  .raids-party-unified .party-member.row-middle {
    width: 170px;
    height: 220px;
  }
  .raids-party-unified .party-member.row-middle .party-member-img {
    width: 170px;
    height: 220px;
  }
}

/* Front row - Tank/Warrior (biggest, in front - ALWAYS at the bottom) */
.raids-party-unified .party-member.row-front {
  bottom: 0;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 200px;
  height: 260px;
}

.raids-party-unified .party-member.row-front .party-member-img {
  width: 200px;
  height: 260px;
}

@media (min-width: 768px) {
  .raids-party-unified .party-member.row-front {
    width: 280px;
    height: 360px;
  }
  .raids-party-unified .party-member.row-front .party-member-img {
    width: 280px;
    height: 360px;
  }
}

/* Crossfade container for smooth transitions */
.party-member-crossfade {
  position: relative;
  width: 100%;
  height: 100%;
}

.raids-party-unified .party-member-img {
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  border: none;
  background: none;
}

.party-member-crossfade .party-member-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
}

.party-img-current {
  z-index: 2;
}

.party-img-next {
  z-index: 1;
}

/* Grid 2 columns */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Rarity Legend */
.rarity-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.rarity-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Card Featured (for Raids) */
.card-featured {
  border: 2px solid var(--color-blood);
  box-shadow: 0 0 30px var(--color-blood-glow);
  position: relative;
}

.card-featured::before {
  content: 'DESTACADO';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-blood);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
}

.card-title-highlight {
  color: var(--color-blood);
  text-shadow: 0 0 20px var(--color-blood-glow);
}

/* Party Preview */
.party-preview {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  text-align: center;
}

.party-title {
  color: var(--color-text-bright);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.party-members {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.party-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.party-member-img {
  width: 80px;
  height: 100px;
  object-fit: contain;
  background: #ded9d1;
  border-radius: 8px;
  padding: 5px;
  border: 2px solid var(--color-border);
  transition: all 0.3s ease;
}

.party-member-img:hover {
  border-color: var(--color-blood);
  box-shadow: 0 0 15px var(--color-blood-glow);
}

.party-member-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.party-member-class {
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 500;
}

.party-composition {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Selector Bonus Text */
.selector-bonus {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(139, 0, 0, 0.15);
  border-left: 3px solid var(--color-blood);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--color-text);
  font-size: 0.85rem;
  text-align: left;
}

/* Character Preview Inline Info */
.character-preview-info-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-direction: row;
}

.character-preview-info-inline span {
  font-size: 1.1rem;
  color: var(--color-accent-light);
  font-weight: 600;
}

.character-info-separator {
  color: var(--color-text-muted);
}

/* Character Preview Large */
.character-preview-large .character-preview-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 400px;
  aspect-ratio: 3 / 4;
}

@media (min-width: 1024px) {
  .character-preview-large .character-preview-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 450px;
    aspect-ratio: 3 / 4;
  }
}

/* =========================================
   IMAGE PLACEHOLDERS
   ========================================= */

.img-placeholder {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent) 100%);
  border: 2px dashed var(--color-border);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-default);
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.1) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 3s infinite;
}

.img-placeholder:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.img-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.img-placeholder-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  max-width: 200px;
  position: relative;
  z-index: 1;
}

.img-placeholder-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--color-primary);
  color: var(--color-background);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Placeholder sizes */
.img-placeholder-hero {
  height: 400px;
  min-height: 300px;
}

@media (min-width: 768px) {
  .img-placeholder-hero {
    height: 500px;
  }
}

.img-placeholder-card {
  height: 200px;
}

.img-placeholder-item {
  height: 120px;
  width: 120px;
}

.img-placeholder-icon-small {
  height: 80px;
  width: 80px;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #050506 0%, var(--color-surface) 50%, #050506 100%);
  position: relative;
}

.hero-bg-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 26, 110, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(107, 0, 0, 0.2) 0%, transparent 60%);
}

/* Vignette effect */
.hero-bg-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(15, 15, 26, 0.3) 0%,
    rgba(15, 15, 26, 0.5) 50%,
    rgba(15, 15, 26, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid var(--color-blood);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
  text-shadow: 0 0 10px var(--color-blood-glow);
}

.hero-title {
  margin-bottom: 1.5rem;
  margin-top: -3rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title .hero-small {
  font-size: 0.48em;
  color: #fff;
  font-weight: 400;
}

.hero-title .highlight {
  color: #DC2626;
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.8), 0 0 60px rgba(220, 38, 38, 0.5), 0 0 90px rgba(220, 38, 38, 0.3), 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
  display: inline-block;
  font-size: 0.75em;
}

.hero-title .hero-line-two {
  display: block;
}

@media (min-width: 1024px) {
  .hero-title .hero-line-two {
    display: inline;
  }

  .hero-title br {
    display: none;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin: 0 0 2rem;
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-ctas {
    justify-content: flex-start;
  }
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(26, 26, 46, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-note-highlight {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(26, 26, 46, 0.9) 100%);
  border: 1px solid var(--color-blood);
  color: var(--color-text-bright);
  font-weight: 500;
  padding: 1rem 1.5rem;
  box-shadow: 0 0 20px var(--color-blood-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInScale 1s ease-out 0.3s backwards;
  width: fit-content;
  margin: 0 auto;
}

/* Floating items around character */
.character-floating-items {
  position: absolute;
  top: -5%;
  left: -5%;
  right: -5%;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  pointer-events: none;
}

@media (min-width: 768px) {
  .character-floating-items {
    top: -5%;
    left: -15%;
    right: -15%;
    bottom: 0;
  }
}

@media (min-width: 1024px) {
  .character-floating-items {
    top: 0;
    left: -10%;
    right: -10%;
    bottom: 0;
  }
}

.character-floating-items .floating-item {
  position: absolute;
  opacity: 0;
  animation: floatItemFadeIn 0.5s ease-out forwards, floatSlow 5s ease-in-out 1.8s infinite;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

.character-floating-items .floating-item:nth-child(1) { animation-delay: 1.3s, 1.8s; }
.character-floating-items .floating-item:nth-child(2) { animation-delay: 1.5s, 2s; }
.character-floating-items .floating-item:nth-child(3) { animation-delay: 1.7s, 2.2s; }
.character-floating-items .floating-item:nth-child(4) { animation-delay: 1.4s, 1.9s; }

@keyframes floatItemFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(107, 0, 0, 0.4) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulse 3s infinite;
  pointer-events: none;
}

.hero-character {
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-character .img-placeholder {
  width: 300px;
  height: 400px;
}

@media (min-width: 768px) {
  .hero-character .img-placeholder {
    width: 400px;
    height: 500px;
  }
}

/* Floating items around hero */
.hero-floating-items {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-item {
  position: absolute;
  animation: floatSlow 5s ease-in-out infinite;
}

.floating-item:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-item:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.floating-item:nth-child(3) {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.floating-item:nth-child(4) {
  bottom: 20%;
  right: 5%;
  animation-delay: 0.5s;
}

/* Floating item rarity borders */
.floating-item img {
  border-radius: 8px;
  border: 2px solid var(--color-border);
}

.floating-item.rarity-epic img {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 15px var(--glow-epic);
}

.floating-item.rarity-legendary img {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 20px var(--glow-legendary);
}

.floating-item.rarity-mythic img {
  border-color: var(--rarity-mythic);
  box-shadow: 0 0 25px var(--glow-mythic);
}

.floating-item.rarity-common img {
  border-color: var(--rarity-common);
  box-shadow: 0 0 8px rgba(157, 157, 157, 0.3);
}

/* Enhanced glow for specific floating items */
.floating-item.floating-glow-legendary img {
  box-shadow:
    0 0 20px var(--glow-legendary),
    0 0 40px var(--glow-legendary),
    0 0 60px rgba(255, 165, 0, 0.4);
  animation: floatSlow 5s ease-in-out infinite, legendaryPulse 2s ease-in-out infinite;
}

.floating-item.floating-glow-mythic img {
  box-shadow:
    0 0 20px var(--glow-mythic),
    0 0 40px var(--glow-mythic),
    0 0 60px rgba(255, 0, 0, 0.4);
  animation: floatSlow 5s ease-in-out infinite, mythicPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--glow-legendary), 0 0 40px var(--glow-legendary), 0 0 60px rgba(255, 165, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 30px var(--glow-legendary), 0 0 60px var(--glow-legendary), 0 0 90px rgba(255, 165, 0, 0.6);
  }
}

@keyframes mythicPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--glow-mythic), 0 0 40px var(--glow-mythic), 0 0 60px rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 30px var(--glow-mythic), 0 0 60px var(--glow-mythic), 0 0 90px rgba(255, 0, 0, 0.6);
  }
}

/* Floating item sizes */
.floating-item.floating-size-sm img {
  width: 52px;
  height: 52px;
}

.floating-item.floating-size-md img {
  width: 64px;
  height: 64px;
}

.floating-item.floating-size-lg img {
  width: 72px;
  height: 72px;
}

.floating-item.floating-size-xl img {
  width: 80px;
  height: 80px;
}

@media (min-width: 768px) {
  .floating-item.floating-size-sm img {
    width: 60px;
    height: 60px;
  }

  .floating-item.floating-size-md img {
    width: 72px;
    height: 72px;
  }

  .floating-item.floating-size-lg img {
    width: 84px;
    height: 84px;
  }

  .floating-item.floating-size-xl img {
    width: 96px;
    height: 96px;
  }
}

/* =========================================
   CARDS
   ========================================= */

.card {
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.95) 0%, rgba(10, 10, 12, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 4px 20px rgba(0,0,0,0.4);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blood), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--color-blood);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--color-blood-glow);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Class/Race Cards */
.class-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.class-card-image {
  height: 200px;
  position: relative;
}

.class-card-image .img-placeholder {
  border-radius: 0;
  height: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

.class-card-content {
  padding: 1.5rem;
}

.class-card-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent-light);
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.class-card-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.class-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =========================================
   LOOT ITEMS - RARITY SYSTEM
   ========================================= */

.loot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .loot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .loot-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.loot-item {
  position: relative;
  background: color-mix(in srgb, var(--item-color, var(--color-surface)) 10%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--item-color, var(--color-border)) 30%, transparent);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  transition: var(--transition-default);
  cursor: pointer;
}

.loot-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 0.5rem;
  background: var(--item-glow, transparent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.loot-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.loot-item:hover::before {
  opacity: 1;
}

/* Rarity variants */
.loot-item.common {
  --item-color: var(--rarity-common);
  --item-glow: var(--glow-common);
}

.loot-item.uncommon {
  --item-color: var(--rarity-uncommon);
  --item-glow: var(--glow-uncommon);
}

.loot-item.rare {
  --item-color: var(--rarity-rare);
  --item-glow: var(--glow-rare);
}

.loot-item.epic {
  --item-color: var(--rarity-epic);
  --item-glow: var(--glow-epic);
}

.loot-item.legendary {
  --item-color: var(--rarity-legendary);
  --item-glow: var(--glow-legendary);
  animation: legendaryPulse 3s ease-in-out infinite;
}

.loot-item.mythic {
  --item-color: var(--rarity-mythic);
  --item-glow: var(--glow-mythic);
  animation: mythicPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% {
    box-shadow: 0 0 15px var(--glow-legendary);
  }
  50% {
    box-shadow: 0 0 25px var(--glow-legendary), 0 0 40px var(--glow-legendary);
  }
}

@keyframes mythicPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--glow-mythic), 0 0 40px var(--glow-mythic);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 35px var(--glow-mythic), 0 0 60px var(--glow-mythic), 0 0 80px rgba(139, 0, 0, 0.4);
    filter: brightness(1.1);
  }
}

.loot-item-image {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.5rem;
}

@media (min-width: 768px) {
  .loot-item-image {
    width: 100px;
    height: 100px;
  }
}

.loot-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 2px solid var(--item-color, var(--color-border));
}

/* Glow effects for epic, legendary, mythic loot images */
.loot-item.epic .loot-item-image img {
  box-shadow: 0 0 10px var(--glow-epic), 0 0 20px var(--glow-epic);
  animation: lootGlowEpic 2s ease-in-out infinite;
}

.loot-item.legendary .loot-item-image img {
  box-shadow: 0 0 15px var(--glow-legendary), 0 0 30px var(--glow-legendary);
  animation: lootGlowLegendary 1.5s ease-in-out infinite;
}

.loot-item.mythic .loot-item-image img {
  box-shadow: 0 0 20px var(--glow-mythic), 0 0 40px var(--glow-mythic), 0 0 60px var(--glow-mythic);
  animation: lootGlowMythic 1s ease-in-out infinite;
}

@keyframes lootGlowEpic {
  0%, 100% { box-shadow: 0 0 10px var(--glow-epic), 0 0 20px var(--glow-epic); }
  50% { box-shadow: 0 0 15px var(--glow-epic), 0 0 30px var(--glow-epic); }
}

@keyframes lootGlowLegendary {
  0%, 100% { box-shadow: 0 0 10px var(--glow-legendary), 0 0 20px var(--glow-legendary); }
  50% { box-shadow: 0 0 18px var(--glow-legendary), 0 0 35px var(--glow-legendary); }
}

@keyframes lootGlowMythic {
  0%, 100% { box-shadow: 0 0 20px var(--glow-mythic), 0 0 40px var(--glow-mythic), 0 0 60px rgba(139, 0, 0, 0.5); }
  50% { box-shadow: 0 0 35px var(--glow-mythic), 0 0 70px var(--glow-mythic), 0 0 100px rgba(139, 0, 0, 0.6); }
}

.loot-item-image .img-placeholder {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  font-size: 0.625rem;
}

.loot-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--item-color, var(--color-text));
  margin-bottom: 0.25rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.6), 1px 1px 2px rgba(0,0,0,0.9);
}

.loot-item-type {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loot-item-rarity {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--item-color);
  box-shadow: 0 0 10px var(--item-glow);
}

/* Loot Tooltip */
.loot-tooltip {
  position: absolute;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  min-width: 180px;
  max-width: 250px;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.2s ease-out;
}

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

.loot-tooltip-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.loot-tooltip-stat {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.loot-tooltip-stat:last-child {
  margin-bottom: 0;
  color: var(--color-text);
  font-style: italic;
}

/* Floating Item cursor */
.floating-item[data-tooltip] {
  cursor: pointer;
}

/* =========================================
   RARITY SHOWCASE
   ========================================= */

.rarity-showcase {
  margin-bottom: 2rem;
}

.rarity-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rarity-showcase-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 900px;
    gap: 1.5rem;
  }
}

.rarity-showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.rarity-showcase-item:hover {
  transform: translateY(-5px);
}

.rarity-showcase-frame {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--color-border);
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .rarity-showcase-frame {
    width: 100px;
    height: 100px;
  }
}

.rarity-showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rarity-showcase-item:hover .rarity-showcase-frame img {
  transform: scale(1.1);
}

/* Rarity border colors */
.rarity-showcase-item.common .rarity-showcase-frame {
  border-color: var(--rarity-common);
  box-shadow: 0 0 10px var(--glow-common);
}

.rarity-showcase-item.uncommon .rarity-showcase-frame {
  border-color: var(--rarity-uncommon);
  box-shadow: 0 0 10px var(--glow-uncommon);
}

.rarity-showcase-item.rare .rarity-showcase-frame {
  border-color: var(--rarity-rare);
  box-shadow: 0 0 10px var(--glow-rare);
}

.rarity-showcase-item.epic .rarity-showcase-frame {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 15px var(--glow-epic);
}

.rarity-showcase-item.legendary .rarity-showcase-frame {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 20px var(--glow-legendary);
}

.rarity-showcase-item.mythic .rarity-showcase-frame {
  border-color: var(--rarity-mythic);
  box-shadow: 0 0 25px var(--glow-mythic);
}

/* Glow animations for legendary and mythic */
.rarity-glow-legendary {
  animation: legendary-glow 2s ease-in-out infinite;
}

.rarity-glow-mythic {
  animation: mythic-glow 1.5s ease-in-out infinite;
}

@keyframes legendary-glow {
  0%, 100% { box-shadow: 0 0 15px var(--glow-legendary); }
  50% { box-shadow: 0 0 30px var(--glow-legendary), 0 0 50px var(--glow-legendary); }
}

@keyframes mythic-glow {
  0%, 100% { box-shadow: 0 0 20px var(--glow-mythic); }
  50% { box-shadow: 0 0 40px var(--glow-mythic), 0 0 60px var(--glow-mythic); }
}

/* Labels */
.rarity-showcase-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

@media (min-width: 768px) {
  .rarity-showcase-label {
    font-size: 0.75rem;
  }
}

.rarity-showcase-item.common .rarity-showcase-label {
  color: var(--rarity-common);
}

.rarity-showcase-item.uncommon .rarity-showcase-label {
  color: #69db7c;
}

.rarity-showcase-item.rare .rarity-showcase-label {
  color: #4dabf7;
}

.rarity-showcase-item.epic .rarity-showcase-label {
  color: #9b59ff;
}

.rarity-showcase-item.legendary .rarity-showcase-label {
  color: #ff922b;
}

.rarity-showcase-item.mythic .rarity-showcase-label {
  color: #ff4757;
}

/* Equipment Section Header */
.equipment-section-header {
  text-align: center;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.equipment-section-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .equipment-section-title {
    font-size: 1.75rem;
  }
}

.equipment-section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* =========================================
   INVENTORY SYSTEM (Diablo Style)
   ========================================= */

/* Two-column layout for equipment + backpack */
.inventory-section-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .inventory-section-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}

.inventory-panel-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.inventory-panel {
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.95) 0%, rgba(25, 20, 15, 0.98) 100%);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem 1rem 2rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 768px) {
  .inventory-panel {
    padding: 2rem 1.5rem 2.5rem;
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .inventory-panel-wrapper {
    width: auto;
  }

  .inventory-panel {
    max-width: 520px;
  }
}

.inventory-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(139, 0, 0, 0.1) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20z' fill='none' stroke='%23d4af37' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.inventory-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
}

.inventory-character-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Character Display with surrounding slots */
.inventory-character {
  position: relative;
  width: 320px;
  height: 480px;
}

@media (min-width: 768px) {
  .inventory-character {
    width: 400px;
    height: 580px;
  }
}

@media (min-width: 1024px) {
  .inventory-character {
    width: 460px;
    height: 680px;
  }
}

.character-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 4rem);
  height: calc(100% + 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  background-image: url('../assets/images/classes/character-background.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 0;
}

.character-frame-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(80, 40, 20, 0.9) 0%, rgba(40, 20, 10, 0.5) 50%, transparent 70%);
  filter: blur(60px);
  animation: characterGlow 3s ease-in-out infinite;
}

@keyframes characterGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.inventory-character-img {
  position: relative;
  z-index: 0;
  width: 125%;
  height: 110%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
  margin-top: 48px;
}

/* Dark frame behind items - only on edges */
.inventory-character::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: -2rem;
  right: -2rem;
  bottom: -3rem;
  background: radial-gradient(ellipse 50% 55% at center,
    transparent 0%,
    transparent 45%,
    rgba(5, 3, 2, 0.6) 65%,
    rgba(5, 3, 2, 0.88) 85%,
    rgba(5, 3, 2, 0.95) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Inventory Slot Base - Square design */
.inventory-slot {
  position: absolute;
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

@media (min-width: 768px) {
  .inventory-slot {
    width: 70px;
    height: 70px;
  }
}

@media (min-width: 1024px) {
  .inventory-slot {
    width: 80px;
    height: 80px;
  }
}

.inventory-slot .slot-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(30, 25, 20, 0.95) 0%, rgba(15, 12, 10, 0.98) 100%);
  transition: all 0.3s ease;
}

.inventory-slot .slot-icon {
  position: absolute;
  inset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 6px;
  overflow: hidden;
}

.inventory-slot .slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.inventory-slot .slot-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .inventory-slot .slot-label {
    font-size: 0.65rem;
    bottom: -22px;
  }
}

/* Weapon slots - larger square */
.inventory-slot.weapon-slot {
  width: 80px;
  height: 80px;
}

@media (min-width: 768px) {
  .inventory-slot.weapon-slot {
    width: 105px;
    height: 105px;
  }
}

@media (min-width: 1024px) {
  .inventory-slot.weapon-slot {
    width: 120px;
    height: 120px;
  }
}

/* Slot Positions */
/* Top row: Helmet and Cloak */
.slot-helmet {
  top: 0;
  left: 50%;
  transform: translateX(-115%);
}

.slot-cloak {
  top: 0;
  left: 50%;
  transform: translateX(15%);
}

/* Left column - same X position */
.slot-ring {
  top: 12%;
  left: 0;
}

.slot-gloves {
  top: 42%;
  left: 0;
}

.slot-boots {
  top: 60%;
  left: 0;
}

/* Right column - same X position */
.slot-amulet {
  top: 12%;
  right: 0;
}

.slot-armor {
  top: 42%;
  right: 0;
}

.slot-pants {
  top: 60%;
  right: 0;
}

/* Bottom: Weapons - centered */
.slot-weapon-main {
  bottom: 2%;
  left: 50%;
  transform: translateX(-108%);
}

.slot-weapon-secondary {
  bottom: 2%;
  left: 50%;
  transform: translateX(8%);
}

/* Slot Rarity Styles */
.inventory-slot.common .slot-frame {
  border-color: var(--rarity-common);
}
.inventory-slot.common .slot-icon img {
  box-shadow: 0 0 8px rgba(157, 157, 157, 0.3);
}

.inventory-slot.uncommon .slot-frame {
  border-color: var(--rarity-uncommon);
}
.inventory-slot.uncommon .slot-icon img {
  box-shadow: 0 0 10px rgba(30, 255, 0, 0.3);
}

.inventory-slot.rare .slot-frame {
  border-color: var(--rarity-rare);
}
.inventory-slot.rare .slot-icon img {
  box-shadow: 0 0 12px rgba(0, 112, 221, 0.4);
}

.inventory-slot.epic .slot-frame {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 15px rgba(163, 53, 238, 0.3);
}
.inventory-slot.epic .slot-icon img {
  box-shadow: 0 0 15px rgba(163, 53, 238, 0.5);
}

.inventory-slot.legendary .slot-frame {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 20px rgba(255, 128, 0, 0.4);
  animation: slotLegendaryPulse 2s ease-in-out infinite;
}
.inventory-slot.legendary .slot-icon img {
  box-shadow: 0 0 20px rgba(255, 128, 0, 0.6);
}

.inventory-slot.mythic .slot-frame {
  border-color: var(--rarity-mythic);
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.5), 0 0 40px rgba(139, 0, 0, 0.3);
  animation: slotMythicPulse 1.5s ease-in-out infinite;
}
.inventory-slot.mythic .slot-icon img {
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.7), 0 0 40px rgba(139, 0, 0, 0.4);
}

@keyframes slotLegendaryPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 128, 0, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 128, 0, 0.6), 0 0 35px rgba(255, 128, 0, 0.3); }
}

@keyframes slotMythicPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 0, 0, 0.5), 0 0 35px rgba(139, 0, 0, 0.3); }
  50% { box-shadow: 0 0 30px rgba(139, 0, 0, 0.7), 0 0 50px rgba(139, 0, 0, 0.4); }
}

/* Slot Hover Effects */
.inventory-slot:hover {
  z-index: 10;
}

.inventory-slot:not(.slot-helmet):not(.slot-cloak):not(.slot-weapon-main):not(.slot-weapon-secondary):hover {
  transform: scale(1.1);
}

.inventory-slot.slot-helmet:hover {
  transform: translateX(-115%) scale(1.1);
}

.inventory-slot.slot-cloak:hover {
  transform: translateX(15%) scale(1.1);
}

.inventory-slot.slot-weapon-main:hover {
  transform: translateX(-108%) scale(1.1);
}

.inventory-slot.slot-weapon-secondary:hover {
  transform: translateX(8%) scale(1.1);
}

.inventory-slot:hover .slot-frame {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.inventory-slot.empty .slot-frame {
  border-style: dashed;
  opacity: 0.5;
}

/* Responsive slot positions */
@media (min-width: 768px) {
  .slot-ring,
  .slot-gloves,
  .slot-boots {
    left: 0;
  }

  .slot-amulet,
  .slot-armor,
  .slot-pants {
    right: 0;
  }
}

@media (min-width: 1024px) {
  .slot-ring,
  .slot-gloves,
  .slot-boots {
    left: 0;
  }

  .slot-amulet,
  .slot-armor,
  .slot-pants {
    right: 0;
  }
}

/* =========================================
   BACKPACK PANEL
   ========================================= */

.backpack-panel {
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.95) 0%, rgba(25, 20, 15, 0.98) 100%);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  width: 100%;
  max-width: 400px;
  align-self: center;
}

@media (min-width: 768px) {
  .backpack-panel {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .backpack-panel {
    max-width: 380px;
    align-self: flex-start;
  }
}

.backpack-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(139, 0, 0, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20z' fill='none' stroke='%23d4af37' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.backpack-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-accent-light);
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.backpack-title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.backpack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .backpack-grid {
    gap: 0.65rem;
  }
}

.backpack-slot {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.backpack-slot .slot-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(30, 25, 20, 0.95) 0%, rgba(15, 12, 10, 0.98) 100%);
  transition: all 0.3s ease;
}

.backpack-slot .slot-icon {
  position: absolute;
  inset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 6px;
  overflow: hidden;
}

.backpack-slot .slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.backpack-slot:hover {
  transform: scale(1.08);
  z-index: 10;
}

.backpack-slot:hover .slot-frame {
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.backpack-slot.empty .slot-frame {
  border-style: dashed;
  opacity: 0.6;
  background: linear-gradient(145deg, rgba(40, 35, 30, 0.6) 0%, rgba(25, 20, 15, 0.7) 100%);
}

/* Backpack slot rarity styles */
.backpack-slot.common .slot-frame {
  border-color: var(--rarity-common);
}

.backpack-slot.uncommon .slot-frame {
  border-color: var(--rarity-uncommon);
}

.backpack-slot.rare .slot-frame {
  border-color: var(--rarity-rare);
}

.backpack-slot.epic .slot-frame {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 10px rgba(163, 53, 238, 0.3);
}

.backpack-slot.legendary .slot-frame {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 15px rgba(255, 128, 0, 0.5), 0 0 25px rgba(255, 128, 0, 0.3);
  animation: backpackLegendaryGlow 2s ease-in-out infinite;
}

.backpack-slot.legendary .slot-icon img {
  box-shadow: 0 0 15px rgba(255, 128, 0, 0.5);
}

.backpack-slot.mythic .slot-frame {
  border-color: var(--rarity-mythic);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.6), 0 0 35px rgba(139, 0, 0, 0.4), 0 0 50px rgba(139, 0, 0, 0.2);
  animation: backpackMythicGlow 1.5s ease-in-out infinite;
}

.backpack-slot.mythic .slot-icon img {
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.6), 0 0 30px rgba(139, 0, 0, 0.3);
}

@keyframes backpackLegendaryGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 128, 0, 0.5), 0 0 25px rgba(255, 128, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 128, 0, 0.7), 0 0 35px rgba(255, 128, 0, 0.4); }
}

@keyframes backpackMythicGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 0, 0, 0.6), 0 0 35px rgba(139, 0, 0, 0.4), 0 0 50px rgba(139, 0, 0, 0.2); }
  50% { box-shadow: 0 0 30px rgba(139, 0, 0, 0.8), 0 0 50px rgba(139, 0, 0, 0.5), 0 0 70px rgba(139, 0, 0, 0.3); }
}

/* =========================================
   DUNGEON CARDS
   ========================================= */

.dungeon-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .dungeon-card {
    min-height: 380px;
  }
}

@media (min-width: 1024px) {
  .dungeon-card {
    min-height: 420px;
  }
}

.dungeon-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.dungeon-card-bg .img-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
}

.dungeon-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.95) 100%);
}

.dungeon-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.dungeon-card-difficulty {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

.dungeon-card-difficulty.easy {
  background: var(--rarity-uncommon);
  border: 1px solid var(--rarity-uncommon);
}

.dungeon-card-difficulty.medium {
  background: var(--rarity-rare);
  border: 1px solid var(--rarity-rare);
}

.dungeon-card-difficulty.hard {
  background: var(--rarity-epic);
  border: 1px solid var(--rarity-epic);
}

.dungeon-card-difficulty.legendary {
  background: var(--rarity-legendary);
  border: 1px solid var(--rarity-legendary);
}

.dungeon-card-difficulty.mythic {
  background: var(--rarity-mythic);
  border: 1px solid var(--rarity-mythic);
  box-shadow: 0 0 15px var(--glow-mythic);
  animation: mythicBadgePulse 2s ease-in-out infinite;
}

@keyframes mythicBadgePulse {
  0%, 100% { box-shadow: 0 0 15px var(--glow-mythic); }
  50% { box-shadow: 0 0 25px var(--glow-mythic), 0 0 40px var(--glow-mythic); }
}

.dungeon-card-mythic {
  border: 2px solid var(--rarity-mythic);
  box-shadow: 0 0 30px var(--glow-mythic);
}

.dungeon-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.dungeon-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.dungeon-card-rewards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dungeon-reward {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.dungeon-reward svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.dungeon-reward-raid {
  color: var(--color-blood);
  font-weight: 600;
}

.dungeon-reward-raid svg {
  color: var(--color-blood);
}

.dungeon-card-raid {
  border-color: var(--color-blood);
}

/* Dungeon Type Badges */
.dungeon-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dungeon-type-badge svg {
  width: 16px;
  height: 16px;
}

.dungeon-type-dungeon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.dungeon-type-dungeon svg {
  color: #93c5fd;
}

.dungeon-type-raid {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.35) 0%, rgba(185, 28, 28, 0.25) 100%);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fca5a5;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  animation: raidGlow 2s ease-in-out infinite alternate;
}

.dungeon-type-raid svg {
  color: #fca5a5;
}

@keyframes raidGlow {
  from { box-shadow: 0 0 8px rgba(220, 38, 38, 0.3); }
  to { box-shadow: 0 0 15px rgba(220, 38, 38, 0.5); }
}

.dungeon-type-raid-mythic {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
  border: 1px solid rgba(192, 132, 252, 0.6);
  color: #d8b4fe;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  animation: raidMythicGlow 2s ease-in-out infinite alternate;
}

.dungeon-type-raid-mythic svg {
  color: #d8b4fe;
}

@keyframes raidMythicGlow {
  from { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
  to { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); }
}

/* =========================================
   SECTIONS
   ========================================= */

.section {
  padding: 4rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }
}

.section-dark {
  background: linear-gradient(180deg, #0D0D10 0%, var(--color-background) 100%);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center bottom, rgba(107, 0, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.section-gradient {
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    rgba(107, 0, 0, 0.03) 50%,
    var(--color-background) 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  color: var(--color-text-bright);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blood), transparent);
  margin: 1rem auto 0;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-blood-glow);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* =========================================
   GRID LAYOUTS
   ========================================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Step cards with numbers */
.step-card {
  position: relative;
  padding-top: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.step-card .step-image-container {
  position: relative;
  height: 150px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .step-card .step-image-container {
    height: 170px;
  }
}

.step-card .step-image-container img {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--color-border);
  transition: var(--transition-default);
}

@media (min-width: 1024px) {
  .step-card .step-image-container img {
    width: 150px;
    height: 150px;
  }
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-55px) translateY(-8px);
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #6B0000 0%, #8B0000 100%);
  color: var(--color-text-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--color-blood-glow);
  border: 2px solid #4A0000;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  z-index: 10;
  transition: all 0.3s ease;
}

.step-card:hover .step-image-container img {
  box-shadow:
    inset 0 0 30px rgba(139, 0, 0, 0.5),
    inset 0 0 50px rgba(139, 0, 0, 0.3),
    0 0 20px var(--color-blood-glow);
  filter: brightness(1.1);
}

.step-card:active .step-image-container img {
  box-shadow:
    inset 0 0 40px rgba(139, 0, 0, 0.7),
    inset 0 0 60px rgba(139, 0, 0, 0.4),
    0 0 30px var(--color-blood-glow);
  filter: brightness(1.2);
  transform: scale(0.98);
}

.step-card:hover .step-number {
  box-shadow: 0 4px 20px var(--color-blood-glow), 0 0 15px var(--color-blood-glow);
  transform: translateX(-50%) translateX(-55px) translateY(-8px) scale(1.1);
}

.step-card:hover {
  transform: translateY(-8px);
}

.step-card:active {
  transform: translateY(-4px);
}

/* =========================================
   PRICING
   ========================================= */

.pricing-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-table {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-table {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
  }
}

.pricing-card {
  position: relative;
  padding: 2rem;
  overflow: visible;
}

.pricing-card.featured {
  overflow: visible;
  margin-top: 1rem;
}

.pricing-card.featured::before {
  opacity: 1;
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6B0000 0%, #8B0000 100%);
  color: var(--color-text-bright);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--color-blood-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  border: 1px solid #4A0000;
  z-index: 10;
}

/* Free - Common (gray) */
.pricing-badge-free {
  background: linear-gradient(135deg, #4A4A4A 0%, #6B6B6B 100%);
  box-shadow: 0 4px 15px rgba(107, 107, 107, 0.4);
  border: 1px solid #6B6B6B;
}

.pricing-card:has(.pricing-badge-free) {
  border-color: var(--rarity-common);
}

/* Free package button - no red on hover */
.pricing-card:has(.pricing-badge-free) .btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--rarity-common);
  background: rgba(107, 107, 107, 0.2);
}

/* Monthly Premium - Legendary (golden) */
.pricing-badge-cancel {
  background: linear-gradient(135deg, #8B5A00 0%, #FFD700 100%);
  box-shadow: 0 4px 15px rgba(139, 90, 0, 0.6);
  border: 1px solid #D4A700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.pricing-card:has(.pricing-badge-cancel) {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 35px rgba(139, 90, 0, 0.4);
}

/* Monthly - golden checkmarks */
.pricing-card:has(.pricing-badge-cancel) .pricing-features li svg {
  color: #FFD700;
}

/* Monthly - golden button */
.pricing-card:has(.pricing-badge-cancel) .btn-primary {
  background: linear-gradient(135deg, #8B5A00 0%, #D4A700 100%);
  border-color: #FFD700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 90, 0, 0.5);
}

.pricing-card:has(.pricing-badge-cancel) .btn-primary:hover {
  background: linear-gradient(135deg, #A06B00 0%, #FFD700 100%);
  box-shadow: 0 6px 25px rgba(139, 90, 0, 0.7);
}

/* Annual Premium - Mythic (red) with subtle glow */
.pricing-card.featured {
  border-color: #DC2626;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
  animation: mythicGlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes mythicGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 55px rgba(220, 38, 38, 0.5); }
}

.pricing-card:has(.pricing-badge) {
  margin-top: 1rem;
}

.pricing-card:has(.pricing-badge) .pricing-header {
  padding-top: 1rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--color-accent-light);
  text-shadow: 0 0 15px var(--color-blood-glow);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
}

/* Aligned pricing table for feature comparison */
.pricing-table-aligned .pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-table-aligned .pricing-features {
  flex: 1;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-default);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-default);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--color-primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(26, 26, 46, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1.25rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: linear-gradient(180deg, #0D0D10 0%, #050506 100%);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blood), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: 'Cinzel', var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--color-blood-glow);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer-description {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: var(--transition-default);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* =========================================
   FORM STYLES
   ========================================= */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  color: var(--color-text);
  font-size: 1rem;
  transition: var(--transition-default);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* =========================================
   LEGAL PAGES
   ========================================= */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-primary);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Icon base styles */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.icon-lg {
  width: 3rem;
  height: 3rem;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  margin: 2rem 0;
}

/* Glow text */
.glow-text {
  text-shadow: 0 0 20px var(--color-blood-glow), 0 0 40px var(--color-blood-glow);
  color: var(--color-accent-light);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

/* =========================================
   HERO CHARACTER IMAGE
   ========================================= */

.hero-character-img {
  max-width: 100%;
  max-height: 550px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px var(--color-blood-glow));
}

@media (min-width: 768px) {
  .hero-character-img {
    max-height: 600px;
  }
}

@media (min-width: 1024px) {
  .hero-character-img {
    max-height: 650px;
  }
}

/* =========================================
   DUNGEON BACKGROUND IMAGES
   ========================================= */

.dungeon-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 1;
}

.dungeon-card:hover .dungeon-bg-img {
  transform: scale(1.05);
}

/* Legendary dungeon - more square aspect ratio */
.dungeon-card-legendary {
  min-height: 380px;
}

.dungeon-card-legendary .dungeon-bg-img {
  object-position: center top;
}

/* =========================================
   DUNGEON CAROUSEL
   ========================================= */

.dungeon-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dungeon-carousel-fullwidth {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track-container {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: fit-content;
}

.carousel-slide {
  width: 350px;
  min-width: 350px;
  max-width: 350px;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

@media (min-width: 768px) {
  .carousel-slide {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    width: 420px;
    min-width: 420px;
    max-width: 420px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-default);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-blood);
  border-color: var(--color-blood);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

@media (max-width: 767px) {
  .carousel-prev {
    left: 0.5rem;
  }
  .carousel-next {
    right: 0.5rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
}

.carousel-dot:hover {
  background: var(--color-text-muted);
}

.carousel-dot.active {
  background: var(--color-blood);
  box-shadow: 0 0 10px var(--color-blood-glow);
}

/* =========================================
   CHARACTER CREATOR / SELECTOR
   ========================================= */

.character-creator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .character-creator {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: stretch;
  }
}

/* Two-column character creator layout */
.character-creator-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .character-creator-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
  }
}

.creator-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .creator-column {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .creator-column {
    max-width: 100%;
    margin: 0;
  }
}

.creator-column-left {
  align-items: center;
  justify-content: center;
}

.creator-column-right {
  align-items: stretch;
  overflow: hidden;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .creator-column-left {
    align-items: center;
    justify-content: flex-start;
    height: 100%;
  }

  .creator-column-left .character-preview {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  .creator-column-left .character-preview-image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 580px;
    aspect-ratio: auto;
    margin-bottom: 0;
  }

  .creator-column-right {
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding-right: 1rem;
  }
}

/* Stats panel header with Race - Class - Level */
.stats-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stats-separator {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.stats-level {
  color: var(--color-gold);
  font-weight: 600;
}

.stats-level .level-number {
  font-weight: 700;
}

/* Character Column (left side with race name and character) */
.character-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-column-header {
  margin-bottom: 0.75rem;
  text-align: center;
}

.character-label {
  font-family: 'Cinzel', var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--color-blood-glow);
}

/* Level badge positioned at bottom of character */
.character-level-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  border: 2px solid var(--color-gold);
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
}

.character-level-badge .level-text {
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.character-level-badge .level-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

/* Stats toggle button for mobile/tablet */
.stats-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid var(--color-gold);
  border-radius: 0.5rem;
  color: var(--color-gold);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stats-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.stats-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.stats-toggle-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.15) 100%);
}

/* Hide toggle button on desktop */
@media (min-width: 1024px) {
  .stats-toggle-btn {
    display: none;
  }
}

/* Mobile/Tablet: Hide stats panel by default */
@media (max-width: 1023px) {
  .character-stats-panel {
    display: none;
  }

  .character-stats-panel.visible {
    display: block;
    animation: fadeInUp 0.3s ease;
  }
}

/* Desktop: Always show stats panel */
@media (min-width: 1024px) {
  .character-stats-panel {
    display: block !important;
    min-height: auto;
  }
}

.character-creator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blood), transparent);
}

/* Character Preview */
.character-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.character-preview-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-blood-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  animation: pulse 3s infinite;
}

.character-preview-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  /* Background stays still on container */
  background-image: url('../assets/images/classes/character-background.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 3px solid var(--color-blood);
  box-shadow:
    0 0 40px var(--color-blood-glow),
    0 0 80px rgba(139, 0, 0, 0.4),
    inset 0 0 0 1px rgba(139, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .character-preview-image {
    max-width: 320px;
    height: 380px;
  }
}

@media (min-width: 1024px) {
  .character-preview-image {
    max-width: 450px;
    height: 580px;
  }
}

.character-preview-image img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transition: all 0.4s ease;
  /* No background on img - only character moves */
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  animation: characterIdle 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes characterIdle {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

/* Permanent red glow effect behind character (between character and background) */
.character-preview-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(ellipse at center,
    rgba(139, 0, 0, 0.6) 0%,
    rgba(139, 0, 0, 0.4) 30%,
    rgba(139, 0, 0, 0.2) 50%,
    transparent 70%);
  filter: blur(20px);
  z-index: 1;
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.character-preview-image {
  position: relative;
}

.character-preview-info {
  position: relative;
  z-index: 1;
}

.character-preview-info h3 {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
}

.character-preview-info h4 {
  font-size: 1.25rem;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--color-blood-glow);
}

.character-preview-info p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  max-width: 280px;
}

/* Selectors */
.character-selectors {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.selector-group {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

/* Compact gender selector */
.selector-group-small {
  padding: 0.75rem 1rem;
}

.selector-group-small .selector-title {
  margin-bottom: 0.5rem;
}

.selector-options-gender {
  display: flex;
  gap: 0.5rem;
  min-width: 260px;
}

.selector-options-gender .selector-btn {
  flex: 1;
  padding: 0.5rem 1.25rem;
  min-width: 120px;
  white-space: nowrap;
}

.gender-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.selector-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.selector-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  max-width: 100%;
}

@media (min-width: 640px) {
  .selector-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

.selector-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.35rem;
  background: rgba(26, 26, 38, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-muted);
  min-width: 0;
}

.selector-btn:hover {
  border-color: var(--color-blood);
  background: rgba(107, 0, 0, 0.1);
  color: var(--color-text);
}

.selector-btn.active {
  border-color: var(--color-blood-bright);
  background: rgba(107, 0, 0, 0.2);
  color: var(--color-accent-light);
  box-shadow: 0 0 15px var(--color-blood-glow);
}

.selector-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.selector-btn.disabled:hover {
  border-color: var(--color-border);
  background: rgba(26, 26, 38, 0.8);
}

.selector-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Class colors */
.selector-btn.class-warrior { --class-color: #C41E3A; }
.selector-btn.class-mage { --class-color: #3FC7EB; }
.selector-btn.class-rogue { --class-color: #FFF468; }
.selector-btn.class-priest { --class-color: #FFFFFF; }
.selector-btn.class-warlock { --class-color: #8788EE; }
.selector-btn.class-paladin { --class-color: #F48CBA; }
.selector-btn.class-druid { --class-color: #FF7C0A; }
.selector-btn.class-archer { --class-color: #AAD372; }

.selector-btn[data-class]:not(.disabled) .selector-label {
  color: var(--class-color);
}

.selector-btn[data-class].active {
  border-color: var(--class-color);
  box-shadow: 0 0 15px color-mix(in srgb, var(--class-color) 40%, transparent);
}


/* =========================================
   CHARACTER STATS PANEL - RPG Style
   ========================================= */
.character-stats-panel {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 15, 10, 0.8) 100%);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

.character-stats-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23d4af37' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.character-stats-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.5;
}

/* Panel Header */
.stats-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.stats-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.stats-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-gold);
}

.stats-level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  border: 1px solid var(--color-gold);
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
}

.level-label {
  font-size: 0.6rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.level-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

/* Primary Stats - Hexagonal Grid */
.primary-stats-container {
  margin-bottom: 0.5rem;
}

.hex-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  max-width: 100%;
}

.hex-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.hex-stat:hover {
  transform: translateY(-3px);
}

/* Primary stats get thicker border and glow matching their value color */
.hex-stat.primary-stat .hex-stat-inner {
  border-width: 3px;
}

.hex-stat.primary-stat .hex-stat-abbr {
  font-weight: 700;
}

/* Primary stat border colors match stat value colors */
.hex-stat.primary-stat.stat-very-low .hex-stat-inner {
  border-color: #dc3545;
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.5);
}
.hex-stat.primary-stat.stat-low .hex-stat-inner {
  border-color: #fd7e14;
  box-shadow: 0 0 12px rgba(253, 126, 20, 0.5);
}
.hex-stat.primary-stat.stat-medium .hex-stat-inner {
  border-color: #ffc107;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
}
.hex-stat.primary-stat.stat-high .hex-stat-inner {
  border-color: #20c997;
  box-shadow: 0 0 12px rgba(32, 201, 151, 0.5);
}
.hex-stat.primary-stat.stat-max .hex-stat-inner {
  border-color: #4dabf7;
  box-shadow: 0 0 15px rgba(77, 171, 247, 0.6);
}

.hex-stat-inner {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(30, 25, 20, 0.9) 0%, rgba(15, 12, 10, 0.95) 100%);
  border: 2px solid var(--color-border);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hex-stat-inner:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.hex-stat-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.hex-stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hex-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hex-stat-abbr {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-top: 0.125rem;
}

.hex-stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.5);
}

.hex-stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-blood) 0%, var(--color-blood-bright) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--color-blood-glow);
}

.hex-stat-name {
  font-size: 0.55rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 0.25rem;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stat value colors based on level */
.hex-stat.stat-very-low .hex-stat-value {
  color: #dc3545;
}
.hex-stat.stat-very-low .hex-stat-fill {
  background: linear-gradient(90deg, #dc3545 0%, #e74c5c 100%);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.hex-stat.stat-low .hex-stat-value {
  color: #fd7e14;
}
.hex-stat.stat-low .hex-stat-fill {
  background: linear-gradient(90deg, #fd7e14 0%, #ff9a44 100%);
  box-shadow: 0 0 8px rgba(253, 126, 20, 0.5);
}

.hex-stat.stat-medium .hex-stat-value {
  color: #ffc107;
}
.hex-stat.stat-medium .hex-stat-fill {
  background: linear-gradient(90deg, #ffc107 0%, #ffcd39 100%);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.hex-stat.stat-high .hex-stat-value {
  color: #20c997;
}
.hex-stat.stat-high .hex-stat-fill {
  background: linear-gradient(90deg, #20c997 0%, #3dd5aa 100%);
  box-shadow: 0 0 8px rgba(32, 201, 151, 0.5);
}

.hex-stat.stat-very-high .hex-stat-value {
  color: #28a745;
}
.hex-stat.stat-very-high .hex-stat-fill {
  background: linear-gradient(90deg, #28a745 0%, #34ce57 100%);
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

/* Primary stats inherit color from their stat-value class but get emphasized */

/* Combination Description */
.combination-description {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.combination-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.combination-text strong {
  color: var(--color-gold);
}

.combination-text .pros {
  color: #28a745;
}

.combination-text .cons {
  color: #dc3545;
}

/* Stats Divider */
.stats-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.stats-divider::before,
.stats-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.divider-text {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Combat Stats Grid */
.combat-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.combat-stat {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.combat-stat:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 175, 55, 0.3);
}

.combat-stat-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.combat-stat-icon svg {
  width: 1rem;
  height: 1rem;
}

.combat-stat-atk .combat-stat-icon { color: #ff6b6b; }
.combat-stat-mpow .combat-stat-icon { color: #9b59ff; }
.combat-stat-def .combat-stat-icon { color: #4dabf7; }
.combat-stat-crit .combat-stat-icon { color: #ffd43b; }
.combat-stat-luck .combat-stat-icon { color: #69db7c; }
.combat-stat-end .combat-stat-icon { color: #ff922b; }

.combat-stat-info {
  flex: 1;
  min-width: 0;
}

.combat-stat-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.25rem;
}

.combat-stat-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.combat-stat-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
}

.combat-stat-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.combat-fill-atk { background: linear-gradient(90deg, #ff6b6b, #ff8787); box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
.combat-fill-mpow { background: linear-gradient(90deg, #9b59ff, #b88aff); box-shadow: 0 0 8px rgba(155, 89, 255, 0.5); }
.combat-fill-def { background: linear-gradient(90deg, #4dabf7, #74c0fc); box-shadow: 0 0 8px rgba(77, 171, 247, 0.5); }
.combat-fill-crit { background: linear-gradient(90deg, #ffd43b, #ffe066); box-shadow: 0 0 8px rgba(255, 212, 59, 0.5); }
.combat-fill-luck { background: linear-gradient(90deg, #69db7c, #8ce99a); box-shadow: 0 0 8px rgba(105, 219, 124, 0.5); }
.combat-fill-end { background: linear-gradient(90deg, #ff922b, #ffa94d); box-shadow: 0 0 8px rgba(255, 146, 43, 0.5); }

.combat-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 2.5rem;
  text-align: right;
}

/* Power Display (Character Creator) */
.power-display {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.power-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.power-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.power-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.power-role {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 0.25rem;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
}

.power-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* Power value color based on build strength */
.power-value.power-low { color: #dc3545; text-shadow: 0 0 20px rgba(220, 53, 69, 0.5); }
.power-value.power-medium { color: #ffc107; text-shadow: 0 0 20px rgba(255, 193, 7, 0.5); }
.power-value.power-high { color: #20c997; text-shadow: 0 0 20px rgba(32, 201, 151, 0.5); }
.power-value.power-excellent { color: #4dabf7; text-shadow: 0 0 20px rgba(77, 171, 247, 0.6); }

.hex-stat.stat-max .hex-stat-value {
  color: #4dabf7;
}
.hex-stat.stat-max .hex-stat-fill {
  background: linear-gradient(90deg, #4dabf7 0%, #74c0fc 100%);
  box-shadow: 0 0 10px rgba(77, 171, 247, 0.6);
}

/* Power Rating */
.power-rating {
  margin-top: 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.power-rating::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

.power-rating-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.power-rating-label svg {
  width: 1.25rem;
  height: 1.25rem;
}

.power-rating-value {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.power-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  line-height: 1;
}

.power-bar {
  width: 80px;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.power-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), #ffd700);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 40%;
}

.power-bar-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255, 215, 0, 0.4));
  animation: powerGlow 2s ease-in-out infinite;
}

@keyframes powerGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Responsive Design for Stats Panel */
@media (max-width: 640px) {
  .character-stats-panel {
    padding: 1rem;
  }

  .hex-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
  }

  .hex-stat-value {
    font-size: 1.25rem;
  }

  .combat-stats-grid {
    grid-template-columns: 1fr;
  }

  .power-rating {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .power-rating-value {
    flex-direction: column;
    gap: 0.5rem;
  }

  .power-bar {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .hex-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-panel-title span {
    font-size: 0.75rem;
  }
}

/* =========================================
   MOBILE-SPECIFIC STYLES
   ========================================= */

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Add space above hero title on tablet */
  .hero-title {
    margin-top: 2rem;
  }

  /* Center platform buttons on tablet */
  .platform-buttons,
  .platform-buttons-left {
    justify-content: center;
  }

  /* Hide Play Now button on tablet to protect logo */
  .nav-desktop .btn-primary {
    display: none;
  }
}

@media (max-width: 767px) {
  /* Add space above hero title on mobile */
  .hero-title {
    margin-top: 2rem;
  }

  /* Center platform buttons on mobile */
  .platform-buttons,
  .platform-buttons-left {
    justify-content: center;
  }

  /* Step cards - 80% width on mobile */
  .grid-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .grid-4 .card,
  .grid-4 .step-card {
    width: 80%;
    max-width: 320px;
  }

  /* Pricing cards - 80% width on mobile */
  .pricing-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .pricing-table .pricing-card {
    width: 85%;
    max-width: 340px;
  }

  /* Footer - 2 columns on mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-title {
    font-size: 0.8rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  /* Mobile menu restructure */
  .mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-links a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-menu-links a:last-child {
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-menu-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .lang-dropdown-mobile {
    border-bottom: none;
    padding: 0;
  }

  .lang-select-mobile {
    background: rgba(107, 0, 0, 0.2);
    border: 1px solid var(--color-blood);
    border-radius: 0.5rem;
    color: var(--color-text);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
  }

  .lang-select-mobile:focus {
    outline: none;
    box-shadow: 0 0 10px var(--color-blood-glow);
  }
}
