@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --neon-blue: #00f2ff;
    --neon-purple: #7000ff;
    --dark-bg: #050505;
}

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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
}

/* === ANIMOWANE TŁO Z CZĄSTECZKAMI === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 242, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Cząsteczki w tle */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--neon-blue);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 20px var(--neon-blue);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-200px) translateX(-50px) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-100px) translateX(100px) scale(1.1);
        opacity: 0.4;
    }
}

/* Nawigacja - ULEPSZONA */
nav {
    display: flex; 
    justify-content: space-between; 
    padding: 20px 8%; 
    background: rgba(0, 0, 0, 0.7);
    position: sticky; 
    top: 0; 
    z-index: 100; 
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo { 
    font-family: 'Orbitron', sans-serif; 
    color: var(--neon-blue); 
    font-weight: bold; 
    font-size: 22px;
    text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue); 
    }
    50% { 
        text-shadow: 0 0 30px var(--neon-blue), 0 0 60px var(--neon-blue), 0 0 80px var(--neon-purple); 
    }
}

nav ul { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

nav ul li a { 
    color: #ccc; 
    text-decoration: none; 
    margin-left: 25px; 
    transition: all 0.3s ease; 
    font-size: 14px;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover, .discord-link:hover { 
    color: var(--neon-blue); 
    text-shadow: 0 0 10px var(--neon-blue);
    transform: translateY(-2px);
}

.lang-switcher { 
    margin-left: 30px; 
}

.lang-switcher button { 
    background: rgba(34, 34, 34, 0.5);
    border: 1px solid #444; 
    color: white; 
    cursor: pointer; 
    padding: 8px 15px; 
    border-radius: 8px; 
    font-size: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 0 3px;
}

.lang-switcher button:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--neon-blue);
    transform: scale(1.05);
}

.lang-switcher button.active { 
    border-color: var(--neon-blue); 
    color: var(--neon-blue);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Sekcja HERO - ULEPSZONA */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(ellipse at top, rgba(112, 0, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 242, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at center, #1a1b2e 0%, #050505 100%);
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        var(--neon-blue) 45deg,
        transparent 90deg,
        var(--neon-purple) 180deg,
        transparent 270deg,
        var(--neon-blue) 315deg,
        transparent 360deg
    );
    opacity: 0.03;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.5));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p { 
    max-width: 700px; 
    font-size: 1.1rem; 
    color: #aaa; 
    line-height: 1.6; 
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 
        0 0 20px rgba(0, 242, 255, 0.4),
        0 0 40px rgba(112, 0, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn:hover { 
    transform: scale(1.05) translateY(-3px); 
    box-shadow: 
        0 0 30px var(--neon-blue),
        0 0 60px var(--neon-purple),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Produkty - GLASSMORPHISM */
main { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    padding: 100px 10%; 
    flex-wrap: wrap;
    position: relative;
}

.card {
    background: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(0, 242, 255, 0.1),
        transparent 30%
    );
    animation: cardRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

@keyframes cardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(17, 17, 17, 0.9);
    border-radius: 18px;
    z-index: -1;
}

.card:hover { 
    border-color: var(--neon-blue); 
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(0, 242, 255, 0.3),
        0 0 40px rgba(112, 0, 255, 0.2),
        inset 0 0 20px rgba(0, 242, 255, 0.1);
}

.card img { 
    width: 100%; 
    border-radius: 10px; 
    margin-bottom: 20px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card h3 {
    position: relative;
    z-index: 1;
}

.price { 
    font-size: 28px; 
    font-weight: bold; 
    color: var(--neon-blue); 
    margin: 15px 0;
    text-shadow: 0 0 10px var(--neon-blue);
    position: relative;
    z-index: 1;
}

.buy-btn {
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--neon-blue); 
    background: rgba(0, 242, 255, 0.05);
    color: var(--neon-blue); 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--neon-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.buy-btn:hover::before {
    width: 300px;
    height: 300px;
}

.buy-btn:hover { 
    background: var(--neon-blue); 
    color: black;
    box-shadow: 0 0 20px var(--neon-blue);
    transform: translateY(-2px);
}

.buy-btn span {
    position: relative;
    z-index: 1;
}

/* Timer Config Section - ULEPSZONA */
#timer-config {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px) saturate(180%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 650px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 
        0 0 30px rgba(0, 242, 255, 0.2),
        inset 0 0 20px rgba(0, 242, 255, 0.05);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

#timer-config h2 {
    color: var(--neon-blue);
    text-align: center;
    margin-top: 0;
    text-shadow: 0 0 20px var(--neon-blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.input-box input,
.config-input {
    transition: all 0.3s ease;
}

.input-box input:focus,
.config-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    transform: scale(1.02);
}

#btn-connect {
    width: 100%;
    background: linear-gradient(135deg, #2ed573, #20bf6b);
    color: #000;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.3);
}

#btn-connect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#btn-connect:hover::before {
    width: 400px;
    height: 400px;
}

#btn-connect:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(46, 213, 115, 0.5);
}

#preview-timer {
    font-size: 48px;
    font-weight: bold;
    color: #00f2ff;
    font-family: monospace;
    animation: timerPulse 1.5s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 10px var(--neon-blue);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
    }
}

/* === MODAL - RADAR ULEPSZONA === */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.radar-container {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    overflow: hidden; 
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 
        0 0 50px rgba(0, 242, 255, 0.3),
        0 0 100px rgba(112, 0, 255, 0.2);
    z-index: 1;
    text-align: center;
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.radar-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        var(--neon-blue),
        transparent,
        transparent,
        var(--neon-purple)
    );
    animation: rotateRadar 4s linear infinite;
    z-index: -2;
    opacity: 0.5;
}

.radar-container::after {
    content: '';
    position: absolute;
    inset: 3px; 
    background: rgba(10, 10, 10, 0.95);
    border-radius: 17px;
    z-index: -1;
}

.input-box {
    text-align: left;
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    color: var(--neon-blue);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.input-box input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 10px;
    color: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-box input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
}

.pay-go-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.pay-go-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pay-go-btn:hover::before {
    width: 400px;
    height: 400px;
}

.pay-go-btn:hover {
    box-shadow: 
        0 0 30px var(--neon-blue),
        0 0 60px var(--neon-purple);
    transform: scale(1.02) translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
    transform: scale(1.2) rotate(90deg);
}

#btn-pl.active, #btn-en.active {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

@keyframes rotateRadar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Box Animation */
.success-box {
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        padding: 50px 5%;
    }
    
    .card {
        width: 100%;
        max-width: 350px;
    }
}

/* Nowoczesne karty z efektem szkła (Glassmorphism) */
.card, #timer-config {
    background: rgba(15, 15, 20, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
}

/* Stylizacja inputów na styl "Cyber" */
input[type="text"], input[type="number"], input[type="password"], input[type="email"] {
    background: #050505 !important;
    border: 1px solid #1a1a1a !important;
    border-left: 3px solid var(--neon-blue) !important;
    padding: 12px !important;
    transition: 0.3s;
}

input:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Przyciski jak u znajomego (gradienty) */
.buy-btn, .cta-btn, #btn-connect {
    background: linear-gradient(135deg, #00f2ff 0%, #0066ff 100%) !important;
    color: #000 !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    letter-spacing: 1px;
    border: none !important;
    border-radius: 8px !important;
    transition: 0.3s !important;
}

.buy-btn:hover, #btn-connect:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5) !important;
}

/* Nowy układ nagłówków sekcji */
h2 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}
