:root {
    --bg-color: #0a0a0c;
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
}

* {
    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;
    flex-direction: column;
}

header {
    padding: 2.5rem 1rem;
    text-align: center;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-primary);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #00d4ff55, transparent);
    margin: 40px 0;
}

main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center; /* Kluczowe dla centrowania w poziomie */
    align-items: flex-start;
    padding: 1rem;
}

.view {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto; /* Dodatkowe zabezpieczenie centrowania */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* LISTA PRODUKTÓW */
#main-view {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.cover-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    display: flex;
}

.cover-img {
    width: 100%;
    display: block;
    object-fit: contain;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(112, 0, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.cover-wrapper:hover .overlay {
    opacity: 1;
}

.price {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.price-big {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    display: block;
}


.old-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.8em;
    margin-right: 8px;
    color: var(--text-color);
}

.new-price {
    color: var(--accent-primary);
    font-weight: 800;
}


/* Styl dla starej ceny w widoku szczegółów */
.price-big .old-price {
    display: block; /* Stara cena nad nową */
    font-size: 1.5rem; /* Znacznie mniejsza niż nowa */
    margin-bottom: -10px; /* Przyciągnięcie nowej ceny do góry */
    opacity: 0.4;
}

/* Styl dla nowej ceny w widoku szczegółów */
.price-big .new-price {
    font-size: 3.5rem; /* Wielka, wyraźna cena */
    color: var(--accent-primary);
    display: block;
}

/* Styl dla waluty, żeby nie była tak ogromna jak liczba (opcjonalnie) */
.currency-suffix {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-left: 5px;
}

.buy-btn {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.3);
    transition: 0.2s ease;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
	40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.5);
}

/* WIDOK SZCZEGÓŁÓW - ABSOLUTNY ŚRODEK */
.details-container {
    background: var(--card-bg);
    border-radius: 35px;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 850px;
    margin: 0 auto; /* Centrowanie kontenera w sekcji */
}

.back-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
}


.details-content {
    display: flex;
    flex-direction: row;      
    align-items: flex-start;  
    text-align: left;         
    gap: 3rem;                
}

.details-img {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}


.text-info {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;  
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}

.stats {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    color: var(--accent-primary);
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}



.purchase-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.purchase-box .buy-btn {
    max-width: 320px;
}

@media (max-width: 600px) {
	
	.details-content {
        flex-direction: column; /* Powrót do kolumny na małym ekranie */
        align-items: center;
        text-align: center;
    }

    .text-info, .purchase-box {
        align-items: center;    /* Centrowanie treści na mobile */
    }

    .stats {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center; /* Centrowanie statystyk na mobile */
    }
}


a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
}


.checkout-form {
    width: 100%;
    max-width: 320px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.email-input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.checkbox-group {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input {
    accent-color: var(--accent-primary);
    width: 18px;
    height: 18px;
}



.auth-card {
    margin-top: 5vh;
    max-width: 450px !important;
}

.auth-cardMax {
    margin-top: 5vh;
    max-width: 99% !important;
}

.auth-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.logo-admin {
    margin-bottom: 2rem;
}

.admin-input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.admin-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group-large {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

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

.mb-2 {
    margin-bottom: 2rem;
}

.no-animation {
    animation: none !important;
}

.text-muted {
    color: rgba(255,255,255,0.6);
}


/* Styl dla komunikatów systemowych */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid transparent;
    font-family: 'Poppins', sans-serif;
}

.alert-info {
    background-color: #e7f3ff;
    color: #004085;
    border-color: #d1e7ff;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}


.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.alert i {
    font-size: 1.1rem;
}

.error-message {
    color: #ff4d4d; /* Nieco jaśniejszy czerwony, lepiej widoczny na ciemnym tle */
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    display: block;
    font-family: 'Poppins', sans-serif;
}

/* Opcjonalnie: podświetlenie inputa na czerwono przy błędzie */
.admin-input.is-invalid {
    border-color: #ff4d4d;
}



/* Układ główny */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #0f1111; /* Ciemne tło zgodne z logowaniem */
    color: white;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1a1d1d;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 30px 20px;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid #333;
}

    .sidebar-logo span {
        color: #00d4ff;
    }

/* Nawigacja */
.sidebar-nav {
    padding: 20px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.3s;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
}

    .nav-item i {
        width: 25px;
        margin-right: 10px;
        font-size: 1.1rem;
    }

    .nav-item:hover, .nav-item.active {
        background: #00d4ff;
        color: white;
    }

.nav-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 20px 0;
}

.logout-btn {
    color: #ff4d4d;
}

    .logout-btn:hover {
        background: #ff4d4d;
        color: white;
    }

/* Obszar główny */
.main-content {
    flex-grow: 1; /* Rozciąga środek na resztę obszaru */
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
}

.top-bar {
    height: 70px;
    background: #1a1d1d;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    border-bottom: 1px solid #333;
}

.domain-info {

}

.domain-info i {
    color: var(--accent-primary); 
    margin-right: 8px;
}


.user-info {
    color: #fff;
    opacity: 0.8;
}

.content-wrapper {
    padding: 30px;
    overflow-y: auto;
    width:100%;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .sidebar {
        width: 70px; /* Zwijamy sidebar do samych ikon */
    }

    .sidebar-logo, .nav-item span {
        display: none; /* Chowamy tekst na telefonach */
    }

    .nav-item i {
        margin-right: 0;
    }
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Karty statystyk  */
.stats-grid .auth-card {
    margin: 0;
    padding: 20px;
    width: 100%; /* Reset szerokości, jeśli auth-card miał sztywną */
    max-width: none; /* Pozwalamy karcie wypełnić komórkę grida */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Teksty w kartach statystyk */
.stats-grid .auth-card h3 {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 10px;
    text-align: left;
}

.stats-grid .auth-card p {
    font-size: 2rem;
    color: #00d4ff;
    font-weight: 800;
    margin: 0;
    text-align: left;
}


.dashboard-header {
    width: 100%;
    margin-bottom: 20px;
}

.dashboard-header .text-muted {
    color: #888;
    margin: 5px 0;
    font-weight: 400;
}

/* Responsywność dla sidebaru w style.css */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar span, .sidebar-logo {
        display: none;
    }
}


#clock {
    text-transform: lowercase; /* Wymusza małe litery dla nazw miesięcy */
    font-variant-numeric: tabular-nums; /* Cyfry nie skaczą przy odliczaniu */
}



.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.01);
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}



/* Product Manager - Table Styles */
.prod-mgr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.prod-mgr-add-btn {
    max-width: 200px;
    font-size: 0.85rem;
    padding: 10px 20px;
}

.prod-mgr-card {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prod-mgr-table {
    width: 100%;
    border-collapse: collapse;
}

    .prod-mgr-table thead tr {
        background: rgba(255, 255, 255, 0.02);
        text-align: left;
    }

    .prod-mgr-table th {
        padding: 15px;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--accent-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .prod-mgr-table td {
        padding: 12px 15px;
        vertical-align: middle;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

/* Info Cell (Cover + Title) */
.prod-mgr-info-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.prod-mgr-cover-wrapper {
    flex-shrink: 0;
}

.prod-mgr-cover {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.prod-mgr-cover-placeholder {
    width: 45px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

.prod-mgr-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.prod-mgr-subtitle {
    font-size: 0.75rem;
    color: var(--accent-primary);
}

/* Status & Badges */
.prod-mgr-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.badge-free {
    background: #2ecc71;
    color: #000;
}

.prod-mgr-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

    .prod-mgr-toggle-btn.is-active {
        color: #2ecc71;
    }

    .prod-mgr-toggle-btn.is-hidden {
        color: #e74c3c;
        opacity: 0.6;
    }

    .prod-mgr-toggle-btn.is-filters {
        color: var(--accent-primary);
    }

/* Actions */
.prod-mgr-action-link {
    color: #fff;
    opacity: 0.5;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px;
    transition: 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

    .prod-mgr-action-link:hover {
        opacity: 1;
        color: var(--accent-primary);
    }

    .prod-mgr-action-link.delete-trigger:hover {
        color: #e74c3c;
    }

.prod-mgr-text-right {
    text-align: right;
}

.prod-mgr-empty {
    padding: 60px !important;
    text-align: center;
    color: rgba(255,255,255,0.2);
}

    .prod-mgr-empty i {
        font-size: 3rem;
        margin-bottom: 15px;
    }

.prod-mgr-pagination {
    margin-top: 25px;
}

.prod-mgr-sort-link {
    color: var(--accent-primary); /* Twój kolor neonowy */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prod-mgr-sort-link:hover {
    color: #fff;
}

.prod-mgr-sort-link i {
    font-size: 0.7rem;
    opacity: 0.6;
}



.prod-mgr-pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    align-items: center;
}

.pagination-item {
    display: inline-block;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .pagination-item a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-primary);
        border-color: var(--accent-primary);
    }

.pagination-item.active span {
    background: var(--accent-primary);
    color: #000;
    font-weight: 800;
    border-color: var(--accent-primary);
}

.pagination-item.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
}



/* Styl dla opcji wewnątrz select */
.admin-input option {
    background-color: #1a1d1d; /* Ciemne tło pasujące do Twojego panelu */
    color: white; /* Białe litery */
    padding: 10px;
}

/* Naprawa wyglądu samego selecta, aby strzałka była widoczna */
select.admin-input {
    appearance: none; /* Usuwa domyślny wygląd systemowy */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300f2ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    cursor: pointer;
}




/* Edytor */
trix-toolbar .trix-button--icon-attach,
trix-toolbar .trix-button--icon-link {
    display: none !important;
}
/* Kontener edytora */
trix-editor {
    background-color: #1a1a1a; /* Dopasuj do koloru tła Twojej strony */
    color: #ffffff;
    border: 1px solid #444;
    min-height: 150px;
    border-radius: 8px;
}

/* Pasek narzędzi (toolbar) */
trix-toolbar {
    background-color: transparent;
    border: 1px solid #444;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

/* Przyciski w toolbarze */
trix-toolbar .trix-button-group {
    border: 1px solid #444;
    background-color: #222;
}

trix-toolbar .trix-button {
    border-bottom: none;
    filter: invert(1); /* To sprawi, że ikony staną się jasne/widoczne na ciemnym tle */
}

trix-toolbar .trix-button--active {
    background-color: #444 !important;
}

trix-editor {
    min-height: 150px !important; /* Odpowiada mniej więcej 5-7 liniom */
    height: auto;
}

/* koniec edytor */



/* ==========================================================================
   CHECKOUT MODULE 
   ========================================================================== */

.checkout-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-summary-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.checkout-product-miniature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

    .checkout-product-miniature img {
        width: 80px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

.checkout-product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.checkout-details-list {
    margin-bottom: 30px;
}

.checkout-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.checkout-detail-label {
    opacity: 0.6;
}

.checkout-detail-value {
    font-weight: 600;
}

.checkout-total-section {
    background: rgba(0, 242, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    text-align: center;
    margin-bottom: 30px;
}

.checkout-total-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.checkout-total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
}

.checkout-old-price-inline {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 1.2rem;
    margin-right: 10px;
}

.checkout-payment-methods {
    display: grid;
    gap: 15px;
}

.checkout-payment-btn {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .checkout-payment-btn:hover {
        background: var(--accent-primary);
        color: var(--bg-color);
        transform: translateY(-2px);
    }

.checkout-payment-btn-primary {
    background: var(--accent-primary);
    color: var(--bg-color);
    border: none;
}

.checkout-secure-badge {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.checkout-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

    .checkout-back-link:hover {
        opacity: 1;
        color: var(--accent-primary);
    }

/* ==========================================================================
   END CHECKOUT MODULE
   ========================================================================== */


/* Wybór subskrypcji */

/* Styl dla siatki planów */
/* Kontener na przycisk powrotu nad nagłówkiem */
.page-actions {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

/* Nowa siatka planów - bez ograniczania wysokości */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    align-items: start; /* Karty nie będą się sztucznie rozciągać */
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 2rem !important;
    min-height: 500px; /* Opcjonalnie, by zachować równość bez ucinania */
    transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Podświetlenie wybranego planu - bardziej wyraźne */
.plan-selected {
    border: 2px solid var(--accent-primary) !important;
    background: rgba(0, 242, 255, 0.03); /* Delikatne tło dla wyróżnienia */
    transform: scale(1.02); /* Lekkie powiększenie aktualnego planu */
}

    /* Etykieta "TWÓJ PLAN" */
    .plan-selected::before {
        content: "TWÓJ AKTUALNY PLAN";
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--accent-primary);
        color: #000;
        padding: 4px 15px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 900;
        letter-spacing: 1px;
        box-shadow: 0 0 15px var(--accent-primary);
        z-index: 10;
    }


/* Styl dla odznak (badges) ról użytkowników */
.badge-role {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-role-admin {
    background: rgba(0, 242, 255, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.badge-role-normal {
    background: rgba(0, 242, 255, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.badge-role-observer {
    background: rgba(0, 242, 255, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.3);
}


.btn-payu {
    background: #00a99d;
    color: #ffffff;
}


.btn-paypal {
    background: #0070ba;
    color: #ffffff;
}


.btn-hotpay {
    background: #d35400;
    color: #ffffff;
}


/* ==========================================================================
   THANK  PAGE  
   ========================================================================== */

:root {
    --accent-success: #2ecc71; /* Nowy kolor zieleni sukcesu dopasowany do mrocznego tła */
    --accent-danger: #e74c3c; /* Czerwony/Anulowanie – idealnie zbalansowany z #2ecc71 na ciemnym tle */
}

/* Dodatkowe wyśrodkowanie i delikatny, zielony blask dla kontenera sukcesu */
.success-container {
    max-width: 600px;
    text-align: center;
    border-color: rgba(46, 204, 113, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(46, 204, 113, 0.05);
}

/* Animowana ikona sukcesu "Checkmark" */
.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid var(--accent-success);
    color: var(--accent-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
    animation: successPulse 2s infinite ease-in-out;
}

.cancel-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid var(--accent-danger);
    color: var(--accent-danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
    animation: successPulse 2s infinite ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(46, 204, 113, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
    }
}

.success-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.success-product-box {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}

.success-product-badge {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.success-info-notice {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

    .success-info-notice strong {
        color: #fff;
    }

.success-action-wrapper {
    margin-top: 30px;
    width: 100%;
}

.success-btn-full {
    text-decoration: none;
    display: block;
    text-align: center;
}

.success-back-wrapper {
    text-align: center;
    margin-top: 25px;
}

.success-back-link {
    border: none;
}



/* ==========================================================================
   END THANK  PAGE 
   ========================================================================== */



/* Ciasteczka */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 90%, 600px);
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .cookie-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
    }

.cookie-btn {
    width: auto !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
/* End ciasteczka */



/* Pokazanie transakcji */
/* Pokazanie transakcji */
.transactionShow-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16.5px; /* z 15px */
    margin-bottom: 27.5px; /* z 25px */
}

.transactionShow-return-btn {
    padding: 11px 16.5px; /* z 10px 15px */
    font-size: 14.3px; /* z 13px */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: rgba(0, 119, 255, 0.15);
    color: #00d2ff;
    border: 1px solid #0077ff;
    border-radius: 4.4px; /* z 4px */
    box-shadow: 0 0 11px rgba(0, 119, 255, 0.2); /* z 10px */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8.8px; /* z 8px */
}

.transactionShow-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px; /* z 20px */
}

.transactionShow-col-main {
    flex: 2;
    min-width: 352px; /* z 320px */
}

.transactionShow-col-sidebar {
    flex: 1;
    min-width: 308px; /* z 280px */
    display: flex;
    flex-direction: column;
    gap: 22px; /* z 20px */
}

/* Karta i jej sekcje wewnętrzne */
.transactionShow-card {
    padding: 27.5px; /* z 25px */
    margin-bottom: 22px; /* z 20px */
}

    .transactionShow-card:last-child {
        margin-bottom: 0;
    }

.transactionShow-title {
    margin-top: 0;
    margin-bottom: 22px; /* z 20px */
    font-size: 17.6px; /* z 16px */
    color: #fff;
    border-bottom: 1px solid #34344a;
    padding-bottom: 11px; /* z 10px */
}

.transactionShow-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px; /* z 20px */
}

/* Detale finansowe i tekstowe */
.transactionShow-label {
    font-size: 13.2px; /* z 12px */
    display: block;
    margin-bottom: 3.3px; /* z 3px */
}

.transactionShow-amount-free {
    font-size: 15.4px; /* z 14px */
    padding: 5.5px 11px; /* z 5px 10px */
}

.transactionShow-amount-paid {
    font-size: 24.2px; /* z 22px */
    font-weight: 700;
    color: #2ecc71;
}

.transactionShow-status-wrapper {
    margin-top: 5.5px; /* z 5px */
}

.transactionShow-badge-large {
    padding: 5.5px 13.2px; /* z 5px 12px */
    font-size: 14.3px; /* z 13px */
}

.transactionShow-value-text {
    color: #fff;
    font-size: 15.4px; /* z 14px */
}

.transactionShow-gateway-code {
    background: #1e1e2e;
    padding: 4.4px 8.8px; /* z 4px 8px */
    border-radius: 4.4px; /* z 4px */
    color: #00d2ff;
}

/* Blok zakupionego produktu */
.transactionShow-product-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e2e;
    padding: 16.5px; /* z 15px */
    border-radius: 6.6px; /* z 6px */
    border: 1px solid #34344a;
}

.transactionShow-product-title {
    color: #fff;
    font-weight: 600;
    font-size: 16.5px; /* z 15px */
    display: block;
}

.transactionShow-product-status {
    padding: 4.4px 11px; /* z 4px 10px */
    border-radius: 4.4px; /* z 4px */
    font-size: 13.2px; /* z 12px */
    font-weight: 500;
}

.transactionShow-product-status-active {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.transactionShow-product-status-deleted {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Sekcje boczne (klient i partner) */
.transactionShow-email-link {
    color: #00d2ff;
    font-weight: 500;
    text-decoration: none;
    font-size: 15.4px; /* z 14px */
    word-break: break-all;
}

.transactionShow-partner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.2);
    padding: 6.6px 13.2px; /* z 6px 12px */
    border-radius: 4.4px; /* z 4px */
    color: #fff;
    font-weight: 500;
    font-size: 14.3px; /* z 13px */
}

.transactionShow-partner-icon {
    color: #00d2ff;
    margin-right: 6.6px; /* z 6px */
    font-size: 12.1px; /* z 11px */
}



/* Styl dla tła modala (overlay) */
.transactionShow-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

/* Kontener samego okienka */
.transactionShow-modal-content {
    background: #1e1e2e;
    border: 1px solid #34344a;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: transactionShowModalFade 0.3s ease;
}

/* Grupa pól formularza */
.transactionShow-form-group {
    margin-bottom: 20px;
}

.transactionShow-input {
    width: 100%;
    padding: 10px;
    background: #151521;
    color: #fff;
    border: 1px solid #34344a;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
}

    .transactionShow-input:focus {
        border-color: #0077ff;
        outline: none;
        box-shadow: 0 0 5px rgba(0, 119, 255, 0.3);
    }

/* Przyciski w modalu */
.transactionShow-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.transactionShow-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #bbb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.transactionShow-btn-primary {
    background: rgba(0, 119, 255, 0.15);
    color: #00d2ff;
    border: 1px solid #0077ff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.2);
}

/* Animacja otwierania */
@keyframes transactionShowModalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Styl dla obu pól */
.filter-date-picker {
    width: 50%;
    padding: 8px;
    background: #1e1e2e;
    color: #fff;
    border: 1px solid #34344a;
    border-radius: 4px;
}

/* Wybielenie domyślnej ikonki kalendarza */
.filter-date-picker::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}


/* Etykiety statusów rozliczeń miesięcznych */
.badge-billing-paid {
    background: #2ecc71;
    color: #000;
}

.badge-billing-unpaid {
    background: #e74c3c;
    color: #fff;
}

.badge-billing-current {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}
