/* Fonts loaded async in header.php - do NOT use @import (causes render-blocking waterfall) */

/* Custom Scrollbar — dark cyberpunk neon */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.25);
    border: 1px solid rgba(0, 255, 255, 0.15);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.4);
}
/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.25) #0a0a0f;
}

/* Final mobile override to keep rating and (count) on one line */
@media (max-width: 1024px) {
  body .server-item .server-badges .badge-rating,
  .server-badges .badge-rating {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 4px !important;
  }

/* Breadcrumbs: force square style (no rounded corners) */
.breadcrumb-container,
.breadcrumb-list,
.breadcrumb-item,
.breadcrumb-link,
.breadcrumb-current {
  border-radius: 0 !important;
}
.breadcrumb-link,
.breadcrumb-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: none;
  color: #00ffff;
}
.breadcrumb-separator {
  margin: 0 6px;
}
  .server-badges .badge-rating i { display: inline-block !important; margin-right: 6px !important; line-height: 1 !important; }
  .server-badges .badge-rating small { display: inline !important; margin-left: 2px !important; line-height: 1 !important; white-space: nowrap !important; }
}
/*
==================================
    Modern Light Theme Redesign
==================================
*/

/* Read More Button Styles */
button.read-more-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 46px;
    box-sizing: border-box;
    border-radius: 0px;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00cccc, #00ffff);
    color: #0a0a0f;
    border: 1px solid #00ffff;
    margin: 0.45rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 255, 255, 0.2);
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
}
button.read-more-btn:focus, button.read-more-btn:hover {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    outline: none;
}

/* --- Content Header (Index & Category) --- */
.content-header {
  margin: 1rem 0 0;
  padding-bottom: 0; /* no extra space below header */
}
.content-header .main-title {
  /* Fancy gradient text + reveal underline */
  margin: 0 0 0.75rem 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 2vw + 1rem, 2.4rem);
  line-height: 1.2;
  display: inline-block;
  background: linear-gradient(135deg, #00ffff 0%, #ff00ff 40%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(109,40,217,0.20));
  position: relative;
  animation: titleFadeUp .6s ease-out both;
  --kitt-width: 80px; /* width of the scanner bar */
}
.content-header .main-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 4px;
  width: 0; /* reveal width, then stays full */
  border-radius: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff, #fff);
  animation: titleUnderline 1.1s .2s cubic-bezier(.22,1,.36,1) forwards;
}
.content-header .main-title::before {
  /* Knight Rider scanner over the underline */
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: var(--kitt-width);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, #000 25%, #333 50%, #000 75%, rgba(255,255,255,0.05) 100%);
  box-shadow: 0 0 8px rgba(0,0,0,0.45), 0 0 16px rgba(0,0,0,0.35);
  pointer-events: none;
  opacity: 0; /* becomes visible after the base line draws */
  animation: kittDelay .9s ease-out forwards, kittScan 2.6s 1.1s ease-in-out infinite alternate;
}
.content-header p:not(.category-description) {
  color: #00ffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.84rem;
  line-height: 1.6; /* match category feel */
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
  margin: 10px 0 20px; /* match category spacing */
}

/* Ensure category pages keep their intended spacing */
.content-header .category-description {
  margin-top: 10px; /* keep category spacing */
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Rajdhani', sans-serif;
  color: #00ffff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
@media (max-width: 900px) {
  .content-header p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
}

/* Thin divider between intro text and section title */
.section-divider {
  margin: 0.5rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 255, 255, 0.4),
    rgba(255, 0, 255, 0.4),
    transparent
  );
}

/* Animations */
@keyframes titleFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes titleUnderline {
  from { width: 0; }
  to { width: 100%; }
}

/* Delay to sync the scanner with the underline reveal */
@keyframes kittDelay { from { opacity: 0; } to { opacity: 1; } }
@keyframes kittScan {
  from { left: 0; }
  to { left: calc(100% - var(--kitt-width)); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .content-header .main-title {
    animation: none !important;
  }
  .content-header .main-title::after {
    width: 100%;
    animation: none !important;
  }
  .content-header .main-title::before {
    display: none !important;
  }
}


/* Mobile fixes: Read More contrast and category badge overflow */
@media (max-width: 900px) {
  /* Ensure read-more button is readable on dark and light cards */
  body .server-item .server-description-wrapper .read-more-btn,
  body button.read-more-btn {
    background: linear-gradient(90deg, #00cccc, #00ffff) !important;
    color: #0a0a0f !important;
    border: 1px solid #00ffff !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.15) !important;
  }

  /* Category badge pinned to bottom-right of the entire card */
  body .server-item { position: relative !important; }
  /* Neutralize any intermediate positioned ancestors so absolute badge anchors to card */
  body .server-item .server-details,
  body .server-item .server-info,
  body .server-item .title-row { position: static !important; }
  body .server-item .server-info { padding-bottom: 44px !important; }
  body .server-item .category-badge {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: 130px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 5 !important;
  }
}


.error-menu {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0;
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
}
.error-menu h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}
.error-menu p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 1.6rem;
}
.error-menu .btn-primary {
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0.7rem 2.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.07);
    transition: background 0.2s;
}
.error-menu .btn-primary:hover {
    background: var(--primary-hover);
}
.error-help {
    margin-top: 1.6rem;
    color: #666;
    font-size: 1rem;
}
.error-help a {
    color: #00ffff;
    text-decoration: underline;
}


/* 1. Imports & Variables
---------------------------------- */

:root {
    /* Primary brand color — Cyan neon */
    --primary-color: #00ffff;
    --primary-hover: rgba(0, 255, 255, 0.7);
    --primary-gradient: linear-gradient(135deg, #00ffff, #00cccc);
    
    /* Secondary colors — Magenta neon */
    --secondary-color: #ff00ff;
    --secondary-hover: #cc00cc;
    --secondary-gradient: linear-gradient(135deg, #ff00ff, #cc00cc);
    
    /* Accent colors — Magenta */
    --accent-color: #ff00ff;
    --accent-hover: #cc00cc;
    --accent-gradient: linear-gradient(135deg, #ff00ff, #00ffff);
    
    /* Text colors */
    --text-dark: #e0e0e0;
    --text-light: #aaaaaa;
    --text-accent: #00ffff;
    
    /* Background colors — Dark cyberpunk */
    --background-light: #0a0a0f;
    --background-soft: #0d0d14;
    --background-gradient: linear-gradient(135deg, #0a0a0f, #0d0d14);
    
    /* Border and shadow — Neon glow */
    --border-color: rgba(0, 255, 255, 0.2);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 255, 0.05);
    --card-hover-shadow: 0 12px 28px rgba(0, 255, 255, 0.15), 0 0 30px rgba(255, 0, 255, 0.1);
    --accent-shadow: 0 6px 16px rgba(255, 0, 255, 0.2);
    
    /* Status colors — Dark theme */
    --success-bg: rgba(0, 200, 100, 0.15);
    --success-border: rgba(0, 200, 100, 0.3);
    --success-text: #00ff88;
    --success-gradient: linear-gradient(135deg, rgba(0, 200, 100, 0.15), rgba(0, 200, 100, 0.1));
    
    --danger-bg: rgba(255, 50, 50, 0.15);
    --danger-border: rgba(255, 50, 50, 0.3);
    --danger-text: #ff4444;
    --danger-gradient: linear-gradient(135deg, rgba(255, 50, 50, 0.15), rgba(255, 50, 50, 0.1));
    
    /* Font — Syphon Tools stack */
    --font-family: 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    
    /* Animation timing */
    --transition-speed: 0.3s;
}

/* Only add rounded corners on mobile/tablet */
@media (max-width: 1024px) {
  /* Keep rating value and (count) on one line */
  body .server-item .server-badges .badge-rating,
  body .server-badges .badge-rating {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 4px !important;
    white-space: nowrap !important;
    padding: 10px 12px !important;
    height: auto !important;
  }
  body .server-badges .badge-rating i { margin-right: 6px !important; display: inline-block !important; }
  body .server-badges .badge-rating small {
    display: inline !important;
    margin-left: 2px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 900px) {
  body .server-badges .badge-rating {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    white-space: nowrap !important;
    padding: 10px 12px !important;
    height: auto !important;
    line-height: 1 !important;
    min-width: 0 !important;
  }
  body .server-badges .badge-rating i { margin-right: 6px !important; display: inline-block !important; line-height: 1 !important; }
  body .server-badges .badge-rating small {
    display: inline !important;
    margin-left: 2px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  /* In case other rules made small block-level */
  body .server-badges .badge-rating * { vertical-align: middle !important; }
}

.server-banner {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    box-shadow: none;
    background: #0a0a0f;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    position: relative;
    filter: brightness(0.7);
}
/* Category Page Specifics */
.category-description {
    font-size: 1rem;
    color: #a0a0a0;
    margin-top: 10px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center; /* Center the description text */
}

/* 2. General & Body Styling
---------------------------------- */
body {
    font-family: var(--font-family);
    background: #0a0a0f;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

a {
    color: #bf00ff;
    transition: color 0.2s ease;
}
a:hover {
    color: #d946ef;
    text-shadow: 0 0 8px rgba(191, 0, 255, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Add more space after the header */
header + .container {
    margin-top: 2.5rem;
}

main {
    padding: 2rem 0;
}

h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 3. Header & Navigation
---------------------------------- */
header {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.85) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    transition: background 0.3s, box-shadow 0.3s, border-bottom 0.3s;
}

header.header-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    transition: background 0.3s, box-shadow 0.3s, border-bottom 0.3s;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 901px) {
    header .container {
        justify-content: space-between;
    }
}

header #branding h1 {
    margin: 0;
    font-size: 1.8rem;
}

.header-logo {
    max-height: 84px; /* 30% smaller than original 120px */
    width: auto;
    vertical-align: middle;
}

header #branding a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
}

header #branding a:hover {
    color: var(--primary-color);
    filter: brightness(1.13);
    transform: scale(1.05);
}

header nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 1.8rem;
}

header nav ul li a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    position: relative;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    margin: 0 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    border-color: rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* 4. Server Listings (Card-based)
---------------------------------- */
/* Updated Server List Layout */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.server-item {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.06) 0%, rgba(255, 0, 255, 0.03) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
    z-index: 2;
}

.server-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: #ff00ff;
}

.server-item:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.server-item h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.server-item h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color var(--transition-speed) ease;
    position: relative;
    display: inline-block;
}

.server-item h3 a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-speed) ease;
}

.server-item h3 a:hover {
    color: var(--primary-color);
}

.server-item h3 a:hover::after {
    width: 100%;
}

.server-item .votes {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}


/* 5. Buttons & Forms
---------------------------------- */
.btn {
    display: inline-block;
    background: transparent;
    color: #e0e0e0;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.06);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s ease;
}

.btn:hover {
    transform: none;
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
}

.btn:hover:before {
    opacity: 1;
}

.btn:active {
    transform: none;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
}

.btn-primary { 
    background: transparent;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0 !important;
}

.btn-info {
    border-radius: 0 !important;
}

.btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: none;
}

.btn-secondary:hover {
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
}

.btn-secondary:before {
    background: rgba(0, 255, 255, 0.06);
}


.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #e60000);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.15);
}

.btn-danger:hover {
    box-shadow: 0 6px 15px rgba(230, 0, 0, 0.25);
}

.btn-danger:before {
    background: #e60000;
}

.btn-block { display: block; width: 100%; }

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='password'],
.form-group input[type='email'],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: rgba(10, 10, 15, 0.8);
    color: #e0e0e0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-group select {
    color-scheme: dark;
}

.form-group select option {
    background: #111118;
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15), 0 0 15px rgba(0, 255, 255, 0.1);
}

/* 6. Layout & Widgets
 ---------------------------------- */


.content-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 40px;
}

.sidebar {
    width: 280px;
    min-width: 280px;
}

.main-content {
    flex-grow: 1;
    background: rgba(10, 10, 15, 0.8);
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.widget {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.03) 100%);
    padding: 2.2rem 1.3rem 2rem 1.3rem;
    border-radius: 0;
    margin-bottom: 2.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 255, 0.05);
    transition: box-shadow 0.25s cubic-bezier(.4,2,.6,1), background 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.15);
}

/* Sidebar categories list styling */
.widget > ul {
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0 !important;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.widget > ul li {
    border-radius: 0 !important;
    margin-bottom: 0;
    list-style: none;
    border-bottom: 1.5px solid rgba(0, 255, 255, 0.08);
}
.widget > ul li:last-child {
    border-bottom: none;
    border-radius: 0 !important;
    margin-bottom: 0;
}
.widget > ul li a {
    font-weight: 700;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.75rem 1.3rem 0.75rem 1.1rem;
    border-radius: 0;
    display: block;
    background: transparent;
    font-size: 1.12rem;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
    box-shadow: none;
}
.widget > ul li a:hover, .widget > ul li a.active {
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
    text-shadow: none;
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
    transform: none;
}

/* Category icons (Font Awesome) - drop-in replacement for image logos */
.category-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #00ffff;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.category-link:hover .category-icon { transform: scale(1.1); }



/* Sidebar categories title modern */
.widget > h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 1.1rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .widget > ul {
        padding: 0.7rem 0.2rem;
        gap: 0.25rem;
    }
    .widget > ul li a {
        font-size: 0.97rem;
        padding: 0.45rem 0.7rem;
    }
    .widget > h3 {
        font-size: 1.08rem;
    }
}



/* Empty State Card Styling */
.empty-state-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.03));
    border-radius: 0;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.empty-state-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.empty-state-card p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.empty-state-card .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.server-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    border-radius: 0;
    background: transparent;
    color: #e0e0e0;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.server-actions .btn-social {
    padding: 8px 12px;
    border-radius: 0;
}

.server-actions .btn-social i {
    font-size: 16px;
    line-height: 1;
}

/* Square corners and transparency override - BUT NOT FOR BUTTONS */
.widget, .card, .pagination, .page-link, .sidebar, nav, .menu {
  border-radius: 0 !important;
}

/* But force rounded corners for buttons inside these elements */
.widget .btn,
.card .btn,
.widget a.btn,
.card a.btn,
.widget .server-actions a,
.card .server-actions a,
.widget .server-badges .badge,
.card .server-badges .badge {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
}

/* Removed conflicting .btn-vote styles - now using inline styles from index.php and category.php */

.server-actions .btn-social {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.server-actions .btn-social:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    color: #00ffff !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
    transform: none !important;
    border-radius: 0 !important;
}

/* Discord Button — same as Details */
.server-actions a[title*="Discord"] {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.server-actions a[title*="Discord"]:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    color: #00ffff !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
    transform: none !important;
}

/* Facebook Button — same as Details */
.server-actions a[title*="Facebook"] {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.server-actions a[title*="Facebook"]:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    color: #00ffff !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
    transform: none !important;
}

/* Server Detail Page
-----------------------------------*/
/* Modern Breadcrumb Styles */
.modern-breadcrumb {
    margin-bottom: 2rem;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.breadcrumb-container {
    background: rgba(10, 10, 15, 0.9);
    border-radius: 0;
    padding: 12px 24px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border-radius: 0;
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 255, 255, 0.15);
}

.breadcrumb-link:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
    color: #00ffff;
    transform: none;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.breadcrumb-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb-separator {
    color: rgba(0, 255, 255, 0.3);
    font-size: 0.8rem;
    margin: 0 4px;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 0;
    color: #00ffff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.breadcrumb-current i {
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-breadcrumb {
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-container {
        padding: 10px 16px;
    }
    
    .breadcrumb-list {
        gap: 4px;
    }
    
    .breadcrumb-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .breadcrumb-link span {
        display: none;
    }
    
    .breadcrumb-link i {
        font-size: 1rem;
    }
    
    .breadcrumb-current {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        margin: 0 2px;
    }
    
    /* Show text for current item on mobile */
    .breadcrumb-current span {
        display: inline;
    }
}

/* Improved server card styling */

/* Review form highlight effect */
@keyframes highlightForm {
  0% { background-color: rgba(255, 193, 7, 0.1); }
  50% { background-color: rgba(255, 193, 7, 0.3); }
  100% { background-color: rgba(255, 193, 7, 0); }
}

.highlight-form {
  animation: highlightForm 2s ease-out;
}

/* Mobile centering for server cards and lists */
@media (max-width: 900px) {
  /* Fix index and category page layouts */
  .server-list, .category-list, .main-server-list, .servers-grid,
  .index-main-content, .category-content, .server-list-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
  }
  
  /* Reorganize server badges for mobile */
  .server-badges {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 10px !important;
  }
  
  /* Force horizontal layout for vote badges */
  .server-badges .badge {
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  /* Specifically for vote and view badges */
  .server-badges .badge-votes,
  .server-badges .badge-views {
    margin: 5px 10px !important;
    background: transparent !important;
    color: #00ffff !important;
    padding: 6px 10px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    border-radius: 0 !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.15) !important;
    border: 1px solid #00ffff !important;
    outline: none !important;
  }
  
  /* Gold rating badge on mobile - exactly like PC but below votes */
  .server-badges .badge-rating,
  .server-badges .badge-primary,
  .server-badges .badge-warning,
  .server-badges .badge-success {
    display: inline-block !important;
    background: transparent !important;
    color: #00ffff !important;
    margin: 8px auto 5px auto !important;
    padding: 6px 12px !important;
    font-weight: bold !important;
    border-radius: 0 !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.15) !important;
    text-decoration: none !important;
    border: 1px solid #00ffff !important;
    outline: none !important;
  }
  
  /* Add spacing below rating badge */
  .server-badges:after {
    content: "" !important;
    display: block !important;
    height: 5px !important;
    width: 100% !important;
    clear: both !important;
  }
  
  /* Fix for the server items and cards */
  .server-item, .card-fancy, .server-card, .category-card {
    width: 96% !important;
    max-width: 430px !important;
    margin: 12px auto !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  
  /* Main content fixes */
  .content-area, .main-content, .index-main-content {
    padding: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* --- High-contrast delete/danger button styles --- */
.btn-danger, a.btn-danger {
  background: #d32f2f !important; /* Strong red */
  color: #fff !important;          /* White text for contrast */
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 6px rgba(211,47,47,0.08);
}
.btn-danger:hover, a.btn-danger:hover {
  background: #b71c1c !important; /* Even darker red on hover */
  color: #fff !important;
}
td .btn-danger {
  margin: 0 2px;
  min-width: 70px;
}

.server-item {
    background-color: var(--background-light);
    border-radius: 0;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--card-shadow);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.server-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.server-title-section h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.server-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.vote-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
}

/* Mobile Server Card Styles */
.mobile-server-card {
    display: none; /* Hidden by default, shown on mobile */
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    flex-direction: row;
    gap: 12px;
    position: relative;
}

.mobile-server-card {
    display: none;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
}

.mobile-rank-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.mobile-rank-number {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: transparent;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    box-shadow: none;
}

.mobile-details-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 0;
    transition: all 0.25s ease;
    background: transparent;
}

.mobile-details-link:hover {
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
}

.mobile-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-banner-container {
    display: block;
    width: 100%;
    max-width: 468px;
    height: auto;
    overflow: hidden;
    border-radius: 0;
}

.mobile-website-banner {
    width: 100%;
    height: auto;
    max-height: 75px;
    object-fit: contain;
    display: block;
}

.mobile-server-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 75px; /* Make room for absolute positioned votes */
}

.mobile-server-title {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.mobile-server-title a {
    color: #ff00ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.mobile-server-title a:hover {
    text-decoration: underline;
}

.mobile-server-desc {
    color: #aaa;
    font-size: 13px;
    font-weight: normal;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

.mobile-vote-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    padding: 6px;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 0;
    box-shadow: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.mobile-stats-label {
    font-size: 9px;
    color: #00ffff;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-vote-count {
    font-size: 14px;
    font-weight: bold;
    color: #00ffff;
}

/* Hide desktop cards on mobile, show mobile cards */
@media screen and (max-width: 768px) {
    .desktop-server-card {
        display: none !important;
    }
    
    .mobile-server-card {
        display: flex !important;
    }
    
    /* Ensure proper padding for mobile content area */
    .content-area, .main-content {
        padding: 10px !important;
    }
    
    /* Adjust mobile card for very small screens */
    @media screen and (max-width: 400px) {
        .mobile-server-card {
            padding: 12px;
        }
        
        .mobile-rank-number {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        
        .mobile-server-title a {
            font-size: 14px;
        }
        
        .mobile-server-desc {
            font-size: 12px;
        }
        
        .mobile-vote-count {
            font-size: 16px;
        }
    }
}

/* Role Selection Styles */
.role-selection {
    margin: 1.5rem 0;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    background: rgba(0, 255, 255, 0.03);
}

.radio-option:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
}

.radio-option input[type="radio"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.radio-option input[type="radio"]:checked + .option-label {
    color: #00ffff;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked ~ .option-description {
    color: #ff00ff;
}

.radio-option:has(input[type="radio"]:checked) {
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.option-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.option-description {
    font-size: 0.9rem;
    color: #64748b;
}

/* Review System Styles */
.star-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.star-rating .star {
    color: #cbd5e1;
    font-size: 1.25rem;
}

.star-rating .star.filled {
    color: #eab308;
}

.star-rating-input {
    display: flex;
    gap: 0.5rem;
    font-size: 1.75rem;
}

.star-rating-input .star {
    cursor: pointer;
    color: #cbd5e1;
    transition: transform 0.2s ease;
}

.star-rating-input .star:hover {
    transform: scale(1.1);
}

.star-rating-input .star.active {
    color: #eab308;
}

.review-card {
    background: rgba(0, 255, 255, 0.03);
    border-radius: 0;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-date {
    font-size: 0.85rem;
    color: #64748b;
}

.review-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.review-votes {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vote-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.vote-action:hover {
    background: rgba(226, 232, 240, 0.5);
}

.vote-action.active {
    color: #00ffff;
    font-weight: 500;
}

.vote-count {
    font-weight: 500;
}

.review-form-container {
    margin: 2rem 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.03);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.average-rating-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1;
}

.rating-count {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.rating-bars {
    flex: 1;
    margin-left: 2rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-label {
    display: flex;
    align-items: center;
    width: 2.5rem;
    margin-right: 0.5rem;
}

.rating-progress {
    flex: 1;
    height: 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background: #eab308;
    border-radius: 1rem;
}

.rating-percent {
    width: 2.5rem;
    text-align: right;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.review-form textarea {
    height: 150px;
    resize: vertical;
}

/* Sort Controls */
.sort-controls {
    background-color: var(--background-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sort-controls .sort-label {
    font-weight: 600;
    color: #00ffff;
    margin-right: 0.75rem;
}

.sort-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-links .btn-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    text-decoration: none;
    color: #aaa;
    background: rgba(10, 10, 15, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .08s ease;
}

.sort-links .btn-sort:hover,
.sort-links .btn-sort:focus {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    outline: none;
}

.sort-links .btn-sort:active {
    transform: translateY(1px);
}

.sort-links .btn-sort.active {
    background: transparent !important;
    color: #00ffff !important;
    border-color: #00ffff !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
}

@media (max-width: 900px) {
    .sort-controls {
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }
    .sort-links .btn-sort { padding: 0.4rem 0.8rem; }
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
}

/* 10. Dashboard Components
-----------------------------------*/

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 0;
    border: 1px solid rgba(0, 255, 255, 0.15);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.stat-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.status-badge {
    padding: 0.35em 0.85em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: var(--success-gradient);
    color: var(--success-text);
}

.status-active::before {
    background: var(--success-text);
}

.status-inactive {
    background: var(--danger-gradient);
    color: var(--danger-text);
}

.status-inactive::before {
    background: var(--danger-text);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 0;
    box-shadow: var(--card-shadow);
}

/* Server Description Styling - Added for server list items */
.server-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.7;
    margin: 0.8rem 0 0;
    max-width: 100%;
    width: 100%;
    word-break: break-word;
    box-sizing: border-box;
    background: rgba(0, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: none;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.server-description strong, .server-description b {
    color: #00ffff;
    font-weight: 600;
}

.server-description em, .server-description i {
    color: #ff00ff;
}

/* Responsive adjustments */
/* Mobile and Tablet Styles - Unified 2 column grid */
/* Force rounded corners globally for ALL buttons before media queries */
.server-actions a,
.server-actions .btn,
.server-actions button,
.server-badges .badge,
.server-badges .badge-rating,
.server-badges .badge-votes,
.server-badges .badge-views,
a.btn-secondary,
a.btn-details,
a.btn-social,
a.btn-vote,
.btn-secondary,
.btn-details,
.btn-social,
.btn-vote {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Desktop alignment for server badges and actions */
@media screen and (min-width: 1025px) {
  /* Center badges/actions inside each server card */
  body .server-item .server-stats-and-actions {
    display: flex !important;
    width: 100% !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    text-align: center !important;
  }
  body .server-item .server-badges,
  body .server-item .server-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: auto !important;
  }
  body .server-item .server-actions .btn,
  body .server-item .server-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 1024px) {
  /* Container becomes a single grid */
  .server-stats-and-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: calc(100% - 0.5rem) !important;
    gap: 0.35rem !important;
    padding: 0.25rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  /* Badges and actions merge into parent grid */
  .server-badges {
    display: contents !important;
  }
  
  /* Actions also merge into parent grid */
  .server-actions {
    display: contents !important;
  }
  
  /* Ensure all items have same styling - badges and buttons unified */
  .server-badges .badge,
  .server-badges .badge-rating,
  .server-actions .btn,
  .server-actions a,
  .server-actions a.btn,
  .server-actions .btn-secondary,
  .server-actions .btn-details,
  .server-actions .btn-social,
  .server-actions button,
  .server-actions > a,
  .server-actions > .btn,
  .server-stats-and-actions a,
  .server-stats-and-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 6px 4px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 0.65rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.2rem !important;
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
  }
  
  /* Hide title attributes to prevent tooltip duplication */
  .server-actions a[title] {
    pointer-events: auto !important;
  }
  
  .server-actions a[title]:after {
    content: none !important;
  }
  
  /* Icon styling - same for all */
  .server-badges .badge i,
  .server-badges .badge-rating i,
  .server-actions .btn i,
  .server-actions a i {
    font-size: 1rem !important;
    color: #00ffff !important;
    display: block !important;
    line-height: 1 !important;
    margin: 0 !important;
    opacity: 1 !important;
  }
  
  /* Text under icons - uniform styling */
  .server-badges .badge span,
  .server-badges .badge small,
  .server-actions .btn span,
  .server-actions a span {
    font-size: 0.65rem !important;
    color: #00ffff !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
  }
  
  /* Text content for buttons without spans */
  .server-actions a:not(:has(i)) {
    font-size: 0.65rem !important;
  }
  
  /* Hover effects for all items — transparent neon */
  .server-badges .badge:hover,
  .server-badges .badge-rating:hover,
  .server-actions .btn:hover,
  .server-actions a:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
    transform: none !important;
  }
  
  /* Active state */
  .server-badges .badge:active,
  .server-badges .badge-rating:active,
  .server-actions .btn:active,
  .server-actions a:active {
    transform: none !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.1) !important;
  }
  
  /* Ensure text after icons doesn't duplicate */
  .server-actions a,
  .server-badges .badge {
    text-align: center !important;
  }
  
  /* Rating badge special handling */
  .server-badges .badge-rating {
    cursor: pointer !important;
  }
  
  /* Override any conflicting styles — transparent neon outline */
  .server-actions .btn-secondary,
  .server-actions .btn-details,
  .server-actions .btn-social,
  .server-actions button {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Force rounded corners on ALL button elements with maximum specificity */
  .server-stats-and-actions a,
  .server-stats-and-actions .badge,
  .server-stats-and-actions .btn,
  .server-stats-and-actions button,
  .server-actions a[href*="server.php"],
  .server-actions a[href*="outbound.php"],
  .server-actions a[href*="discord"],
  .server-actions a[href*="facebook"],
  .server-actions a[href*="vote.php"],
  .server-actions > a,
  .server-actions > .btn,
  .server-actions > button,
  .server-actions a.btn-secondary,
  .server-actions a.btn-details,
  .server-actions a.btn-social,
  a.btn-secondary,
  a.btn-details,
  a.btn-social,
  .btn-secondary,
  .btn-details,
  .btn-social {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  
  /* Override any inline styles or default button styles */
  .server-stats-and-actions a[style],
  .server-actions a[style],
  .server-actions a:not([class]),
  .server-actions a[class=""],
  .server-actions [href*="server.php"],
  .server-actions [href*="outbound.php"],
  .server-actions [href*="vote.php"] {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
  }
}

@media screen and (max-width: 768px) {
    /* Inherit from the main mobile/tablet styles above */
    .server-actions {
        margin-top: 0;
    }
    
    /* Extra specificity for mobile to ensure rounded corners */
    .server-actions a,
    .server-actions .btn,
    .server-actions button,
    .server-badges .badge {
        border-radius: 0px !important;
        -webkit-border-radius: 0px !important;
        -moz-border-radius: 0px !important;
    }
    
    .server-item .votes {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* New Server Page Layout */
.page-server-detail-container {
    margin-top: 3rem; /* Increased spacing from header */
}

.server-header-container {
    margin-bottom: 2rem;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.server-banner-container {
    width: 100%;
    height: auto;
    background-color: #0a0a0f;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
}
.server-banner-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.3);
    pointer-events: none;
    z-index: 1;
}

.server-banner-container .server-banner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0a0a0f;
    border: none;
    filter: none;
}

.server-title-section {
    padding: 1rem 0;
    color: #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-title-section h1 {
    margin: 0;
    font-size: 2rem;
    color: #e0e0e0;
    text-shadow: none;
}

.server-title-section .badge,
.server-title-section .badge.bg-primary {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    font-weight: 500;
    padding: 6px 12px;
}

.server-title-section .badge:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
}

/* Improved Card Layout */

/* Mobile fixes for server card centering and menu drawer */
@media (max-width: 900px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
  .server-list,
  .server-card {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
  .mobile-drawer {
    width: 100% !important;
    left: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* --- Pagination (site theme) --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 40px; /* space above footer */
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  background: transparent;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}
.pagination a:hover,
.pagination a:focus {
  background: rgba(0, 255, 255, 0.08);
  color: #00ffff;
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
  outline: none;
}
.pagination a.active {
  background: transparent;
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
}
.pagination a.disabled,
.pagination a[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pagination {
    margin: 18px 0 32px;
    row-gap: 10px;
  }
}

/* --- Footer Styles (dark theme) --- */
.site-footer {
    margin-top: 56px;
    padding: 36px 0 20px;
    background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: #aaa;
}
.site-footer, .site-footer * {
    font-family: 'Rajdhani', sans-serif;
}
.site-footer .footer-description {
    color: #cbd5e1;
}
.site-footer .footer-menu h2 {
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: 0.2px;
}
.site-footer .footer-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.site-footer .footer-menu ul li {
    margin: 6px 0;
}
.site-footer .footer-menu ul li a {
    color: #c7d2fe; /* light indigo */
    text-decoration: none;
    position: relative;
    transition: color .2s ease;
}
.site-footer .footer-menu ul li a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    opacity: .95;
}
.site-footer .footer-menu ul li a:hover {
    color: #ff00ff;
}
.site-footer .footer-menu ul li a:hover::after { transform: scaleX(1); }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    margin-top: 20px;
    padding-top: 14px;
    text-align: center;
    color: #94a3b8;
}
.footer-logo-img {
    height: 120px;
    width: auto;
}

/* Desktop footer grid (minimal restore) */
@media (min-width: 901px) {
  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
  }
  .site-footer .footer-branding,
  .site-footer .footer-menu {
    text-align: left;
  }
}

/* --- Mobile Footer Centering Fixes --- */
@media (max-width: 900px) {
  .footer-main .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .footer-menu, .footer-branding {
    width: 100% !important;
    margin-bottom: 18px !important;
  }
  .footer-logo-img {
    margin: 0 auto !important;
    display: block !important;
  }
  .footer-bottom {
    text-align: center !important;
    width: 100% !important;
    padding: 15px !important;
    box-sizing: border-box !important;
  }
}


/* Loading overlay improvements */
#security-loading-overlay {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: radial-gradient(ellipse at center, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.92) 60%, rgba(17,24,39,0.96) 100%) !important;
}
#security-loading-overlay h4 { color: #e9d5ff; font-weight: 800; }
#security-loading-overlay p { color: #d1c4ff; }
#security-loading-overlay .spinner-border.text-light {
  --spinner-color: #00ffff;
  border-color: var(--spinner-color);
  border-right-color: transparent;
}

/* Alerts to match theme */
.alert.alert-danger { border-radius: 0; border: 1px solid rgba(255, 50, 50, 0.3); background: rgba(255, 50, 50, 0.1); color: #ff4444; }
.alert.alert-info { border-radius: 0; border: 1px solid rgba(0, 255, 255, 0.2); background: rgba(0, 255, 255, 0.05); color: #00ffff; }
.alert.alert-success { border-radius: 0; border: 1px solid rgba(0, 255, 136, 0.3); background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.alert.alert-warning { border-radius: 0; border: 1px solid rgba(255, 193, 7, 0.3); background: rgba(255, 193, 7, 0.1); color: #ffc107; }

/* --- Vote Card: Clean Neon Design --- */
.vote-card.card {
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 0;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.vote-card.card::before {
  content: none;
}
.vote-card.card::after {
  content: none;
}
.vote-card .card-header {
  background: rgba(0, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  color: #00ffff !important;
  padding: 1.1rem 1.4rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.vote-card .card-header::after {
  content: "Secure • No bots • One vote/day";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: .78rem;
  opacity: .9;
}
.vote-card .card-header h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.3px;
  position: relative;
  color: #00ffff !important;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  --kitt-width: 80px;
}
.vote-card .card-header h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 60px;
  border-radius: 0;
  background: #00ffff;
  animation: titleUnderline 1.1s .15s cubic-bezier(.22,1,.36,1) forwards;
}
.vote-card .card-header h3::marker { display:none; }
.vote-card .card-header h3:before {
  /* Maintain thumbs-up icon before text */
  content: "\f164";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
}
.vote-card .card-header h3::selection { background: transparent; }

/* Scanner bar removed */
.vote-card .card-header::before {
  content: none;
}
.vote-card .card-header h3::before {
  content: "\f164"; /* fa-thumbs-up */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #00ffff;
}
.vote-card .card-body { padding: 1.35rem 1.4rem 1.6rem; }
.vote-card .card-body p { color: #ccc; }
.vote-card .card-body .lead {
  background: rgba(0, 255, 255, 0.03);
  border-left: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.85rem 1rem;
  border-radius: 0;
  color: #ccc;
}

/* Button: transparent neon outline */
#voteButton.btn-lg {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
}
#voteButton.btn-lg:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}
#voteButton.btn-lg::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 120%; height: 100%;
  background: linear-gradient(60deg, rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.0) 70%);
  transform: skewX(-20deg);
  animation: voteShimmer 2.8s ease-in-out infinite;
}
@keyframes voteShimmer {
  from { left: -120%; }
  to { left: 130%; }
}
/* Short-range scanner for vote title underline */
@keyframes kittScanShort {
  from { transform: translateX(0); }
  to { transform: translateX(36px); }
}

/* Captcha tiles with shadow and spacing */
.vote-card .h-captcha, .vote-card .cf-turnstile {
  margin-top: 1rem;
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Referral panel as a premium callout */
.vote-card .referral-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 10px;
}
.vote-card .referral-promo h5 i { color: #00ffff; }

/* Security overlay typography & spinner hue */
#security-loading-overlay h4 { font-weight: 900; letter-spacing: 0.3px; }
#security-loading-overlay .spinner-border.text-light { filter: drop-shadow(0 0 8px rgba(167,139,250,0.55)); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  #voteButton.btn-lg::after { display: none; animation: none; }
  .vote-card .card-header::before { display: none; animation: none; }
}

/* Responsive tweaks for narrow screens */
@media (max-width: 420px) {
  .vote-card .card-header::after { display: none; }
  .vote-card.card { border-radius: 0; }
}

/* Hide Turnstile (Managed mode) visually but keep it functional */
.vote-card .cf-turnstile,
.vote-card .cf-turnstile > div {
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Center the vote card prominently (visual center across viewports) */
.vote-card.card { margin: clamp(2rem, 12vh, 10rem) auto !important; }

/* ===== BOOTSTRAP DARK OVERRIDES: Force all cards/panels/lists to dark neon theme ===== */
.card,
.card.shadow-sm {
    background: rgba(10, 10, 15, 0.9) !important;
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #e0e0e0 !important;
}
.card-header,
.card-header.bg-dark {
    background: rgba(0, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15) !important;
    border-radius: 0 !important;
    color: #00ffff !important;
}
.card-header h3,
.card-header .h5 {
    color: #00ffff !important;
}
.card-body {
    background: transparent !important;
    color: #e0e0e0 !important;
}
.card-body p,
.card-text {
    color: #ccc !important;
}
.card-footer {
    background: rgba(0, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(0, 255, 255, 0.1) !important;
}
.card-footer a {
    color: #00ffff !important;
}
.list-group-item {
    background: transparent !important;
    border-color: rgba(0, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}
.list-group-item-action {
    color: #e0e0e0 !important;
}
.list-group-item-action:hover {
    background: rgba(0, 255, 255, 0.05) !important;
    color: #00ffff !important;
}
.text-success {
    color: #00ffff !important;
}
.text-primary {
    color: #00ffff !important;
}
.text-muted {
    color: #aaa !important;
}
.breadcrumb {
    background: transparent !important;
}
.breadcrumb-item a {
    color: #00ffff !important;
}
.breadcrumb-item.active {
    color: #aaa !important;
}
/* Rating summary on server page */
.rating-summary {
    color: #e0e0e0;
}
/* Bootstrap bg-primary badge override */
.badge.bg-primary {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
}
/* Bootstrap .rounded override */
.rounded {
    border-radius: 0 !important;
}
.img-fluid.rounded {
    border-radius: 0 !important;
}

/* ===== BOOTSTRAP BUTTON OVERRIDES: transparent neon outline for ALL buttons ===== */
.btn-primary,
.btn-success,
.btn-warning,
.btn-info,
.btn-secondary,
.btn-danger,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-secondary,
a.btn-primary,
a.btn-success,
a.btn-warning,
a.btn-info,
a.btn-secondary,
a.btn-danger,
button.btn-primary,
button.btn-success,
button.btn-warning,
button.btn-info,
button.btn-secondary {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.25s ease !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-warning:hover,
.btn-warning:focus,
.btn-info:hover,
.btn-info:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-danger:hover,
.btn-danger:focus,
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover,
a.btn-primary:hover,
a.btn-success:hover,
a.btn-warning:hover,
a.btn-info:hover,
a.btn-secondary:hover,
a.btn-danger:hover,
button.btn-primary:hover,
button.btn-success:hover,
button.btn-warning:hover,
button.btn-info:hover,
button.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    color: #00ffff !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
    transform: none !important;
}
/* btn-danger keep red tint */
.btn-danger {
    color: #ff4444 !important;
    border-color: rgba(255, 50, 50, 0.3) !important;
}
.btn-danger:hover,
.btn-danger:focus {
    background: rgba(255, 50, 50, 0.08) !important;
    color: #ff4444 !important;
    border-color: rgba(255, 50, 50, 0.5) !important;
    box-shadow: 0 0 12px rgba(255, 50, 50, 0.15) !important;
}
/* Fix list-group-item centering and icons */
.list-group-item i {
    color: #00ffff !important;
}
.list-group-item,
.list-group-item-action {
    text-align: center !important;
}
/* Center card headers and card body text */
.card-header {
    text-align: center !important;
}
.card-header h3,
.card-header .h5 {
    justify-content: center !important;
}

/* ===== MASTER OVERRIDE: Force ALL server buttons/badges to transparent neon outline ===== */
body .server-actions a,
body .server-actions .btn,
body .server-actions button,
body .server-actions a.btn,
body .server-actions a.btn-vote,
body .server-actions a.btn-details,
body .server-actions a.btn-secondary,
body .server-actions a.btn-social,
body .server-actions a[title*="Discord"],
body .server-actions a[title*="Facebook"],
body .server-actions a[href*="vote"],
body .server-actions a[href*="discord"],
body .server-actions a[href*="outbound"],
body .server-badges .badge,
body .server-badges .badge-votes,
body .server-badges .badge-views,
body .server-badges .badge-rating {
    background: transparent !important;
    color: #00ffff !important;
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
body .server-actions a:hover,
body .server-actions .btn:hover,
body .server-actions button:hover,
body .server-badges .badge:hover {
    background: rgba(0, 255, 255, 0.08) !important;
    color: #00ffff !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05) !important;
    transform: none !important;
}
body .server-actions a i,
body .server-actions .btn i,
body .server-badges .badge i {
    color: #00ffff !important;
}
