/* ===================================================================
   PERFECT WORLD INTERNATIONAL 1.5.1 INCAST - VARGON OFFICIAL
   MASTER STYLESHEET (style.css)
   Designed with Dark Fantasy Oriental MMORPG Aesthetics
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cinzel+Decorative:wght@700;900&family=Outfit:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --val-bg-main: #060913;
  --val-bg-darker: #03050a;
  --val-bg-card: rgba(13, 20, 38, 0.82);
  --val-bg-card-hover: rgba(20, 31, 58, 0.95);
  --val-bg-glass: rgba(10, 16, 32, 0.7);
  --val-bg-header: rgba(6, 9, 19, 0.92);

  --val-gold-primary: #dfb257;
  --val-gold-light: #f7d88c;
  --val-gold-bright: #ffe699;
  --val-gold-dark: #996e1e;
  --val-gold-glow: rgba(223, 178, 87, 0.4);

  --val-cyan-glow: #00d4ff;
  --val-cyan-bright: #38bdf8;
  --val-cyan-deep: #0284c7;

  --val-blue-royal: #132448;
  --val-blue-dark: #0a1329;
  --val-blue-accent: #2563eb;

  --val-purple-accent: #a855f7;
  --val-purple-glow: rgba(168, 85, 247, 0.35);

  --val-text-pure: #ffffff;
  --val-text-main: #e2e8f0;
  --val-text-muted: #94a3b8;
  --val-text-subtle: #64748b;

  --val-border-gold: rgba(223, 178, 87, 0.3);
  --val-border-gold-bright: rgba(223, 178, 87, 0.7);
  --val-border-cyan: rgba(0, 212, 255, 0.35);
  --val-border-glass: rgba(255, 255, 255, 0.08);

  --val-font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --val-font-title: 'Cinzel', serif;
  --val-font-sub: 'Rajdhani', sans-serif;
  --val-font-body: 'Outfit', sans-serif;

  --val-transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --val-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.05);
}

/* Base & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--val-bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(22, 40, 80, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--val-text-main);
  font-family: var(--val-font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--val-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--val-gold-primary), var(--val-blue-royal));
  border-radius: 4px;
  border: 1px solid rgba(223, 178, 87, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--val-gold-light);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--val-font-title);
  color: var(--val-text-pure);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: 2.85rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

a:hover {
  color: var(--val-cyan-bright);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Gold Gradient Heading */
.val-gold-text {
  background: linear-gradient(135deg, #ffffff 0%, #fff0cc 20%, #dfb257 55%, #a67c1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 2px 15px rgba(223, 178, 87, 0.3);
}

.val-cyan-text {
  color: var(--val-cyan-bright);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

/* Section Header Component */
.val-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.val-section-subtitle {
  font-family: var(--val-font-sub);
  color: var(--val-cyan-bright);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.val-section-subtitle::before,
.val-section-subtitle::after {
  content: '';
  width: 35px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--val-cyan-bright));
}

.val-section-subtitle::after {
  background: linear-gradient(90deg, var(--val-cyan-bright), transparent);
}

.val-section-title {
  font-size: 2.3rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.val-divider-ornate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0.75rem auto 0;
  width: 100%;
  max-width: 320px;
}

.val-divider-ornate .val-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--val-gold-primary));
}

.val-divider-ornate .val-line.right {
  background: linear-gradient(90deg, var(--val-gold-primary), transparent);
}

.val-divider-ornate .val-diamond {
  width: 10px;
  height: 10px;
  background-color: var(--val-gold-light);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--val-gold-primary);
}

/* Navbar */
.val-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: all 0.4s ease;
  padding: 1.1rem 0;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.9) 0%, rgba(4, 7, 15, 0.4) 75%, transparent 100%);
  border-bottom: 1px solid transparent;
}

.val-navbar.scrolled {
  background: var(--val-bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--val-border-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(0, 212, 255, 0.1);
}

.val-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.val-brand-logo {
  height: 52px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.val-navbar.scrolled .val-brand-logo {
  height: 44px;
}

.val-brand:hover .val-brand-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(223, 178, 87, 0.7));
}

.val-brand-text {
  display: flex;
  flex-direction: column;
}

.val-brand-name {
  font-family: var(--val-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #ffeaa7 50%, #dfb257 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.val-brand-tag {
  font-family: var(--val-font-sub);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--val-cyan-bright);
  font-weight: 700;
}

.val-nav-link {
  font-family: var(--val-font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--val-text-main);
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: var(--val-transition);
}

.val-nav-link:hover,
.val-nav-link.active {
  color: var(--val-gold-light) !important;
  text-shadow: 0 0 12px rgba(223, 178, 87, 0.6);
}

.val-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--val-cyan-glow), var(--val-gold-primary));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--val-cyan-glow);
}

.val-nav-link:hover::after,
.val-nav-link.active::after {
  width: 75%;
}

/* Buttons */
.btn-valthera,
.btn-vargon {
  font-family: var(--val-font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: var(--val-transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-valthera-gold,
.btn-vargon-gold {
  background: linear-gradient(135deg, #b8860b 0%, #dfb257 50%, #f7d88c 100%);
  color: #080d1a !important;
  border-color: #f7d88c;
  box-shadow: 0 4px 18px rgba(223, 178, 87, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-valthera-gold:hover,
.btn-vargon-gold:hover {
  background: linear-gradient(135deg, #dfb257 0%, #f7d88c 50%, #ffffff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(223, 178, 87, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.8);
  color: #040710 !important;
}

.btn-valthera-cyan,
.btn-vargon-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #00d4ff 100%);
  color: #030712 !important;
  border-color: #7dd3fc;
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-valthera-cyan:hover,
.btn-vargon-cyan:hover {
  background: linear-gradient(135deg, #00d4ff 0%, #38bdf8 50%, #ffffff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.7);
  color: #020617 !important;
}

.btn-valthera-outline,
.btn-vargon-outline {
  background: rgba(13, 21, 42, 0.6);
  color: var(--val-gold-primary) !important;
  border-color: var(--val-border-gold-bright);
  backdrop-filter: blur(6px);
}

.btn-valthera-outline:hover,
.btn-vargon-outline:hover {
  background: rgba(223, 178, 87, 0.15);
  color: #ffffff !important;
  border-color: var(--val-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(223, 178, 87, 0.35);
}

.btn-valthera-lg,
.btn-vargon-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

/* Cards & Frames */
.val-card {
  background: var(--val-bg-card);
  border: 1px solid var(--val-border-gold);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: var(--val-shadow-card);
  position: relative;
  transition: var(--val-transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.val-card:hover {
  background: var(--val-bg-card-hover);
  border-color: rgba(223, 178, 87, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 212, 255, 0.15);
}

/* Ornate Corner Accents */
.val-card-ornate::before,
.val-card-ornate::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--val-gold-primary);
  pointer-events: none;
}

.val-card-ornate::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--val-gold-primary);
  border-left: 2px solid var(--val-gold-primary);
}

.val-card-ornate::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--val-gold-primary);
  border-right: 2px solid var(--val-gold-primary);
}

/* Hero Section */
.val-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
  padding-bottom: 70px;
  overflow: hidden;
}

.val-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/backgrounds/hero-banner.png?v=2') center center/cover no-repeat;
  z-index: 1;
  transform: scale(1.02);
  transition: transform 10s ease;
}

.val-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(6, 9, 19, 0.3) 0%, rgba(6, 9, 19, 0.85) 75%, var(--val-bg-main) 100%),
    linear-gradient(180deg, rgba(6, 9, 19, 0.7) 0%, transparent 40%, rgba(6, 9, 19, 0.7) 70%, var(--val-bg-main) 100%);
  z-index: 2;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.val-hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 950px;
}

.val-hero-emblem-wrap {
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.val-hero-emblem {
  width: 210px;
  max-width: 80vw;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 50px rgba(223, 178, 87, 0.4));
  transition: transform 0.4s ease;
}

.val-hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 25, 48, 0.85);
  border: 1px solid var(--val-border-cyan);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-family: var(--val-font-sub);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--val-cyan-bright);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  backdrop-filter: blur(8px);
}

.val-hero-title {
  font-family: var(--val-font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.val-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--val-text-main);
  max-width: 750px;
  margin: 0 auto 2rem auto;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.val-server-specs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.val-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 28, 0.7);
  border: 1px solid var(--val-border-gold);
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-family: var(--val-font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--val-text-pure);
}

.val-spec-item i {
  color: var(--val-gold-primary);
  font-size: 1.1rem;
}

.val-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* Page Header (Subpages) */
.val-page-banner {
  position: relative;
  padding: 140px 0 60px;
  background: url('../images/backgrounds/hero-banner.png?v=2') center top/cover no-repeat;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--val-border-gold);
}

.val-page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.85) 0%, rgba(6, 9, 19, 0.96) 80%, var(--val-bg-main) 100%);
}

.val-page-banner-content {
  position: relative;
  z-index: 2;
}

.val-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--val-font-sub);
  font-size: 0.88rem;
  color: var(--val-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.val-breadcrumbs a {
  color: var(--val-cyan-bright);
}

/* Server Stats Ticker Bar */
.val-stats-bar {
  background: rgba(10, 16, 32, 0.95);
  border-top: 1px solid var(--val-border-gold);
  border-bottom: 1px solid var(--val-border-gold);
  padding: 1.5rem 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 5;
  margin-top: -30px;
}

.val-stat-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(223, 178, 87, 0.2);
}

.val-stat-box:last-child {
  border-right: none;
}

.val-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(223, 178, 87, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
  border: 1px solid var(--val-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--val-gold-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.val-stat-info .val-stat-label {
  font-family: var(--val-font-sub);
  font-size: 0.78rem;
  color: var(--val-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.val-stat-info .val-stat-val {
  font-family: var(--val-font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* Feature Item */
.val-feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 1.75rem;
  text-align: center;
  align-items: center;
}

.val-feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 40, 80, 0.8) 0%, rgba(8, 14, 28, 0.95) 100%);
  border: 2px solid var(--val-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--val-gold-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(223, 178, 87, 0.25);
  transition: var(--val-transition);
}

.val-feature-card:hover .val-feature-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--val-cyan-bright);
  color: var(--val-cyan-bright);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.val-feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.val-feature-desc {
  font-size: 0.92rem;
  color: var(--val-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* News Cards */
.val-news-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.val-news-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #0b1224;
}

.val-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.val-news-card:hover .val-news-thumb img {
  transform: scale(1.08);
}

.val-news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid var(--val-gold-primary);
  color: var(--val-gold-light);
  font-family: var(--val-font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
}

.val-news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.val-news-date {
  font-family: var(--val-font-sub);
  font-size: 0.82rem;
  color: var(--val-cyan-bright);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.val-news-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #fff;
  transition: var(--val-transition);
}

.val-news-card:hover .val-news-title {
  color: var(--val-gold-light);
}

.val-news-excerpt {
  font-size: 0.9rem;
  color: var(--val-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.val-news-link {
  font-family: var(--val-font-sub);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--val-gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.val-news-link:hover {
  color: var(--val-cyan-bright);
  transform: translateX(4px);
}

/* Tables */
.val-table-wrap {
  background: var(--val-bg-card);
  border: 1px solid var(--val-border-gold);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--val-shadow-card);
}

.val-table {
  width: 100%;
  margin-bottom: 0;
  color: var(--val-text-main);
  border-collapse: collapse;
}

.val-table th {
  background: rgba(18, 30, 58, 0.95);
  font-family: var(--val-font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--val-gold-light);
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--val-border-gold);
  vertical-align: middle;
}

.val-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(223, 178, 87, 0.15);
  vertical-align: middle;
  font-size: 0.92rem;
  background: transparent;
}

.val-table tr {
  transition: background 0.2s ease;
}

.val-table tbody tr:hover {
  background: rgba(22, 38, 74, 0.45);
}

.val-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--val-font-title);
  font-size: 0.9rem;
  font-weight: 700;
}

.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  color: #000;
  box-shadow: 0 0 12px rgba(226, 232, 240, 0.5);
}

.rank-3 {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.5);
}

.rank-other {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--val-text-muted);
}

/* Nav Tabs Fantasy */
.val-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--val-border-gold);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.val-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--val-text-muted);
  font-family: var(--val-font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: var(--val-transition);
  white-space: nowrap;
}

.val-tab-btn:hover {
  color: var(--val-gold-light);
  background: rgba(223, 178, 87, 0.08);
}

.val-tab-btn.active {
  background: var(--val-bg-card);
  border-color: var(--val-border-gold) var(--val-border-gold) transparent var(--val-border-gold);
  color: var(--val-gold-primary);
  border-top: 2px solid var(--val-gold-light);
  box-shadow: 0 -4px 15px rgba(223, 178, 87, 0.15);
}

/* Forms */
.val-form-group {
  margin-bottom: 1.5rem;
}

.val-form-label {
  font-family: var(--val-font-sub);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--val-gold-light);
  margin-bottom: 0.5rem;
  display: block;
}

.val-form-control {
  width: 100%;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(223, 178, 87, 0.3);
  border-radius: 4px;
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--val-font-body);
  font-size: 0.95rem;
  transition: var(--val-transition);
}

.val-form-control:focus {
  background: rgba(12, 20, 42, 0.95);
  border-color: var(--val-cyan-bright);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  outline: none;
  color: #fff;
}

.val-form-control::placeholder {
  color: #556987;
}

.val-form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.val-form-check input[type="checkbox"] {
  accent-color: var(--val-gold-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Pagination */
.val-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2.5rem;
}

.val-page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--val-bg-card);
  border: 1px solid var(--val-border-gold);
  border-radius: 4px;
  color: var(--val-text-main);
  font-family: var(--val-font-sub);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--val-transition);
}

.val-page-item:hover,
.val-page-item.active {
  background: var(--val-gold-primary);
  color: #050a17;
  border-color: var(--val-gold-light);
  box-shadow: 0 0 15px rgba(223, 178, 87, 0.5);
}

/* Community Grid */
.val-community-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--val-bg-card);
  border: 1px solid var(--val-border-gold);
  border-radius: 6px;
  transition: var(--val-transition);
}

.val-community-box:hover {
  transform: translateY(-4px);
  border-color: var(--val-cyan-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.2);
}

.val-community-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  flex-shrink: 0;
}

.discord-bg { background: linear-gradient(135deg, #5865F2, #4752C4); }
.facebook-bg { background: linear-gradient(135deg, #1877F2, #0d5cb9); }
.instagram-bg { background: linear-gradient(135deg, #E1306C, #C13584); }
.whatsapp-bg { background: linear-gradient(135deg, #25D366, #128C7E); }
.youtube-bg { background: linear-gradient(135deg, #FF0000, #b20000); }
.telegram-bg { background: linear-gradient(135deg, #229ED9, #0088cc); }

/* Footer */
.val-footer {
  background: var(--val-bg-darker);
  border-top: 1px solid var(--val-border-gold);
  padding: 4.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.val-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--val-cyan-glow), var(--val-gold-primary), var(--val-cyan-glow), transparent);
  box-shadow: 0 0 20px var(--val-cyan-glow);
}

.val-footer-logo {
  height: 85px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 12px rgba(223, 178, 87, 0.4));
}

.val-footer-title {
  font-size: 1.15rem;
  color: var(--val-gold-light);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.val-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--val-cyan-bright);
}

.val-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.val-footer-links a {
  color: var(--val-text-muted);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.val-footer-links a:hover {
  color: var(--val-gold-light);
  transform: translateX(4px);
}

.val-footer-links a i {
  color: var(--val-gold-primary);
  font-size: 0.8rem;
}

.val-disclaimer-box {
  background: rgba(14, 22, 42, 0.5);
  border: 1px solid rgba(223, 178, 87, 0.15);
  padding: 1.25rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #7e8da6;
  line-height: 1.55;
  margin-top: 2rem;
  text-align: center;
}

.val-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--val-text-subtle);
}

/* Back to Top Floating Button */
.val-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--val-bg-card);
  border: 1px solid var(--val-border-gold);
  border-radius: 50%;
  color: var(--val-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--val-transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.val-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.val-back-to-top:hover {
  background: var(--val-gold-primary);
  color: #030611;
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--val-gold-primary);
}

/* Modal Dark Fantasy */
.modal-content.val-modal {
  background: #090e1c;
  border: 1px solid var(--val-border-gold-bright);
  border-radius: 6px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 212, 255, 0.2);
  color: #fff;
}

.val-modal .modal-header {
  border-bottom: 1px solid var(--val-border-gold);
  background: rgba(18, 30, 58, 0.85);
  padding: 1.25rem 1.5rem;
}

.val-modal .modal-footer {
  border-top: 1px solid var(--val-border-gold);
  background: rgba(11, 18, 36, 0.9);
  padding: 1rem 1.5rem;
}

.val-modal .btn-close {
  filter: invert(1);
}

/* ===================================================================
   HIGH CONTRAST & ACCESSIBILITY OVERRIDES
   Ensures ALL text is crystal-clear and readable on dark background
   =================================================================== */

.text-muted,
small,
.small {
  color: #d1d5db !important;
}

.val-form-label {
  color: #fcd34d !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

.val-form-control {
  background: #0d1527 !important;
  border: 1px solid #d97706 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.val-form-control::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.val-section-subtitle {
  color: #38bdf8 !important;
  font-weight: 600 !important;
}

.text-cyan {
  color: #38bdf8 !important;
}

.val-card {
  background: rgba(11, 19, 38, 0.92) !important;
  border: 1px solid rgba(223, 178, 87, 0.4) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85) !important;
}

