/* Hytale F2P Launcher - Modern Gaming Design */

:root {
    --primary-color: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary-color: #10b981;
    --dark-bg: #0f172a;
    --darker-bg: #0a0f1e;
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-hover: rgba(51, 65, 85, 0.9);
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-color: rgba(139, 92, 246, 0.2);
    --glow-purple: rgba(139, 92, 246, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0f1e;
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Hytale Background */
.hytale-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: 
        linear-gradient(135deg, rgba(10, 15, 30, 0.85) 0%, rgba(30, 27, 75, 0.80) 50%, rgba(49, 46, 129, 0.85) 100%),
        url('../../background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hytale-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(10, 15, 30, 0.3) 100%);
    animation: backgroundPulse 15s ease-in-out infinite;
    mix-blend-mode: screen;
}

.hytale-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 92, 246, 0.03) 2px, rgba(139, 92, 246, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 92, 246, 0.03) 2px, rgba(139, 92, 246, 0.03) 4px);
    opacity: 0.3;
}

/* Scan line effect */
.hytale-background .scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        transparent 100%);
    animation: scan 8s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        transform: translateY(-100px);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Floating Orbs Animation */
.hytale-background .orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent);
    filter: blur(35px);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    35% {
        transform: translate(28px, -32px) scale(1.08);
    }
    68% {
        transform: translate(-22px, 18px) scale(0.92);
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

body > * {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--glow-purple);
    transition: all 0.3s;
}

.nav-brand a:hover {
    letter-spacing: 3px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(125deg, #ffffff 0%, #8b5cf6 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6));
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.8));
    }
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.server-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.4);
    }
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.alert i {
    font-size: 1.25rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.alert-info {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: var(--primary-light);
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.3s;
}

.alert a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease-out;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.server-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(51, 65, 85, 0.8);
    color: white;
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-thumbs {
    background: rgba(16, 185, 129, 0.1);
    border: 1.5px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-thumbs:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-thumbs.voted {
    background: var(--secondary-color);
    color: white;
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.btn-icon:hover {
    color: var(--secondary-color);
}

.btn-icon.delete:hover {
    color: var(--error-color);
}

/* Action Bar */
.action-bar {
    margin-bottom: 2.5rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Sponsored Servers Section */
.sponsored-section {
    margin-bottom: 3rem;
}

.sponsored-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.sponsored-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sponsored-header h2 i {
    font-size: 1.4rem;
}

.sponsored-badge {
    background: linear-gradient(125deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    padding: 0.4rem 0.85rem;
    border-radius: 18px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 12px rgba(251, 191, 36, 0.35);
    animation: sponsoredPulse 3s ease-in-out infinite;
}

@keyframes sponsoredPulse {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(251, 191, 36, 0.35);
    }
    50% {
        box-shadow: 0 5px 20px rgba(251, 191, 36, 0.6);
    }
}

.server-card.sponsored {
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(251, 191, 36, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.server-card.sponsored::before {
    background: linear-gradient(85deg, #fbbf24, #f59e0b, #fbbf24);
}

.server-card.sponsored:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25),
                0 0 30px rgba(251, 191, 36, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Regular Servers Section */
.regular-section {
    margin-bottom: 2rem;
}

.regular-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.regular-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.regular-header h2 i {
    font-size: 1.3rem;
}

.server-filters {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.server-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.5),
        rgba(99, 102, 241, 0.5),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    overflow: hidden;
    min-width: 120px;
}

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

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3),
                0 0 0 1px rgba(139, 92, 246, 0.2);
}

.filter-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #7c3aed 100%);
    border-color: rgba(139, 92, 246, 0.8);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5),
                0 0 30px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-btn.active i {
    transform: scale(1.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.15); }
    50% { transform: scale(1.25); }
}

.filter-btn:active {
    transform: translateY(0) scale(1);
}

.server-card.hidden {
    display: none !important;
}

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #94a3b8;
}

.no-results-message i {
    font-size: 4rem;
    color: rgba(139, 92, 246, 0.3);
    margin-bottom: 1.5rem;
}

.no-results-message h3 {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin: 0 0 0.5rem 0;
}

.no-results-message p {
    font-size: 1rem;
    margin: 0;
}

.server-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 2rem;
    padding: 1rem 1.25rem;
    min-height: 75px;
    align-items: center;
}

.server-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.server-left .rank-badge {
    font-size: 0.95rem;
    padding: 0.4rem 0.9rem;
    align-self: flex-start;
}

.server-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.server-center h2 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
    color: #f1f5f9;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.server-banner-small {
    width: 260px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.server-banner-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.server-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
    justify-content: center;
}

.server-right-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.server-right .btn {
    width: 100%;
    justify-content: center;
}

.server-right-top .btn {
    flex: 1;
}


.server-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.server-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-right: 0.2rem;
}

.server-author {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.server-author i {
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.btn-copy-ip {
    flex-shrink: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
}

.page-info {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #8b5cf6);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.server-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(139, 92, 246, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.server-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.server-card:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.server-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25),
                0 0 0 1px rgba(139, 92, 246, 0.3);
    background: rgba(51, 65, 85, 0.75);
    border-color: rgba(139, 92, 246, 0.35);
}

.server-card:hover .server-type-badge::before {
    left: 100%;
}

.server-card:hover h2 {
    color: #c4b5fd;
}

/* Top 3 Ranked Server Borders */
.server-card:has(.rank-badge.rank-1) {
    border: 3px solid #b8860b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(184, 134, 11, 0.3),
                inset 0 0 20px rgba(184, 134, 11, 0.08);
}

.server-card:has(.rank-badge.rank-1):hover {
    border-color: #daa520;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25),
                0 0 20px rgba(218, 165, 32, 0.4),
                inset 0 0 25px rgba(218, 165, 32, 0.1);
}

.server-card:has(.rank-badge.rank-2) {
    border: 3px solid #8c8c8c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(140, 140, 140, 0.3),
                inset 0 0 20px rgba(140, 140, 140, 0.08);
}

.server-card:has(.rank-badge.rank-2):hover {
    border-color: #a8a8a8;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25),
                0 0 20px rgba(168, 168, 168, 0.4),
                inset 0 0 25px rgba(168, 168, 168, 0.1);
}

.server-card:has(.rank-badge.rank-3) {
    border: 3px solid #8b4513;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(139, 69, 19, 0.3),
                inset 0 0 20px rgba(139, 69, 19, 0.08);
}

.server-card:has(.rank-badge.rank-3):hover {
    border-color: #a0522d;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25),
                0 0 20px rgba(160, 82, 45, 0.4),
                inset 0 0 25px rgba(160, 82, 45, 0.1);
}

.server-header {
    margin-bottom: 1rem;
}

.server-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.server-type-badge::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;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
}

.rank-badge.featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4), 0 0 30px rgba(251, 191, 36, 0.2);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1e293b;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #1e293b;
    border-color: rgba(192, 192, 192, 0.5);
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.5);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b8732d 100%);
    color: #fff;
    border-color: rgba(205, 127, 50, 0.5);
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.5);
}

.rank-badge:not(.featured):not(.rank-1):not(.rank-2):not(.rank-3) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(99, 102, 241, 0.8) 100%);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
}

.server-type-badge.vanilla { 
    background: linear-gradient(135deg, #3b82f6, #60a5fa); 
    color: white;
}
.server-type-badge.survival { 
    background: linear-gradient(135deg, #10b981, #34d399); 
    color: white;
}
.server-type-badge.creative { 
    background: linear-gradient(135deg, #f59e0b, #fbbf24); 
    color: white;
}
.server-type-badge.hunger-games { 
    background: linear-gradient(135deg, #ef4444, #f87171); 
    color: white;
}
.server-type-badge.pvp { 
    background: linear-gradient(135deg, #ec4899, #f472b6); 
    color: white;
}
.server-type-badge.roleplay { 
    background: linear-gradient(135deg, #8b5cf6, #a78bfa); 
    color: white;
}
.server-type-badge.adventure { 
    background: linear-gradient(135deg, #f97316, #fb923c); 
    color: white;
}
.server-type-badge.minigames { 
    background: linear-gradient(135deg, #06b6d4, #22d3ee); 
    color: white;
}
.server-type-badge.skyblock { 
    background: linear-gradient(135deg, #64748b, #94a3b8); 
    color: white;
}
.server-type-badge.prison { 
    background: linear-gradient(135deg, #475569, #64748b); 
    color: white;
}
.server-type-badge.other { 
    background: linear-gradient(135deg, #6366f1, #818cf8); 
    color: white;
}

.server-header h2 {
    font-size: 1.5rem;
    color: var(--text-light);
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item {
    position: relative;
}

.info-item i {
    color: var(--primary-color);
}

/* Copy IP Button */
.btn-copy-ip {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 0.75rem;
    margin-left: 0.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.btn-copy-ip:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-copy-ip:active {
    transform: translateY(0);
}

/* Player Count Status */
.player-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-online,
.status-offline {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981, 0 0 12px rgba(16, 185, 129, 0.5);
    animation: pulse-online 2s infinite;
}

.status-offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 7px #10b981, 0 0 11px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 11px #10b981, 0 0 18px rgba(16, 185, 129, 0.75);
    }
}

.server-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.server-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.thumbs-count {
    margin-left: 0.25rem;
}

/* No Servers */
.no-servers {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.no-servers i {
    font-size: 5rem;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-servers h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.no-servers p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Auth Box */
.auth-box {
    max-width: 480px;
    margin: 2rem auto;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #8b5cf6);
    background-size: 200% 100%;
    border-radius: 20px 20px 0 0;
    animation: shimmer 3s infinite;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Forms */
.form-container {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group input[type="file"] {
    padding: 0.6rem;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 
                0 8px 32px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6, #a78bfa);
    transition: width 0.3s;
}

.stat-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.stat-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.stat-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.dashboard-actions {
    margin-bottom: 2.5rem;
}

.dashboard-section {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-section h2 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.75rem;
}

/* Table */
.server-table {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-table table {
    width: 100%;
    border-collapse: collapse;
}

.server-table th,
.server-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.server-table th {
    background: rgba(15, 23, 42, 0.9);
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.server-table tbody tr {
    transition: all 0.3s;
}

.server-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

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

.server-table td.actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Badge color variants (matching server-type-badge) */
.badge.vanilla { 
    background: linear-gradient(135deg, #3b82f6, #60a5fa); 
    color: white;
}
.badge.survival { 
    background: linear-gradient(135deg, #10b981, #34d399); 
    color: white;
}
.badge.creative { 
    background: linear-gradient(135deg, #f59e0b, #fbbf24); 
    color: white;
}
.badge.hunger-games { 
    background: linear-gradient(135deg, #ef4444, #f87171); 
    color: white;
}
.badge.pvp { 
    background: linear-gradient(135deg, #ec4899, #f472b6); 
    color: white;
}
.badge.roleplay { 
    background: linear-gradient(135deg, #8b5cf6, #a78bfa); 
    color: white;
}
.badge.adventure { 
    background: linear-gradient(135deg, #f97316, #fb923c); 
    color: white;
}
.badge.minigames { 
    background: linear-gradient(135deg, #06b6d4, #22d3ee); 
    color: white;
}
.badge.skyblock { 
    background: linear-gradient(135deg, #64748b, #94a3b8); 
    color: white;
}
.badge.prison { 
    background: linear-gradient(135deg, #475569, #64748b); 
    color: white;
}
.badge.other { 
    background: linear-gradient(135deg, #6366f1, #818cf8); 
    color: white;
}

/* Server Detail */
.server-detail {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.server-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-color);
}

.server-detail-header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.server-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.server-meta i {
    color: var(--primary-color);
}

.server-vote-box {
    text-align: center;
}

.btn-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 16px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    min-width: 120px;
}

.btn-vote:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.btn-vote.voted {
    background: var(--secondary-color);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-vote i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.vote-count {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.vote-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.server-info-box,
.server-description-box,
.server-actions-box {
    margin-bottom: 2.5rem;
}

.server-info-box h2,
.server-description-box h2 {
    background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    gap: 1.25rem;
}

.info-grid .info-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.info-grid .info-item:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(5px);
}

.info-label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.info-value {
    color: var(--text-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.info-value code {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--primary-light);
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 1rem;
}

.btn-copy {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.description-content {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    padding: 2rem;
    border-radius: 16px;
    line-height: 1.9;
    border: 1px solid rgba(139, 92, 246, 0.15);
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-actions-box {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer p {
    font-weight: 500;
    font-size: 0.95rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
    border-radius: 6px;
    border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa, #8b5cf6);
}

/* Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

/* Utility Classes */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glass Card Hover Effect */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav-brand a {
        font-size: 1.35rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .nav-menu a {
        justify-content: center;
    }
    
    .server-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .server-detail-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .server-actions {
        flex-direction: column;
    }
    
    .server-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

