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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Głębokie tło z wyrazistą, świecącą siatką (Grid) */
    background-color: #050810;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
    background-size: 50px 50px, 50px 50px, 100% 100%; /* Rozmiar kratek siatki */
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.12), transparent);
    z-index: -1;
    pointer-events: none;
}


main {
    flex: 1;
}

header {
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    /* Czysta, elegancka niebieska linia na samym dole paska */
    border-bottom: 2px solid #38bdf8; 
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15); /* Delikatna poświata pod menu */
}


.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #38bdf8; /* Zmieniamy główny kolor na niebieski (dla Grid oraz .pl) */
    text-decoration: none;
    line-height: 1.2;
}

.logo span {
    color: #ffffff; /* Zmieniamy kolor wewnątrz span na biały (dla Mc) */
}

.header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

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

.status-dot.online {
    background-color: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Przycisk hamburgera – domyślnie ukryty na komputerach */
.menu-toggle {
    display: none;
    background: #1e293b;
    border: 1px solid #334155;
    color: #38bdf8;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: #334155;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-nav a:hover, .header-nav a.active {
    color: #38bdf8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-ip-btn {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: monospace;
    font-size: 13px;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.header-ip-btn:hover {
    background: #334155;
    border-color: #38bdf8;
}

.header-cart-btn {
    background: #38bdf8;
    color: #0b0f19;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.header-cart-btn:hover {
    background: #0ea5e9;
}

.hero {
    text-align: center;
    padding: 60px 20px 30px 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #f8fafc;
}

.hero p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Szeroki pas statystyk */
.server-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #111827;
    border: 1px solid #1e293b;
    padding: 25px 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    background: #0b0f19;
    border: 1px solid #1e293b;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 240px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    background: #162032;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
}

.stat-item i {
    color: #38bdf8;
    font-size: 26px;
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.15);
}

.stat-item b {
    color: #f8fafc;
    font-size: 18px;
}

/* === SEKCJA RANKINGÓW === */
.rankings-section {
    width: 100%;
    max-width: 1220px;
    margin: 40px auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    color: #f8fafc;
    margin-bottom: 25px;
}

.section-title i {
    color: #38bdf8;
    margin-right: 8px;
}

.rankings-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rank-tab-btn {
    background: #111827;
    border: 1px solid #1e293b;
    color: #94a3b8;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rank-tab-btn i {
    color: #38bdf8;
    font-size: 16px;
    transition: transform 0.3s;
}

.rank-tab-btn:hover {
    border-color: #38bdf8;
    color: #f8fafc;
    transform: translateY(-3px);
    background: #162032;
}

.rank-tab-btn:hover i {
    transform: scale(1.15);
}

.rank-tab-btn.active {
    background: #162032;
    border-color: #38bdf8;
    color: #f8fafc;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.ranking-panel {
    display: none;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInPanel 0.3s ease-in-out;
}

.ranking-panel.active {
    display: block;
}

.ranking-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ranking-card.full-width {
    width: 100%;
}

.ranking-card h3 {
    font-size: 15px;
    color: #38bdf8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b0f19;
    border: 1px solid #1e293b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-position {
    font-weight: bold;
    color: #38bdf8;
    min-width: 24px;
    font-family: monospace;
}

.player-head {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background-color: #1e293b;
    object-fit: cover;
    display: block;
}

.player-name {
    color: #f8fafc;
    font-weight: 500;
}

.rank-value {
    color: #94a3b8;
    font-weight: 600;
    font-family: monospace;
}

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

.ranking-error {
    justify-content: center !important;
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px dashed rgba(239, 68, 68, 0.3) !important;
    padding: 20px !important;
    text-align: center;
    gap: 10px;
    font-size: 13.5px;
    border-radius: 8px;
}

.ranking-error i {
    color: #ef4444;
    font-size: 16px;
}

/* === PŁYWAJĄCY WIDGET SOCIAL MEDIA === */
.floating-socials {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 999;
}

.social-float-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #111827;
    border: 1px solid #1e293b;
    border-left: none;
    color: #94a3b8;
    text-decoration: none;
    width: 50px;
    height: 50px;
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
}

.social-float-btn i {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.social-text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding-right: 15px;
}

.social-float-btn:hover {
    width: 160px;
    border-color: #38bdf8;
}

.social-float-btn:hover .social-text {
    opacity: 1;
    transform: translateX(0);
}

.social-float-btn.discord:hover { background: #5865F2; color: #fff; }
.social-float-btn.youtube:hover { background: #FF0000; color: #fff; }
.social-float-btn.facebook:hover { background: #1877F2; color: #fff; }
.social-float-btn.tiktok:hover { background: #000000; color: #fff; border-color: #FE2C55; }

/* === PROFESJONALNY FOOTER === */
.site-footer {
    background: linear-gradient(180deg, #111827 0%, #070b14 100%);
    border-top: 2px solid #38bdf8; /* Wyraźna, niebieska linia oddzielająca */
    padding: 50px 0 20px 0;
    margin-top: auto;
    color: #94a3b8;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6), 0 -2px 15px rgba(56, 189, 248, 0.2); /* Poświata nad stopką */
}

/* Neonowy akcent świetlny na samej górze stopki na środku */
.site-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #f8fafc;
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul li a:hover {
    color: #38bdf8;
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    background: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.footer-social-icon:hover {
    background: #38bdf8;
    color: #0b0f19;
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #64748b;
}

/* Toast powiadomienia */
.copy-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #38bdf8;
    color: #0b0f19;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.copy-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.offers-section {
    width: 100%;
    max-width: 1220px;
    margin: 40px auto;
    padding: 0 15px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

/* Okna modalne */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 22, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 36px;
    color: #38bdf8;
    margin-bottom: 15px;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #f8fafc;
}

.modal-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.modal-body {
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
    background: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.modal-body h4 {
    color: #38bdf8;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-btn {
    background: #38bdf8;
    color: #0b0f19;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.modal-btn:hover {
    background: #0ea5e9;
}

.modal-btn:active {
    transform: scale(0.98);
}


/* ==========================================================
   === PEŁNA RESPONSYWNOŚĆ (MEDIA QUERIES) - TABLETY I TELEFONY ===
   ========================================================== */

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Ukrycie pływających social mediów po lewej stronie, by nie zasłaniały treści na mniejszych ekranach */
    .floating-socials {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Nagłówek: Przełączenie w układ kolumnowy i obsługa hamburgera */
    .container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-left {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Wyświetlenie przycisku hamburgera na mobile */
    .menu-toggle {
        display: block;
    }

    /* Domyślnie schowane menu nawigacyjne na mobile, rozwijane klasą .active w JS */
    .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0b0f19;
        border: 1px solid #1e293b;
        padding: 15px;
        border-radius: 8px;
        gap: 12px;
        text-align: center;
    }

    .header-nav.active {
        display: flex;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-ip-btn, .header-search-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    /* Sekcja Hero */
    .hero {
        padding: 30px 10px 20px 10px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 14px;
    }

    /* Pasek statystyk serwera */
    .server-stats-bar {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-item {
        min-width: 100%;
        padding: 12px 16px;
    }

    /* Zakładki rankingów i panele */
    .rankings-nav-tabs {
        gap: 8px;
    }

    .rank-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
        min-width: 130px;
    }

    .ranking-card {
        padding: 15px;
    }

    .ranking-list li {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Kafelki ofert sklepu */
    .offers-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Okna modalne */
    .modal-content {
        padding: 20px 15px;
    }
}
.player-head.rank-1 {
    border: 2px solid #ffd700; /* Złoty */
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.player-head.rank-2 {
    border: 2px solid #c0c0c0; /* Srebrny */
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}

.player-head.rank-3 {
    border: 2px solid #cd7f32; /* Brązowy */
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
}

.offers-grid .offer-card {
    transition: border-color 0.2s ease;
}

.offers-grid .offer-card--vip:hover,
.offers-grid .offer-card--svip:hover {
    border-color: #38bdffff !important;
}

.offers-grid .offer-card--profession-key:hover {
    border-color: #4ade80ff !important;
}

.offers-grid .offer-card--style-key:hover {
    border-color: #ffb337ff !important;
}

.offers-grid .offer-card--colorful-nick:hover {
    border-color: #ec4899ff !important;
}


