:root {
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --background-dark: #0a0a0a;
    --text-light: #e5e7eb;
    --text-dark: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Background Effects --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-blur {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, rgba(10, 10, 10, 0) 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    background: linear-gradient(to right, #D00371, #D29800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-light);
}

.btn-nav {
    background: linear-gradient(to right, var(--primary-purple), var(--primary-blue));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-nav-mobile {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #D00371, #D29800, #D00371);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 3s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* --- Buttons --- */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-purple), var(--primary-blue));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* --- Offer Section --- */
.offer-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image img {
    width: 300px;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 40px;
}

.product-details h3 {
    color: var(--primary-purple);
    font-weight: 600;
    margin: 0 0 10px;
}

.product-details h2 {
    font-size: 2rem;
    margin: 0 0 20px;
}

.product-details p {
    color: var(--text-dark);
    margin-bottom: 30px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-dark);
    font-size: 1rem;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}

/* --- Why Us Section --- */
.why-us-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: var(--primary-purple);
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.6;
}


/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
}

/* --- Animations --- */
@keyframes slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.animate-fade-in {
    animation: fade-in 1s ease-out both;
}

.animate-fade-in-delay {
    animation: fade-in 1s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fade-in 1s ease-out 0.4s both;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hide for now, can be replaced with a burger menu */
    }

    .btn-nav-mobile {
        display: inline-block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image img {
        width: 100%;
        height: auto;
    }
    
    .product-details {
        padding: 30px;
    }
    
    .product-details h2 {
        font-size: 1.8rem;
    }
    
    .new-price {
        font-size: 2rem;
    }
}

/* --- Modal okna zakupu --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 900px; /* Zwiększona szerokość */
    max-height: 90vh;
    overflow: hidden; /* Ukrycie overflow, bo kolumny mają własne */
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
}

.modal-body {
    display: flex;
    width: 100%;
}

.modal-left {
    width: 55%;
    padding: 25px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.modal-right {
    width: 45%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 0 0 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #D00371, #D29800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.product-info {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-image-modal img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 20px;
}

.product-details-modal h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-light);
}

.price-modal {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.product-specs {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.warning-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.warning-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.warning-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
}

.warning-list {
    margin: 0;
    padding-left: 32px;
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.5;
}

.warning-list li {
    margin-bottom: 8px;
}

.warning-list li:last-child {
    margin-bottom: 0;
}

.payment-info {
    padding: 20px 0 0 0;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-item {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.discord-link {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
}

.discord-link:hover {
    text-decoration: underline;
}

.purchase-form {
    padding: 0;
    width: 100%;
}

.form-header {
    margin-bottom: 30px;
    text-align: left;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 10px 0;
}

.form-header p {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #f87171; /* Czerwony kolor */
}

input::placeholder {
    color: var(--text-dark);
    opacity: 0.7;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
}

.btn-purchase {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Responsive dla modala */
@media (max-width: 820px) { /* Zmieniony breakpoint dla lepszego dopasowania */
    .modal-content {
        flex-direction: column;
        width: 95%;
        max-width: 450px; /* Ograniczenie szerokości na mobilnych */
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto; /* Włączenie scrollowania dla całej zawartości */
    }

    .modal-body {
        flex-direction: column;
    }
    
    .modal-left, .modal-right {
        width: 100%;
        box-sizing: border-box; /* Upewnienie się, że padding jest wliczany w szerokość */
    }

    .modal-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color); /* Linia oddzielająca sekcje */
        padding: 20px;
    }

    .modal-right {
        padding: 20px;
    }
    
    .modal-header {
        padding: 0 0 15px 0;
    }
    
    .product-info {
        padding: 20px 0;
    }
    
    .product-specs,
    .warning-section {
        padding: 15px 0;
    }

    .payment-info {
        padding: 15px 0 0 0;
    }
    
    .product-image-modal img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .product-details-modal h3 {
        font-size: 1.1rem;
    }
    
    .price-modal {
        font-size: 1.5rem;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}