@font-face {
    font-family: Circular;
    src: url('../fonts/circular-std-medium-500.ttf');
}
@font-face {
    font-family: CircularBook;
    src: url('../fonts/circular-std-book.ttf');
}

#container {
    min-height:100vh;
}


* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: Circular;
    color: #001141;
    overflow-x:hidden;
}

p {
    font-family: CircularBook, Circular, 'sans-serif';
    font-size:20px;
    font-weight:400;
    -webkit-text-size-adjust:100%;
}

:root {
--theme-primary: #491D8B;
--bs-primary: #491D8B !important;
}

.btn {
  background-color: #491D8B;
  color: #fff;
  margin:5px;
  transition: all .7s;
}
.btn:hover {
  color: #fff;
  background-color: #6522c9;
  border-color: #6522c9;
}

/*
/*  Home Section
/* 
*/
#home {
    background: #491D8B;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #491D8B, #622AB5);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #491D8B, #622AB5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color:white;

}

#home .content {
    min-height:100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:url('../img/dots.svg');
}



#home h1 {
    font-size: 7rem;
    line-height: .9;
    letter-spacing: -.2rem;
    max-width: 100%;
    overflow: hidden;
}

h2 {
    font-size: 5rem;
    line-height: .9;
    letter-spacing: -.2rem;
    max-width: 100%;
    overflow: hidden; 
}

#home h6 span {
    color:#60a5fa;
}

#home h1 span {
    display: block;
    background-image: linear-gradient(-40deg, #60a5fa, #d4bbff, #8578e6, #60a5fa, #d4bbff) !important;
    background-size: 300% !important;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-animation: Gradient 20s ease infinite !important;
    -moz-animation: Gradient 20s ease infinite !important;
    animation: Gradient 20s ease infinite !important;
}


   /* Animation Keyframes */
   @-webkit-keyframes Gradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes Gradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes Gradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}


.btn-custom {
    color: white;
    background: linear-gradient(135deg, #60a5fa, #8578e6);
    padding:12px 12px;
    border-radius:12px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('../img/buttonbg.gif');
    background-size: cover;
    opacity: 0.15;
    animation: shimmer 8s ease infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    50% { 
        transform: translate(-10%, -10%) scale(1.1);
        opacity: 0.25;
    }
}

.btn-custom:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, #8578e6, #60a5fa);
}

.btn-custom:hover::before {
    opacity: 0.3;
}

.btn-custom:active,
.btn-custom:focus {
    color: #ffb900;
    text-shadow: 0 0 10px rgba(255, 185, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0px) scale(0.98);
}

/* Floating Potato Logo */
.floating-potato-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.floating-potato {
    height: 150px;
    width: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(96, 165, 250, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.nav-item {
    margin: 0 4px;
}

.btn-custom svg {
    margin:0 5px;
    font-size:12px;
    height:12px;
}

.btn-custom:hover {
    background:white;
    color:rgba(0,0,0,0.7);
}

.navbar-toggler {
    filter:invert(1);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(to right, #491D8B, #622AB5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

/* Ensure the bootstrap container inside the navbar is a centred flex row */
.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-collapse {
    align-items: center;
}

.navbar-nav {
    align-items: center;
}

.text-special {
    color:var(--theme-primary);
}

section {
    display: none;
    margin-bottom:150px;
}

.games-list {
    margin-top:150px;
}
.games-image {
    margin: 0 25px;
    height:110px;
    filter:grayscale(1);
    opacity:0.6;
    cursor: pointer;
    transition:0.5s ease-in-out;

}

.games-image:hover {
    filter:grayscale(0);
    opacity:1;
    transition:0.5s ease-in-out;
}

.socials-image {
    max-width:100%;
    height:128px;
    border-radius:50%;
}

#socials {
    margin-top:350px;
    padding:75px 15px;
    background-color: var(--theme-primary);
    background-image:url('../img/bg.svg');
    color:white;
}

#donate {
    padding:75px 15px;
}

hr {
    max-width:150px;
    border-color: #491D8B;
    border-width:4px;
}

.navbar-brand img {
    height: 44px;
    width: auto;
    vertical-align: middle;
    flex-shrink: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* loader animation */

  
  .box {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
  }
  
  .box .b {
    border-radius: 50%;
    border-left: 4px solid;
    border-right: 4px solid;
    border-top: 4px solid transparent !important;
    border-bottom: 4px solid transparent !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ro 2s infinite;
  }
  
  .box .b1 {
    border-color: #4A69BD;
    width: 120px;
    height: 120px;
  }
  
  .box .b2 {
    border-color: #F6B93B;
    width: 100px;
    height: 100px;
    animation-delay: 0.2s;
  }
  
  .box .b3 {
    border-color: #2ECC71;
    width: 80px;
    height: 80px;
    animation-delay: 0.4s;
  }
  
  .box .b4 {
    border-color: #34495E;
    width: 60px;
    height: 60px;
    animation-delay: 0.6s;
  }
  
  @keyframes ro {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    
    50% {
      transform: translate(-50%, -50%) rotate(-180deg);
    }
    
    100% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
  }


/* loader animation end */

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #491d8b #ffffff;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 12px;
  }

  *::-webkit-scrollbar-track {
    background: #ffffff;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #491d8b;
    border-radius: 0px;
    border: 0px solid #ffffff;
  }


  /* footer */

  body .footer {
    z-index: 1;
    --footer-background:var(--theme-primary);
    display: none;
    position: relative;
    grid-area: footer;
    min-height: 12rem;
  }
  body .footer .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1rem;
    background: var(--footer-background);
    filter: url("#blob");
  }
  body .footer .bubbles .bubble {
    position: absolute;
    left: var(--position, 50%);
    background: var(--footer-background);
    border-radius: 100%;
    -webkit-animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
            animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
    transform: translate(-50%, 100%);
  }
  body .footer .content {
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 4rem;
    padding: 2rem;
    background: var(--footer-background);
  }
  body .footer .content a, body .footer .content p {
    color: #F5F7FA;
    text-decoration: none;
  }
  body .footer .content b {
    color: white;
  }
  body .footer .content p {
    margin: 0;
    font-size: 0.75rem;
  }
  body .footer .content > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body .footer .content > div > div {
    margin: 0.25rem 0;
  }
  body .footer .content > div > div > * {
    margin-right: 0.5rem;
  }
  body .footer .content > div .image {
    align-self: center;
    width: 4rem;
    height: 4rem;
    margin: 0.25rem 0;
    background-size: cover;
    background-position: center;
  }
  
  @-webkit-keyframes bubble-size {
    0%, 75% {
      width: var(--size, 4rem);
      height: var(--size, 4rem);
    }
    100% {
      width: 0rem;
      height: 0rem;
    }
  }
  
  @keyframes bubble-size {
    0%, 75% {
      width: var(--size, 4rem);
      height: var(--size, 4rem);
    }
    100% {
      width: 0rem;
      height: 0rem;
    }
  }
  @-webkit-keyframes bubble-move {
    0% {
      bottom: -4rem;
    }
    100% {
      bottom: var(--distance, 10rem);
    }
  }
  @keyframes bubble-move {
    0% {
      bottom: -4rem;
    }
    100% {
      bottom: var(--distance, 10rem);
    }
  }

  .gallery {
    max-width:100%;
  }
  .gallery img {
    max-height:180px;
    max-width:100%;
    margin:25px 10px;
    border-radius:16px;
  }


  .navbar-brand {
    /* EDIT FONT SIZE BELOW */
    /* font-size:32px; */
  }
/* Game dropdown menu styles */
.dropdown-menu .dropdown-item {
  color: #ff7109;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  padding: 12px 15px 12px 40px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  margin: 3px 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.dropdown-menu .dropdown-item i.fa-gamepad {
  opacity: 0;
  transform: translateX(-20px) scale(0.5) rotate(-45deg);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: absolute;
  left: 15px;
  font-size: 1.2rem;
}

.dropdown-menu .dropdown-item:hover {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(104, 6, 202, 0.2), rgba(96, 165, 250, 0.1));
  transform: translateX(8px);
  padding-left: 48px;
  box-shadow: 0 4px 15px rgba(104, 6, 202, 0.3);
}

.dropdown-menu .dropdown-item:hover i.fa-gamepad {
  opacity: 1;
  transform: translateX(0) scale(1.2) rotate(0deg);
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(104, 6, 202, 0.6));
}

/* Enhanced nav menu styles */
.navbar-nav .nav-link {
    font-size: 1.15rem;
    font-weight: 500;
    padding: 12px 22px !important;
    margin: 0 8px;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.navbar-nav .nav-item {
    margin: 0 3px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #d4bbff);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    color: #d4bbff !important;
    text-shadow: 0 0 10px rgba(212, 187, 255, 0.5);
}

.navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle:hover::after {
    transform: rotate(180deg);
}

.btn-custom {
    font-size: 1.1rem;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    position: relative;
    background: linear-gradient(135deg, #60a5fa, #8578e6);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('../img/buttonbg.gif');
    background-size: cover;
    opacity: 0.15;
    animation: shimmer 8s ease infinite;
    pointer-events: none;
}

.btn-custom:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, #8578e6, #60a5fa);
}

.btn-custom:hover::before {
    opacity: 0.3;
}

.btn-custom:active,
.btn-custom:focus {
    color: #ffb900;
    text-shadow: 0 0 10px rgba(255, 185, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0px) scale(0.98);
    outline: none;
}

/* Dropdown menu enhancements */
.dropdown-menu {
    background: linear-gradient(135deg, #2d1555, #1a0d3d);
    border: 2px solid rgba(212, 187, 255, 0.2);
    border-radius: 15px;
    padding: 10px 10px 10px 14px;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Dropdown - Desktop */
.dropdown-menu::-webkit-scrollbar {
    width: 14px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(26, 13, 61, 0.5);
    border-radius: 10px;
    margin: 5px 0;
    border: 2px solid transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60a5fa, #8578e6);
    border-radius: 10px;
    border: 2px solid rgba(26, 13, 61, 0.8);
    transition: all 0.3s ease;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8578e6, #60a5fa);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    border-color: rgba(26, 13, 61, 0.6);
}

/* Firefox Scrollbar */
.dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #60a5fa rgba(26, 13, 61, 0.5);
}

/* Tablet-specific adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        max-height: 400px;
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 16px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .dropdown-menu {
        max-height: 350px;
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 14px;
    }
}


body {
    padding-top: 90px;
}


/* Generic icon animation for dropdown items */
.dropdown-menu .dropdown-item i {
  opacity: 0;
  transform: translateX(-15px) scale(0.95);
  transition: all 0.3s ease;
  margin-right: 10px;
  color: #ff7109;
}

.dropdown-menu .dropdown-item:hover i {
  opacity: 1;
  transform: translateX(0) scale(1.0);
  color: #ffffff !important;
}


/* Improved dropdown menu spacing and alignment */
.dropdown-menu {
  padding: 12px 14px !important;
}

.dropdown-menu .dropdown-item {
  padding: 12px 25px 12px 45px !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
}

/* Tablet responsive navigation fix - Large tablets and small desktops */
@media (max-width: 1400px) and (min-width: 992px) {
  .navbar-nav .nav-item {
    margin: 0 2px;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 10px 16px !important;
  }
  
  .btn-custom {
    font-size: 1rem;
    padding: 9px 18px;
    white-space: nowrap;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-brand img {
    height: 42px;
  }
  
  .navbar {
    padding: 12px 0;
  }
}

/* Medium tablets (like Surface) */
@media (max-width: 991px) and (min-width: 768px) {
  .navbar-nav .nav-item {
    margin: 0 1px;
  }

  .navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 10px 12px !important;
  }

  .btn-custom {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 38px;
  }
}

/* ============================================================
   MOBILE / TABLET COLLAPSED NAV  (< 992px = navbar-expand-lg)
   ============================================================ */
@media (max-width: 991px) {
  /* Show hamburger, keep brand + theme btn on same row */
  .navbar > .container,
  .navbar > .container-fluid {
    flex-wrap: wrap;
  }

  /* Collapsed menu panel */
  .navbar-collapse {
    width: 100%;
    background: linear-gradient(180deg, #3b1570 0%, #491D8B 100%);
    border-radius: 0 0 16px 16px;
    padding: 6px 0 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
  }

  /* Stack nav items vertically */
  .navbar-collapse .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 10px;
  }

  .navbar-collapse .nav-item {
    width: 100%;
    margin: 0;
  }

  .navbar-collapse .nav-link {
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s ease;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus {
    background: rgba(255, 255, 255, 0.12) !important;
  }

  /* Dropdowns: static (not floating) inside mobile menu */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.22);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    margin: 4px 0 4px 14px;
    padding: 4px 0;
    max-height: 260px;
    overflow-y: auto;
  }

  .navbar-collapse .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    margin: 1px 4px;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .navbar-collapse .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
  }

  /* Join us button — full width inside menu */
  .navbar-collapse .btn-custom {
    margin: 8px 14px 2px;
    width: calc(100% - 28px);
    text-align: center;
    justify-content: center;
    display: flex;
  }

  /* Theme button stays visible on the bar (not inside collapse) */
  #ps-theme-btn {
    order: 2;
    margin-left: auto;
    margin-right: 10px;
  }
}

/* Fix Discord and TeamSpeak icon spacing - Vertical Stack with Golden Glow */
.socials-icons-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.socials-image {
  max-width: 100%;
  height: 140px;
  width: 140px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  transition: all 0.4s ease;
  box-shadow: 
    0 0 20px rgba(255, 185, 0, 0.6),
    0 0 40px rgba(255, 140, 0, 0.4),
    0 0 60px rgba(255, 185, 0, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 185, 0, 0.3);
}

.socials-image:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 
    0 0 30px rgba(255, 185, 0, 0.8),
    0 0 60px rgba(255, 140, 0, 0.6),
    0 0 90px rgba(255, 185, 0, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 185, 0, 0.6);
}

/* Pretty Membership Title with animated rain background */
#donate h2 {
  position: relative;
  display: inline-block;
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.1rem;
  padding: 20px 30px;
  background-image: url('../img/memberbg.gif'), linear-gradient(-40deg, #491D8B, #622AB5, #60a5fa, #d4bbff);
  background-size: cover, 300%;
  background-blend-mode: overlay;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: Gradient 8s ease infinite;
  filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.6));
}

/* Membership Section Styling */
.membership-title {
  font-size: 5rem !important;
  margin-bottom: 20px;
}

.membership-subtitle {
  font-size: 1.5rem;
  color: #491D8B;
  font-weight: 600;
  margin-bottom: 50px;
}

/* Floating Cards Wrapper */
.membership-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 50px 0;
  perspective: 1000px;
}

/* Individual Membership Card */
.membership-card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(133, 120, 230, 0.1));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 
    0 8px 32px rgba(73, 29, 139, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.membership-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(96, 165, 250, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer-card 3s infinite;
}

@keyframes shimmer-card {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Floating Animation */
.floating-card {
  animation: float-card 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(0px) rotateX(0deg) rotateY(2deg);
  }
  75% {
    transform: translateY(-10px) rotateX(-2deg) rotateY(0deg);
  }
}

.membership-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  box-shadow: 
    0 15px 50px rgba(73, 29, 139, 0.4),
    0 0 0 2px rgba(96, 165, 250, 0.5) inset;
  border-color: rgba(96, 165, 250, 0.6);
}

/* Card Icon */
.card-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(73, 29, 139, 0.3));
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Card Heading */
.membership-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #491D8B;
  margin-bottom: 15px;
  text-align: center;
  background: linear-gradient(45deg, #491D8B, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.membership-card p {
  font-size: 1.1rem;
  color: #491D8B;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 10px 15px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #001141;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.benefits-list li:hover {
  background: rgba(96, 165, 250, 0.2);
  border-left-color: #60a5fa;
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(73, 29, 139, 0.2);
}

/* Membership Buttons */
.membership-buttons {
  margin-top: 60px;
}

.membership-btn {
  font-size: 1.2rem !important;
  padding: 15px 30px !important;
  margin: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.membership-btn .btn-icon {
  font-size: 1.5rem;
  display: inline-block;
  animation: bounce-icon 1s ease-in-out infinite;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive Design for Cards */
@media (max-width: 991px) {
  .membership-cards-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .membership-title {
    font-size: 3.5rem !important;
  }
  
  .membership-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .membership-card {
    padding: 25px 20px;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .membership-card h3 {
    font-size: 1.5rem;
  }
  
  .membership-title {
    font-size: 2.5rem !important;
  }
}

/* ==========================================
   GAMES SECTION - COMPLETE OVERHAUL
   ========================================== */

/* Section Title */
.games-section-title {
    font-size: 4.5rem !important;
    font-weight: 800;
    background: linear-gradient(-40deg, #491D8B, #622AB5, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.games-subtitle {
    font-size: 1.4rem;
    color: #491D8B;
    font-weight: 600;
    margin-bottom: 50px;
}

/* Games Grid Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    perspective: 1000px;
}

/* Individual Game Card */
.game-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Staggered fade-in animation */
.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

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

/* Card Inner Container */
.game-card-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(73, 29, 139, 0.2),
        0 0 0 1px rgba(96, 165, 250, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 2px solid transparent;
}

.game-card:hover .game-card-inner {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(73, 29, 139, 0.4),
        0 0 0 2px rgba(96, 165, 250, 0.5) inset,
        0 0 30px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Status Badge */
.game-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

.game-status-badge.online {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.game-status-badge.offline {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Game Image Wrapper */
.game-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #491D8B, #622AB5);
}

.game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: grayscale(0.3) brightness(0.9);
}

.game-card:hover .game-card-image {
    transform: scale(1.15) rotate(2deg);
    filter: grayscale(0) brightness(1.1);
}

/* Play Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(73, 29, 139, 0.7), rgba(96, 165, 250, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-play-icon {
    font-size: 4rem;
    color: white;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.game-card:hover .game-play-icon {
    transform: scale(1);
}

/* Card Content */
.game-card-content {
    padding: 20px;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #491D8B;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.game-card:hover .game-title {
    color: #60a5fa;
    transform: translateX(5px);
}

.game-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.85rem;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(133, 120, 230, 0.1));
    border-radius: 12px;
    color: #491D8B;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
}

.game-card:hover .stat-item {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(133, 120, 230, 0.2));
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

/* More Games Text */
.more-games-text {
    font-size: 1.3rem;
    color: #491D8B;
    font-weight: 600;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .games-section-title {
        font-size: 3.5rem !important;
    }
    
    .games-subtitle {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .game-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .games-section-title {
        font-size: 2.5rem !important;
    }
    
    .games-subtitle {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-image-wrapper {
        height: 200px;
    }
    
    .game-card-inner {
        margin: 0 10px;
    }
}

/* === Play Your Favorite Games Animations === */
.play-games-title h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5em;
}
.text-special.animate-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #A259FF 0%, #491D8B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradient-move 2s linear infinite;
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.animate-pop {
  display: inline-block;
  animation: pop-in 0.8s cubic-bezier(.29,1.19,.81,.99) backwards;
}
@keyframes pop-in {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.animate-fadein, .animate-fadein.animate-delay {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}
.animate-delay { animation-delay: 0.5s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to   { opacity: 1; transform: translateY(0);}
}
.animate-underline {
  background: linear-gradient(90deg,#A259FF,#491D8B);
  background-size: 0 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  animation: underline 1s 0.3s forwards;
}
@keyframes underline {
  from { background-size: 0 3px; }
  to   { background-size: 100% 3px; }
}
.animate-highlight {
  background: linear-gradient(90deg, #A259FF33, #fff 80%);
  border-radius: 8px;
  padding: 2px 6px;
  animation: highlight 1s 0.7s forwards;
}
@keyframes highlight {
  0% { background-color: transparent;}
  100% { background-color: #A259FF33;}
}
@media (max-width: 768px){
  .play-games-title h2 { font-size: 2.25rem; }
}

#donate { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* ============================================
   FIXED FOOTER STYLES - BIGGER TEXT, LOGO INLINE
   ============================================ */

.footer .content {
    padding: 1.75rem 2rem !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2.5rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    align-items: start !important;
}

.footer-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
}

.footer-column h4 {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.6rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.footer-column h4 i {
    color: #a89dd8 !important;
    font-size: 1.05rem !important;
}

.footer-column a {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    padding: 0.35rem 0 !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
}

.footer-column a:hover {
    color: white !important;
    padding-left: 0.5rem !important;
    transform: translateX(5px) !important;
}

.footer-column a i {
    color: #a89dd8 !important;
    width: 20px !important;
    flex-shrink: 0 !important;
    font-size: 0.95rem !important;
}

/* Brand Column - Logo INLINE with Text */
.footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

/* Logo and Title Container - HORIZONTAL */
.footer-brand-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.6rem !important;
}

.footer-logo {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 0 !important;
    filter: drop-shadow(0 4px 15px rgba(133, 120, 234, 0.6)) !important;
}

.footer-brand h3 {
    color: white !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem !important;
    margin: 0 0 0.8rem 0 !important;
    line-height: 1.4 !important;
    max-width: 280px !important;
}

.footer-social {
    display: flex !important;
    gap: 0.7rem !important;
    justify-content: center !important;
    margin: 0 0 0.8rem 0 !important;
}

.footer-social a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.15rem !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-3px) scale(1.1) !important;
    padding: 0 !important;
}

.copyright {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.75rem !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1 !important;
        margin-top: 1.75rem !important;
        padding-top: 1.75rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 576px) {
    .footer .content {
        padding: 1.5rem 1rem !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .footer-column {
        text-align: center !important;
    }
    
    .footer-column h4,
    .footer-column a {
        justify-content: center !important;
    }
    
    .footer-column a:hover {
        padding-left: 0 !important;
        transform: translateX(0) scale(1.05) !important;
    }
    
    .footer-brand {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }
    
    .footer-brand-header {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* ==========================================
   CATEGORY FILTER BAR
   ========================================== */

.games-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 22px;
    border: 2px solid rgba(73, 29, 139, 0.25);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    background: transparent;
    color: #491D8B;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: inherit;
    letter-spacing: 0.2px;
}

.filter-btn:hover {
    background: rgba(73, 29, 139, 0.07);
    border-color: rgba(73, 29, 139, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 29, 139, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #491D8B, #622AB5);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 18px rgba(73, 29, 139, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .filter-btn {
        padding: 7px 15px;
        font-size: 0.82rem;
    }
    .games-filter-bar {
        gap: 8px;
        margin-bottom: 28px;
    }
}

/* ==========================================
   TABBED MULTI-SERVER GAME CARDS
   ========================================== */

/* Tabbed card outer wrapper - not a link, so cursor is default */
.game-card-tabbed {
    cursor: default;
}

/* Server count badge in top-left corner */
.server-count-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(133, 120, 230, 0.92);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
}

/* Server Tab Row */
.server-tabs {
    display: flex;
    gap: 6px;
    margin: 6px 0 12px;
    flex-wrap: wrap;
}

.server-tab {
    padding: 5px 13px;
    border: 1.5px solid rgba(96, 165, 250, 0.35);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: transparent;
    color: #491D8B;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.server-tab:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-1px);
}

.server-tab.active {
    background: linear-gradient(135deg, #60a5fa, #8578e6);
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(96, 165, 250, 0.4);
}

/* Tab Panes */
.server-tab-pane {
    display: none;
}

.server-tab-pane.active {
    display: block;
    animation: tabFadeIn 0.22s ease;
}

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

/* Slightly taller image for tabbed cards to account for tabs row below */
.game-card-tabbed .game-card-content {
    min-height: 120px;
}


/* =============================================================
   GAME PAGE SHARED STYLES
   Shared across all individual game server pages
   ============================================================= */

/* --- Game Hero Section --- */
.game-hero {
    background-color: #1a0540;
    background-image:
        linear-gradient(135deg, rgba(15, 3, 40, 0.88), rgba(73, 29, 139, 0.92)),
        var(--hero-bg, linear-gradient(135deg, #2d0d6b, #491D8B));
    background-size: cover;
    background-position: center;
    padding: 140px 0 110px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.game-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(96, 165, 250, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 40%, rgba(133, 120, 230, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.game-hero-content {
    position: relative;
    z-index: 2;
}

.game-icon {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
    display: block;
}

.game-hero .game-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(-40deg, #ff7109, #ffcc00, #ff9c3a, #ff7109);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 113, 9, 0.4));
    line-height: 1.05;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.game-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 620px;
    line-height: 1.6;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    animation: statusPulse 2s infinite;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

/* --- Game Info Section --- */
.game-info-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f8 100%);
    padding: 5rem 0;
}

/* --- Info Cards --- */
.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(73, 29, 139, 0.07);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(73, 29, 139, 0.08);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #491D8B, #60a5fa, #8578e6);
}

.info-card:hover {
    box-shadow: 0 14px 40px rgba(73, 29, 139, 0.18);
    transform: translateY(-8px);
    border-color: rgba(73, 29, 139, 0.18);
}

.info-card-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #491D8B, #8578e6);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 22px rgba(73, 29, 139, 0.38);
}

.info-card h3 {
    color: #491D8B;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.info-card p {
    color: #555;
    line-height: 1.75;
    margin: 0;
    font-size: 1rem;
}

/* --- Feature Lists --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(73, 29, 139, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #444;
    transition: color 0.2s ease;
}

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

.feature-list li:hover {
    color: #491D8B;
}

.feature-icon {
    color: #491D8B;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Server Details Table --- */
.server-details {
    background: linear-gradient(135deg, #f0eeff, #e8f0ff);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    border: 1px solid rgba(73, 29, 139, 0.12);
}

.server-details h3 {
    color: #491D8B;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(73, 29, 139, 0.1);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.detail-row:hover {
    background: rgba(73, 29, 139, 0.05);
}

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

.detail-label {
    font-weight: 700;
    color: #491D8B;
}

.detail-value {
    color: #444;
    font-weight: 500;
    background: rgba(73, 29, 139, 0.08);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
}

/* --- Connect Section --- */
.connect-section {
    background: linear-gradient(135deg, #200860, #491D8B, #622AB5);
    border-radius: 26px;
    padding: 4.5rem 3rem;
    color: white;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(73, 29, 139, 0.5), 0 4px 20px rgba(0,0,0,0.2);
}

.connect-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -12%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
    pointer-events: none;
}

.connect-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(133, 120, 230, 0.18), transparent 70%);
    border-radius: 50%;
    animation: float 13s ease-in-out infinite reverse;
    pointer-events: none;
}

/* CoD-specific connect section variants */
.connect-section.zombies {
    background: linear-gradient(135deg, #0d2b17, #1a472a, #2d5a3d);
}

.connect-section.multiplayer {
    background: linear-gradient(135deg, #0d0d1f, #1a1a2e, #16213e);
}

.connect-section.nuketown {
    background: linear-gradient(135deg, #5c2a07, #b45309, #d97706);
}

.connect-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.5px;
}

.connect-section > p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.server-ip {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2.5rem;
    border-radius: 18px;
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.22);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    letter-spacing: 0.5px;
}

.copy-btn {
    background: white;
    color: #491D8B;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-family: inherit;
}

.copy-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    background: #f0eeff;
}

/* --- Rules Section --- */
.rules-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(73, 29, 139, 0.1);
}

.rules-section h3 {
    color: #491D8B;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(73, 29, 139, 0.12);
}

.rule-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.rule-item:hover {
    background: rgba(73, 29, 139, 0.04);
    border-color: rgba(73, 29, 139, 0.1);
}

.rule-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(73, 29, 139, 0.38);
}

.rule-content {
    flex: 1;
}

.rule-content h4 {
    color: #491D8B;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rule-content p {
    color: #555;
    line-height: 1.75;
    margin: 0;
    font-size: 1rem;
}

/* --- CoD / Plutonium Badges --- */
.plutonium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: white !important;
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
    filter: none !important;
}

.server-mode-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.25rem;
}

.badge-zombies {
    background: linear-gradient(135deg, #0d2b17, #2d5a3d);
    color: white;
}

.badge-multiplayer {
    background: linear-gradient(135deg, #0d0d1f, #16213e);
    color: white;
}

.badge-nuketown {
    background: linear-gradient(135deg, #5c2a07, #d97706);
    color: white;
}

/* --- Game page responsive --- */
@media (max-width: 768px) {
    .game-title  { font-size: 2.6rem; }
    .game-icon   { font-size: 4rem; }
    .connect-section h2 { font-size: 2.2rem; }
    .server-ip   { font-size: 1.1rem; padding: 1.1rem 1.5rem; flex-direction: column; gap: 0.75rem; }
    .rules-section { padding: 2rem 1.5rem; }
    .server-details { padding: 1.75rem; }
}


/* =============================================================
   TOS / CONDUCT PAGE STYLES
   ============================================================= */

.hero-tos {
    background: linear-gradient(135deg, #1a0540 0%, #491D8B 45%, #8578e6 100%);
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-conduct {
    background: linear-gradient(135deg, #1e0960 0%, #622AB5 50%, #a393f0 100%);
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-tos::before,
.hero-conduct::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 550px;
    height: 550px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 22s infinite ease-in-out;
}

.hero-tos::after,
.hero-conduct::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation: float 16s infinite ease-in-out reverse;
}

.tos-section,
.conduct-section {
    background: white;
    border-radius: 20px;
    padding: 2.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #491D8B;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.conduct-section {
    border-left-color: #622AB5;
}

.tos-section::after,
.conduct-section::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(73, 29, 139, 0.06), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.tos-section:hover,
.conduct-section:hover {
    box-shadow: 0 10px 35px rgba(73, 29, 139, 0.15);
    transform: translateY(-3px);
}

.tos-section h2,
.conduct-section h2 {
    color: #491D8B;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tos-section p,
.conduct-section p {
    color: #333;
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tos-section ul,
.conduct-section ul {
    margin-left: 1.5rem;
    color: #555;
}

.tos-section ul li,
.conduct-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.tos-section strong { color: #491D8B; }
.conduct-section strong { color: #622AB5; }

.tos-section a,
.conduct-section a {
    color: #622AB5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.tos-section a:hover,
.conduct-section a:hover {
    color: #491D8B;
    text-decoration: underline;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
    border-radius: 11px;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(73, 29, 139, 0.35);
}

.intro-box {
    background: linear-gradient(135deg, #f0eeff, #e8f0ff);
    border-radius: 18px;
    padding: 2.25rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(73, 29, 139, 0.25);
    position: relative;
    overflow: hidden;
}

.intro-box p {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    line-height: 1.85;
}

.warning-box {
    background: linear-gradient(135deg, #fff8e7, #ffeaa7);
    border-left: 5px solid #b45309;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12);
}

.warning-box p {
    color: #7c3a0a;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, #200860, #491D8B, #622AB5);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(73, 29, 139, 0.4);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-box p {
    opacity: 0.95;
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}


/* =============================================================
   ABOUT / GALLERY / DISCORD / TEAMSPEAK PAGE STYLES
   ============================================================= */

.about-hero,
.gallery-hero,
.discord-hero,
.teamspeak-hero {
    padding: 130px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 420px;
}

.about-hero {
    background: linear-gradient(135deg, #1a0540 0%, #491D8B 60%, #622AB5 100%);
}

.gallery-hero {
    background: linear-gradient(135deg, #1a0540 0%, #491D8B 45%, #8578e6 100%);
}

.discord-hero {
    background: linear-gradient(135deg, #1e0d5e 0%, #5865F2 100%);
}

.teamspeak-hero {
    background: linear-gradient(135deg, #0d2d5e 0%, #1d6eb5 100%);
}

.about-hero::before,
.gallery-hero::before,
.discord-hero::before,
.teamspeak-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 55%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero::after,
.gallery-hero::after,
.discord-hero::after,
.teamspeak-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, #f8f9fa, transparent);
    pointer-events: none;
}

.about-hero-content,
.gallery-hero-content,
.discord-hero-content,
.teamspeak-hero-content {
    position: relative;
    z-index: 2;
}

/* Shared content page section cards */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 2.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(73, 29, 139, 0.1);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 10px 35px rgba(73, 29, 139, 0.14);
    transform: translateY(-3px);
}

/* Page-level info section background */
.page-content-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f8 100%);
    padding: 5rem 0;
}


/* =============================================================
   ABOUT US PAGE STYLES
   ============================================================= */

.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-hero .potato-logo {
    height: 110px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 25px rgba(96, 165, 250, 0.5));
    animation: float 4s ease-in-out infinite;
}

.about-hero .hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-hero .hero-brand {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.about-hero .brand-highlight {
    background: linear-gradient(-40deg, #ffcc00, #ff9c3a, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200%;
    animation: gradientShift 3s ease infinite;
}

.about-hero .hero-tagline {
    font-size: 1.15rem;
    opacity: 0.88;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-section {
    padding: 5rem 0;
    background: white;
}

.about-section + .about-section {
    border-top: 1px solid rgba(73, 29, 139, 0.06);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #491D8B;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #491D8B, #60a5fa);
    border-radius: 2px;
    margin-top: 0.6rem;
}

.section-content {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.85;
}

.section-content p {
    margin-bottom: 1.25rem;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(73, 29, 139, 0.08);
    border: 1px solid rgba(73, 29, 139, 0.1);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #491D8B, #60a5fa, #8578e6);
}

.value-card:hover {
    box-shadow: 0 12px 35px rgba(73, 29, 139, 0.18);
    transform: translateY(-7px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #491D8B;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #200860, #491D8B, #622AB5);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(96, 165, 250, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(133, 120, 230, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card {
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.stat-card .stat-number,
.stat-box .stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    background: linear-gradient(-40deg, #ffcc00, #ff9c3a, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200%;
    animation: gradientShift 4s ease infinite;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label,
.stat-box .stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.88;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, #f1f3f8 0%, #e8ecf5 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    color: #491D8B;
    margin-bottom: 1.25rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
    box-shadow: 0 6px 20px rgba(73, 29, 139, 0.38);
}

.cta-btn-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 30px rgba(73, 29, 139, 0.5);
    color: white;
}

.cta-btn-secondary {
    background: white;
    color: #491D8B;
    border: 2px solid rgba(73, 29, 139, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.cta-btn-secondary:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: #491D8B;
    box-shadow: 0 8px 24px rgba(73, 29, 139, 0.2);
    color: #491D8B;
}


/* =============================================================
   GALLERY PAGE STYLES
   ============================================================= */

.gallery-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.gallery-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-hero-content > p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 1.25rem 2rem;
    min-width: 130px;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    display: block;
    background: linear-gradient(-40deg, #ffcc00, #ff9c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.88;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(-40deg, #491D8B, #60a5fa, #8578e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200%;
    animation: gradientShift 6s ease infinite;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 550px;
    margin: 0 auto;
}

/* Featured Section */
.featured-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.featured-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.featured-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.featured-carousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    border-radius: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-tab {
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    border: 2px solid rgba(73, 29, 139, 0.2);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #491D8B;
    transition: all 0.25s ease;
    background: white;
}

.category-tab:hover {
    border-color: #491D8B;
    background: rgba(73, 29, 139, 0.06);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(73, 29, 139, 0.4);
}

/* Gallery Grid */
.gallery-grid {
    columns: 3;
    column-gap: 1.5rem;
}

@media (max-width: 991px) { .gallery-grid { columns: 2; } }
@media (max-width: 576px)  { .gallery-grid { columns: 1; } }

.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 5, 50, 0.85) 0%, rgba(20, 5, 50, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.gallery-item-meta {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.gallery-item-game {
    display: inline-block;
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Community Highlights */
.community-highlights {
    background: linear-gradient(135deg, #200860, #491D8B, #622AB5);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.community-highlights::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(96, 165, 250, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.35s ease;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.highlight-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.highlight-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
}

/* Upload CTA */
.upload-cta {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f8 100%);
    padding: 5rem 0;
    text-align: center;
}

.upload-cta h3 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #491D8B;
    margin-bottom: 1rem;
}

.upload-cta p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn-upload {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(73, 29, 139, 0.4);
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 30px rgba(73, 29, 139, 0.55);
    color: white;
}


/* =============================================================
   THEME TOGGLE BUTTON
   ============================================================= */

/* Theme toggle — sits between the brand and the hamburger/nav */
#ps-theme-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    font-family: inherit;
    flex-shrink: 0;
    /* pushed to far right of navbar, before the toggler button */
    margin-left: auto;
    margin-right: 12px;
}

/* On desktop (nav expanded), theme button sits between brand and nav */
@media (min-width: 992px) {
    #ps-theme-btn {
        margin-left: 0;
        margin-right: 14px;
        order: 3;
    }
}

#ps-theme-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.12) rotate(15deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}


/* =============================================================
   DARK THEME
   [data-theme="dark"] on <html>
   ============================================================= */

/* Smooth transitions on theme switch */
body,
.info-card, .value-card, .rules-section, .server-details,
.tos-section, .conduct-section, .intro-box, .cta-section,
.game-info-section, .page-content-section, .about-section,
.featured-section, .upload-cta, .game-card,
.category-tab, .detail-row, .rule-item, .feature-list li {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---- Base ---- */
[data-theme="dark"] body {
    background: #0d0a1a;
    color: #e2d9f3;
}

/* ---- Game / page section backgrounds ---- */
[data-theme="dark"] .game-info-section,
[data-theme="dark"] .page-content-section {
    background: linear-gradient(180deg, #0d0a1a 0%, #120e28 100%) !important;
}

[data-theme="dark"] .about-section,
[data-theme="dark"] .featured-section,
[data-theme="dark"] .upload-cta,
[data-theme="dark"] .cta-section {
    background: #0d0a1a !important;
}

[data-theme="dark"] .about-section[style*="background: #f8f9fa"] {
    background: #120e28 !important;
}

[data-theme="dark"] #donate {
    background: #0d0a1a !important;
}

/* ---- White cards → dark cards ---- */
[data-theme="dark"] .info-card,
[data-theme="dark"] .rules-section,
[data-theme="dark"] .tos-section,
[data-theme="dark"] .conduct-section,
[data-theme="dark"] .value-card,
[data-theme="dark"] .intro-box,
[data-theme="dark"] .warning-box {
    background: #1c1438 !important;
    border-color: rgba(133, 120, 230, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .server-details {
    background: #1c1438 !important;
    border-color: rgba(133, 120, 230, 0.2);
}

/* ---- Text colours ---- */
[data-theme="dark"] .info-card h3,
[data-theme="dark"] .rules-section h3,
[data-theme="dark"] .server-details h3,
[data-theme="dark"] .tos-section h2,
[data-theme="dark"] .conduct-section h2,
[data-theme="dark"] .section-title,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .rule-content h4,
[data-theme="dark"] .cta-title,
[data-theme="dark"] .detail-label {
    color: #c4b5fd !important;
}

[data-theme="dark"] .info-card p,
[data-theme="dark"] .rule-content p,
[data-theme="dark"] .feature-list li,
[data-theme="dark"] .section-content,
[data-theme="dark"] .section-content p,
[data-theme="dark"] .intro-box p,
[data-theme="dark"] .tos-section p,
[data-theme="dark"] .tos-section ul,
[data-theme="dark"] .conduct-section p,
[data-theme="dark"] .conduct-section ul,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .warning-box p {
    color: #b8aacf !important;
}

/* ---- Server details table ---- */
[data-theme="dark"] .detail-value {
    background: rgba(133, 120, 230, 0.18);
    color: #e2d9f3;
}

[data-theme="dark"] .detail-row {
    border-color: rgba(133, 120, 230, 0.12);
}

[data-theme="dark"] .detail-row:hover {
    background: rgba(133, 120, 230, 0.08);
}

/* ---- Feature list ---- */
[data-theme="dark"] .feature-list li {
    border-color: rgba(133, 120, 230, 0.1);
    color: #b8aacf !important;
}

[data-theme="dark"] .feature-list li:hover {
    color: #c4b5fd !important;
}

/* ---- Rule items ---- */
[data-theme="dark"] .rule-item {
    border-color: rgba(133, 120, 230, 0.1);
}

[data-theme="dark"] .rule-item:hover {
    background: rgba(133, 120, 230, 0.07);
}

/* ---- Game cards on main index ---- */
/* The outer .game-card has no border-radius — keep it transparent so only
   the rounded .game-card-inner is visible, matching light-mode behaviour */
[data-theme="dark"] .game-card {
    background: transparent;
}

[data-theme="dark"] .game-card-inner {
    background: linear-gradient(135deg, #1e1540, #160f30);
    border-color: rgba(133, 120, 230, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .game-card:hover .game-card-inner {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65),
                0 0 0 2px rgba(133, 120, 230, 0.45) inset;
}

[data-theme="dark"] .game-title {
    color: #c4b5fd;
}

[data-theme="dark"] .game-description {
    color: #9080b8;
}

[data-theme="dark"] .stat-item {
    background: rgba(73, 29, 139, 0.25);
    border-color: rgba(133, 120, 230, 0.3);
    color: #c4b5fd;
}

[data-theme="dark"] .game-card-name {
    color: #c4b5fd;
}

[data-theme="dark"] .game-card-genre,
[data-theme="dark"] .game-card-players,
[data-theme="dark"] .game-card-mode {
    color: #9080b8;
}

/* ---- Games section ---- */
[data-theme="dark"] section[style*="background: #f8f9fa"],
[data-theme="dark"] section[style*="background:#f8f9fa"] {
    background: #0d0a1a !important;
}

[data-theme="dark"] section[style*="background: white"] {
    background: #120e28 !important;
}

/* ---- Filter bar ---- */
[data-theme="dark"] .games-filter-bar .filter-btn {
    background: rgba(133, 120, 230, 0.1);
    border-color: rgba(133, 120, 230, 0.25);
    color: #c4b5fd;
}

[data-theme="dark"] .games-filter-bar .filter-btn.active {
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
}

/* ---- Gallery ---- */
[data-theme="dark"] .category-tab {
    background: #1c1438;
    border-color: rgba(133, 120, 230, 0.25);
    color: #c4b5fd;
}

[data-theme="dark"] .category-tab.active {
    background: linear-gradient(135deg, #491D8B, #8578e6);
    color: white;
}

/* ---- About/stats ---- */
[data-theme="dark"] .stats-section {
    /* already dark gradient, looks fine */
}

[data-theme="dark"] .cta-section {
    color: #e2d9f3;
}

[data-theme="dark"] .cta-btn-secondary {
    background: #1c1438;
    color: #c4b5fd;
    border-color: rgba(133, 120, 230, 0.35);
}

/* ---- Dropdown menu already dark — stays the same ---- */

/* ---- Hero sections — already dark, no change needed ---- */

/* ---- CTA box on TOS/Conduct — stays dark purple, fine ---- */

/* ---- Section header gradient in gallery ---- */
[data-theme="dark"] .section-header p {
    color: #9080b8;
}

/* ---- Membership section title ---- */
[data-theme="dark"] .membership-subtitle {
    color: #c4b5fd;
}

/* ---- Body background on main page light sections ---- */
[data-theme="dark"] #socials {
    /* already dark purple — stays */
}

/* ---- Scrollbar in dark mode ---- */
[data-theme="dark"] * {
    scrollbar-color: #8578e6 #1c1438;
}

[data-theme="dark"] *::-webkit-scrollbar-track {
    background: #1c1438;
}

[data-theme="dark"] *::-webkit-scrollbar-thumb {
    background-color: #8578e6;
}