:root {
    --bg-dark: #06060c;
    --sidebar-bg: #090914;
    --card-bg: #0d0d1f;
    --accent-purple: #581cff;
    --accent-glow: rgba(88, 28, 255, 0.35);
    --text-main: #f3f4f6;
    --text-muted: #6b7280;
    --border-color: #161632;
}

/* Klasy i identyfikatory dla perfekcyjnego renderowania tła DarkVeil WebGL */
#darkveil-canvas, .darkveil-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: -1;          /* Schowanie płótna pod boczny panel i karty */
    pointer-events: none; /* Ignorowanie kliknięć, aby interfejs działał bez przeszkód */
}

/* Poprawka awatara w sidebarze (zabezpieczenie przed rozciąganiem) */
.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple);
    min-width: 26px; 
    box-shadow: 0 0 8px var(--accent-glow);
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-avatar {
    transform: scale(1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* KANWAS TŁA */
#darkveil-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* BOCZNY PANEL NAWIGACYJNY (SIDEBAR) */
.sidebar {
    width: 95px; 
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px;
    align-items: flex-start;
    padding-left: 2rem; 
    padding-right: 1.5rem;
}

.sidebar-logo {
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.sidebar:hover .sidebar-logo {
    justify-content: flex-start;
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px; 
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.sidebar-logo span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    display: none;
    letter-spacing: 1px;
}

.sidebar:hover .sidebar-logo span {
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: center; 
}

.sidebar:hover .nav-menu {
    align-items: flex-start; 
}

.nav-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center; 
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    gap: 1.2rem;
}

.sidebar:hover .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0.8rem;
}

.nav-item i {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
}

.nav-item span {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar:hover .nav-item span {
    display: block;
}

.nav-item.active {
    background-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 18px var(--accent-glow);
}

.nav-item:hover:not(.active) {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.04);
}

/* GŁÓWNY KONTENER TREŚCI */
.main-content {
    margin-left: 95px; 
    flex-grow: 1;
    width: calc(100% - 95px);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* PODSTRONY SPA */
.page-view {
    display: none;
    width: 100%;
    max-width: 1000px;
    animation: fadeIn 0.4s ease-out forwards;
}

.page-view.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.page-underline {
    width: 120px;
    height: 4px;
    background-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-glow);
    margin-bottom: 1.5rem;
}

.page-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
}

/* HOME */
.home-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.welcome-badge {
    background-color: rgba(13, 13, 31, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.logo-glow-card {
    width: 320px;
    height: 320px;
    background-color: #090915;
    border-radius: 24px;
    border: 1px solid rgba(88, 28, 255, 0.2);
    box-shadow: 0 0 50px rgba(88, 28, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.logo-glow-card img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.home-text {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-purple {
    background-color: var(--accent-purple);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(88, 28, 255, 0.4);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 28, 255, 0.6);
}

.btn-outline {
    background-color: rgba(13, 13, 31, 0.5);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--text-muted);
}



/* PRODUCTS */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.product-item-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.product-img-placeholder {
    width: 160px;
    height: 160px;
    background-color: rgba(6, 6, 12, 0.5);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-img-placeholder i {
    font-size: 2rem;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 1.5rem;
}

/* Template note for products without title/image */
.template-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Product template card (no image) */
.product-item-card .product-img-container {
    width: 160px;
    min-width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-card .product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive: zmniejsz układ kart na mniejszych ekranach */
@media (max-width: 720px) {
    .product-item-card {
        flex-direction: column;
        padding: 1.25rem;
    }
    .product-item-card .product-img-container {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
}

/* REVIEWS CARD LISTS */
.notice-box {
    background-color: rgba(9, 9, 20, 0.6);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    width: 100%;
}

.notice-box a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

.notice-box a:hover {
    text-decoration: underline;
}

.reviews-section {
    width: 100%;
}

.reviews-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

#opinie-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.single-review {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.single-review:hover {
    transform: translateX(4px);
    border-color: rgba(88, 28, 255, 0.4);
}

.single-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.single-review h4 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.review-stars {
    color: #ffb800;
    font-size: 0.85rem;
    display: flex;
    gap: 3px;
}

.single-review p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FORMS & PROFILES CARD */
.form-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
}

.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

/* OKIENKO MODALNE (MODAL POPUP) */
#review-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#review-modal.hidden {
    display: none;
    pointer-events: none;
    opacity: 0;
}

.modal-content {
    background-color: #0e0e1f;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 0 35px rgba(88, 28, 255, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#close-form-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 26px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}
#close-form-btn:hover { color: white; }

#review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#review-form input, #review-form textarea {
    width: 100%;
    background: #06060c;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

#review-form input:focus, #review-form textarea:focus {
    border-color: var(--accent-purple);
}

/* INTERAKTYWNE GWIAZDKI */
.star-btn {
    font-size: 1.6rem;
    color: #222336;
    cursor: not-allowed;
    transition: color 0.2s ease, transform 0.1s ease;
}

.star-btn.enabled {
    cursor: pointer;
}

.star-btn.active {
    color: #ffb800;
    filter: drop-shadow(0 0 5px rgba(255, 184, 0, 0.35));
}

.star-btn.enabled:hover {
    transform: scale(1.15);
}

/* Nowoczesny wygląd formularza opinii */
#review-form {
    background: rgba(13, 13, 31, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 28, 255, 0.3);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.stars-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.star-btn {
    color: #333355;
    font-size: 1.5rem;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.star-btn.active {
    color: #ffb700;
    filter: drop-shadow(0 0 5px rgba(255, 183, 0, 0.5));
}

.star-btn.enabled:hover {
    transform: scale(1.2);
}

#review-form input, #review-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2b2d31;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 5px;
}

#submit-review-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

#submit-review-btn:hover:not([disabled]) {
    background: #4515cc;
    transform: translateY(-2px);
}
/* ================================================
   POPRAWKI: LOGIN / PROFIL / FORMULARZ OPINII
   ================================================ */

.login-center-box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(88, 28, 255, 0.08);
}

.login-center-box h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.login-center-box > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background-color: #5865F2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.btn-discord-login:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.login-footer-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-footer-link:hover { color: #fff; }

/* PROFIL UŻYTKOWNIKA */
.user-profile-card {
    background-color: rgba(6, 6, 12, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}

.user-profile-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 25px var(--accent-glow);
    margin-bottom: 0.75rem;
}

.user-profile-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.user-profile-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

#user-id-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.user-roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.9rem;
}

/* FORMULARZ OPINII – odstępy między polami */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    text-align: left;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

#review-form h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* SEKCJA LISTY OPINII */
.reviews-list-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
}

#opinie-container:empty::after {
    content: "Brak opinii. Bądź pierwszy!";
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

/* --- PayPal & Success Page Styles --- */
.product-card {
    background: rgba(13, 13, 31, 0.6);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
}

.paypal-submit-btn {
    background: #0070ba;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: 0.3s;
}

.paypal-submit-btn:hover {
    background: #005ea6;
    transform: translateY(-2px);
}

.success-container {
    text-align: center;
    background: rgba(13, 13, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 3rem;
    border-radius: 16px;
    max-width: 600px;
    margin: 3rem auto;
}

.key-box {
    background: #000;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    letter-spacing: 2px;
    padding: 15px;
    border: 1px dashed #00ff88;
    border-radius: 8px;
    margin: 20px 0;
    user-select: all; /* Łatwe kopiowanie całego tekstu */
}

.download-btn {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.download-btn:hover {
    background: #4515cc;
    box-shadow: 0 0 15px var(--accent-glow);
}

.discord-support {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.discord-btn {
    display: inline-block;
    background: #5865F2; /* Oryginalny kolor Discorda */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 10px;
    transition: 0.3s;
}

.discord-btn:hover {
    background: #4752c4;
}

/* Modal Overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content Box */
.modal-content {
    background: rgba(13, 13, 33, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    padding: 2rem;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Close Button */
.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #ff4a4a;
}

/* Typography & Buttons inside Modal */
.modal-title {
    font-family: 'Orbitron', sans-serif;
    color: #00f2fe;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.modal-body {
    color: #cbd5e1;
    font-line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.paypal-checkout-btn {
    background: #ffc439;
    color: #003087;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'sans-serif';
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 12px rgba(255, 196, 57, 0.3);
}

.paypal-checkout-btn:hover {
    background: #ffe194;
    transform: translateY(-2px);
}
