:root {
    /* PALETA KOLORÓW - Srebro i Szkło */
    
    /* Główne tło (bardzo ciemne, prawie czarne) */
    --bg-color: #050505;
    
    /* Akcent niebieski (tylko do podświetleń, jak w logo) */
    --accent-blue: #0077ff;
    --accent-glow: rgba(0, 119, 255, 0.3);
    
    /* SZKŁO I METAL (Kluczowe zmienne) */
    /* Tło elementów: Półprzezroczyste czarne */
    --glass-bg: rgba(255, 255, 255, 0.03); 
    /* Tło elementów po najechaniu: Jaśniejsze */
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    /* Ramka: Bardzo delikatna, srebrna */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    /* Ramka po najechaniu: Wyraźniejsza biała/srebrna */
    --glass-border-hover: 1px solid rgba(255, 255, 255, 0.3);
    
    --text-white: #ffffff;
    --text-silver: #cccccc; /* Srebrzysty tekst */
    --text-gray: #888888;
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    overflow-y: auto; 
    /* Dodajemy subtelny gradient w tle całej strony, żeby szkło miało na czym pracować */
    background-image: radial-gradient(circle at 50% 0%, #1a1a20 0%, #050505 60%);
}

/* --- KLASY POMOCNICZE --- */
.glass-text {
    /* Efekt metalicznego/szklanego tekstu */
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.highlight {
    /* Nowy kolor: delikatny błękit */
    color: rgba(117, 180, 253, 0.8) !important; /* Dałem 0.8 dla lepszej czytelności tekstu */
    text-shadow: 0 0 20px rgba(117, 180, 253, 0.4);
}

/* --- HEADER --- */
header {
    position: fixed; 
    top: 30px; 
    left: 40px; 
    right: 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 100; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Płynna animacja rozciągania */
}

/* To jest ta część, która naprawia problem */
header.scrolled {
    background: rgba(5, 5, 5, 0.9); /* Ciemniejsze tło, żeby było czytelniej */
    backdrop-filter: blur(20px);
    
    /* KLUCZOWE ZMIANY DLA PEŁNEJ SZEROKOŚCI: */
    top: 0;          /* Przyklej do samej góry */
    left: 0;         /* Usuń odstęp z lewej */
    right: 0;        /* Usuń odstęp z prawej */
    width: 100%;     /* Wymuś pełną szerokość */
    
    padding: 15px 40px; /* Zmniejszamy trochę wysokość paska po scrollu */
    border-bottom: var(--glass-border);
    border-radius: 0; /* Usuwamy zaokrąglenia, bo pasek dotyka krawędzi */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); /* Dodajemy cień pod spodem */
}
.nav-logo { height: 100px; width: auto; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }

.center-nav {
    display: flex; gap: 5px; 
    background: rgba(255, 255, 255, 0.05); /* Bardzo lekkie tło */
    border: var(--glass-border);
    padding: 8px 10px; border-radius: 50px; backdrop-filter: blur(10px);
}
.center-nav a {
    color: var(--text-silver); text-decoration: none; padding: 10px 20px;
    font-size: 0.85rem; font-weight: 600; border-radius: 40px; transition: all 0.3s;
}
.center-nav a:hover, .center-nav a.active { 
    color: #fff; background-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.right-actions { display: flex; align-items: center; gap: 15px; }
.lang-selector {
    display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05);
    border: var(--glass-border); padding: 10px 18px; border-radius: 40px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-silver);
}

.btn-login {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 10px 24px; border-radius: 40px;
    font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.3s;
}
.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --- HERO SECTION --- */
.hero-container {
    position: relative; width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.bg-image { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: grayscale(100%) contrast(1.2); }
.bg-layer::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    /* Płynne przejście w czerń na dole */
    background: linear-gradient(to top, var(--bg-color) 20%, transparent 100%);
}

.text-layer {
    position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; text-align: center; z-index: 2;
}
.big-outline-text {
    font-family: 'Archivo Black', sans-serif; 
    font-size: 13vw;
    text-transform: uppercase; 
    
    color: rgba(255, 255, 255, 0.05); 
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); 
    
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        transparent 40%, 
        rgba(117, 180, 253, 0.5) 50%, 
        transparent 60%, 
        transparent 100%
    );
    background-size: 200% auto; 
    background-clip: text;
    -webkit-background-clip: text; 
    
    /* ZMIANA: Czas trwania 10s (3s ruchu + 7s przerwy) */
    animation: shineText 10s linear infinite;
    
    letter-spacing: -5px; 
    line-height: 1; 
    pointer-events: none;
    z-index: 1; 
}

/* ZMIANA: Definicja ruchu z przerwą */
@keyframes shineText {
    0% {
        background-position: -200% center; /* Start z lewej */
    }
    30% {
        background-position: 180% center; /* Koniec ruchu (po prawej) w 30% czasu */
    }
    100% {
        background-position: 180% center; /* Przez resztę czasu (70%) stoi w miejscu poza ekranem */
    }
}
.chars-layer {
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    height: 85vh; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end;
    z-index: 10; 
    
    /* POPRAWKA 1: Kontener przepuszcza myszkę (ignoruje puste tło) */
    pointer-events: none; 
}

/* --- OBRAZEK POSTACI --- */
.chars-image {
    max-height: 100%; 
    width: auto; 
    object-fit: contain; 
    
    /* POPRAWKA 1: Tylko sam obrazek reaguje na myszkę */
    pointer-events: auto; 
    cursor: pointer;

    /* POPRAWKA 2: Obniżamy obrazek, żeby schować uciętą krawędź PNG */
    position: relative;
    bottom: -40px; 

    /* POPRAWKA 3: Skalowanie odbywa się od dołu (stopy w miejscu, rośnie głowa) */
    transform-origin: bottom center;
    
    /* Domyślny wygląd (Szary) */
    filter: grayscale(100%) contrast(1.1) brightness(0.9) drop-shadow(0 0 20px rgba(0,0,0,0.8));
    
    /* Płynne przejście */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: filter, transform;
}

/* --- EFEKT PO NAJECHANIU (HOVER) --- */
/* Teraz hover jest na samym obrazku (.chars-image), a nie na warstwie */
.chars-image:hover {
    /* Kolor */
    filter: grayscale(0%) contrast(1) brightness(1) drop-shadow(0 0 60px rgba(117, 180, 253, 0.5));
    
    /* Powiększenie (tylko w górę dzięki transform-origin) */
    transform: scale(1.05); 
}

.hero-stat-box {
    position: absolute;
    right: 5%;
    
    /* ZMIANA: Było 50%, dajemy 65% żeby zjechało niżej */
    top: 65%; 
    
    transform: translateY(-50%);
    z-index: 4;
    text-align: right;
}
.stat-number {
    font-family: 'Archivo Black', sans-serif; font-size: 4rem; line-height: 1;
    color: white;
    background: linear-gradient(180deg, #ffffff 0%, #b3b3b3 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}
.stat-label { font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; margin-top: 5px; }

.scroll-down {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.3); font-size: 0.8rem; font-weight: 600;
    z-index: 5; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }

.spotlight { position: absolute; width: 40vw; height: 40vw; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%); z-index: 5; pointer-events: none; filter: blur(60px); }
.top-left { top: -15vw; left: -15vw; }
.top-right { top: -15vw; right: -15vw; }


/* --- SEKCJA LISTY SERWERÓW (Pełna zmiana stylu) --- */
.servers-section {
    position: relative; 
    background-color: transparent; /* Przezroczyste, by widać gradient body */
    padding: 60px 40px 100px;
    z-index: 20; max-width: 1400px; margin: 0 auto;
}

/* --- WYSZUKIWARKA I FILTRY (Styl Szklany) --- */
.search-controls {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 20px; border-radius: 16px; margin-bottom: 50px;
    flex-wrap: wrap; gap: 20px;
    position: relative;
    z-index: 50;
    overflow: visible;
}

.search-input-wrapper {
    flex: 1; display: flex; align-items: center; gap: 15px;
    background: rgba(0, 0, 0, 0.3); /* Ciemniejsze wnętrze inputa */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px; border-radius: 12px; min-width: 300px; transition: border-color 0.3s;
}
.search-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.search-input-wrapper input {
    background: transparent; border: none; outline: none; color: white;
    font-size: 1rem; width: 100%; font-family: 'Inter', sans-serif;
}
.search-input-wrapper input::placeholder { color: #555; }
.search-input-wrapper svg { color: #777; }

.filters-wrapper { display: flex; gap: 15px; position: relative; z-index: 51; }

.custom-select {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-silver); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px; border-radius: 12px; outline: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-weight: 500; transition: all 0.3s;
}
.custom-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-family: 'Archivo Black', sans-serif; font-size: 3rem; color: white; text-transform: uppercase; }


/* --- KARTA SERWERA (Styl Szklany/Srebrny) --- */
.servers-grid {
    display: grid;
    /* Wymuszamy 3 kolumny */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .servers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .servers-grid { grid-template-columns: 1fr; }
}

.server-card {
    /* Tło: Ciemne szkło */
    background-color: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px; overflow: hidden;
    /* ZMIANA: Usunięto transform przy hoverze */
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
    /* Tylko podświetlenie ramki i tła, BEZ RUCHU */
    background-color: var(--glass-bg-hover);
    border: var(--glass-border-hover);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); /* Cień głębi */
}

.card-image {
    height: 180px; /* Trochę wyższa grafika */
    background: radial-gradient(circle, #2a2a35 0%, #16161c 100%);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.server-logo-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.2rem; color: white;
    
    /* Szklany styl logo */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2;
}
.status-group-right {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Wyrównanie do prawej */
    gap: 8px;
    z-index: 2;
}
.server-logo-placeholder {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.5rem; color: white;
    /* Szklane logo */
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.status-badge {
    position: relative; top: auto; right: auto; /* Resetujemy stare pozycjonowanie */
    padding: 5px 12px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
    backdrop-filter: blur(5px);
}
.status-badge.online { 
    background: rgba(0, 255, 136, 0.15); 
    color: #00ff88; 
    border: 1px solid rgba(0, 255, 136, 0.3); 
}
/* Kontener na ikonki (pod statusem) */
.social-icons-vertical {
    display: flex;
    flex-direction: column; /* Ikonki jedna pod drugą */
    gap: 5px;
}

.icon-stat-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.icon-stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-stat-item svg {
    width: 14px; height: 14px;
    stroke-width: 2.5;
}

/* Kolory ikonek */
.icon-vote svg { stroke: #00d2ff; fill: rgba(0, 210, 255, 0.1); }
.icon-like svg { stroke: #ff4757; fill: rgba(255, 71, 87, 0.1); }
.card-content { padding: 25px; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card-top h3 { 
    font-size: 1.3rem; font-weight: 700; max-width: 70%; 
    color: var(--text-white);
}

.server-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tag { 
    font-size: 0.7rem; 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 6px; border-radius: 4px; color: var(--text-silver); 
}

.server-desc { font-size: 0.9rem; color: var(--text-gray); line-height: 1.5; margin-bottom: 20px; min-height: 40px; }

.server-socials { display: flex; gap: 15px; margin-bottom: 20px; }
.social-stat {
    display: flex; align-items: center; gap: 6px; font-size: 0.85rem;
    font-weight: 600; color: var(--text-silver); background: rgba(0,0,0,0.2);
    padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05);
}

.server-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-top: 15px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-silver); font-weight: 600; }
.meta-item svg { opacity: 0.6; }
.ip-address span {
    font-family: 'Courier New', monospace; 
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
    padding: 4px 8px; border-radius: 4px; color: #aaa;
}

/* Przycisk POŁĄCZ - teraz bardziej srebrno/niebieski, ale "szklany" */
.btn-connect {
    width: 100%; 
    padding: 12px;
    /* Nowe tło: półprzezroczysty błękit */
    background: rgba(117, 180, 253, 0.15); 
    border: 1px solid rgba(117, 180, 253, 0.3);
    color: white; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s;
}

.btn-connect:hover {
    /* Po najechaniu trochę jaśniejszy */
    background: rgba(117, 180, 253, 0.3);
    border-color: rgba(117, 180, 253, 0.6);
    box-shadow: 0 0 20px rgba(117, 180, 253, 0.2);
}

/* --- PAGINACJA --- */
.pagination-controls {
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 60px;
}
.page-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
    color: var(--text-gray);
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease;
}
.page-btn:hover:not(:disabled) {
    border-color: rgba(255,255,255,0.5); color: white; background: rgba(255,255,255,0.1);
}
.page-btn.active {
    color: white; border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Responsywność */
@media (max-width: 768px) {
    .servers-grid { grid-template-columns: 1fr; }
    .hero-container { height: 90vh; }
    .scroll-down { display: none; }
    header { top: 0; left: 0; right: 0; padding: 15px; background: rgba(5,5,5,0.9); }
    .center-nav { display: none; }
    .hero-stat-box { 
        position: relative; right: auto; top: auto; transform: none; 
        text-align: center; margin-bottom: 40px; order: -1; 
    }
    .hero-container { flex-direction: column; justify-content: center; }
    .search-controls { flex-direction: column; align-items: stretch; }
    .search-input-wrapper { min-width: auto; }
    .filters-wrapper { flex-direction: column; }
}

/* --- ANIMACJE SCROLLOWANIA (Cinematic Reveal) --- */

/* Stan początkowy (niewidoczny) */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Przesunięcie w dół i lekkie zmniejszenie */
    filter: blur(10px); /* Rozmycie */
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); /* Bardzo płynne przejście */
}

/* Stan końcowy (widoczny - dodawany przez JS) */
.scroll-animate.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Opóźnienia dla kart (efekt kaskady) */
/* Dzięki temu karty nie pojawiają się wszystkie naraz, tylko jedna po drugiej */
.servers-grid .server-card:nth-child(1) { transition-delay: 0.1s; }
.servers-grid .server-card:nth-child(2) { transition-delay: 0.2s; }
.servers-grid .server-card:nth-child(3) { transition-delay: 0.3s; }
.servers-grid .server-card:nth-child(4) { transition-delay: 0.4s; }

/* --- 1. NAPRAWA LIST ROZWIJANYCH (DROPDOWNÓW) --- */
.custom-select {
    /* Reset systemowego wyglądu */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-silver);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 45px 12px 20px; /* Więcej miejsca z prawej na strzałkę */
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    
    /* Własna strzałka zakodowana w SVG (srebrna) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.custom-select:hover, .custom-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Stylizacja opcji po rozwinięciu (żeby nie były białe) */
.custom-select option {
    background-color: #050505; /* Czarne tło listy */
    color: #cccccc;
    padding: 10px;
}

/* --- 2. NAPRAWA "ZOBACZ LISTĘ" I STRZAŁKI --- */
.scroll-down {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 5; cursor: pointer;
    transition: opacity 0.3s;
}

/* Tekst stylizowany jak licznik graczy */
.scroll-down span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* Gradient tekstu */
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Naprawa strzałki */
.scroll-down svg {
    width: 24px; height: 24px;
    stroke: #aaaaaa; /* Srebrny kolor bazowy */
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.scroll-down:hover svg {
    stroke: #ffffff; /* Biały przy najechaniu */
    transform: translateY(5px); /* Lekki ruch w dół */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

/* --- 3. PRZYCISK BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    /* Szklany styl */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    
    display: flex; justify-content: center; align-items: center;
    color: var(--text-silver);
    cursor: pointer;
    z-index: 90; /* Nad innymi elementami */
    
    /* Stan początkowy: ukryty */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* --- CUSTOMOWY SCROLLBAR (Cała strona) --- */
/* Pasek (tło) */
::-webkit-scrollbar {
    width: 10px; /* Szerokość paska */
    background-color: #050505; /* Kolor tła paska (prawie czarny) */
}

/* Ścieżka (Track) */
::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Uchwyt (Thumb) - ten element którym przesuwasz */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #333 0%, #222 100%); /* Ciemny metal */
    border-radius: 5px; /* Zaokrąglenie */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Delikatna ramka */
}

/* Uchwyt po najechaniu myszką */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #555 0%, #444 100%); /* Jaśniejszy metal */
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- STOPKA (FOOTER) --- */
footer {
    width: 100%;
    margin-top: 100px; /* Odstęp od listy serwerów */
    padding: 50px 20px;
    
    /* Szklany styl */
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Efekt hover na linkach w stopce */
.footer-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mała kropka pod linkiem przy najechaniu */
.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background-color: var(--text-silver);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    color: #444; /* Bardzo ciemny szary */
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Responsywność stopki */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* --- MODAL (Okna wyskakujące) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Ciemne tło pod spodem */
    backdrop-filter: blur(8px); /* Rozmycie tła strony */
    z-index: 2000; /* Musi być nad wszystkim */
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; /* Domyślnie ukryte */
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1; pointer-events: all;
}

.modal-window {
    width: 90%; max-width: 800px;
    max-height: 85vh; /* Nie może być wyższy niż ekran */
    background: #0a0a0a; /* Zapasowy kolor */
    /* Używamy Twoich zmiennych szklanych */
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-radius: 20px;
    display: flex; flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

/* Nagłówek Modala */
.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none; border: none;
    color: var(--text-gray);
    font-size: 2rem; line-height: 1;
    cursor: pointer; transition: 0.3s;
}
.modal-close:hover { color: white; transform: rotate(90deg); }

/* Treść (Scrollowana) */
.modal-content-text {
    padding: 30px;
    overflow-y: auto; /* Scroll wewnątrz okna */
    color: var(--text-silver);
    line-height: 1.6;
}

/* Stylizacja tekstu regulaminu */
.rules-section { margin-bottom: 30px; }
.rules-section h3 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
}

.rules-section ol { padding-left: 20px; }
.rules-section li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.rules-section strong { color: white; font-weight: 600; }

.modal-footer {
    padding: 15px; text-align: center;
    font-size: 0.8rem; color: #444;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}
/* --- STYL FAQ (AKORDEON) --- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--glass-text-accent); /* Twój cyjanowy kolor */
}

.faq-icon {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

/* Stan aktywny (otwarty) */
.faq-item.active .faq-question {
    color: var(--glass-text-accent);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--glass-text-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--text-silver);
    font-size: 0.95rem;
    padding: 0 10px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    /* Wystarczająco duża wartość, JS i tak to obliczy */
    max-height: 500px; 
    transition: max-height 0.4s ease-in-out;
    padding-bottom: 20px; /* Odstęp na dole po otwarciu */
}

/*LOGOWANIE */
.login-page-body {
    /* Blokujemy scrollowanie na stronie logowania, żeby była statyczna */
    overflow: hidden; 
}

.login-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    /* Używamy Twoich zmiennych szklanych */
    background: rgba(10, 10, 15, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    text-align: center;
    
    /* Mała animacja wejścia */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

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

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.login-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Przycisk Discord */
.btn-discord {
    width: 100%;
    padding: 12px;
    background-color: #5865F2; /* Oryginalny kolor Discorda */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* Separator "LUB" */
.login-separator {
    margin: 25px 0;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.login-separator::before, .login-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.login-separator span {
    padding: 0 10px;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pola tekstowe */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}
.input-group label {
    display: block;
    color: var(--text-silver);
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 600;
}
.glass-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}
.glass-input:focus {
    border-color: rgba(117, 180, 253, 0.5); /* Twój akcent */
    box-shadow: 0 0 10px rgba(117, 180, 253, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

/* Akcje formularza (checkbox, linki) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
}
.remember-me { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.forgot-pass { color: var(--text-silver); text-decoration: none; transition: 0.3s; }
.forgot-pass:hover { color: white; text-decoration: underline; }

/* Stopka logowania */
.login-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}
.login-footer a {
    color: rgba(117, 180, 253, 0.8);
    text-decoration: none;
    font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }

.back-home {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: 0.3s;
}
.back-home:hover { opacity: 1; }

/* Responsywność */
@media (max-width: 500px) {
    .login-box {
        width: 90%;
        padding: 25px;
    }
}

/* --- DUŻY BANNER REKLAMOWY --- */
.main-banner-wrapper {
    width: 100%;
    max-width: 1400px; /* Taka sama szerokość jak .servers-grid */
    margin: 0 auto 50px auto; /* Wyśrodkowanie i odstęp od dołu */
    padding: 0;
}

.glass-banner {
    width: 100%;
    height: 250px; /* Wysokość bannera - możesz zmienić */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    
    /* Opcjonalne tło (np. ciemny gradient zamiast obrazka na start) */
    background-image: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(20,20,30,0.4));
}

.glass-banner:hover {
    border-color: rgba(117, 180, 253, 0.4); /* Twój błękitny kolor */
    box-shadow: 0 0 40px rgba(117, 180, 253, 0.1);
}

.banner-label {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* Efekt przelatujecego światła przez banner */
.banner-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    animation: bannerShine 6s infinite;
}

@keyframes bannerShine {
    0% { left: -100%; }
    20% { left: 200%; } /* Przelatuje szybko */
    100% { left: 200%; } /* Czeka */
}

/* Responsywność dla bannera */
@media (max-width: 768px) {
    .glass-banner {
        height: 150px; /* Mniejszy na telefonach */
    }
    .banner-label {
        font-size: 1rem;
    }
}
/* ===================================================
   CUSTOM SELECT FILTRY
   =================================================== */
.cs-wrap {
    position: relative;
}
.cs-btn {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 0.84rem; font-weight: 600;
    white-space: nowrap; transition: 0.2s;
    min-width: 160px; justify-content: space-between;
    letter-spacing: 0.02em;
}
.cs-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
}
.cs-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: rgba(255,255,255,0.3);
}
.cs-wrap.open .cs-btn {
    background: rgba(117,180,253,0.08);
    border-color: rgba(117,180,253,0.3);
    color: #fff;
}
.cs-wrap.open .cs-btn svg {
    transform: rotate(180deg);
    color: #75b4fd;
}

.cs-drop {
    display: none;
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 100%; background: #0d0d12;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; overflow: hidden;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}
.cs-wrap.open .cs-drop { display: block; }

.cs-opt {
    padding: 10px 16px; font-size: 0.84rem; font-weight: 500;
    color: rgba(255,255,255,0.5); cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.12s, color 0.12s;
    user-select: none;
}
.cs-opt:last-child { border-bottom: none; }
.cs-opt:hover { background: rgba(255,255,255,0.07); color: #fff; }
.cs-opt.sel {
    color: #75b4fd;
    background: rgba(117,180,253,0.08);
}

/* ===================================================
   PRZYCISKI KART SERWERA
   =================================================== */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.card-actions .btn-connect {
    flex: 1;
}

.btn-bump, .btn-like {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: rgba(255,255,255,0.45);
    font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
    padding: 7px 11px; cursor: pointer; transition: 0.2s;
    white-space: nowrap;
}
.btn-bump:hover {
    background: rgba(255,160,50,0.1);
    border-color: rgba(255,160,50,0.3);
    color: #ffa032;
}
.btn-bump.bumped {
    background: rgba(255,160,50,0.1);
    border-color: rgba(255,160,50,0.3);
    color: #ffa032;
}
.btn-bump.bumped svg { stroke: #ffa032; }

.btn-like:hover {
    background: rgba(255,80,100,0.1);
    border-color: rgba(255,80,100,0.3);
    color: #ff5064;
}
.btn-like.liked {
    background: rgba(255,80,100,0.1);
    border-color: rgba(255,80,100,0.3);
    color: #ff5064;
}
.btn-like.liked svg { fill: #ff5064; stroke: #ff5064; }

/* animacja przy akcji */
@keyframes pop {
    0%  { transform: scale(1); }
    50% { transform: scale(1.2); }
    100%{ transform: scale(1); }
}
.btn-bump.pop, .btn-like.pop { animation: pop 0.3s ease; }
