/* --- USTAWIENIA GŁÓWNE --- */
:root {
    --primary-bg: #0a0a0a;
    --accent-pink: #d9048e;
    --accent-gold: #ffd700;
    --text-white: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.90);
    --modal-bg: rgba(0, 0, 0, 0.95);
    --success-green: #00ff88;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('OKLADKI/background.png');
     background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

body.subpage-bg {
    background-image: url('OKLADKI/background.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* --- NAGŁÓWEK (MENU) --- */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-pink);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; }

.airplane-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center 30%; 
    border-radius: 50%;
    border: 2px solid var(--accent-pink);
    margin-right: 15px;
}

.logo-text { font-weight: 800; text-transform: uppercase; color: white; text-decoration: none; font-size: 1.2rem; }
.logo-text span { color: var(--accent-pink); }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; }
.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin: 5px 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-pink); }

.cart-icon {
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-gold);
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 10px;
    border: 1px solid var(--accent-gold);
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

.cart-icon:hover { background: rgba(255, 215, 0, 0.1); }

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.bump-anim { animation: bump 0.3s ease-out; }

/* --- HERO SECTION --- */
.hero {
    flex: 1;
    background-image: url('image_12.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 60vh;
    padding-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-airplane {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
    border: 3px solid var(--accent-pink);
    margin-bottom: 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; text-transform: uppercase; }
.motto { font-size: 1.3rem; color: var(--accent-gold); margin-bottom: 30px; font-weight: 300; letter-spacing: 2px; }

.btn-main {
    background-color: var(--accent-pink);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--accent-pink);
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-main:hover { transform: scale(1.05); background-color: #b00372; }

/* --- CECHY --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background-color: #0c0c0c;
    padding: 40px 20px;
    gap: 20px;
    text-align: center;
    border-top: 1px solid #222;
}
.feature-box h3 { color: var(--accent-pink); margin-bottom: 10px; text-transform: uppercase; font-size: 1.1rem;}
.feature-box p { font-size: 0.9rem; color: #999; }

/* --- STOPKA --- */
footer {
    background-color: black;
    color: gray;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    margin-top: auto;
    width: 100%;
    border-top: 2px solid var(--accent-pink);
}

/* --- PODSTRONY OGÓLNE --- */
.page-container {
    max-width: 1300px; /* Szerszy kontener, żeby pakiety się mieściły */
    margin: 40px auto;
    padding: 20px;
    flex: 1;
}

.glass-panel {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px black;
    font-size: 2rem;
    font-weight: 800;
}

/* --- PAKIETY (GRID - Poprawiony) --- */
.packages-grid {
    display: grid;
    /* Na telefonie 1 kolumna, na tablecie 2, na PC 4 */
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 100%;
}

@media (min-width: 600px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    /* Wymuszamy 4 kolumny na dużym ekranie */
    .packages-grid { grid-template-columns: repeat(4, 1fr); }
}

.package-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--accent-pink);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.package-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(217, 4, 142, 0.2); }

.img-container {
    position: relative;
    width: 100%;
    height: 200px; /* Trochę niższe zdjęcia, żeby całość była zgrabniejsza */
    overflow: hidden;
    flex-shrink: 0;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; 
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s; cursor: pointer;
}
.overlay span {
    color: white; border: 2px solid var(--accent-pink);
    padding: 10px 20px; text-transform: uppercase; font-weight: bold;
}
.img-container:hover .overlay { opacity: 1; }

.card-body { padding: 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.card-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--accent-pink); font-weight: 800;}
select.days-select {
    width: 100%; padding: 10px; margin-bottom: 15px;
    background: #0a0a0a; color: white; border: 1px solid var(--accent-pink); border-radius: 5px;
}

/* --- TOAST NOTIFICATION (Zamiast Alertu) --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Start poza ekranem */
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--accent-gold);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 3000;
    transition: transform 0.3s ease-out, opacity 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}
#toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- EBOOK PAGE --- */
.ebook-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 15px;
    align-items: start;
}
.ebook-image { flex: 1 1 300px; max-width: 400px; margin: 0 auto; }
.ebook-image img { width: 100%; border-radius: 10px; border: 2px solid var(--accent-gold); }
.ebook-details { flex: 2 1 400px; text-align: left; }

/* Nowy, CHILLOWY styl ceny */
.ebook-price {
    font-size: 1.3rem; /* Znacznie mniejsza, zgrabna czcionka */
    color: var(--accent-gold);
    font-weight: 600;
    margin: 20px 0;
    padding: 10px 20px;
    border: 1px solid rgba(255, 215, 0, 0.3); /* Bardzo delikatna ramka */
    border-radius: 50px; /* Zaokrąglona, "kapsułkowa" forma */
    background: rgba(255, 215, 0, 0.05); /* Ledwo widoczne tło */
    display: inline-block;
    letter-spacing: 1px;
}

.ebook-list li { margin-bottom: 10px; list-style: none; }
.ebook-list li::before { content: "📘 "; }
/* --- TYP DNIA PAGE --- */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}
.tip-card {
    background: var(--glass-bg); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.blur-effect img { filter: blur(10px); }

/* --- KONTAKT PAGE --- */
.social-grid {
    display: grid;
    /* Na telefonach: automatyczne dopasowanie (żeby nie było za ciasno) */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px; /* Mniejszy odstęp, żeby 5 się ładnie zmieściło */
    margin-top: 40px;
}

/* NA KOMPUTERZE: WYMUSZAMY 5 BLOKÓW W JEDNEJ LINII */
@media (min-width: 992px) {
    .social-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.social-box {
    background: rgba(0,0,0,0.3); 
    padding: 20px 10px; /* Mniejszy padding boczny */
    border-radius: 10px;
    text-align: center; 
    transition: background 0.3s, transform 0.3s;
    text-decoration: none; 
    color: white; 
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.social-box h3 {
    font-size: 0.9rem; /* Trochę mniejsza czcionka, żeby nazwy się mieściły */
    margin-top: 10px;
}

.social-box:hover { background: rgba(255,255,255,0.05); transform: translateY(-5px); border-color: var(--accent-pink);}
.social-icon { width: 50px; height: 50px; margin-bottom: 5px; object-fit: contain; } /* Mniejsze ikony */
.discord-box { border-color: #5865F2; }
.discord-box:hover { background: rgba(88, 101, 242, 0.1); }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: var(--modal-bg);
    justify-content: center; align-items: center; padding: 20px;
}

.modal-content {
    background-color: #0a0a0a; border: 2px solid var(--accent-gold);
    padding: 30px; border-radius: 10px; 
    max-width: 800px;
    width: 95%;
    max-height: 90vh; overflow-y: auto; position: relative; text-align: left;
}
.close-btn { position: absolute; top: 10px; right: 20px; font-size: 30px; cursor: pointer; color: white; }
.modal-h2 { color: var(--accent-pink); margin-bottom: 15px; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 10px; }
.modal-list li { margin-bottom: 15px; color: #ddd; }
.modal-text-block p { margin-bottom: 15px; color: #ccc; }
.modal-text-block strong { color: white; }

/* --- KOSZYK TABELA I PRZYCISKI --- */
.cart-table { width: 100%; border-collapse: collapse; margin-top: 20px; color: white; }
.cart-table th { border-bottom: 2px solid var(--accent-pink); padding: 15px; text-align: left; font-size: 0.9rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
.cart-table td { padding: 20px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); vertical-align: middle; }

/* Nowoczesny przycisk OPŁAĆ */
.btn-pay-modern {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #b00372 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 4, 142, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.btn-pay-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 142, 0.6);
    background: linear-gradient(135deg, #ff0099 0%, #d9048e 100%);
}

/* Przycisk z ikoną kosza (pojedyncze usuwanie) */
.trash-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trash-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Jeśli Twój jpg ma białe tło, ten filtr spróbuje je odwrócić lub wtopić. 
       Dla najlepszego efektu najlepiej użyć PNG bez tła, ale dla JPG: */
    border-radius: 4px; 
}
.trash-btn:hover .trash-icon-img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 3px red);
}

/* --- KOSZYK TABELA I PRZYCISKI --- */
.cart-table { width: 100%; border-collapse: collapse; margin-top: 20px; color: white; }
.cart-table th { border-bottom: 2px solid var(--accent-pink); padding: 15px; text-align: left; font-size: 0.9rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
.cart-table td { padding: 20px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); vertical-align: middle; }

/* Nowoczesny przycisk OPŁAĆ */
.btn-pay-modern {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #b00372 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 4, 142, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-pay-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 142, 0.5);
}

/* Ikona kosza (pojedyncze usuwanie) */
.trash-btn {
    background: none; border: none; cursor: pointer; padding: 5px;
    transition: transform 0.2s;
}
.trash-icon-img {
    width: 24px; height: 24px; object-fit: contain;
    filter: grayscale(100%) brightness(1.5); /* Lekko rozjaśnia ikonę, żeby pasowała do ciemnego tła */
}
.trash-btn:hover .trash-icon-img {
    transform: scale(1.1);
    filter: none; /* Przywraca kolory po najechaniu */
}

/* NOWY STYL RESETU (Czyszczenie całego koszyka) */
.reset-cart-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.reset-cart-btn {
    background-color: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-cart-btn:hover {
    background-color: #ff4444;
    color: white;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.cart-total-row { font-size: 1.6rem; font-weight: 800; color: var(--accent-gold); margin: 20px 0; }
.important-note {
    font-size: 0.9rem;
    color: #ccc;
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--accent-gold);
    padding: 15px;
    margin-top: 10px;
    text-align: left;
    line-height: 1.6;
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 10px; }
    .logo-container { margin-bottom: 10px; }
    .hero h1 { font-size: 2rem; }
}



/* --- STYLE DLA PODSTRONY STATYSTYKI --- */

.stats-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie kolumny: Free i VIP */
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Karta Statystyk */
.stats-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 20px rgba(217, 4, 142, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vip-card {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.stats-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(217, 4, 142, 0.5);
}
.vip-card:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Zdjęcie w tle karty */
.stats-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}

/* Efekt najechania (Overlay) */
.stats-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Ciemne tło */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Domyślnie ukryte */
    transition: opacity 0.3s ease;
}

.stats-overlay span {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 20px;
}

.stats-card:hover .stats-overlay {
    opacity: 1; /* Pokazuje się po najechaniu */
}

/* Etykietka na dole karty (żeby było wiadomo co to, zanim najedziesz) */
.stats-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: var(--accent-pink);
    padding: 5px 20px;
    border: 1px solid var(--accent-pink);
    border-radius: 20px;
    font-weight: 800;
    z-index: 2;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .stats-main-container {
        grid-template-columns: 1fr; /* Jedna kolumna na telefonie */
    }
    .stats-card {
        height: 250px;
    }
}

/* --- STYLE DLA MODALA ZE STATYSTYKAMI --- */
.stats-modal-content {
    text-align: center;
    max-width: 700px;
}

.efficiency-box {
    border: 2px solid var(--accent-pink);
    background: rgba(217, 4, 142, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.percentage-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-pink); /* Dla Free */
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Galeria w modalu (6 zdjęć) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 w rzędzie */
    gap: 10px;
    margin-top: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100px; /* Stała wysokość */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    border-color: white;
}

/* --- LIGHTBOX (Pełny ekran dla zdjęcia) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000; /* Wyżej niż modal */
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    /* Zmiana z 90% na 98%, żeby było prawie na cały ekran */
    max-width: 98%;
    max-height: 98vh; /* vh = procent wysokości okna przeglądarki */
    
    border: 2px solid white;
    box-shadow: 0 0 30px black; /* Trochę większy cień dla lepszego efektu */
    border-radius: 5px;
}


/* --- NOWY STYL GALERII Z BLUREM I STATUSAMI --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

/* Pojemnik na zdjęcie (Kupon) */
.coupon-box {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
}

/* Styl samego zdjęcia - domyślnie zablzurowane */
.coupon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px); /* Tutaj ustawiasz moc rozmycia */
    transition: all 0.3s ease;
}

/* Po najechaniu zdjęcie się wyostrza i lekko powiększa */
.coupon-box:hover img {
    filter: blur(0);
    transform: scale(1.1);
}

/* --- OVERLAY (WARSTWA KOLORU I TEKSTU) --- */
/* To jest ten "duszek", który pojawia się po najechaniu */
.coupon-box::after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-align: center;
    opacity: 0; /* Domyślnie niewidoczne */
    transition: opacity 0.3s ease;
    padding: 5px;
}

/* Pokazujemy warstwę po najechaniu */
.coupon-box:hover::after {
    opacity: 1;
}

/* --- KONFIGURACJA KOLORÓW (TUTAJ DZIEJE SIĘ MAGIA) --- */

/* Jeśli klasa to "win" -> Zielony + Napis WYGRANY */
.coupon-box.win { border-color: #00ff88; }
.coupon-box.win::after {
    content: "✅ WYGRANY KUPON"; /* Automatyczny tekst */
    background: rgba(0, 255, 136, 0.6); /* Delikatny zielony */
    color: black;
}

/* Jeśli klasa to "loss" -> Czerwony + Napis PRZEGRANY */
.coupon-box.loss { border-color: #ff4444; }
.coupon-box.loss::after {
    content: "❌ PRZEGRANY KUPON"; /* Automatyczny tekst */
    background: rgba(255, 68, 68, 0.6); /* Delikatny czerwony */
    color: white;
}