:root {
    --bg-main: #060913;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #c084fc;
    --primary-glow: rgba(192, 132, 252, 0.4);
    --white: #ffffff;
    --text-muted: #94a3b8;
    --font: 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--white);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(192, 132, 252, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.1), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 10%; background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color);
    position: fixed; width: 100%; top: 0; z-index: 100;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links > a { color: var(--white); text-decoration: none !important; font-size: 0.95rem; font-weight: 500; transition: 0.3s; }
.nav-links > a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

/* PROFESJONALNY BOX UŻYTKOWNIKA (PIONOWY) */
.user-profile-box { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    background: #111827; 
    border: 1px solid #27272a; 
    padding: 12px 18px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
}
.user-hello { font-size: 1.05rem; font-weight: bold; color: white; }
.user-email { font-size: 0.8rem; color: #94a3b8; border-bottom: 1px solid #27272a; padding-bottom: 6px; margin-bottom: 2px;}
.license-status-container { display: flex; align-items: center; font-size: 0.9rem; font-weight: bold; margin-top: 4px; }
.lic-badge-active { color: #10b981; font-weight: 800; }
.lic-badge-inactive { color: #ef4444; font-weight: 800; }
.license-days { color: var(--text-muted); font-weight: 600; margin-left: 5px; }

.user-actions { display: flex; flex-direction: column; gap: 5px; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.cart-link { position: relative; font-size: 1.2rem; margin-left: 10px; cursor: pointer;}
.cart-badge { position: absolute; top: -8px; right: -12px; background: var(--primary); color: #000; font-size: 0.7rem; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; pointer-events: none;}

.lang-switcher { display: flex; gap: 5px; background: rgba(255,255,255,0.05); padding: 5px; border-radius: 8px; border: 1px solid var(--border-color); margin-left: 10px;}
.lang-btn { background: transparent; border: none; color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 5px 10px; border-radius: 5px; transition: 0.3s; }
.lang-btn img { width: 16px; border-radius: 2px; }
.lang-btn:hover { color: white; }
.lang-btn.active { background: rgba(192, 132, 252, 0.2); color: white; font-weight: bold; }

.btn-primary { background: linear-gradient(135deg, #a855f7, #c084fc); color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(192, 132, 252, 0.3); text-decoration: none !important; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(192, 132, 252, 0.5); }
.btn-secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--border-color); padding: 10px 24px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; text-decoration: none !important; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-large { padding: 14px 32px; font-size: 1.1rem; }
.full-width { width: 100%; margin-top: 20px; padding: 12px; }
.text-center { text-align: center; display: block; }

.hero { display: flex; justify-content: center; align-items: center; text-align: center; padding: 180px 20px 100px; min-height: 100vh; }
.hero-content { max-width: 800px; }
.badge { display: inline-block; background: rgba(192, 132, 252, 0.1); border: 1px solid var(--primary); color: var(--primary); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: bold; margin-bottom: 20px; box-shadow: 0 0 15px var(--primary-glow); }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(90deg, #ffffff, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: bold; }
.hero p { color: var(--text-muted); font-size: 1.2rem; line-height: 1.6; margin-bottom: 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.demo-section { padding: 100px 10%; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.app-mockup { width: 100%; max-width: 1100px; height: 750px; margin: 0 auto; border-radius: 16px; border: 1px solid rgba(192, 132, 252, 0.5); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 50px rgba(192,132,252,0.2); overflow: hidden; background: #0b0f19; }
.app-mockup iframe { width: 100%; height: 100%; border: none; }

.pricing-section { padding: 100px 10%; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }

.pricing-card-wrapper { position: relative; border-radius: 16px; padding: 2px; background: rgba(255, 255, 255, 0.05); overflow: hidden; transition: transform 0.3s; }
.pricing-card-wrapper:hover { transform: translateY(-10px); }
.pricing-card-wrapper::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 0deg, transparent 90deg, #ffffff 180deg, #c084fc 270deg, transparent 360deg); animation: spin 4s linear infinite; opacity: 0; transition: opacity 0.3s; }
.pricing-card-wrapper:hover::before { opacity: 1; }

.pricing-card { background: #0f1423; border-radius: 14px; padding: 40px 30px; position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.lifetime-wrapper::before { opacity: 1; background: conic-gradient(from 0deg, transparent 0deg, transparent 90deg, #f59e0b 180deg, #c084fc 270deg, transparent 360deg); animation-duration: 3s; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; box-shadow: 0 0 10px var(--primary-glow); white-space: nowrap; }

.pricing-card h3 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 15px; font-weight: 500; text-align: center; }
.lifetime-card h3 { color: var(--primary); font-weight: bold; text-shadow: 0 0 10px rgba(192, 132, 252, 0.4); }
.price { font-size: 2.5rem; font-weight: bold; margin-bottom: 25px; display: flex; justify-content: center; align-items: baseline; gap: 5px; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.pricing-card ul { list-style: none; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 15px; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; color: #cbd5e1; }
.pricing-card ul li i { color: var(--primary); margin-top: 3px; }

/* ROZWIJANE FAQ (AKORDEON) */
.faq-section { padding: 80px 10%; background: var(--bg-main); border-top: 1px solid var(--border-color); }
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #0f1423; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.faq-question { width: 100%; text-align: left; padding: 18px 25px; background: transparent; border: none; color: white; font-size: 1.05rem; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.faq-question:hover { color: var(--primary); background: rgba(255,255,255,0.02); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 25px; background: rgba(0,0,0,0.2); }
.faq-answer p { padding: 15px 0; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 5px;}
.faq-item.active { border-color: var(--primary); box-shadow: 0 0 15px rgba(192, 132, 252, 0.1); }
.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); transition: 0.3s; }

/* KOSZYK (SIDEBAR) */
.cart-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 999; opacity: 0; transition: opacity 0.3s; }
.cart-overlay.show { display: block; opacity: 1; }
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 380px; height: 100%; background: #0f1423; border-left: 1px solid var(--primary); box-shadow: -10px 0 30px rgba(192,132,252,0.1); z-index: 1000; display: flex; flex-direction: column; transition: right 0.4s ease; }
.cart-sidebar.show { right: 0; }

.cart-header { padding: 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; color: white; }
.cart-header h2 i { color: var(--primary); }
.close-cart { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
.close-cart:hover { color: white; }

.cart-items { flex-grow: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.cart-item { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); padding: 15px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
.item-info h4 { font-size: 1rem; color: white; margin-bottom: 5px; }
.item-info p { font-size: 0.9rem; color: var(--primary); font-weight: bold; }
.remove-item { background: transparent; border: none; color: #ef4444; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.remove-item:hover { color: #f87171; transform: scale(1.1); }
.empty-cart-msg { text-align: center; color: var(--text-muted); margin-top: 50px; font-style: italic; }

.cart-footer { padding: 25px; border-top: 1px solid var(--border-color); background: rgba(0,0,0,0.3); }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: bold; margin-bottom: 20px; }
.cart-total .total-price { color: var(--primary); font-size: 1.8rem; text-shadow: 0 0 10px var(--primary-glow); }

.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-quantity { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.4); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border-color); }
.cart-quantity button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; transition: 0.2s; }
.cart-quantity button:hover { color: white; }
.cart-quantity span { font-weight: bold; width: 20px; text-align: center; color: white;}

.promo-code-container { display: flex; gap: 10px; }
.promo-code-container input { flex-grow: 1; padding: 10px 15px; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: 8px; color: white; outline: none; transition: 0.3s; font-size: 0.9rem;}
.promo-code-container input:focus { border-color: var(--primary); }
.promo-code-container button { padding: 10px 15px; font-size: 0.9rem; }

/* MODALE */
.modal { 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; opacity: 0; transition: opacity 0.3s; }
.modal.show { display: flex; opacity: 1; }
.modal-content { background: #121212; width: 400px; padding: 40px; border-radius: 16px; position: relative; border: 1px solid #27272a; box-shadow: 0 0 40px rgba(192, 132, 252, 0.15); transform: translateY(20px); transition: transform 0.3s; text-align: center; }
.modal.show .modal-content { transform: translateY(0); }

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.close-btn:hover { color: white; }
.modal-content h2 { font-size: 1.5rem; margin-bottom: 5px; }

.auth-form { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.input-group { position: relative; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group input { width: 100%; padding: 14px 14px 14px 45px; background: #18181b; border: 1px solid #27272a; border-radius: 8px; color: white; outline: none; transition: 0.3s; font-size: 0.95rem; }
.input-group input:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(192, 132, 252, 0.2); }

.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.switch-link { color: var(--primary); text-decoration: none; font-weight: bold; cursor: pointer; }
.switch-link:hover { text-decoration: underline; }

footer { text-align: center; padding: 40px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; margin-top: 50px; background: rgba(6, 9, 19, 0.8); }
::placeholder { color: #64748b; }

/* TOASTY */
.toast-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { min-width: 250px; padding: 15px 20px; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 12px; background: rgba(15, 23, 42, 0.95); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); transform: translateX(120%); animation: slideIn 0.4s forwards; }
.toast.removing { animation: slideOut 0.4s forwards; }
.toast.error { border-left: 5px solid #ef4444; border-right: 1px solid rgba(239, 68, 68, 0.3); border-top: 1px solid rgba(239, 68, 68, 0.3); border-bottom: 1px solid rgba(239, 68, 68, 0.3); }
.toast.error i { color: #ef4444; font-size: 1.2rem; }
.toast.success { border-left: 5px solid #10b981; border-right: 1px solid rgba(16, 185, 129, 0.3); border-top: 1px solid rgba(16, 185, 129, 0.3); border-bottom: 1px solid rgba(16, 185, 129, 0.3); }
.toast.success i { color: #10b981; font-size: 1.2rem; }
@keyframes slideIn { to { transform: translateX(0); } }
@keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }

/* ADMIN TABS */
.admin-tab { border: none; background: transparent; padding: 5px 10px; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: bold; transition: 0.3s;}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }