/* Modern Mystical Design - Purple Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #667eea;
  --secondary-purple: #764ba2;
  --accent-purple: #9333ea;
  --dark-purple: #4c1d95;
  --mystic-glow: rgba(147, 51, 234, 0.4);
  --background-dark: #0f0f23;
  --background-secondary: #1a1a2e;
  --background-tertiary: #16213e;
  --text-primary: #e6e6fa;
  --text-secondary: #b0b0d0;
  --card-bg: rgba(15, 15, 35, 0.6);
  --border-color: rgba(102, 126, 234, 0.3);
  
  /* Enhanced Typography System */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Enhanced shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Mystical glows */
  --glow-purple: 0 0 20px rgba(147, 51, 234, 0.4);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
  --glow-green: 0 0 20px rgba(34, 197, 94, 0.4);
}

body {
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 50%, var(--background-tertiary) 100%);
  background-image: url('../images/background/Backgroundxx.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: overlay;
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding-top: 0; /* Remove fixed padding, let flexbox handle spacing */
  display: flex;
  flex-direction: column;
}

.carousel-item {
    opacity: 0;
    transform: scale(0.98) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.rank-avatar img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .rank-avatar img:hover {
        transform: scale(1.1);
    }

.feature-card-info {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

    .feature-card-info:hover {
        transform: translateY(-6px) rotateX(2deg) rotateY(2deg) scale(1.02);
        box-shadow: 0 12px 24px rgba(216, 70, 198, 0.3);
    }

@keyframes cardBounceBack {
    0% {
        transform: translateY(-6px);
    }

    40% {
        transform: translateY(2px);
    }

    70% {
        transform: translateY(-1px);
    }

    100% {
        transform: translateY(0);
    }
}

.feature-card-info:active {
    animation: cardBounceBack 0.4s ease-out;
}

.carousel-item .content-box {
    height: 250px; /* Adjust this value to control the height */
    background: linear-gradient(135deg, #2e2d30, #1c1b1e); /* Gradient background */
    padding: 50px;
    color: white;
    border-radius: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4); /* Subtle shadow */
    text-align: center;
    transition: transform 0.3s ease;
    display: flex; /* Add flex display */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

@media (max-width: 768px) {
    #carouselExampleIndicators {
        max-height: 1850px; /* Smaller height for mobile */
    }

    .carousel-item .content-box {
        height: auto; /* Allow content box to grow with content */
        padding: 20px; /* Adjust padding for mobile */
        display: flex; /* Flexbox layout */
        flex-direction: column; /* Stack elements vertically */
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
    }
}

.new-badge {
    background-color: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 10px 0;
    display: inline-block;
    text-transform: uppercase;
}

.read-btn {
    text-decoration: none;
    background-color: #d846c6;
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

    .read-btn:hover {
        background-color: #b236a5;
    }

    .read-btn i {
        margin-left: 8px;
        font-size: 1rem;
    }

.eye-icon {
    margin-left: 5px;
    font-size: 18px;
}

.carousel-indicators button {
    background-color: #d846c6;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}


/* Media query for mobile devices */
@media (max-width: 768px) {
  body {
    background-image: url('../images/background/Backgroundxx.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding-top: 50px;
  }
  
  .hero-section {
    padding: 4rem 1rem 2rem;
    margin: 1rem;
    min-height: auto;
  }
  
  .hero-main-row {
    min-height: 50vh;
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stats-section {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 2rem 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .discord-features .feature-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .discord-features .feature-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
  }
}


/*PS-Logo*/
.ps-logo {
    margin-top: 1cm;
    text-align: center;
}

/*Info*/
.index-info {
    margin-top: -0.2cm;
    max-width: 850px;
    background: linear-gradient(135deg, #2e2d30, #1c1b1e); /* Gradient background */
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    color: white;
}

/*Rank*/
.rank-table-head {
    height: 10vh;
    vertical-align: middle !important;
}

.rank-info {
    padding: 45px;
    margin-top: -0.2cm;
    background-color: #262634;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    color: white;
}



.navbar-toggler-icon {
    filter: invert(1);
}

/* Modern Navbar Styles */
.navbar-bg {
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-item {
  color: var(--text-primary) !important;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-purple) !important;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Header & Navigation Styles */
.topbar {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: relative; /* Changed from fixed to relative for flexbox layout */
  z-index: 1030;
  padding: 0.75rem 0;
}

.hot-weekend-container {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple)) !important;
  border: 1px solid var(--mystic-glow);
  box-shadow: 0 0 20px var(--mystic-glow);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--text-primary) !important;
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 15s linear infinite;
  padding-left: 100%;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hot-weekend-container:hover .marquee-text {
  animation-play-state: paused;
}

.discord-rectangle-parent {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.discord-rectangle-parent:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px var(--mystic-glow);
}

.logo-section {
  background: rgba(15, 15, 35, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.hero-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 0 20px var(--mystic-glow));
}

.navbar-bg {
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-item {
  color: var(--text-primary) !important;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-purple) !important;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

/* Nav divider between sections */
.nav-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--border-color), transparent);
  opacity: 0.6;
}

/* Active nav link indicator */
.navbar-item.active,
.nav-link.navbar-item.active {
  color: var(--primary-purple) !important;
  background: rgba(102, 126, 234, 0.12);
  position: relative;
}

.navbar-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--primary-purple));
  border-radius: 2px;
}

/* Responsive fixes for navigation */
@media (max-width: 767px) {
  .hot-weekend-container {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .hero-logo {
    max-width: 250px;
  }
  
  .navbar-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
}

/* Dropdown Menu Fixes for Proper Z-Index and Visibility */
.navbar .dropdown-menu {
  z-index: 1050 !important;
  position: absolute !important;
  background: rgba(15, 15, 35, 0.98) !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15) !important;
  backdrop-filter: blur(15px) !important;
  margin-top: 0.5rem !important;
  min-width: 180px !important;
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--text-primary) !important;
  background: transparent !important;
  padding: 0.75rem 1.25rem !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  margin: 0.25rem !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  color: #fff !important;
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--primary-purple) 100%) !important;
  transform: translateX(3px) !important;
}

.navbar .dropdown {
  position: relative !important;
}

.navbar .nav-item.dropdown {
  z-index: 1050 !important;
}

/* Ensure proper stacking context for the entire navigation */
.navbar-bg,
.navbar {
  z-index: 1040 !important;
  position: relative !important;
}

/* Hero Section */
.hero-section {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.8), rgba(26, 26, 46, 0.8));
  border-radius: 20px;
  margin: 2rem;
  border: 1px solid var(--border-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero main content row - takes up available space and centers content */
.hero-main-row {
  min-height: 70vh;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure hero content is properly aligned */
.hero-content {
  text-align: left;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px var(--mystic-glow);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-right: auto;
}

/* Button Styles */
.btn-mystical {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-mystical:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--mystic-glow);
  color: white;
}

.btn-mystical-outline {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-mystical-outline:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
}

/* Stats Cards */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: 0 10px 30px var(--mystic-glow);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Features Section */
.index-features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
  margin-bottom: 2rem;
}

.feature-card-info:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary-purple);
  box-shadow: 0 12px 24px var(--mystic-glow);
}

.feature-card-info .card-body {
  padding: 2rem;
}

.feature-card-info .title {
  color: var(--primary-purple);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card-info .description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Rankings Section */
.rank-info {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.select-job-image-base {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1rem;
  margin: 1rem auto;
  width: 100%;
  max-width: 1200px; /* Added max-width to prevent overflow */
  backdrop-filter: blur(10px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ranking-title {
  color: var(--primary-purple);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  width: 100%;
}

.job-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.job-filter-btn {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  min-width: 80px;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
  flex-grow: 0;
  flex-shrink: 0;
  text-align: center;
}

.job-filter-btn:hover {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--mystic-glow);
}

.job-filter-text {
  white-space: nowrap;
}

.job-filter-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
  transition: all 0.3s ease;
}

.job-filter-btn:hover .job-filter-icon {
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  transform: scale(1.1);
}

/* Ranking Table Styles */
.rank-info {
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.ranking-table {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  margin-bottom: 0;
}

.rank-table-head {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
}

.rank-table-head th {
  color: white;
  font-weight: 600;
  border: none;
  padding: 1.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.ranking-row {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background: rgba(15, 15, 35, 0.4);
}

.ranking-row:nth-child(odd) {
  background: rgba(102, 126, 234, 0.05);
}

.ranking-row:nth-child(even) {
  background: rgba(118, 75, 162, 0.05);
}

.ranking-row:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.ranking-row td {
  color: var(--text-primary);
  border: none;
  padding: 1.5rem 1rem;
  vertical-align: middle;
}

/* Rank Column */
.rank-col {
  width: 100px;
  text-align: center;
}

.medal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  margin: 0 auto;
}

/* Font Awesome rank medals override old image styles */
.rank-medal {
  height: auto !important;
  width: auto !important;
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px var(--mystic-glow));
  animation: pulse-medal 2s infinite;
  transition: all 0.3s ease;
}

.rank-medal-small {
  height: auto !important;
  width: auto !important;
  font-size: 2rem;
  filter: drop-shadow(0 0 8px var(--mystic-glow));
  transition: all 0.3s ease;
}

.rank-number-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 50%;
  margin: 0 auto;
}

.rank-number {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

/* Player Info */
.name-col {
  min-width: 150px;
}

.player-info {
  text-align: left;
}

.player-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.player-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.online-indicator {
  color: #43b883;
  animation: pulse-online 2s infinite;
  font-size: 0.8rem;
}

.offline-indicator {
  color: #e74c3c;
  font-size: 0.8rem;
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@keyframes pulse-online {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Class Info */
.class-col {
  min-width: 120px;
}

.class-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.job-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Job Icon Images */
.job-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
  transition: all 0.3s ease;
}

.job-icon-img:hover {
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 5px rgba(147, 51, 234, 0.5));
  transform: scale(1.1);
}

.job-icon-img-small {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

/* Reborns Column */
.reborns-col {
  min-width: 100px;
}

.reborns-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.reborn-icon {
  color: var(--accent-purple);
  font-size: 1rem;
  filter: drop-shadow(0 0 5px var(--mystic-glow));
}

.reborns-number {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-purple);
  text-shadow: 0 0 10px var(--mystic-glow);
}

/* Level Column */
.level-col {
  min-width: 80px;
}

.level-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-purple);
}

.mobile-class {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}

.job-name-small {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mobile-reborns {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}

.reborns-small {
  font-size: 0.7rem;
  color: var(--accent-purple);
  font-weight: 600;
}

/* Guild Info */
.guild-col {
  min-width: 120px;
}

.guild-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.guild-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  object-fit: contain;
  transition: all 0.3s ease;
}

.guild-icon:hover {
  filter: drop-shadow(0 2px 5px rgba(147, 51, 234, 0.4));
  transform: scale(1.1);
}

.guild-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive Design for Rankings */
@media (max-width: 991px) {
  .ranking-title {
    font-size: 1.5rem;
  }
    .job-filters {
    gap: 0.5rem;
    max-width: 100%;
  }
  
  .job-filter-btn {
    padding: 0.5rem;
    min-width: 60px;
    font-size: 0.8rem;
  }
  
  .rank-table-head th {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .ranking-row td {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 767px) {
  .ranking-container {
    padding: 1rem 0;
  }
  
  .select-job-image-base {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .ranking-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .job-filters {
    gap: 0.25rem;
  }
  
  .job-filter-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .rank-table-head th {
    padding: 0.75rem 0.25rem;
    font-size: 0.7rem;
  }
  
  .ranking-row td {
    padding: 0.75rem 0.25rem;
  }
  
  .rank-medal {
    height: 35px;
    width: 35px;
  }
  
  .rank-medal-small {
    height: 30px;
    width: 30px;
  }
  
  .rank-number-container {
    width: 30px;
    height: 30px;
  }
  
  .rank-number {
    font-size: 0.9rem;
  }
  
  .player-name {
    font-size: 1rem;
  }
  
  .level-number {
    font-size: 1rem;
  }
    .mobile-class {
    margin-top: 0.125rem;
  }
  
  .reborns-number {
    font-size: 1rem;
  }
  
  .reborns-small {
    font-size: 0.6rem;
  }
}

@media (max-width: 575px) {
  .rank-table-head th,
  .ranking-row td {
    padding: 0.5rem 0.125rem;
  }
  
  .player-name {
    font-size: 0.9rem;
  }
  
  .level-number {
    font-size: 0.9rem;
  }
    .job-name-small {
    font-size: 0.6rem;
  }
  
  .reborns-small {
    font-size: 0.55rem;
  }
  
  .mobile-reborns {
    margin-top: 0.1rem;
  }
}

/* Discord Section */
.discord-section {
  background: var(--background-secondary);
  position: relative;
  overflow: hidden;
}

.discord-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.discord-info {
  position: relative;
  z-index: 2;
}

.discord-features .feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.discord-features .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--mystic-glow);
}

.discord-features .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.discord-features .feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.discord-features .feature-content h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.discord-features .feature-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-discord:hover {
  background: linear-gradient(135deg, #4752c4, #3c45a5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
  color: white;
}

.discord-widget-container {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  position: relative;
}

.widget-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
}

.server-info {
  display: flex;
  align-items: center;
}

.server-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.server-icon i {
  font-size: 1.5rem;
  color: white;
}

.server-details h5 {
  color: white;
  margin: 0;
  font-weight: 600;
}

.server-status {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot.online {
  background: #43b883;
  box-shadow: 0 0 10px rgba(67, 184, 131, 0.5);
}

.discord-iframe {
  width: 100%;
  height: 400px;
  border: none;
  background: transparent;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--dark-purple) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.cta-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px var(--mystic-glow);
  animation: pulse 2s infinite;
}

.cta-icon i {
  font-size: 2.5rem;
  color: white;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.cta-actions {
  margin-top: 2rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px var(--mystic-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px var(--mystic-glow);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px var(--mystic-glow);
  }
}

/* Header Wrapper - Contains all header elements */
.header-wrapper {
  flex-shrink: 0; /* Prevent header from shrinking */
}

/* Content Wrapper for Sticky Footer */
.content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1; /* Take remaining space */
  min-height: 0; /* Allow flexbox to work properly */
}

/* Main Content Layout */
.main-content {
  flex: 1;
  padding-bottom: 3rem;
}

/* ============================================
   ENHANCED MODERN FEATURE CARDS
   Mystical Gaming Theme with Advanced Effects
   ============================================ */

.features-grid {
  margin-top: 2rem;
  perspective: 1000px;
}

/* Main Feature Card */
.feature-card {
  background: linear-gradient(
    145deg,
    rgba(15, 15, 35, 0.8) 0%,
    rgba(26, 26, 46, 0.6) 50%,
    rgba(22, 33, 62, 0.7) 100%
  );
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* 3D Transform Properties */
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  /* Animated gradient border */
  background-clip: padding-box;
  /* Initial state for scroll animation */
  opacity: 0;
  animation: featureCardEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animated Gradient Border */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(
    var(--gradient-angle, 0deg),
    var(--primary-purple),
    var(--accent-purple),
    #ec4899,
    var(--primary-purple)
  );  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Shine Sweep Effect */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(147, 51, 234, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.feature-card:hover::after {
  transform: translateX(100%) rotate(45deg);
}

/* Card Hover Effects */
.feature-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.05) translateY(-15px);
  box-shadow: 
    0 25px 50px rgba(147, 51, 234, 0.4),
    0 0 100px rgba(147, 51, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover .feature-glow {
  opacity: 1;
  transform: scale(1.2);
}

/* Floating Icon Wrapper */
.feature-icon-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Icon Ring Effect */
.feature-icon-wrapper::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Feature Icon */
.feature-icon {
  max-width: 80px;
  max-height: 80px;
  border-radius: 18px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 8px 20px rgba(147, 51, 234, 0.4));
  animation: iconFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(-4px) rotate(-2deg); }
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg) translateY(-5px);
  filter: drop-shadow(0 15px 35px rgba(147, 51, 234, 0.6));
  animation: none;
}

/* Feature Content */
.feature-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

/* Feature Title with Gradient */
.feature-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  background: linear-gradient(135deg, #fff 0%, #e6e6fa 50%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-title {
  background: linear-gradient(135deg, #fff 0%, var(--primary-purple) 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Feature Description */
.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
  color: var(--text-primary);
}

.feature-description p {
  margin: 0;
}

/* Enhanced Glow Effect */
.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%) scale(0.8);
  background: radial-gradient(
    ellipse at center,
    rgba(147, 51, 234, 0.15) 0%,
    rgba(102, 126, 234, 0.1) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

/* Corner Sparkles */
.feature-card .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 10px 2px rgba(147, 51, 234, 0.8);
  z-index: 4;
}

.feature-card .sparkle-1 { top: 15px; right: 15px; animation: sparkleFloat 2s ease-in-out infinite; }
.feature-card .sparkle-2 { bottom: 15px; left: 15px; animation: sparkleFloat 2s ease-in-out infinite 0.5s; }
.feature-card .sparkle-3 { top: 50%; right: 10px; animation: sparkleFloat 2s ease-in-out infinite 1s; }
.feature-card .sparkle-4 { bottom: 30%; left: 10px; animation: sparkleFloat 2s ease-in-out infinite 1.5s; }

.feature-card:hover .sparkle {
  opacity: 1;
}

@keyframes sparkleFloat {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.6; }
  50% { transform: scale(1.5) translateY(-5px); opacity: 1; }
}

/* Background Pattern (subtle grid) */
.feature-card .card-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(147, 51, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
  border-radius: 24px;
}

.feature-card:hover .card-pattern {
  opacity: 1;
}

/* Entrance Animation */
@keyframes featureCardEntrance {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
  }
}

/* Staggered Animation Delays */
.col-lg-4:nth-child(1) .feature-card { animation-delay: 0.1s; }
.col-lg-4:nth-child(2) .feature-card { animation-delay: 0.2s; }
.col-lg-4:nth-child(3) .feature-card { animation-delay: 0.3s; }
.col-lg-4:nth-child(4) .feature-card { animation-delay: 0.4s; }
.col-lg-4:nth-child(5) .feature-card { animation-delay: 0.5s; }
.col-lg-4:nth-child(6) .feature-card { animation-delay: 0.6s; }
.col-lg-4:nth-child(7) .feature-card { animation-delay: 0.7s; }
.col-lg-4:nth-child(8) .feature-card { animation-delay: 0.8s; }
.col-lg-4:nth-child(9) .feature-card { animation-delay: 0.9s; }

/* Active/Click Effect */
.feature-card:active {
  transform: perspective(1000px) scale(0.98);
  transition: transform 0.1s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 20px;
  }
  
  .feature-card::before {
    border-radius: 20px;
  }
  
  .feature-icon {
    max-width: 65px;
    max-height: 65px;
  }
  
  .feature-icon-wrapper::before {
    width: 85px;
    height: 85px;
  }
  
  .feature-title {
    font-size: 1.15rem;
  }
}

/* Enhanced Cell-specific Styling for Index Page Rankings */
.player-cell {
  text-align: left !important;
}

.rank-cell {
  text-align: center !important;
}

.class-cell {
  text-align: center !important;
}

.level-cell {
  text-align: center !important;
}

.guild-cell {
  text-align: center !important;
}

/* Section headers and badges */
.section-header {
  position: relative;
  z-index: 2;
}

.section-badge {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.section-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(147, 51, 234, 0.3);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced table frame and full width styling */
.rankings-section .table-responsive {
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary-purple), var(--secondary-purple)) border-box;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
}

/* Ensure full container width utilization for Index page Hall of Fame */
.rankings-section .container-fluid {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

.rankings-section .rankings-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Ensure full container width utilization */
.rankings-section .container {
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 1200px) {
  .rankings-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 992px) {
  .rankings-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .rankings-section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Enhanced Full Rankings Page Styling */
.ranking-container {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.8), rgba(26, 26, 46, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  max-width: none;
  width: 100%;
}

.ranking-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced Job Filter Section */
.select-job-image-base {
  position: relative;
  z-index: 2;
  background: var(--card-bg) !important;
  border: 2px solid var(--primary-purple);
  border-radius: 20px;
  padding: 2rem;
  margin: 0 auto 2rem auto; /* Added auto for left/right margins to center */
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Added max-width to prevent overflow */
}

/* Full width table container for Rankings page */
.rank-info {
  position: relative;
  z-index: 2;
  padding: 0 2rem 2rem 2rem;
  width: 100%;
  max-width: none;
}

.rank-info .container-fluid {
  padding: 0;
  max-width: none;
  width: 100%;
}

.rank-info .table-responsive {
  border: 3px solid transparent;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(135deg, var(--primary-purple), var(--secondary-purple)) border-box;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(147, 51, 234, 0.4);
  margin: 0;
}

/* Enhanced ranking table for full page */
.rank-info .ranking-table {
  width: 100%;
  margin: 0;
  border-radius: 0; /* Remove individual border radius as it's handled by container */
  border: none;
  backdrop-filter: blur(15px);
}

/* Ensure proper spacing and layout */
@media (min-width: 1400px) {
  .ranking-container {
    margin: 2rem 1rem;
  }
  
  .rank-info {
    padding: 0 3rem 3rem 3rem;
  }
}

@media (max-width: 1200px) {
  .rank-info {
    padding: 0 1.5rem 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .ranking-container {
    margin: 1rem 0.5rem;
    border-radius: 15px;
  }
  
  .select-job-image-base {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .rank-info {
    padding: 0 1rem 1.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .ranking-container {
    margin: 0.5rem 0.25rem;
  }
  
  .rank-info {
    padding: 0 0.5rem 1rem 0.5rem;
  }
  
  .select-job-image-base {
    padding: 1rem;
  }
}

/* Enhance the gradient border effect */
.rankings-section .table-responsive,
.rank-info .table-responsive {
  background: 
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, 
      var(--primary-purple) 0%, 
      var(--secondary-purple) 25%, 
      var(--primary-purple) 50%, 
      #9333ea 75%, 
      var(--secondary-purple) 100%
    ) border-box;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hall of Fame Full Width Fix - Global styles for both Index and Rankings pages */

/* Index page specific rankings section full width */
.rankings-section {
  padding: 4rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: 100vw;
  position: relative;
}

.rankings-section .container-fluid {
  max-width: 100%;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Rankings table styling for Index page */
.rankings-section .rankings-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
  width: 100%;
  margin: 0;
}

.rankings-section .rankings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.rankings-section .rankings-header h3 {
  color: var(--primary-purple);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rankings-section .table-responsive {
  border: 2px solid transparent;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(135deg, var(--primary-purple), var(--secondary-purple)) border-box;
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
}

.rankings-section .rankings-table {
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
}

.rankings-section .rankings-table thead th {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.rankings-section .rankings-table tbody tr {
  background: rgba(15, 15, 35, 0.6);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.rankings-section .rankings-table tbody tr:nth-child(odd) {
  background: rgba(102, 126, 234, 0.05);
}

.rankings-section .rankings-table tbody tr:nth-child(even) {
  background: rgba(118, 75, 162, 0.05);
}

.rankings-section .rankings-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.rankings-section .rankings-table tbody td {
  color: var(--text-primary);
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

/* Rankings page container fixes for full width */
body:has(.ranking-container) .main-content {
  padding: 0;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: 100vw;
}

/* Full page rankings container */
.ranking-container .container-fluid {
  max-width: 100%;
  padding: 0;
  width: 100%;
}

/* Enhanced responsive design for both pages */
@media (max-width: 1400px) {
  .rankings-section .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 1200px) {
  .rankings-section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .rankings-section .rankings-container {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .rankings-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .ranking-container {
    margin: 1rem 0.5rem;
    border-radius: 15px;
  }
  
  .select-job-image-base {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .rank-info {
    padding: 0 1rem 1.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .ranking-container {
    margin: 0.5rem 0.25rem;
  }
  
  .rank-info {
    padding: 0 0.5rem 1rem 0.5rem;
  }
  
  .select-job-image-base {
    padding: 1rem;
  }
}

/* Tablet responsive design for hero section */
@media (max-width: 992px) {
  .hero-main-row {
    min-height: 60vh;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    align-items: center;
  }
  
  .hero-visual {
    justify-content: center;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* ===== MODERN FONT AWESOME RANKING ICONS ===== */

/* Rank Medal Icons */
.rank-medal, .rank-medal-small {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 8px var(--mystic-glow));
  animation: pulse-medal 2s infinite;
  transition: all 0.3s ease;
}

.rank-medal-small {
  font-size: 2rem;
}

.rank-medal:hover, .rank-medal-small:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--mystic-glow)) brightness(1.1);
}

/* Rank-specific colors */
.rank-1st {
  color: #FFD700; /* Gold */
  text-shadow: 0 0 10px #FFD700;
}

.rank-2nd {
  color: #C0C0C0; /* Silver */
  text-shadow: 0 0 10px #C0C0C0;
}

.rank-3rd {
  color: #CD7F32; /* Bronze */
  text-shadow: 0 0 10px #CD7F32;
}

.rank-top5 {
  color: var(--primary-purple);
  text-shadow: 0 0 10px var(--primary-purple);
}

/* Enhanced online/offline indicators */
.online-indicator {
  color: #43b883;
  text-shadow: 0 0 10px rgba(67, 184, 131, 0.5);
  animation: pulse-glow 2s infinite;
}

.offline-indicator {
  color: #e74c3c;
  opacity: 0.7;
}

@keyframes pulse-glow {
  0% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(67, 184, 131, 0.5);
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 15px rgba(67, 184, 131, 0.8);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(67, 184, 131, 0.5);
  }
}

/* Footer positioning fix for full-width content */
.footer {
  margin-top: auto !important;
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

/* Content wrapper adjustments for full-width pages */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* Rankings section Font Awesome overrides for consistency */
.rankings-section .rank-medal,
.rankings-section .rank-medal-small {
  height: auto !important;
  width: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.rankings-section .rank-medal {
  font-size: 2.5rem;
}

.rankings-section .rank-medal-small {
  font-size: 2rem;
}

.rankings-section .job-icon {
  font-size: 1.2rem;
}

/* Mobile responsiveness for new icons */
@media (max-width: 768px) {
  .rankings-section .rank-medal {
    font-size: 2rem;
  }
  
  .rankings-section .rank-medal-small {
    font-size: 1.5rem;
  }
  
  .rankings-section .job-icon {
    font-size: 1rem;
  }
}

/* Index page Hall of Fame specific medal and ranking enhancements */
.rankings-section .medal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.rankings-section .rank-medal {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 0 8px var(--mystic-glow));
  animation: pulse-medal 2s infinite;
  transition: transform 0.3s ease;
}

.rankings-section .rank-medal:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--mystic-glow)) brightness(1.1);
}

.rankings-section .rank-medal-small:hover {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 0 10px var(--mystic-glow)) brightness(1.1);
}

.rankings-section .rank-number-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 50%;
  margin: 0 auto;
}

.rankings-section .rank-number {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

@keyframes pulse-medal {
  0% {
    filter: drop-shadow(0 0 8px var(--mystic-glow));
  }
  50% {
    filter: drop-shadow(0 0 12px var(--mystic-glow)) brightness(1.1);
  }
  100% {
    filter: drop-shadow(0 0 8px var(--mystic-glow));
  }
}

/* Class info styling for Index page */
.rankings-section .class-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rankings-section .job-icon {
  border-radius: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.rankings-section .job-icon:hover {
  transform: scale(1.1);
}

.rankings-section .job-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Guild info styling for Index page */
.rankings-section .guild-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.rankings-section .guild-icon {
  border-radius: 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.rankings-section .guild-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Enhanced player status indicators for Index page */
.rankings-section .player-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Server Status Card Styling */
.server-status-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.server-status-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: 0 20px 50px rgba(147, 51, 234, 0.4);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse-status 2s infinite;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.status-indicator.online {
  background-color: #43b883;
  color: #43b883;
  box-shadow: 0 0 15px rgba(67, 184, 131, 0.6);
}

.status-indicator.offline {
  background-color: #e74c3c;
  color: #e74c3c;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

@keyframes pulse-status {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.server-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 500;
}

.info-row span:first-child {
  color: var(--text-secondary);
  font-weight: 400;
}

.info-row span:last-child {
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.0);
}

/* Rates Breakdown Styling */
.rates-breakdown {
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.85rem;
}

.rate-item span:first-child {
  color: var(--text-secondary);
  font-weight: 400;
}

.rate-item span:last-child {
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
}

/* Color coding for different rate levels */
.text-success {
  color: #43b883 !important;
  background: rgba(67, 184, 131, 0.1) !important;
}

.text-warning {
  color: #f39c12 !important;
  background: rgba(243, 156, 18, 0.1) !important;
}

.text-danger {
  color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.1) !important;
}

.text-primary {
  color: var(--primary-purple) !important;
}

/* Server status text styling */
#serverStatusText {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive design for server status card */
@media (max-width: 768px) {
  .server-status-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .rates-breakdown {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .rate-item {
    font-size: 0.8rem;
  }
  
  .status-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 576px) {
  .server-status-card {
    padding: 1rem;
    border-radius: 15px;
  }
  
  .info-row {
    padding: 0.25rem 0;
    font-size: 0.9rem;
  }
  
  .rate-item {
    font-size: 0.75rem;
  }
}

/* BETA Release Countdown Styling */
.beta-countdown-container {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 69, 0, 0.1));
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 20px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2);
}

.beta-countdown-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 69, 0, 0.3));
  border-radius: 18px;
  z-index: -1;
  animation: countdown-glow 3s ease-in-out infinite alternate;
}

@keyframes countdown-glow {
  0% {
    opacity: 0.3;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.4);
  }
  100% {
    opacity: 0.5;
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.6);
  }
}

.countdown-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.countdown-badge {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  animation: pulse-beta 2s infinite;
}

@keyframes pulse-beta {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  }
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.countdown-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1rem 0.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.countdown-number {
  font-size: 2rem;
  font-weight: bold;
  color: #FF6B35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.countdown-date {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Responsive countdown styles */
@media (max-width: 768px) {
  .beta-countdown-container {
    padding: 1.25rem;
    margin: 1rem 0;
    border-radius: 15px;
  }
  
  .countdown-timer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .countdown-item {
    padding: 0.75rem 0.5rem;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.75rem;
  }
  
  .countdown-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .voting-alert-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .voting-detail {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .beta-countdown-container {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  .countdown-timer {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
  
  .countdown-item {
    padding: 0.5rem 0.2rem;
  }
  
  .countdown-number {
    font-size: 1.1rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
  
  .countdown-date {
    font-size: 0.8rem;
  }
  
  .countdown-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .voting-alert-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .voting-detail {
    font-size: 0.7rem;
  }
}

/* Pre-Voting Indicators Styling */
.pre-voting-indicators {
  margin-top: 1.5rem;
}

.voting-alert-container {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.voting-alert-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  animation: voting-shimmer 3s infinite;
}

@keyframes voting-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.voting-alert-badge {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.voting-alert-badge.blinking {
  animation: voting-blink 1.5s infinite;
}

@keyframes voting-blink {
  0%, 50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  }
  25% {
    opacity: 0.7;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  }
  75% {
    opacity: 0.9;
    transform: scale(0.98);
  }
}

.voting-text {
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.voting-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.voting-detail {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.voting-detail i {
  color: #22c55e;
  font-size: 0.8rem;
}

/* Responsive pre-voting styles */
@media (max-width: 768px) {
  .pre-voting-indicators {
    margin-top: 1rem;
  }
  
  .voting-alert-container {
    padding: 0.75rem;
  }
  
  .voting-alert-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .voting-info {
    gap: 0.75rem;
  }
  
  .voting-detail {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .voting-info {
    flex-direction: column;
    gap: 0.5rem;
  }
    .voting-detail {
    justify-content: center;
  }
}

/* Pre-Voting Announcement Modal Styles */
.pre-voting-modal {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(26, 26, 46, 0.95));
  border: 2px solid var(--primary-purple);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(147, 51, 234, 0.4);
  color: var(--text-primary);
}

.pre-voting-modal .modal-header {
  padding: 2rem 2rem 1rem 2rem;
  position: relative;
}

.pre-voting-announcement-badge {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  animation: announcement-pulse 2s infinite;
  margin: 0 auto;
}

@keyframes announcement-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  }
}

.pre-voting-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
  animation: voting-icon-pulse 3s infinite;
}

.pre-voting-icon i {
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes voting-icon-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
  }
}

.pre-voting-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-text {
  color: #22c55e;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.live-text.blinking {
  animation: live-text-blink 1.5s infinite;
}

@keyframes live-text-blink {
  0%, 50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
  }
  25% {
    opacity: 0.7;
    text-shadow: 0 0 25px rgba(34, 197, 94, 0.8);
  }
  75% {
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
  }
}

.pre-voting-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.voting-benefits {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.benefit-icon i {
  font-size: 1.5rem;
  color: white;
}

.benefit-text strong {
  color: var(--text-primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.benefit-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.countdown-reminder {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 69, 0, 0.15));
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
}

.countdown-text {
  color: #FF6B35;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-actions {
  margin: 2rem 0 1rem 0;
}

.modal-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.modal-actions .btn-success {
  background: linear-gradient(135deg, #22c55e, #10b981);
  border: none;
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.modal-actions .btn-success:hover {
  background: linear-gradient(135deg, #16a34a, #059669);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

.modal-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-secondary);
}

.modal-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.modal-footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Responsive modal styles */
@media (max-width: 768px) {
  .pre-voting-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }
  
  .pre-voting-modal .modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .pre-voting-announcement-badge {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .pre-voting-icon {
    width: 80px;
    height: 80px;
  }
  
  .pre-voting-icon i {
    font-size: 2.5rem;
  }
  
  .pre-voting-title {
    font-size: 2rem;
  }
  
  .pre-voting-description {
    font-size: 1.1rem;
  }
  
  .voting-benefits {
    padding: 1.5rem;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
  }
  
  .benefit-icon i {
    font-size: 1.25rem;
  }
  
  .modal-actions .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .modal-actions .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .pre-voting-title {
    font-size: 1.75rem;
  }
  
  .countdown-text {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .voting-benefits {
    padding: 1rem;
  }
}

/* ===== NEWS CARDS STYLING ===== */
.news-section {
  padding: 2rem 0;
}






.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
}

.news-card:hover::before {
  opacity: 1;
}

.news-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-date i {
  color: var(--primary-purple);
}

.news-badge {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: pulse-news 2s infinite;
}

@keyframes pulse-news {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  }
}

.news-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-description {
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
  font-size: 0.95rem;
}

/* Donation Modal Styles */
.donation-coin-image {
  max-width: 280px;
  max-height: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 6px 15px rgba(147, 51, 234, 0.4));
  transition: all 0.3s ease;
}

.donation-coin-image:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 25px rgba(147, 51, 234, 0.6));
}

.package-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  margin-bottom: 1rem;
}

/* Mystical Purple Gradient Buttons for Donation Modal */
#donationModal .btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple), var(--accent-purple));
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

#donationModal .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-purple), var(--dark-purple));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
  color: white;
}

#donationModal .btn-primary:focus,
#donationModal .btn-primary:active {
  background: linear-gradient(135deg, var(--dark-purple), var(--accent-purple), var(--primary-purple));
  box-shadow: 0 0 0 0.25rem rgba(147, 51, 234, 0.4);
  color: white;
}

/* Add mystical glow effect to donation buttons */
#donationModal .btn-primary::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;
}

#donationModal .btn-primary:hover::before {
  left: 100%;
}

/* Responsive donation images */
@media (max-width: 768px) {
  .donation-coin-image {
    max-width: 220px;
    max-height: 160px;
  }
  
  .package-image {
    min-height: 180px;
  }
}

@media (max-width: 576px) {
  .donation-coin-image {
    max-width: 180px;
    max-height: 130px;
  }
  
  .package-image {
    min-height: 150px;
  }
}

/* Ultimate Explorer (UA) Badge Styles */
.ua-star {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  animation: ua-glow 2s ease-in-out infinite alternate;
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

.ua-badge {
  display: inline-block;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes ua-glow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

/* Mobile responsive adjustments for UA badge */
@media (max-width: 768px) {
  .ua-star {
    font-size: 0.8rem;
    margin-left: 0.15rem;
  }
  
  .ua-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    margin-left: 0.15rem;
  }
}

@media (max-width: 575px) {
  .ua-star {
    font-size: 0.7rem;
    margin-left: 0.1rem;
  }
    .ua-badge {
    font-size: 0.55rem;
    padding: 0.05rem 0.25rem;
    margin-left: 0.1rem;
  }
}

/* Rebirth text animation */
.rebirth-text-animated {
  font-size: 0.75em;
  font-weight: bold;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffa500, #ffd700);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldenBreath 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes goldenBreath {
  0% {
    background-position: 0% 50%;
    filter: brightness(1) drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1) drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
  }
}

/* ===== TOP HERO COUNTDOWN STYLING ===== */
/* Special styling for countdown when positioned at the top of hero section */
.hero-section .beta-countdown-container:first-of-type {
  margin-top: 0;
  margin-bottom: 3rem;
  border: 3px solid rgba(255, 165, 0, 0.5);
  box-shadow: 0 15px 40px rgba(255, 165, 0, 0.25);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 10;
}

.hero-section .beta-countdown-container:first-of-type::before {
  opacity: 0.4;
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.6);
}

/* Enhanced visibility and prominence for top countdown */
@media (min-width: 768px) {
  .hero-section .beta-countdown-container:first-of-type {
    padding: 2.5rem;
    margin-bottom: 4rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-badge {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-number {
    font-size: 2.5rem;
  }
}

/* Mobile responsiveness for top countdown */
@media (max-width: 767px) {
  .hero-section .beta-countdown-container:first-of-type {
    margin: 0 0 2rem 0;
    border-radius: 15px;
    border: 2px solid rgba(255, 165, 0, 0.4);
    padding: 1rem;
  }
  
  /* Ensure container has proper mobile margins */
  .hero-section .container:first-of-type {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-timer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-item {
    padding: 0.5rem 0.25rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-number {
    font-size: 1.2rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .voting-alert-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero-section .beta-countdown-container:first-of-type {
    margin: 0 -0.5rem 1.5rem -0.5rem;
    padding: 0.75rem;
  }
  
  .hero-section .container:first-of-type {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-timer {
    gap: 0.25rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-item {
    padding: 0.4rem 0.1rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-number {
    font-size: 1rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-label {
    font-size: 0.65rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .countdown-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-section .beta-countdown-container:first-of-type .voting-detail {
    font-size: 0.75rem;
  }
}

/* ===== ENHANCED HERO STATS STYLING ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0;
  max-width: 100%;
}

.hero-stats .stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(147, 51, 234, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.hero-stats .stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(102, 126, 234, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-stats .stat-item:hover::before {
  opacity: 1;
}

.hero-stats .stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
}

/* Specific styling for online stats */
.hero-stats .online-stats {
  border-color: rgba(67, 184, 131, 0.5);
}

.hero-stats .online-stats:hover {
  border-color: #43b883;
  box-shadow: 0 15px 40px rgba(67, 184, 131, 0.3);
}

.hero-stats .online-stats::before {
  background: linear-gradient(135deg, rgba(67, 184, 131, 0.1), rgba(46, 160, 109, 0.1));
}

/* Specific styling for active stats */
.hero-stats .active-stats {
  border-color: rgba(255, 165, 0, 0.5);
}

.hero-stats .active-stats:hover {
  border-color: #ffa500;
  box-shadow: 0 15px 40px rgba(255, 165, 0, 0.3);
}

.hero-stats .active-stats::before {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 140, 0, 0.1));
}

/* Specific styling for version stats */
.hero-stats .version-stats {
  border-color: rgba(102, 126, 234, 0.5);
}

.hero-stats .version-stats:hover {
  border-color: #667eea;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.hero-stats .stat-icon {
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-stats .stat-icon i {
  font-size: 2rem;
  color: var(--primary-purple);
  transition: all 0.3s ease;
}

.hero-stats .online-stats .stat-icon i {
  color: #43b883;
}

.hero-stats .active-stats .stat-icon i {
  color: #ffa500;
}

.hero-stats .version-stats .stat-icon i {
  color: #667eea;
}

/* Online pulse animation */
.online-pulse {
  animation: pulse-online-icon 2s infinite;
}

@keyframes pulse-online-icon {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-stats .stat-content {
  position: relative;
  z-index: 2;
}

.hero-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero-stats .online-stats .stat-number {
  color: #43b883;
}

.hero-stats .active-stats .stat-number {
  color: #ffa500;
}

.hero-stats .version-stats .stat-number {
  color: #667eea;
}

.hero-stats .stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stats .stat-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
  line-height: 1.3;
}

/* Responsive design for hero stats */
@media (max-width: 992px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats .stat-item {
    padding: 1rem 0.75rem;
  }
  
  .hero-stats .stat-icon i {
    font-size: 1.5rem;
  }
  
  .hero-stats .stat-number {
    font-size: 1.8rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.9rem;
  }
  
  .hero-stats .stat-description {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto 1.5rem auto;
  }
  
  .hero-stats .stat-item {
    padding: 0.75rem 0.5rem;
    text-align: center;
  }
  
  .hero-stats .stat-icon {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  
  .hero-stats .stat-icon i {
    font-size: 1.25rem;
  }
  
  .hero-stats .stat-content {
    flex: 1;
  }
  
  .hero-stats .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
  }
  
  .hero-stats .stat-description {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    max-width: 100%;
  }
  
  .hero-stats .stat-item {
    padding: 0.875rem 0.5rem;
  }
  
  .hero-stats .stat-icon i {
    font-size: 1.1rem;
  }
  
  .hero-stats .stat-number {
    font-size: 1.3rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.75rem;
  }
  
  .hero-stats .stat-description {
    font-size: 0.6rem;
  }
}

/* ===== END ENHANCED HERO STATS STYLING ===== */

/* ========================================
   NEW INDEX PAGE STYLES - MODERN REDESIGN
   ======================================== */

/* Hero Section New */
.hero-section-new {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 46, 0.85) 100%);
    z-index: 0;
}

.hero-section-new .container {
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #22c55e;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title-new {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.gradient-text-new {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #a855f7 50%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 500px;
}

/* Glow Buttons */
.btn-glow {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.6);
    color: white;
}

.btn-outline-glow {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
}

/* Quick Stats */
.quick-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.quick-stat {
    text-align: center;
}

.quick-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.quick-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Server Info Card */
.server-info-card {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.card-header-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}

.status-dot.offline {
    background: #ef4444;
    animation: none;
}

.card-body-new {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.divider-glow {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.rate-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rate-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.rate-value-btn {
    background: none;
    border: none;
    color: var(--accent-purple);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.rate-value-btn:hover {
    color: var(--primary-purple);
}

/* Content Section Cards */
.content-section {
    background: rgba(15, 15, 35, 0.5);
}

.section-card {
    background: rgba(15, 15, 35, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

/* ===== RANKING CARD WITH GOLDEN ANIMATED BORDER ===== */
.section-card.ranking-card-glow {
    position: relative;
    border: none;
    background: rgba(15, 15, 35, 0.85);
    overflow: visible;
}

.section-card.ranking-card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        var(--gold-angle, 0deg),
        #ffd700,
        #ffec8b,
        #daa520,
        #b8860b,
        #ffd700,
        #fff8dc,
        #ffd700
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: goldBorderRotate 3s linear infinite;
    z-index: -1;
}

/* Golden glow effect behind the border */
.section-card.ranking-card-glow::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 22px;
    background: linear-gradient(
        var(--gold-angle, 0deg),
        rgba(255, 215, 0, 0.4),
        rgba(255, 236, 139, 0.2),
        rgba(218, 165, 32, 0.4),
        rgba(184, 134, 11, 0.2),
        rgba(255, 215, 0, 0.4)
    );
    filter: blur(8px);
    opacity: 0.6;
    animation: goldBorderRotate 3s linear infinite, goldPulse 2s ease-in-out infinite;
    z-index: -2;
}

@property --gold-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes goldBorderRotate {
    0% { --gold-angle: 0deg; }
    100% { --gold-angle: 360deg; }
}

@keyframes goldPulse {
    0%, 100% { opacity: 0.5; filter: blur(8px); }
    50% { opacity: 0.8; filter: blur(12px); }
}

/* Inner container to clip content properly */
.section-card.ranking-card-glow > * {
    position: relative;
    z-index: 1;
}

.section-card.ranking-card-glow .section-card-header {
    background: rgba(15, 15, 35, 0.9);
    border-radius: 18px 18px 0 0;
}

.section-card.ranking-card-glow .section-card-body {
    background: rgba(15, 15, 35, 0.9);
    border-radius: 0 0 18px 18px;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.section-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.see-all-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.see-all-link:hover {
    color: var(--accent-purple);
}

.section-card-body {
    padding: 1.5rem;
}

/* News Items */
.news-item-link {
    text-decoration: none;
    display: block;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-purple), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 3px 0 0 3px;
}

.news-item:hover {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.1);
}

.news-item:hover::before {
    opacity: 1;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item-left {
    flex: 1;
    min-width: 0;
}

.news-item-right {
    flex-shrink: 0;
    margin-left: 1rem;
}

.news-read-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.15);
    color: rgba(180, 160, 255, 0.6);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.news-item:hover .news-read-indicator {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
    color: #fff;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.3);
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.badge-new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.news-item-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: #fff;
}

/* Top Players List */
.top-players-list {
    padding: 0;
}

.top-player-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.top-player-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.top-player-item:last-child {
    border-bottom: none;
}

.top-player-item.top-1 {
     background: linear-gradient(90deg, rgba(108, 117, 125, 0.15), transparent);
}

.top-player-item.top-2 {
   background: linear-gradient(90deg, rgba(255, 193, 7, 0.15), transparent);
}

.top-player-item.top-3 {
     background: linear-gradient(90deg, rgba(108, 117, 125, 0.15), transparent);
}

.top-player-item.top-4 {
   background: linear-gradient(90deg, rgba(255, 193, 7, 0.15), transparent);
}

.top-player-item.top-5 {
     background: linear-gradient(90deg, rgba(108, 117, 125, 0.15), transparent);
}

.player-rank {
    width: 40px;
    text-align: center;
    font-size: 1.2rem;
}

.rank-num {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.text-bronze {
    color: #cd7f32 !important;
}

.text-orange {
    color: #ff8c00 !important;
}

.text-purple {
    color: #9333ea !important;
}

.player-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.job-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name-compact {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.player-class {
    font-size: 0.8rem;
    color: var (--text-secondary);
}

.player-level-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    justify-content: center;
    text-align: right;
}

.level-num {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 0.9rem;
    line-height: 1;
}

.rebirth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    border-radius: 5px;
    padding: 1px 5px;
    font-size: 0.65rem;
    line-height: 1;
}

.rebirth-text {
    color: #ffd700;
    font-weight: 600;
}

.rb-level {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.65rem;
}

.rebirth-indicator {
    color: #fbbf24;
    font-size: 0.8rem;
}

/* Section Badges and Titles */
.section-badge-new {
    display: inline-block;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary-purple);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.section-title-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Section New - Enhanced */
.features-section-new {
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.5) 0%, rgba(15, 15, 35, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background orbs for features section */
.features-section-new::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    animation: floatOrb 8s ease-in-out infinite;
    pointer-events: none;
}

.features-section-new::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    animation: floatOrb 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Community Section */
.community-section {
    background: rgba(15, 15, 35, 0.6);
}

.community-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cf-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.cf-content h5 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.cf-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.discord-embed {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}

.discord-iframe-new {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

/* CTA Section New */
.cta-section-new {
    padding: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content-new {
    position: relative;
    z-index: 1;
}

.cta-title-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    color :white;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title-new {
        font-size: 2.5rem;
    }
    
    .quick-stats {
        justify-content: center !important;
    }
    
    .section-title-new {
        font-size: 2rem;
    }
    
    .cta-title-new {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section-new {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-title-new {
        font-size: 2rem;
    }
    
    .quick-stat .stat-value {
        font-size: 1.5rem;
    }
    
    .server-info-card {
        margin-top: 2rem;
    }
    
    .rates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .rate-item {
        padding: 0.5rem;
    }
    
    .section-card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-player-item {
        padding: 0.75rem 1rem;
    }
    
    .player-info-compact {
        gap: 8px;
    }
    
    .job-icon-small {
        width: 28px;
        height: 28px;
    }
    
    .discord-iframe-new {
        height: 300px;
    }
      .cta-card {
        padding: 3rem 1.5rem;
    }
    
    .cta-title-new {
        font-size: 1.75rem;
    }
}

/* ===== MODERN RANKING TOGGLE STYLES ===== */

.ranking-toggle-modern {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 4px;
    gap: 2px;
}

.ranking-toggle-modern .toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 215, 0, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ranking-toggle-modern .toggle-btn i {
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ranking-toggle-modern .toggle-btn:hover {
    color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 215, 0, 0.1);
}

.ranking-toggle-modern .toggle-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
    color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.ranking-toggle-modern .toggle-btn.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.ranking-toggle-modern .toggle-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 215, 0, 0.2);
}

/* Rebirth ranking uses same styles as regular ranking - no additional styling needed */

/* Mobile responsive for ranking toggle and player items */
@media (max-width: 768px) {
    .section-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .section-card-header .d-flex {
        width: 100%;
        justify-content: center;
    }
    
    .ranking-toggle-modern {
        padding: 3px;
    }
    
    .ranking-toggle-modern .toggle-btn {
        width: 28px;
        height: 28px;
    }
    
    .ranking-toggle-modern .toggle-btn i {
        font-size: 0.75rem;
    }
    
    .top-player-item {
        padding: 0.75rem 1rem;
    }
    
    .player-info-compact {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .job-icon-small {
        width: 28px;
        height: 28px;
    }
    
    .player-details {
        min-width: 0;
    }
    
    .player-name-compact {
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .player-class {
        font-size: 0.7rem;
    }
    
    .player-level-compact {
        gap: 4px;
    }
    
    .player-level-compact.flex-column {
        gap: 2px;
    }
    
    .level-num {
        font-size: 0.8rem;
    }
    
    .rebirth-badge {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
    
    .rebirth-text {
        font-size: 0.65rem;
    }
    
    .rb-level {
        font-size: 0.65rem;
    }
    
    .ua-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .top-player-item {
        padding: 0.5rem 0.75rem;
    }
    
    .player-rank {
        width: 30px;
        font-size: 1rem;
    }
    
    .job-icon-small {
        width: 24px;
        height: 24px;
    }
    
    .player-name-compact {
        font-size: 0.75rem;
    }
    
    .player-class {
        font-size: 0.65rem;
    }
    
    .level-num {
        font-size: 0.75rem;
    }
      .rebirth-badge {
        padding: 1px 4px;
        font-size: 0.6rem;
    }
}