:root {
    --bg-color: #0b1120; /* Głęboki granat, prawie czarny */
    --text-color: #ffffff;
    --primary-blue: #0066cc; /* Podstawowy niebieski z logo */
    --light-blue: #3399ff; /* Jaśniejszy odcień */
    --dark-blue: #003366; /* Ciemniejszy odcień */
    --accent-glow: rgba(51, 153, 255, 0.4);
    --card-bg: rgba(16, 24, 45, 0.85);
    --card-border: rgba(51, 153, 255, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, #1a2a4a 0%, #050810 100%);
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Tło z poświatą */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -2;
    pointer-events: none;
}

/* Animacja tła */
.animation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    opacity: 0.1;
    animation: float 15s infinite linear; /* Przyspieszona bazowa prędkość */
    filter: blur(5px);
}

.particle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 80%;
    animation-duration: 18s;
    animation-delay: -5s;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
}

.particle-3 {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 20%;
    animation-duration: 10s;
    animation-delay: -8s;
}

.particle-4 {
    width: 200px;
    height: 200px;
    top: 80%;
    left: 10%;
    animation-duration: 20s;
    animation-delay: -2s;
    opacity: 0.05;
}

/* Nowe cząsteczki */
.particle-5 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 90%;
    animation-duration: 15s;
    animation-delay: -3s;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
}

.particle-6 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 50%;
    animation-duration: 13s;
    animation-delay: -7s;
}

.particle-7 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 60%;
    animation-duration: 9s;
    animation-delay: -1s;
}

.particle-8 {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 5%;
    animation-duration: 22s;
    animation-delay: -12s;
    opacity: 0.04;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(51, 153, 255, 0.3));
}

.edition-badge {
    /* Usunięto display: table i margin: auto, flexbox załatwi centrowanie */
    margin: 10px 0 35px 0; /* Zwiększony odstęp od góry (10px) i dołu (35px) */
    background: linear-gradient(90deg, #004e92 0%, #000428 100%);
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 78, 146, 0.6);
    border: 1px solid rgba(51, 153, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #b3d9ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(51, 153, 255, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: #a0c4e8;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content */
.ip-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ip-box:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 153, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ip-address {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-blue);
    letter-spacing: 1px;
}

/* Kafelki Nawigacyjne (NOWE) */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.nav-tile {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-tile:hover {
    transform: translateY(-5px);
    background: rgba(51, 153, 255, 0.1);
    border-color: var(--light-blue);
    box-shadow: 0 5px 20px rgba(51, 153, 255, 0.2);
}

.nav-tile.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(100%);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-tile.disabled .status-text {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 8px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
}

.nav-tile i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--light-blue);
}

.nav-tile span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Powrót */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    z-index: 10;
}

.back-link:hover {
    color: var(--light-blue);
}

/* FAQ Styles */
.faq-container {
    text-align: left;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(51, 153, 255, 0.1);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cbd5e1;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 200px; /* Adjust if needed */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: default; /* Zmieniono z pointer na default, bo nie są teraz klikalne w sensie otwierania */
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--light-blue);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    width: 100%;
    height: 100%;
    justify-content: center;
    transition: filter 0.3s ease;
}

.gallery-item.blurred .gallery-placeholder {
    filter: blur(8px); /* Efekt rozmycia */
    opacity: 0.5;
}

.gallery-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Nakładka z datą odsłonięcia */
.reveal-date {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(51, 153, 255, 0.3);
    backdrop-filter: blur(4px);
    z-index: 2;
    width: 80%;
}

.reveal-date i {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 8px;
    display: block;
}

.reveal-date span {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Team Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
}

.team-member .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--light-blue);
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-member .role {
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Existing Card Styles (Info Card) */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-right: 15px;
}

.card-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.card-text {
    line-height: 1.6;
    color: #cbd5e1;
}

/* Discord Section */
.discord-section {
    margin-bottom: 40px;
}

.discord-section p {
    margin-bottom: 20px;
    color: #a0c4e8;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #5865F2; /* Discord brand color */
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

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

.discord-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 0.9rem;
    color: #a0c4e8;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-item p {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

/* Style Panelu i Kart Pojazdów */
.panel-container {
    width: 100%;
    max-width: 1000px; /* Zwiększone dla bazy pojazdów */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--light-blue);
    font-size: 0.9rem;
}

.form-group input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.dashboard {
    display: none;
    text-align: left;
}

.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.vehicle-card i {
    font-size: 2.5rem;
    color: var(--light-blue);
    margin-bottom: 15px;
}

.vehicle-info h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.vehicle-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 3px 0;
}

.vehicle-info .owner-name {
    color: var(--primary-blue);
    font-weight: 600;
}

.error-message {
    color: #ff4d4d;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

/* Style dla wyszukiwarki w panel-container */
.search-box-styled {
    position: relative;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box-styled input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box-styled input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.search-box-styled i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-blue);
}

/* Pagination overrides for panel style */
.pagination-panel {
    margin-top: 30px;
}


/* Style dla sklepu - Kalkulator */
.calculator-container {
    text-align: center;
    padding: 20px;
}

.calculator-header h2 {
    color: white;
    margin-bottom: 10px;
}

.calculator-header p {
    color: var(--light-blue);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.slider-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.points-display {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.5);
}

.points-display .unit {
    font-size: 1.5rem;
    color: var(--light-blue);
}

.pp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #1a1a1a;
    outline: none;
    margin-bottom: 20px;
}

.pp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.8);
    transition: transform 0.2s;
}

.pp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
}

.price-summary {
    max-width: 400px;
    margin: 0 auto 40px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa;
}

.summary-item.discount {
    color: #00cc66;
    font-weight: bold;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.btn-buy-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.4);
}

.btn-buy-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.6);
}

.payment-info-footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}

.payment-methods-icons {
    margin-top: 10px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #555;
}

/* Modal Płatności */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: white; }

.modal h2 { color: white; margin-bottom: 5px; }
.modal-subtitle { color: #aaa; margin-bottom: 20px; }
.highlight-text { color: var(--light-blue); font-weight: bold; }

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

.method-card {
    background: #252525;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.method-card:hover { background: #333; }
.method-card.active {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
}

.method-card i {
    font-size: 1.5rem;
    color: #ccc;
    display: block;
    margin-bottom: 5px;
}

.method-card.active i { color: var(--primary-blue); }

.sms-instructions, .blik-instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-blue);
}

.sms-cost { color: #ff4d4d; font-size: 0.9rem; margin-bottom: 10px; }

.btn-pay {
    width: 100%;
    padding: 12px;
    background: #00cc66;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.status-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    display: none;
    text-align: center;
}

.status-message.success {
    background: rgba(0, 204, 102, 0.2);
    border: 1px solid #00cc66;
    color: #00cc66;
}

.status-message.error {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}