/* ========================================
   SUPERIORITY THEME - CLEAN REWRITE
   ======================================== */

/* CSS Variables */
:root {
  --primary-gold: #ffd700;
  --secondary-gold: #ffa500;
  --accent-gold: #ff8c00;
  --gold-light: #ffef94;
  --gold-dark: #b8860b;
  --dark-bg: #2c2c2c;
  --card-bg: #3c3c3c;
  --nav-bg: #1e1e1e;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

body {
  font-family: "Roboto", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  padding-top: 70px;
}

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

.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(179deg, #211e01 0%, #000000 100%);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -3;
}

.hero-video-youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -2;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  transition: background 0.3s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: heroEntry 2s ease-out;
}

/* Hero Logo */
.hero-logo-glow {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 6s ease-in-out infinite;
}

.glow-effect {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: radial-gradient(circle,
      rgba(255, 215, 0, 0.4) 0%,
      rgba(255, 215, 0, 0.2) 40%,
      transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-logo-image {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
  z-index: 1;
  position: relative;
  animation: logoRotate 12s linear infinite;
}

/* Fallback logo */
.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  color: #000;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  animation: logoFloat 4s ease-in-out infinite,
    logoGlow 3s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.hero-logo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transform: rotate(45deg);
  animation: logoShine 3s ease-in-out infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: textGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: fadeInDelay 2s ease-out 0.5s both;
}

/* ========================================
   FEATURED SERVERS SECTION
   ======================================== */

.featured-section {
  background: linear-gradient(179deg, #211e01 0%, #000000 100%);
  padding: 80px 0;
  min-height: 100vh;
}

.section-title {
  text-align: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border-radius: 2px;
}

/* Server Grid */
.servers-grid,
.servers-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.no-servers-message {
  grid-column: 1 / -1;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

.server-card {
  background: rgba(60, 60, 80, 0.9);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: cardEntry 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.server-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

/* Server Status Indicator */
.server-status-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.online {
  background: #39ff14;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.status-dot.offline {
  background: #ff073a;
  box-shadow: 0 0 8px rgba(255, 7, 58, 0.6);
}

/* ========================================
   SLIDESHOW SYSTEM
   ======================================== */

.slideshow-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide Overlay */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.slideshow-container:hover .slide-overlay {
  transform: translateY(0);
}

.slide-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-server-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
}

.slide-server-ip {
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
  background: rgba(255, 215, 0, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
}

/* Navigation Arrows */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffd700;
  color: #ffd700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
}

.slideshow-container:hover .slideshow-nav {
  opacity: 1;
  visibility: visible;
}

.slideshow-nav:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.slideshow-nav.prev {
  left: 15px;
}

.slideshow-nav.next {
  right: 15px;
}

/* Indicators */
.slideshow-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transform: scale(1.3);
}

/* Single Image */
.server-image-container {
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.server-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.server-card:hover .server-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(255, 215, 0, 0.1),
      rgba(255, 140, 0, 0.1));
}

/* ========================================
   SERVER CARD CONTENT
   ======================================== */

.server-info {
  padding: 2rem;
  color: white;
}

.server-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.server-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Server Stats */
.server-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 10px;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  margin-bottom: 0.25rem;
}

.stat-number.online {
  color: #39ff14;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.stat-number.offline {
  color: #ff073a;
  text-shadow: 0 0 10px rgba(255, 7, 58, 0.3);
}

.stat-indicator {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.stat-indicator.online {
  color: #39ff14;
}

.stat-indicator.offline {
  color: #ff073a;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Server Version */
.server-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(30, 144, 255, 0.15);
  border: 1px solid rgba(30, 144, 255, 0.3);
  padding: 0.6rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #1e90ff;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ========================================
   MODDED SERVER STYLING
   ======================================== */

.modded-warning-simple {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modded-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modded-text i {
  color: #ff6b6b;
  font-size: 1.2rem;
}

.mod-downloads {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mod-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.mod-download-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mod-download-link:hover::before {
  left: 100%;
}

.mod-download-link.modrinth:hover {
  border-color: #1bd96a;
  box-shadow: 0 10px 25px rgba(27, 217, 106, 0.4);
}

.mod-download-link.curseforge:hover {
  border-color: #f16436;
  box-shadow: 0 10px 25px rgba(241, 100, 54, 0.4);
}

.mod-download-link.prism:hover {
  border-color: #4CAF50;
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.mod-download-link.discord:hover {
  border-color: #5865f2;
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.mod-platform-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.mod-download-link:hover .mod-platform-icon {
  transform: scale(1.1);
}

/* ========================================
   SERVER IP DISPLAY
   ======================================== */

.server-ip-display {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.8rem;
  border-radius: 10px;
  text-align: center;
  font-family: "Courier New", monospace;
  color: #ffd700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.server-ip-display.clickable {
  cursor: pointer;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  font-family: 'Courier New', monospace;
  color: #FFD700;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

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

.server-ip-display.clickable:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.server-ip-display.clickable:hover::before {
  left: 100%;
}

.server-ip-display.clickable:active {
  transform: translateY(-1px) scale(0.98);
}

.server-ip {
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.copy-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

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

.button-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.join-button {
  flex: 1;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.join-button.online:hover {
  background: linear-gradient(45deg, #ffa500, #ff8c00);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.join-button.offline {
  background: linear-gradient(45deg, #6c757d, #495057);
  color: #fff;
  cursor: not-allowed;
}

.cart-button {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
}

.cart-button:hover:not(:disabled) {
  background: #ffd700;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

.footer {
  background: var(--nav-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #333;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-gold);
  color: #000;
  transform: translateY(-3px);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  transform: translateX(0);
}

/* ========================================
   AUTHENTICATION PAGES
   ======================================== */

/* Keyframe animations */
@keyframes textGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.5);
  }
}

/* Only apply these styles to login/register/password reset pages */
body:has(form[action*="login"]) main,
body:has(form[action*="register"]) main,
body:has(form[action*="password"]) main,
main:has(input[name="email"]):has(input[name="password"]) {
  min-height: calc(100vh - 140px);
  background: linear-gradient(179deg, #211e01 0%, #000000 100%);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Auth page titles - MORE SPECIFIC */
body:has(form[action*="login"]) main h1,
body:has(form[action*="register"]) main h1,
body:has(form[action*="password"]) main h1,
main:has(input[name="email"]):has(input[name="password"]) h1 {
  color: #FFD700;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  animation: textGlow 2s ease-in-out infinite alternate;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Auth page cards - PROPER CENTERING */
body:has(form[action*="login"]) .card,
body:has(form[action*="register"]) .card,
body:has(form[action*="password"]) .card,
main:has(input[name="email"]):has(input[name="password"]) .card {
  background: rgba(60, 60, 80, 0.95) !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px);
  overflow: visible;
  transition: all 0.3s ease;
  width: 500px !important;
  max-width: 500px !important;
  margin: 0 !important;
  padding: 1.5rem 2rem;
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

body:has(form[action*="login"]) .card:hover,
body:has(form[action*="register"]) .card:hover,
body:has(form[action*="password"]) .card:hover,
main:has(input[name="email"]):has(input[name="password"]) .card:hover {
  border-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 30px 80px rgba(255, 215, 0, 0.2) !important;
  /* REMOVED: transform: translateY(-5px); - this was causing the shift! */
}

/* Auth form styling */
body:has(form[action*="login"]) .form-label,
body:has(form[action*="register"]) .form-label,
body:has(form[action*="password"]) .form-label,
main:has(input[name="email"]):has(input[name="password"]) .form-label {
  color: #FFD700 !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

body:has(form[action*="login"]) .form-control,
body:has(form[action*="register"]) .form-control,
body:has(form[action*="password"]) .form-control,
main:has(input[name="email"]):has(input[name="password"]) .form-control {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  height: 45px;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 1rem !important;
}

body:has(form[action*="login"]) .form-control:focus,
body:has(form[action*="register"]) .form-control:focus,
body:has(form[action*="password"]) .form-control:focus,
main:has(input[name="email"]):has(input[name="password"]) .form-control:focus {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Primary buttons - ONLY IN FORMS */
body:has(form[action*="login"]) main .btn-primary,
body:has(form[action*="register"]) main .btn-primary,
body:has(form[action*="password"]) main .btn-primary,
main:has(input[name="email"]):has(input[name="password"]) .btn-primary {
  background: linear-gradient(135deg, #FFD700, #FFA500) !important;
  border: none !important;
  color: #000 !important;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem 2rem !important;
  border-radius: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3) !important;
  width: 100% !important; /* Full width */
  height: 50px !important; /* Proper height */
  display: flex !important; /* Fix alignment */
  align-items: center !important; /* Center text */
  justify-content: center !important; /* Center text */
  margin-top: 1rem !important; /* Add spacing */
}

body:has(form[action*="login"]) main .btn-primary:hover,
body:has(form[action*="register"]) main .btn-primary:hover,
body:has(form[action*="password"]) main .btn-primary:hover,
main:has(input[name="email"]):has(input[name="password"]) .btn-primary:hover {
  background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5) !important;
  color: #000 !important;
}

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

@keyframes heroEntry {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  25% {
    transform: translateY(-20px) scale(1.05);
  }

  50% {
    transform: translateY(-10px) scale(1);
  }

  75% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes logoRotate {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

@keyframes glowPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3),
      0 0 30px rgba(255, 215, 0, 0.2);
  }

  100% {
    box-shadow: 0 25px 80px rgba(255, 215, 0, 0.5),
      0 0 50px rgba(255, 215, 0, 0.4);
  }
}

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

  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }

  100% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
  }
}

@keyframes fadeInDelay {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEntry {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }

  70% {
    transform: translate3d(0, -15px, 0);
  }

  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

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

.server-card:nth-child(1) {
  animation-delay: 0s;
}

.server-card:nth-child(2) {
  animation-delay: 0.2s;
}

.server-card:nth-child(3) {
  animation-delay: 0.4s;
}

.server-card:nth-child(4) {
  animation-delay: 0.6s;
}

.server-card:nth-child(5) {
  animation-delay: 0.8s;
}

.server-card:nth-child(6) {
  animation-delay: 1s;
}

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

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

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

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.bounce {
  animation: bounce 1s ease;
}

.shake {
  animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.rotate {
  animation: rotate 2s linear infinite;
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .hero-content {
    animation-duration: 1.5s;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-logo-glow,
  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .hero-logo-image {
    max-width: 150px;
    max-height: 150px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .featured-section {
    padding: 60px 0;
  }

  .servers-grid,
  .servers-grid-simple {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .server-card {
    max-width: 100%;
    margin: 0;
    animation-duration: 0.6s;
  }

  .server-info {
    padding: 1.5rem;
  }

  .server-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .stat-label {
    grid-column: 1;
  }

  .stat-number {
    grid-column: 2;
    margin-bottom: 0;
  }

  .stat-indicator {
    grid-column: 3;
    margin-bottom: 0;
  }

  .button-group {
    flex-direction: column;
  }

  .cart-button {
    width: 100%;
    padding: 1rem;
  }

  .server-status-indicator {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .server-ip-display.clickable {
    padding: 1rem;
  }

  .mod-downloads {
    gap: 0.5rem;
  }

  .mod-download-link {
    width: 40px;
    height: 40px;
  }

  .mod-platform-icon {
    width: 22px;
    height: 22px;
  }

  .slideshow-nav {
    width: 35px;
    height: 35px;
  }

  .slideshow-nav i {
    font-size: 1rem;
  }

  /* Auth page mobile */
  body:has(form[action*="login"]) main,
  body:has(form[action*="register"]) main,
  body:has(form[action*="password"]) main,
  main:has(input[name="email"]):has(input[name="password"]) {
    padding: 1rem;
    min-height: calc(100vh - 120px);
  }

  body:has(form[action*="login"]) main h1,
  body:has(form[action*="register"]) main h1,
  body:has(form[action*="password"]) main h1,
  main:has(input[name="email"]):has(input[name="password"]) h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  body:has(form[action*="login"]) .card-body,
  body:has(form[action*="register"]) .card-body,
  body:has(form[action*="password"]) .card-body,
  main:has(input[name="email"]):has(input[name="password"]) .card-body {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-logo-glow,
  .hero-logo {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }

  .hero-logo-image {
    max-width: 120px;
    max-height: 120px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .servers-grid,
  .servers-grid-simple {
    padding: 0 0.5rem;
  }

  .server-info {
    padding: 1rem;
  }

  /* Auth page mobile small */
  body:has(form[action*="login"]) main,
  body:has(form[action*="register"]) main,
  body:has(form[action*="password"]) main,
  main:has(input[name="email"]):has(input[name="password"]) {
    padding: 0.5rem;
  }

  body:has(form[action*="login"]) main h1,
  body:has(form[action*="register"]) main h1,
  body:has(form[action*="password"]) main h1,
  main:has(input[name="email"]):has(input[name="password"]) h1 {
    font-size: 1.75rem;
  }

  body:has(form[action*="login"]) .card-body,
  body:has(form[action*="register"]) .card-body,
  body:has(form[action*="password"]) .card-body,
  main:has(input[name="email"]):has(input[name="password"]) .card-body {
    padding: 1rem !important;
  }

  body:has(form[action*="login"]) .btn-primary,
  body:has(form[action*="register"]) .btn-primary,
  body:has(form[action*="password"]) .btn-primary,
  main:has(input[name="email"]):has(input[name="password"]) .btn-primary {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem;
  }
}

/* ========================================
   DARK TABLE BACKGROUND FIX
   Replace the table styling in your CSS with this
   ======================================== */

/* FORCE DARK TABLE BACKGROUND */
.table,
table,
.table-responsive table {
  background: rgba(20, 20, 30, 0.95) !important;
  color: white !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(15px) !important;
  margin: 1rem 0 !important;
}

/* Dark table body - FORCE OVERRIDE */
.table tbody,
table tbody,
.table-responsive tbody {
  background: rgba(20, 20, 30, 0.98) !important;
}

/* Table headers - keep golden */
.table th,
table th,
.table thead th,
table thead th {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.3)) !important;
  color: #FFD700 !important;
  border-bottom: 2px solid rgba(255, 215, 0, 0.5) !important;
  border-right: 1px solid rgba(255, 215, 0, 0.2) !important;
  font-weight: bold !important;
  text-align: center !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Table body cells - FORCE DARK */
.table td,
table td,
.table tbody td,
table tbody td {
  background: rgba(30, 30, 40, 0.95) !important;
  color: white !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1) !important;
  border-right: 1px solid rgba(255, 215, 0, 0.1) !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 1rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

/* Table rows - FORCE DARK */
.table tr,
table tr,
.table tbody tr,
table tbody tr {
  background: rgba(30, 30, 40, 0.95) !important;
}

/* Table row hover effects - keep dark with golden accent */
.table tbody tr:hover,
table tbody tr:hover,
.table tr:hover,
table tr:hover {
  background: rgba(40, 40, 50, 0.98) !important;
  transform: scale(1.01) !important;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2) !important;
  border-left: 4px solid #FFD700 !important;
}

.table tbody tr:hover td,
table tbody tr:hover td {
  background: rgba(40, 40, 50, 0.98) !important;
  color: #FFD700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
}

/* Force white container background to be dark */
.container,
.container-fluid {
  background: rgba(15, 15, 25, 0.95) !important;
}

/* Specific fix for the white background issue */
.table-responsive,
.table-responsive>.table {
  background: rgba(20, 20, 30, 0.95) !important;
}

/* Force any white backgrounds to be dark */
[style*="background: white"],
[style*="background-color: white"],
[style*="background: #fff"],
[style*="background-color: #fff"] {
  background: rgba(20, 20, 30, 0.95) !important;
}

/* Player avatars/images */
.table img,
table img {
  border-radius: 10px !important;
  border: 3px solid rgba(255, 215, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  background: rgba(40, 40, 50, 0.8) !important;
  padding: 2px !important;
}

.table img:hover,
table img:hover {
  border-color: #FFD700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
  transform: scale(1.1) !important;
}

/* Username styling */
.table td:nth-child(2),
table td:nth-child(2) {
  color: #FFD700 !important;
  font-weight: 600 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

/* Date/time text styling */
.table td:nth-child(3),
table td:nth-child(3) {
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: 'Courier New', monospace !important;
  font-size: 0.9rem !important;
}

/* Role badges - keep as before */
.badge,
.label,
span.badge,
span.label {
  background: linear-gradient(135deg, #FFD700, #FFA500) !important;
  color: #000 !important;
  font-weight: bold !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
  text-shadow: none !important;
}

/* Admin role - red theme */
.badge.bg-danger,
.badge.badge-danger,
.label.label-danger {
  background: linear-gradient(135deg, #ff073a, #ff4757) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 7, 58, 0.4) !important;
}

/* Active status - green theme */
.badge.bg-success,
.badge.badge-success,
.label.label-success {
  background: linear-gradient(135deg, #39ff14, #00ff41) !important;
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.4) !important;
}
