/* ================================================
   ProjectNXT - Premium MMORPG Landing Page
   Main Stylesheet
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
  /* Primary Colors */
  --color-primary: #9B1B30;
  --color-primary-dark: #7a1526;
  --color-primary-light: #c42341;

  /* Secondary Colors */
  --color-dark: #0d0d0d;
  --color-darker: #050505;
  --color-charcoal: #1a1a1a;
  --color-gray: #2a2a2a;
  --color-gray-light: #3a3a3a;

  /* Accent Colors */
  --color-gold: #c9a227;
  --color-gold-light: #ffd700;
  --color-gold-dark: #a68920;

  /* Text Colors */
  --color-text: #ffffff;
  --color-text-muted: #b0b0b0;
  --color-text-dark: #888888;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);

  /* Glass Effect */
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(155, 27, 48, 0.5);
  --shadow-gold: 0 0 20px rgba(201, 162, 39, 0.4);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section-padding: 100px 0;
  --container-width: 1400px;

  /* Border Radius Scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 50%;

  /* Glass Presets */
  --glass-bg-subtle: rgba(26, 26, 46, 0.5);
  --glass-bg-medium: rgba(26, 26, 46, 0.7);
  --glass-bg-heavy: rgba(13, 13, 26, 0.85);
  --glass-border-subtle: rgba(255, 255, 255, 0.04);
  --glass-border-light: rgba(255, 255, 255, 0.06);
  --glass-border-medium: rgba(255, 255, 255, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* -------------------- Reset & Base -------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-darker) url('/images/page_skin.jpg') center top / cover no-repeat fixed;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* -------------------- Typography -------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-gold);
}

.text-primary {
  color: var(--color-primary-light);
}

/* -------------------- Container -------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.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: var(--gradient-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(155, 27, 48, 0.7);
  color: var(--color-text);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* -------------------- Header / Navigation -------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(13, 13, 26, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 50px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 20px;
}

.nav-cta.btn {
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-normal);
  transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Nav Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Scroll lock when menu open */
body.menu-open {
  overflow: hidden;
}

/* -------------------- Hero Section -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-dark) 50%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
}

/* Brush Stroke Decorations */
.hero-brush {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-brush-left {
  left: 0;
  top: 20%;
  width: 300px;
  height: 400px;
  background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
  clip-path: polygon(0 0, 80% 10%, 60% 100%, 0 90%);
  opacity: 0.6;
}

.hero-brush-right {
  right: 0;
  bottom: 10%;
  width: 250px;
  height: 350px;
  background: linear-gradient(0deg, var(--color-primary-dark) 0%, transparent 100%);
  clip-path: polygon(40% 0, 100% 10%, 100% 100%, 20% 90%);
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 0 60px rgba(155, 27, 48, 0.5);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title span {
  display: block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.scroll-indicator-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease infinite;
}

/* -------------------- Section Styles -------------------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.section-title {
  margin-bottom: 20px;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Decorative Divider */
.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 20px auto 0;
}

/* -------------------- Features Interactive Section -------------------- */
.features-interactive {
  background: var(--color-dark);
}

.features-tabs-container {
  display: flex;
  gap: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  min-height: 600px;
}

/* Sidebar Navigation */
.features-sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 30px;
}

.feature-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.feature-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-tab-btn.active {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.tab-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 8px;
}

.tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.8) grayscale(1);
  transition: all 0.3s ease;
}

.feature-tab-btn.active .tab-icon {
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--color-gold);
}

.feature-tab-btn.active .tab-icon img {
  filter: brightness(1.2) grayscale(0);
  transform: scale(1.1);
}

.tab-text {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
}

.tab-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Area */
.features-content-display {
  flex: 1;
  position: relative;
}

.feature-panel {
  display: none;
  animation: slideFadeIn 0.5s ease forwards;
}

.feature-panel.active {
  display: block;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.panel-icon-large {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(201, 162, 39, 0.1);
}

.panel-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.5));
}

.panel-title-group h3 {
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: 5px;
}

.panel-title-group p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.panel-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.panel-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-5px);
}

.panel-item h4 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 15px;
  border-left: 3px solid var(--color-gold);
  padding-left: 12px;
}

.panel-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.panel-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.panel-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-gold);
  opacity: 0.8;
}

/* Responsive Features */
@media (max-width: 1024px) {
  .features-tabs-container {
    flex-direction: column;
  }

  .features-sidebar {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .feature-tab-btn {
    width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel-title-group h3 {
    font-size: 1.6rem;
  }
}

/* -------------------- Interactive Weapons Section -------------------- */
.weapons-section {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-charcoal) 100%);
  overflow: hidden;
}

/* Faction Selector Row */
.weapon-faction-selector {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.weapon-faction-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  width: 220px;
}

.weapon-faction-option:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.weapon-faction-option.active {
  border-color: var(--faction-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--faction-color);
}

.faction-option-image {
  position: relative;
  width: 150px;
  height: 180px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 12px;
}

.faction-option-image img,
.faction-option-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.7) saturate(0.7);
}

.weapon-faction-option:hover .faction-option-image img,
.weapon-faction-option.active .faction-option-image img,
.weapon-faction-option:hover .faction-option-image video,
.weapon-faction-option.active .faction-option-image video {
  transform: scale(1.1);
  filter: brightness(1) saturate(1);
}

.faction-option-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  background: radial-gradient(ellipse, var(--faction-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.weapon-faction-option.active .faction-option-glow {
  opacity: 0.6;
}

.faction-option-info {
  text-align: center;
}

.faction-option-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.weapon-faction-option.active .faction-option-info h3 {
  color: var(--faction-color);
}

.faction-weapon-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.faction-option-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--faction-color);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.weapon-faction-option.active .faction-option-indicator {
  width: 60%;
}

/* Weapon Display Area */
.weapon-display-area {
  position: relative;
  min-height: 400px;
  margin-bottom: 50px;
}

.weapon-panel {
  display: none;
  animation: panelFadeIn 0.5s ease forwards;
}

.weapon-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weapon-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 15px;
}

.weapon-panel-title {
  font-size: 1.5rem;
  color: var(--faction-color);
}

.weapon-type-legend {
  display: flex;
  gap: 12px;
}

.legend-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.legend-defensive .badge-dot {
  background: #4a90d9;
  box-shadow: 0 0 10px #4a90d9;
}

.legend-offensive .badge-dot {
  background: #d94a4a;
  box-shadow: 0 0 10px #d94a4a;
}

.legend-ranged .badge-dot {
  background: #9b59b6;
  box-shadow: 0 0 10px #9b59b6;
}

.legend-defensive {
  border-color: rgba(74, 144, 217, 0.3);
}

.legend-offensive {
  border-color: rgba(217, 74, 74, 0.3);
}

.legend-ranged {
  border-color: rgba(155, 89, 182, 0.3);
}

.legend-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Weapon Cards Grid */
.weapon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.weapon-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.weapon-card:hover {
  transform: translateY(-8px);
  border-color: var(--faction-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.weapon-card-image {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.weapon-card-image img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.weapon-card:hover .weapon-card-image img {
  transform: scale(1.15) rotate(5deg);
}

.weapon-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.weapon-card-content {
  padding: 20px;
}

.weapon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.weapon-card-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.weapon-card-type {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #fff;
}

.type-defensive {
  background: #4a90d9;
}

.type-offensive {
  background: #d94a4a;
}

.type-ranged {
  background: #9b59b6;
}

.weapon-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Sky Clan Note */
.sky-clan-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 30px;
  background: rgba(107, 91, 149, 0.15);
  border: 1px solid rgba(107, 91, 149, 0.3);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.sky-clan-note .note-icon {
  font-size: 1.5rem;
  color: #6b5b95;
}

.sky-clan-note p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.sky-clan-note strong {
  color: #a99fd4;
}

/* Responsive Weapons Section */
@media (max-width: 1024px) {
  .weapon-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .weapon-faction-selector {
    gap: 20px;
  }

  .weapon-faction-option {
    width: 180px;
    padding: 15px;
  }

  .faction-option-image {
    width: 120px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .weapon-cards {
    grid-template-columns: 1fr;
  }

  .weapon-faction-selector {
    gap: 15px;
  }

  .weapon-faction-option {
    width: 100px;
    padding: 12px;
  }

  .faction-option-image {
    width: 80px;
    height: 100px;
  }

  .faction-option-info h3 {
    font-size: 0.85rem;
  }

  .faction-weapon-count {
    font-size: 0.7rem;
  }

  .weapon-panel-header {
    flex-direction: column;
    text-align: center;
  }

  .sky-clan-note {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
}

/* -------------------- News Section -------------------- */
.news {
  background: var(--color-darker);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-gray);
  transition: all var(--transition-normal);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:hover {
  padding-left: 15px;
}

.news-date {
  flex: 0 0 60px;
  text-align: center;
}

.news-day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1;
}

.news-month {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.news-item:hover .news-title {
  color: var(--color-gold);
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 500;
}

.news-read-more:hover {
  color: var(--color-gold);
}

/* Featured News Cards */
.news-featured {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.featured-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
}

.featured-image {
  width: 100%;
  height: 180px;
  position: relative;
}

.featured-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.featured-content {
  padding: 20px;
}

.featured-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.featured-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.featured-link {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.featured-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.featured-link:hover::after {
  transform: translateX(5px);
}

/* -------------------- CTA Section -------------------- */
.cta-section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(122, 21, 38, 0.15) 0%, var(--color-darker) 40%, rgba(26, 26, 46, 0.3) 100%);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-dark) 50%, var(--color-charcoal) 100%);
  z-index: -1;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-buttons .btn {
  padding: 18px 48px;
  font-size: 1rem;
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
}
.btn-lg {
  padding: 18px 48px;
  font-size: 1rem;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-title {
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--color-darker);
  border-top: 1px solid var(--color-gray);
  position: relative;
  overflow: hidden;
}

/* Footer Video Background */
.footer-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.footer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.footer-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(5, 5, 5, 0.9) 0%,
      rgba(5, 5, 5, 0.7) 50%,
      rgba(5, 5, 5, 0.95) 100%);
}

.footer-main {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 50px;
}

.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(155, 27, 48, 0.4);
  color: #fff;
}

.footer-column h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text);
  padding-left: 5px;
}

/* Newsletter */
.footer-newsletter {
  margin-top: 30px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.newsletter-input::placeholder {
  color: var(--color-text-dark);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

/* Footer Bottom */
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: #ffffff;
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--color-text-dark);
}

.footer-legal a:hover {
  color: var(--color-text);
}

/* -------------------- Download Page -------------------- */
.download-page {
  padding-top: 100px;
}

.download-hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.download-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.9) 100%),
    url('../images/download.jpeg') center/cover no-repeat;
  z-index: -1;
}

.download-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.download-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Download Cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.download-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold);
}

.download-card.main-client {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-color: rgba(201, 162, 39, 0.3);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 15px;
  transition: all 0.3s ease;
}

.download-card:hover .card-icon {
  background: rgba(201, 162, 39, 0.15);
  transform: scale(1.05);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}

.download-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

.download-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* System Requirements */
.requirements-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.req-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}

.req-box.recommended {
  border-color: rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.05);
}

.req-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
}

.req-box h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--color-text);
}

.req-list {
  list-style: none;
  display: grid;
  gap: 15px;
}

.req-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.req-list li strong {
  color: var(--color-text);
  margin-right: 10px;
}

/* Installation Guide */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.5);
  line-height: 1;
}

.step-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-gold);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .requirements-wrapper {
    grid-template-columns: 1fr;
  }

  .download-title {
    font-size: 2.5rem;
  }

  .download-hero {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Faction Detail Pages -------------------- */
.faction-detail-page {
  padding-top: 0;
}

.faction-hero-simple {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
  /* Fallback */
}

.faction-hero-simple .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.faction-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.faction-hero-simple .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-dark) 20%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
    linear-gradient(to top, var(--color-dark) 0%, transparent 40%);
  z-index: 1;
}

.faction-hero-simple .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.faction-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  padding: 12px 24px 12px 12px;
  border-radius: 60px 15px 15px 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--color-gold);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--color-gold));
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.faction-title-large {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.faction-intro {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Overview Section */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.weapon-mastery {
  margin-top: 50px;
}

.weapon-mastery h3 {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.weapon-icons {
  display: flex;
  gap: 30px;
}

.weapon-item {
  text-align: center;
}

.weapon-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  border: 2px solid rgba(201, 162, 39, 0.3);
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.weapon-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.faction-image-wrapper {
  position: relative;
}

.faction-image-wrapper img,
.faction-image-wrapper video {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 50px rgba(155, 27, 48, 0.3));
}

/* Representative section */
.representative-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 50px;
}

.rep-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 30px;
}

.lore-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  border-left: 4px solid var(--color-gold);
}

.lore-box h4 {
  color: var(--color-gold);
  margin-bottom: 15px;
}

/* Disciplines grid */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.discipline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
}

.discipline-card:hover {
  background: rgba(201, 162, 39, 0.05);
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-10px);
}

.disc-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.disc-num {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.disc-num img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.4));
  transition: all 0.3s ease;
}

.discipline-card:hover .disc-num img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.6));
}

.disc-master {
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.disc-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Faction Theme Specifics */
.dragon-theme .faction-image-wrapper img,
.dragon-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(196, 30, 58, 0.3));
}

.serpent-theme .faction-image-wrapper img,
.serpent-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(30, 138, 58, 0.4));
}

.serpent-theme .lore-box {
  border-left-color: #1e8a3a;
}

.serpent-theme .disc-num {
  color: rgba(30, 138, 58, 0.2);
}

.serpent-theme .discipline-card:hover {
  background: rgba(30, 138, 58, 0.05);
  border-color: rgba(30, 138, 58, 0.3);
}

.leopard-theme .faction-image-wrapper img,
.leopard-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(212, 160, 23, 0.4));
}

.leopard-theme .lore-box {
  border-left-color: #d4a017;
}

.leopard-theme .disc-num {
  color: rgba(212, 160, 23, 0.2);
}

.leopard-theme .discipline-card:hover {
  background: rgba(212, 160, 23, 0.05);
  border-color: rgba(212, 160, 23, 0.3);
}

.sky-theme .faction-image-wrapper img,
.sky-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(107, 91, 149, 0.4));
}

.sky-theme .lore-box {
  border-left-color: #6b5b95;
}

.sky-theme .special-badge {
  display: inline-block;
  background: linear-gradient(90deg, #6b5b95, #c9a227);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px rgba(107, 91, 149, 0.3);
}

.sky-theme .disc-num {
  color: rgba(107, 91, 149, 0.2);
}

.sky-theme .discipline-card:hover {
  background: rgba(107, 91, 149, 0.05);
  border-color: rgba(107, 91, 149, 0.3);
}

/* -------------------- Dynamic Ambient Backgrounds -------------------- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  /* Changed from var(--color-dark) */
}

.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  filter: blur(100px);
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Dragon Theme Ambient */
.dragon-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(155, 27, 48, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.3) 0%, transparent 50%);
  animation: meshMove 20s infinite alternate ease-in-out;
}

/* Serpent Theme Ambient */
.serpent-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(30, 138, 58, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 115, 48, 0.2) 0%, transparent 50%);
  animation: meshMove 25s infinite alternate ease-in-out;
}

/* Leopard Theme Ambient */
.leopard-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.2) 0%, transparent 50%);
  animation: meshMove 22s infinite alternate ease-in-out;
}

/* Sky Theme Ambient */
.sky-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(107, 91, 149, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(85, 71, 120, 0.2) 0%, transparent 50%);
  animation: meshMove 30s infinite alternate ease-in-out;
}

@keyframes meshMove {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.2) translate(5%, 5%);
  }
}

.ambient-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ambient-particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Theme specific particle styles */
.dragon-theme .ambient-particle {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.serpent-theme .ambient-particle {
  background: #1e8a3a;
  box-shadow: 0 0 10px #1e8a3a;
}

.leopard-theme .ambient-particle {
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
}

.sky-theme .ambient-particle {
  background: #6b5b95;
  box-shadow: 0 0 10px #6b5b95;
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.loader-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--color-dark) 100%);
}

.loader-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.loader-logo {
  position: relative;
  margin-bottom: 40px;
}

.loader-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 4rem;
  letter-spacing: 0.3em;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  display: block;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(155, 27, 48, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  animation: logoPulse 3s infinite ease-in-out;
}

.loader-status {
  max-width: 300px;
  margin: 0 auto;
}

.loader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: loaderProgress 2s infinite ease-in-out;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.6;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes loaderProgress {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 992px) {
  .faction-hero-simple {
    height: auto;
    padding: 100px 0;
  }

  .faction-hero-simple .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.95) 100%);
  }

  .faction-title-large {
    font-size: 3rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .weapon-icons {
    justify-content: center;
  }

  .disciplines-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Animations -------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(155, 27, 48, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(155, 27, 48, 0.8);
  }
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
    padding-right: 0;
  }
}

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-featured {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .featured-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 1400px) {
  /* Header Mobile - hamburger menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-left: 1px solid var(--glass-border-light);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    will-change: transform;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu .nav-link {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all var(--transition-fast);
    width: 100%;
  }
  .nav-menu .nav-link:hover {
    background: rgba(201, 162, 39, 0.06);
    border-left-color: var(--color-gold);
  }
  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
  .nav-cta.btn {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Classes */
  .class-card {
    flex: 0 0 280px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
  }

  .class-card {
    flex: 0 0 260px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* -------------------- Portal Section (Community Hub) -------------------- */
.portal-section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: start;
}

/* Shared Portal Card */
.portal-card {
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.8) 0%, rgba(13, 13, 30, 0.9) 100%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.portal-card:hover {
  border-color: rgba(201, 162, 39, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(201, 162, 39, 0.03);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border-light);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.04) 0%, transparent 60%);
}
.portal-card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 28px;
}
.card-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  color: var(--color-gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.portal-see-all {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  opacity: 0.8;
}
.portal-see-all:hover { opacity: 1; color: var(--color-gold-light); }

/* Portal News */
.portal-news-list { padding: 0; }

.pn-item {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border-subtle);
  transition: all var(--transition-fast);
  position: relative;
  border-left: 3px solid transparent;
}
.pn-item:last-child { border-bottom: none; }
.pn-item:hover {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.04) 0%, transparent 70%);
  border-left-color: var(--color-gold);
}

.pn-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}
.pn-day {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.pn-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  margin-top: 2px;
}

.pn-body { flex: 1; min-width: 0; }
.pn-meta { margin-bottom: 6px; }
.pn-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cat-gold { background: rgba(201, 162, 39, 0.12); color: #d4af37; border: 1px solid rgba(201, 162, 39, 0.2); }
.cat-green { background: rgba(74, 222, 128, 0.08); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.15); }
.cat-blue { background: rgba(96, 165, 250, 0.08); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.15); }
.cat-red { background: rgba(248, 113, 113, 0.08); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.15); }
.cat-purple { background: rgba(167, 139, 250, 0.08); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.15); }
.cat-default { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); }

.pn-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.4;
}
.pn-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.pn-title a:hover { color: var(--color-gold); }

.pn-excerpt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured Cards */
.portal-featured {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border-subtle);
}
.pf-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, rgba(201, 162, 39, 0.01) 100%);
  border: 1px solid rgba(201, 162, 39, 0.1);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.pf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.pf-card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.08);
}
.pf-card:hover::before { opacity: 1; }
.pf-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
}
.pf-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  position: relative;
}
.pf-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  transition: transform var(--transition-normal), color var(--transition-normal);
}
.pf-card:hover .pf-arrow {
  transform: translateX(4px);
  color: var(--color-gold);
}

/* Portal Leaderboard Widget */
.portal-leaderboard { margin-bottom: var(--space-lg); }

.lb-tabs {
  display: flex;
  padding: 0 4px;
  gap: 2px;
  border-bottom: 1px solid var(--glass-border-light);
  background: rgba(0, 0, 0, 0.15);
}
.lb-tab {
  flex: 1;
  padding: 11px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  position: relative;
}
.lb-tab:hover { color: rgba(255, 255, 255, 0.6); }
.lb-tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.lb-panel { display: none; }
.lb-panel.active { display: block; }

.lb-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
}
.lb-empty span { font-size: 1.8rem; display: block; margin-bottom: 8px; opacity: 0.5; }
.lb-empty p { margin: 0; font-size: 0.82rem; }

.lb-widget-table {
  width: 100%;
  border-collapse: collapse;
}
.lb-widget-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}
.lb-widget-table tr:last-child { border-bottom: none; }
.lb-widget-table tr:hover {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.04) 0%, transparent 80%);
}
/* Top 3 highlight */
.lb-widget-table tr:nth-child(1) { background: linear-gradient(90deg, rgba(255, 215, 0, 0.04) 0%, transparent 70%); }
.lb-widget-table tr:nth-child(2) { background: linear-gradient(90deg, rgba(192, 192, 192, 0.03) 0%, transparent 70%); }
.lb-widget-table tr:nth-child(3) { background: linear-gradient(90deg, rgba(205, 127, 50, 0.03) 0%, transparent 70%); }

.lb-widget-table td {
  padding: 10px 12px;
  font-size: 0.82rem;
}
.lb-widget-table td:first-child { padding-left: 14px; }
.lb-widget-table td:last-child { padding-right: 14px; }

.lb-rank { width: 36px; text-align: center; }
.lb-medal { font-size: 1.1rem; }
.lb-medal.rank-1 { color: #ffd700; filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)); }
.lb-medal.rank-2 { color: #c0c0c0; filter: drop-shadow(0 0 4px rgba(192, 192, 192, 0.4)); }
.lb-medal.rank-3 { color: #cd7f32; filter: drop-shadow(0 0 4px rgba(205, 127, 50, 0.4)); }
.lb-num { color: rgba(255, 255, 255, 0.2); font-weight: 600; font-size: 0.78rem; }

.lb-player {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-faction-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.lb-name {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.lb-value {
  text-align: right;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Quick Links */
.portal-links { margin-bottom: 0; }
.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.quick-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.quick-link:hover {
  background: rgba(201, 162, 39, 0.05);
  border-color: rgba(201, 162, 39, 0.15);
  transform: translateY(-2px);
}
.quick-link:hover::before { opacity: 1; }

.ql-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
  color: var(--color-gold);
  font-size: 1.1rem;
  position: relative;
  transition: all var(--transition-normal);
}
.quick-link:hover .ql-icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.08));
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.15);
}
.ql-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color var(--transition-fast);
}
.quick-link:hover .ql-label { color: var(--color-gold); }

/* Portal Responsive */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .portal-sidebar {
    grid-template-columns: 1fr;
  }
  .pn-item { padding: 14px 16px; gap: 14px; border-left-width: 2px; }
  .pn-date { min-width: 40px; }
  .pn-day { font-size: 1.15rem; }
  .portal-featured { flex-direction: column; }
  .quick-links-grid { gap: 6px; padding: 10px; }
}

/* -------------------- Discord Widget -------------------- */
.card-icon.discord-icon {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.08));
  color: #5865F2;
}
.card-icon.discord-icon i { font-size: 1rem; }
.discord-widget-body { padding: 16px 20px; }
.discord-loading { color: var(--text-muted); font-size: 0.82rem; text-align: center; padding: var(--space-lg) 0; }
.discord-error { text-align: center; padding: var(--space-sm) 0; }

.discord-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}
.discord-online-dot {
  width: 8px; height: 8px;
  background: #23a55a;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(35, 165, 90, 0.5);
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px rgba(35, 165, 90, 0.5); }
  50% { box-shadow: 0 0 12px rgba(35, 165, 90, 0.8); }
}
.discord-online-count { color: #23a55a; font-weight: 600; }
.discord-server-name { color: var(--text-muted); margin-left: auto; font-size: 0.75rem; }

.discord-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.discord-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.discord-member:hover { background: rgba(88, 101, 242, 0.08); }
.discord-avatar-wrap { position: relative; flex-shrink: 0; width: 30px; height: 30px; }
.discord-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.discord-presence {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(13, 13, 30, 0.9);
}
.ds-online { background: #23a55a; }
.ds-idle { background: #f0b232; }
.ds-dnd { background: #f23f43; }
.ds-offline { background: #80848e; }
.discord-username {
  font-size: 0.78rem;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-more {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 6px;
}

.discord-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.discord-join-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
  color: #fff;
}

/* -------------------- News Detail Page (Scroll) -------------------- */
.news-detail-section {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.news-detail-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}
.news-back-link:hover { color: var(--color-gold); }

/* --- Scroll Article --- */
.scroll {
  position: relative;
}

/* Rolled edges */
.scroll-edge {
  height: 28px;
  background: linear-gradient(180deg, #3a2e1a 0%, #5c4a2e 30%, #7a6340 50%, #5c4a2e 70%, #3a2e1a 100%);
  border-left: 1px solid rgba(122, 99, 64, 0.4);
  border-right: 1px solid rgba(122, 99, 64, 0.4);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.scroll-edge-top {
  border-radius: 6px 6px 0 0;
  border-top: 1px solid rgba(122, 99, 64, 0.5);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.scroll-edge-bottom {
  border-radius: 0 0 6px 6px;
  border-bottom: 1px solid rgba(122, 99, 64, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 -4px 12px rgba(0, 0, 0, 0.2);
}

/* Highlight line on rolled edges */
.scroll-edge::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.25), transparent);
}
.scroll-edge-top::after { bottom: 4px; }
.scroll-edge-bottom::after { top: 4px; }

/* Main parchment body */
.scroll-inner {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(210, 180, 120, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(210, 180, 120, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #2a2216 0%, #231d13 50%, #2a2216 100%);
  border-left: 1px solid rgba(122, 99, 64, 0.2);
  border-right: 1px solid rgba(122, 99, 64, 0.2);
  position: relative;
  padding: 40px 52px;
}

/* Aged texture overlay */
.scroll-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Burnt/aged edge glow */
.scroll-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4), inset 0 0 120px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.scroll-inner > * { position: relative; z-index: 1; }

/* --- Header --- */
.scroll-header {
  text-align: center;
  margin-bottom: 8px;
}

.scroll-ornament {
  font-size: 1.4rem;
  color: rgba(201, 162, 39, 0.3);
  margin-bottom: 20px;
  letter-spacing: 0.5em;
}

.scroll-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.scroll-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Override badge colors for parchment warmth */
.scroll .cat-blue { background: rgba(140, 120, 60, 0.2); color: #c9a227; border: 1px solid rgba(201, 162, 39, 0.2); }
.scroll .cat-gold { background: rgba(140, 120, 60, 0.2); color: #c9a227; border: 1px solid rgba(201, 162, 39, 0.2); }
.scroll .cat-green { background: rgba(100, 140, 80, 0.15); color: #8ab060; border: 1px solid rgba(138, 176, 96, 0.2); }
.scroll .cat-red { background: rgba(160, 80, 70, 0.15); color: #c47060; border: 1px solid rgba(196, 112, 96, 0.2); }
.scroll .cat-purple { background: rgba(120, 100, 150, 0.15); color: #a090c0; border: 1px solid rgba(160, 144, 192, 0.2); }

.scroll-date {
  font-size: 0.78rem;
  color: rgba(201, 162, 39, 0.4);
  font-family: var(--font-body);
}

.scroll-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #d4b85a;
  line-height: 1.4;
  margin: 0 0 14px;
  text-shadow: 0 1px 8px rgba(201, 162, 39, 0.1);
}

.scroll-lead {
  font-size: 0.9rem;
  color: rgba(200, 180, 140, 0.55);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 580px;
}

/* --- Ornamental Rule --- */
.scroll-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}
.scroll-rule::before,
.scroll-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.15), transparent);
}
.scroll-rule span {
  color: rgba(201, 162, 39, 0.2);
  font-size: 0.55rem;
  line-height: 1;
}

/* --- Content --- */
.scroll-content {
  color: rgba(210, 195, 165, 0.75);
  font-size: 0.92rem;
  line-height: 1.85;
}

.scroll-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #c9a227;
  margin: 30px 0 14px;
  letter-spacing: 0.03em;
  position: relative;
  padding-left: 16px;
}
.scroll-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #c9a227, rgba(201, 162, 39, 0.2));
  border-radius: 2px;
}
.scroll-content h3:first-child { margin-top: 0; }

.scroll-content p {
  margin: 0 0 14px;
}
.scroll-content p:last-child { margin-bottom: 0; }

.scroll-content ul {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.scroll-content ul li {
  position: relative;
  padding: 10px 14px 10px 28px;
  border-left: 2px solid rgba(201, 162, 39, 0.08);
  margin-bottom: 2px;
  transition: border-color 0.2s;
}
.scroll-content ul li:hover {
  border-left-color: rgba(201, 162, 39, 0.25);
}

.scroll-content ul li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 18px;
  width: 5px;
  height: 5px;
  background: rgba(201, 162, 39, 0.4);
  border-radius: 50%;
}

.scroll-content strong {
  color: #d4c090;
  font-weight: 600;
}

/* --- Footer --- */
.scroll-footer {
  text-align: center;
}

.scroll-sign {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: rgba(201, 162, 39, 0.3);
  margin: 0 0 20px;
  letter-spacing: 0.05em;
}

.scroll-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 2px;
  color: rgba(201, 162, 39, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.scroll-copy-btn:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.3);
  color: #c9a227;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .scroll-inner { padding: 28px 24px; }
  .scroll-title { font-size: 1.15rem; }
  .scroll-content h3 { font-size: 0.95rem; }
}

/* -------------------- Section Flow Transitions -------------------- */
.features-interactive::after,
.weapons-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-darker));
  pointer-events: none;
  z-index: 1;
}
.features-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, transparent, var(--color-darker));
  pointer-events: none;
  z-index: 1;
}

/* -------------------- Announcement Banner -------------------- */
.announcement-banner {
  background: linear-gradient(90deg, #d4af37 0%, #f5d060 50%, #d4af37 100%);
  color: #1a1a2e;
  padding: 10px 0;
  position: relative;
  z-index: 1001;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.announcement-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.announcement-text { flex: 1; }
.announcement-close {
  background: none;
  border: none;
  color: #1a1a2e;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 4px;
}
.announcement-close:hover { opacity: 1; }

/* ────────────────────────────────────────────────────────────────────────────
   Info Pages (About, Classes, Combat, Lore, Guide, Help, etc.)
   ──────────────────────────────────────────────────────────────────────────── */

.info-page-section {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.info-page-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Hero Banner ── */
.info-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 32px 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(30, 25, 18, 0.6) 0%, rgba(20, 17, 12, 0.8) 100%);
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.info-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
}

.info-hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #d4b85a;
}

.info-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #e8dcc8;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.info-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(200, 180, 140, 0.55);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.info-hero-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.info-hero-rule::before,
.info-hero-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.15), transparent);
}
.info-hero-rule span {
  color: rgba(201, 162, 39, 0.2);
  font-size: 0.55rem;
}

/* ── Section Cards ── */
.info-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section-card {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(210, 180, 120, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(35, 29, 19, 0.9) 0%, rgba(28, 23, 15, 0.95) 100%);
  border: 1px solid rgba(201, 162, 39, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.info-section-card:hover {
  border-color: rgba(201, 162, 39, 0.18);
}

.info-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: rgba(201, 162, 39, 0.03);
  border-bottom: 1px solid rgba(201, 162, 39, 0.06);
  position: relative;
}

.info-section-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #c9a227;
}

.info-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #d4c090;
  margin: 0;
  flex: 1;
  letter-spacing: 0.01em;
  line-height: 40px;
}

.info-section-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(201, 162, 39, 0.15);
  letter-spacing: 0.05em;
}

.info-section-body {
  padding: 24px 28px;
  color: rgba(210, 195, 165, 0.7);
  font-size: 0.92rem;
  line-height: 1.75;
}

.info-section-body p {
  margin: 0 0 14px;
}
.info-section-body p:last-child {
  margin-bottom: 0;
}

.info-section-body ul {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}
.info-section-body ul:last-child {
  margin-bottom: 0;
}

.info-section-body ul li {
  position: relative;
  padding: 10px 14px 10px 28px;
  border-left: 2px solid rgba(201, 162, 39, 0.08);
  transition: border-color 0.2s;
}
.info-section-body ul li:hover {
  border-left-color: rgba(201, 162, 39, 0.25);
}

.info-section-body ul li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: rgba(201, 162, 39, 0.3);
  border-radius: 50%;
}

.info-section-body strong {
  color: #d4c090;
  font-weight: 600;
}

/* ── CTA Links ── */
.info-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  margin: 8px 8px 0 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.08));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 6px;
  color: #d4b85a;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  text-decoration: none;
}
.info-cta-link:hover {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.25), rgba(201, 162, 39, 0.15));
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
  color: #e8d080;
}

.info-cta-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
}
.info-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.info-inline-link {
  color: #d4b85a;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: all 0.2s;
}
.info-inline-link:hover {
  color: #e8d080;
  border-bottom-color: rgba(201, 162, 39, 0.5);
}

/* ── Page Footer ── */
.info-page-footer {
  text-align: center;
  margin-top: 40px;
}

.info-page-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.info-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.info-footer-btn:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.2);
  color: #d4b85a;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .info-page-section { padding: 100px 0 60px; }
  .info-hero { padding: 32px 20px; }
  .info-hero-title { font-size: 1.3rem; }
  .info-section-header { padding: 16px 20px; }
  .info-section-body { padding: 20px; }
  .info-section-number { display: none; }
  .info-cta-link { display: flex; justify-content: center; margin-right: 0; }
}

/* ────────────────────────────────────────────────────────────────────────────
   Gallery Page
   ──────────────────────────────────────────────────────────────────────────── */

.gallery-section {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.gallery-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Filters ── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.gallery-filter:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.2);
  color: #d4b85a;
}

.gallery-filter.active {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.08));
  border-color: rgba(201, 162, 39, 0.3);
  color: #d4b85a;
  font-weight: 600;
}

/* ── Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Item Card ── */
.gallery-item {
  background: rgba(35, 29, 19, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  border-color: rgba(201, 162, 39, 0.2);
}

.gallery-thumb {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center top;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.03);
}

.gallery-thumb::after {
  content: '\f065';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0);
  background: rgba(0, 0, 0, 0);
  transition: all 0.3s ease;
}

.gallery-thumb:hover::after {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.4);
}

.gallery-caption {
  padding: 14px 16px;
}

.gallery-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 4px;
  margin-bottom: 8px;
}

.gallery-caption p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(210, 195, 165, 0.6);
  line-height: 1.5;
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(210, 195, 165, 0.7);
  text-align: center;
  max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 12px;
  transition: color 0.2s;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #d4b85a;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

/* ── Empty State ── */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 32px;
  color: rgba(210, 195, 165, 0.4);
}
.gallery-empty i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: rgba(201, 162, 39, 0.2);
}
.gallery-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(210, 195, 165, 0.5);
  margin: 0 0 8px;
}
.gallery-empty p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-section { padding: 100px 0 60px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filters { gap: 6px; }
  .gallery-filter { padding: 6px 12px; font-size: 0.78rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}