:root{
    
    --radius: 16px;
    --maxw: 1200px;
    font-size: 16px;
}

body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

.logo {
    margin: 5px;
    color: var(--accent);
    width: 100px;
    height: auto;
}

.logo-img{
    width: 100px;
    padding-top: 5px;
}

.container {
    max-width: var(--maxw);
    min-height: 600px;
    margin: 40px auto;
    padding: 28px;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    border-radius: var(--radius);
    border: 1px solid var(--accent);
}
.container-dashboard {
    max-width: 90vw;
    min-height: 600px;
    margin: 40px auto;
    padding: 28px;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    border-radius: var(--radius);
    border: 1px solid var(--accent);
}
.footer-main{
    color: var(--accent);
    border-top: 1px solid var(--accent);
    background: linear-gradient(180deg, var(--bg-two), var(--bg-one));
    border-radius: var(--radius) var(--radius) 0 0;

}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

h1 {
    font-size: 32px;
    margin: 0 0 8px 0;
}

.muted, .meta {
    color: var(--muted);
}

.story {
    background: var(--bg-two);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    border-radius: 12px;
    min-height: 340px;
    line-height: 1.55;
    font-size: 18px;
    white-space: pre-wrap;
}

.btn {
    padding: 6px 12px;
    border-radius: 10px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
}

.set-btn {
    padding: 6px 8px;
    border-radius: 10px;
    border: 0;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
}
.menu-btn {
    padding: 6px 12px;
    border-radius: 10px;
    border: 0;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
}
.box-dash-back{
    position: fixed;
    top: 155px;
    right: 10px;
}

.btn-dash {
    padding: 2px 12px;
    border-radius: 10px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
}
.btn-dash-active {
    padding: 2px 12px;
    border-radius: 10px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    color: var(--bg-one);
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
}
.btn-filters {
    position: fixed;
    top: 80px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
    z-index: 10000;
}

.btn-filters:active {
    transform: translateY(1px);
}
.btn-submit {
    padding: 2px 12px;
    border-radius: 10px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    transition: transform 0.1s;
}

.btn-submit:active {
    transform: translateY(1px);
}
button:disabled {
    color: var(--muted);
    opacity: 0.5;
    cursor: not-allowed;
}
input:disabled {
    color: var(--muted);
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-round {
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    margin-top: 2px;
    padding: 0px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(180deg, var(--bg-two), var(--bg-one));
    transition: transform 0.1s;
}
.btn-plus{
    position: absolute;
    top: -3px;
    left: 0;
}

.cart-btns{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.token-box{
    display: flex;
    gap: 5px;
}
.token-box-small{
    display: none;
    width: 100%;
    align-items: start;
    flex-direction: column;
    gap: 5px;
}
.d-flex{
    display: flex;
}

.dir-f-c{
    flex-direction: column;
}
.m-5{
    margin: 5px;
}

.small {
    font-size: 13px;
    padding: 8px 10px;
}

footer {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.loading {
    margin-left: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* Story grid & cards */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.story-display {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.library-card {
    position: relative;
    background: var(--panel);
    padding: 0 10px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--accent);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}

.library-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.library-card-promo{
    position: absolute;
    background: linear-gradient(180deg, var(--bg-two), var(--bg-one));
    top: 5px;
    right: -5px;
    padding: 0px 3px;
    border: 1px solid red;
    border-radius: 5px;
    font-size: 12px;
}
.library-img{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

.library-img img{
    width: 200px;
    height: 200px;
    border-radius: 5px;
}

.story-card {
    background: var(--panel);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--accent);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.story-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    border-bottom: 2px dashed var(--muted);
}

.story-desc {
    font-size: 16px;
    color: var(--accent);
    flex-grow: 1;
}

.story-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

.add-story {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    border: 2px dashed var(--muted);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.4);
    height: 180px;
    cursor: pointer;
    transition: background .15s;
}

.add-story:hover {
    background: rgba(255,255,255,0.6);
}

/* Modal */
.modal-bg {
    display: none;
    position: fixed;
    top:0; 
    left:0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 21474;
    overflow: auto; /* scroll, jeśli modal jest za wysoki */
}

.modal-bg.active {
    display: flex;
}

.modal {
    background: var(--panel);
    border-radius: var(--radius);
    width: 90%;
    max-width: 1600px;
    max-height: 90vh; /* nigdy nie większy niż 90% wysokości okna */
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    overflow-y: auto; /* scroll w treści modala */
}
.modal-user {
    background: var(--panel);
    border-radius: var(--radius);
    width: 90%;
    max-width: 1600px;
    max-height: 90vh; /* nigdy nie większy niż 90% wysokości okna */
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    overflow-y: auto; /* scroll w treści modala */
}

.modal-img {
    background: var(--panel);
    border-radius: var(--radius);
    flex-direction: column;
    width: 90%;
    max-width: 1600px;
    max-height: 90vh; /* nigdy nie większy niż 90% wysokości okna */
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    overflow-y: auto; /* scroll w treści modala */
}

.story-info-field{
    display: flex;
    justify-content: left;
    align-items: left;
    flex-direction: column;
}

.modal h2 {
    margin-top: 0;
}

.modal label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 800;
}

.modal textarea {
    resize: vertical;
}

.modal .actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal .btn.cancel {
    background: var(--sec-btn);
    color: var(--sec-text);
}

/* ===========================
PRICING PAGE STYLES
(modular, isolated namespace)
=========================== */
.pricing-container {
    max-width: var(--maxw);
    margin: 40px auto;
    padding: 28px;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    border-radius: var(--radius);
    border: 1px solid var(--accent);
}

.pricing-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    /* margin-bottom: 30px; */
}

.pricing-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.pricing-header .muted {
    font-size: 15px;
    color: var(--muted);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 32px 0px;
    gap: 24px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    margin-top: 32px;
    gap: 24px;
}

.promo-display{
    position: absolute;
    top: 5px;
    right: -5px;
    background-color: red;
    color: rgb(241, 241, 241);
    font-size: 12px;
    padding: 0 3px;
    border: 1px solid greenyellow;
    border-radius: 3px;
}


.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-price {
    font-size: 26px;
    font-weight: bold;
    margin: 12px 0 16px;
    color: var(--accent);
}

.plan-price span {
    font-size: 14px;
    color: var(--muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--muted);
}

.plan-features li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


.popular-tag,
.premium-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c9a96a;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.premium-tag {
    background: #8b6b2e;
}

.pricing-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
/* ===========================
PRICING PAGE EXTENSIONS
(merged + non-conflicting)
=========================== */
.pricing-card {
    position: relative;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--accent);
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Alternatywny nagłówek, jeśli używasz <h2> */
.pricing-card h2,
.pricing-card .plan-name {
    font-size: 22px;
    margin-bottom: 8px;
}

/* Ceny — ujednolicenie z poprzednim stylem */
.pricing-card .price,
.plan-price {
    font-size: 24px;
    font-weight: bold;
    margin: 12px 0;
    color: var(--accent);
}
.pricing-card .price-muted,
.plan-price-muted {
    font-size: 24px;
    font-weight: bold;
    margin: 12px 0;
    color: var(--muted);
}

/* Lista funkcji */
.pricing-card ul,
.plan-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 15px;
    color: var(--muted);
}

.pricing-card ul li,
.plan-features li {
    margin: 6px 0;
}

/* Styl wyróżnionej karty */
.pricing-card.highlight,
.pricing-card.popular,
.pricing-card.premium {
    border: 2px solid rgb(139, 107, 46);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    background: linear-gradient(180deg, #ffc53f, #ffebca);
}

/* Etykiety „Popular” i „Premium” */
.popular-tag,
.premium-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c9a96a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.premium-tag {
    background: #8b6b2e;
}

/* ===========================
   KOSZYK
=========================== */
.slide-packs {
    position: fixed;
    top: 0; /* od samej góry ekranu */
    right: -320px;
    width: 280px;
    height: 100vh; /* pełna wysokość ekranu */
    background: var(--panel);
    box-shadow: -6px 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px 0 0 12px;
    transition: right 0.3s ease;
    z-index: 1500; /* ponad nav-top */
}

.slide-packs.active {
    right: 0;
}

.slide-packs-content {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Przycisk zamknięcia teraz wewnątrz packs */
.close-packs {
    background: none;
    border: none;
    font-size: 22px;
    align-self: flex-end;
    cursor: pointer;
    color: var(--accent);
    font-weight: 700;
}

#cart-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
    font-size: 15px;
    color: var(--muted, #555);
}

#cart-list li {
     margin: 6px 0;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 16px;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cart-btn{
    position: fixed;
    top: 80px;
    right: 20px;
}
.book-price-btn{
    position: fixed;
    top: 120px;
    right: 20px;
}

.cart-product{
    position: relative;
    border: 1px solid var(--accent);
    border-radius: 5px;
    padding: 5px;
}
.remove-btn{
    position: absolute;
    color: var(--accent);
    background: none;
    border: none;
    top: 0px;
    right: 5px;
    cursor: pointer;
}
.cart-product-title{
    color: var(--accent);
    font-size: 14px;
}
.cart-product-type{
    color: var(--muted);
    font-size: 8px;
}
.cart-product-price{
    color: var(--accent);
    font-size: 12px;
}
/* ===========================
NAVIGATION BAR
=========================== */
.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 26px;
    background: var(--panel);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: 1px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-left .brand {
    font-family: "Georgia", serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-center a {
    margin: 0 14px;
    font-size: 16px;
    /* color: var(--accent); */
    text-decoration: none;
    position: relative;
}

.nav-center a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease-in-out;
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-top .btn.small {
    background: linear-gradient(180deg, #fff, #f2e7d9);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all .15s;
    text-decoration: none;
    color: var(--accent);
}

.nav-top .btn.small:hover {
    background: linear-gradient(180deg, #fffaf0, #f4eadb);
    transform: translateY(-1px);
}

.nav-top .btn.accent {
    background: linear-gradient(180deg, #f9e5b5, #f5d88b);
    color: var(--accent);
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.08);
}

.nav-top .btn.accent:hover {
background: linear-gradient(180deg, #ffefc7, #f5d88b);
}


/* Responsywność */
@media (max-width: 720px) {
    .nav-top {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .nav-center {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .nav-right {
        order: 2;
    }
    .nav-left {
        order: 1;
    }
    .token-box{
        display: none;
    }
    .token-box-small{
        display: flex;
    }
    .nav-menu-text{
        display: none;
    }
    .set-btn{    
        position: fixed;
        top: 80px;
        right: 55px;
        width: 40px;
        height: 40px;
    }
    .menu-btn{    
        position: fixed;
        top: 80px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}
/* Responsywność */
@media (max-width: 991px) {
    .token-box{
        display: none;
    }
    .token-box-small{
        display: flex;
    }
    .nav-menu-text{
        display: none;
    }
}

/* Cookie banner */
.cookie-banner{
display:none;
position: fixed;
left: 18px;
right: 18px;
bottom: 18px;
background: var(--panel);
border-radius: 12px;
box-shadow: 0 10px 30px rgba(20,20,20,0.12);
padding: 14px 16px;
z-index: 1600;
border: 1px solid rgba(0,0,0,0.04);
font-size: 14px;
}

.cookie-inner {
display:flex;
gap:12px;
align-items:center;
justify-content:space-between;
flex-wrap:wrap;
}

.cookie-left { flex:1 1 320px; min-width:220px; }
.cookie-desc { color: var(--muted); margin-top:6px; font-size:13px; }

.cookie-actions {
display:flex;
gap:8px;
align-items:center;
flex: 0 0 auto;
}

/* Modal overrides (uses existing .modal-bg and .modal) */
.modal.cookie-modal { max-width:520px; width:92%; padding:20px 22px; border-radius:12px; }
.cookie-row {
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:10px 0;
border-bottom:1px solid rgba(0,0,0,0.04);
}
.cookie-row:last-of-type { border-bottom:0; padding-bottom:6px; }

/* Small responsive tweaks */
@media (max-width:680px){
.cookie-inner { flex-direction:column; align-items:stretch; }
.cookie-actions { justify-content: flex-end; width:100%; }
}

/* Make modal inputs look consistent */
.modal.cookie-modal input[type="checkbox"] {
width:18px; height:18px; transform:translateY(1px);
}

/* Ensure buttons match look */
.cookie-banner .btn, .modal.cookie-modal .btn {
border-radius:10px;
}

/* subtle focus states for accessibility */
.cookie-banner .btn:focus, .modal.cookie-modal .btn:focus {
outline: 3px solid rgba(201,169,106,0.18);
outline-offset: 2px;
}

/* rejestracja */
.signup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
}

.signup-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    text-align: center;
}

.signup-card h1 {
    margin-bottom: 8px;
    font-size: 26px;
}

.signup-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.created-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 800px;
    padding: 40px 16px;
    background: linear-gradient(180deg, #efe6d6 0%, #f7efe2 100%);
}
.created-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    text-align: center;
}
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: rgba(255,255,255,0.6);
}

.form-group input:focus {
    outline: 3px solid rgba(201,169,106,0.18);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.checkbox-row a {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.signup-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f2e7d9);
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all .15s;
}

.signup-btn:hover {
    background: linear-gradient(180deg, #fffaf0, #f4eadb);
    transform: translateY(-1px);
}

.login-link {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.login-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* Terms modal */
.terms-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.terms-modal.active { display: flex; }

.terms-content {
    background: var(--panel);
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}

.terms-content h2 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
}

.terms-content .close-btn {
    display: inline-block;
    margin-top: 12px;
    background: #eee;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* login  */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
}

.login-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    text-align: center;
}

.login-card h1 {
    margin-bottom: 8px;
    font-size: 26px;
}

.login-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}
.info-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 40px 32px;
    width: 50%;
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    text-align: center;
}
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: rgba(255,255,255,0.6);
}

.form-group input:focus {
    outline: 3px solid rgba(201,169,106,0.18);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f2e7d9);
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all .15s;
}

.login-btn:hover {
    background: linear-gradient(180deg, #fffaf0, #f4eadb);
    transform: translateY(-1px);
}

.signup-link {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.signup-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
/* ===================================
RESPONSYWNOŚĆ STRON
(Pricing, Story, Login, Signup)
=================================== */

/* --- STORY --- */
@media (max-width: 720px) {
    .container {
        margin: 20px 10px;
        padding: 18px;
    }

    #story {
        font-size: 16px;
        min-height: 240px;
    }

    .choices {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn {
        width: 100%;
        font-size: 15px;
    }
}

/* --- PRICING --- */
@media (max-width: 720px) {
    .pricing-container {
        margin: 20px 10px;
        padding: 18px;
    }

    .pricing-header h1 {
        font-size: 26px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 20px;
    }

    .plan-name {
        font-size: 18px;
    }

    .plan-price {
        font-size: 22px;
    }

    .plan-features li {
        font-size: 14px;
    }

    .pricing-card .btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* --- LOGIN & SIGNUP --- */
@media (max-width: 720px) {
    .signup-card,
    .login-card {
        padding: 28px 20px;
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    }

    .signup-card h1,
    .login-card h1 {
        font-size: 22px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        font-size: 14px;
        padding: 9px 10px;
    }

    .signup-btn,
    .login-btn {
        font-size: 15px;
        padding: 10px;
    }
    }

    /* --- COOKIE BANNER --- */
    @media (max-width: 680px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        padding: 12px;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-actions {
        justify-content: flex-end;
        width: 100%;
    }

    .cookie-left {
        flex: 1 1 auto;
    }
}
/* ---- Slide menu ---- */
.slide-menu {
    position: fixed;
    top: 0; /* od samej góry ekranu */
    right: -320px;
    width: 280px;
    height: 100vh; /* pełna wysokość ekranu */
    background: var(--panel);
    box-shadow: -6px 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px 0 0 12px;
    transition: right 0.3s ease;
    z-index: 1500; /* ponad nav-top */
}

.slide-menu.active {
    right: 0;
}

.slide-menu-content {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* ---- Slide filters ---- */
.slide-filters {
    position: fixed;
    top: 0; /* od samej góry ekranu */
    left: -320px;
    width: 280px;
    height: 100vh; /* pełna wysokość ekranu */
    background: var(--panel);
    box-shadow: -6px 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px 0 0 12px;
    transition: left 0.3s ease;
    z-index: 15000; /* ponad nav-top */
}

.slide-filters.active {
    left: 0;
}

.slide-filters-content {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Slide menu ---- */
.slide-settings-menu {
    position: fixed;
    top: 0; /* od samej góry ekranu */
    right: -320px;
    width: 280px;
    height: 100vh; /* pełna wysokość ekranu */
    background: var(--panel);
    box-shadow: -6px 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px 0 0 12px;
    transition: right 0.3s ease;
    z-index: 1500; /* ponad nav-top */
}

.slide-settings-menu.active {
    right: 0;
}

.slide-settings-menu-content {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Przycisk zamknięcia teraz wewnątrz menu */
.close-menu {
    background: none;
    border: none;
    font-size: 22px;
    align-self: flex-end;
    cursor: pointer;
    color: var(--accent);
    font-weight: 700;
}

.user-info {
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 16px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}
.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.username {
    font-weight: 700;
    margin: 4px 0;
}

.package,
.expiry {
    font-size: 13px;
    color: var(--muted);
    margin: 2px 0;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-buttons .btn {
    width: 100%;
    text-align: left;
}

/* ---- Adjust nav-top z-index ---- */
.nav-top {
    z-index: 1400; /* zawsze nad slide-menu */
}

/* Przycisk toggle zawsze widoczny */
#toggleMenu {
    display: inline-block;
}

/* Możesz ukryć toggle tylko jeśli chcesz na desktop */
@media(min-width: 720px) {
    #toggleMenu { display: inline-block; }
}

.sel-prof-pic{
padding-bottom: 15px;
}
/* ==== proof images ==== */
.proof-image {
    display: block;                 
    margin: 16px auto;              
    max-width: 480px;                
    height: auto;                   
    border-radius: var(--radius);   
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); 
    border: 1px solid rgba(0,0,0,0.05);      
}
/* ==== Story images ==== */
.story-image {
    display: block;                 /* wyświetlenie jako blok, łatwe centrowanie */
    margin: 16px auto;              /* odstęp od tekstu i wycentrowanie */
    max-width: 100%;                /* dopasowanie do szerokości kontenera */
    height: auto;                   /* zachowanie proporcji */
    border-radius: var(--radius);   /* spójne z resztą paneli i przycisków */
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* lekki cień jak w kartach */
    border: 1px solid rgba(0,0,0,0.05);      /* subtelna ramka */
}

/* Dodatkowo można zadbać o responsywność w małych ekranach */
@media (max-width: 720px) {
    .story-image {
        margin: 12px auto;
        max-width: 100%;
    }
    .proof-image {
        margin: 12px auto;
        max-width: 100%;
    }
}

/* ***************************************************** */
.text-display {
    width: 100%;
    min-height: 300px;
    background: #fffdf7;
    border-radius: var(--radius);  
    padding: 10px;
    font-size: 18px;
}

.actions-btn{
    position: fixed;
    right: 10px;
    top: 100px;
}

/* ****************************************************** */
/* 🧩 Popup overlay zawsze nad modalami */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999; /* wyższy niż modal-bg */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🪄 Właściwe okno popup */
.popup {
    background: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    z-index: 10000;
}

.popup p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.popup .btn {
    margin: 0 8px;
    padding: 10px 20px;
}

.cut-t1{
    --max-lines: 1;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--max-lines);
}

.cut-t3{
    --max-lines: 3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--max-lines);
}

.cut-t5{
    --max-lines: 5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--max-lines);
}


.logo {
    margin: 5px;
    color: var(--accent);
    width: 100px;
    height: auto;
}

/* ***************************************************************** */
.accordion-main {
    position: relative;
    width: 100%;
    margin: 10px 0;
}    

.accordion {
    display: flex;
    justify-content: space-between;
    align-items: center;  
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    font-size: 16px;
    width: 100%;
    padding: 0px 5px 0px 10px; 
    border: 1px solid var(--accent);
    border-radius: 8px 8px 8px 8px;
    transition: 0.01s ease-in-out;
    cursor: pointer;
    word-break: break-word;
}

.accordion:hover,
.accordion.active {
    background: linear-gradient(180deg, var(--bg-two), var(--bg-one));
}  

.accordion-panel {
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    width: 100%;
    height: auto;
    margin-top: 5px;
    padding: 5px 10px 5px 10px;
    border: 1px solid var(--accent);
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    overflow-y: scroll;
}

.accordion-panel-content-box {
    color: var(--accent);
    font-size: 16px; 
    word-break: break-word;
}


/* ***************************************************** */
.accordion-sec-main {
    position: relative;
    width: 100%;
}    

.accordion-sec {
    display: flex;
    justify-content: space-between;
    align-items: center;  
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    font-size: 16px;
    width: 100%;
    padding: 0px 5px 0px 10px;  
    margin: 10px 0;  
    border: 1px solid var(--accent);
    border-radius: 8px 8px 8px 8px;
    transition: 0.01s ease-in-out;
    cursor: pointer;
    word-break: break-word;
}

.accordion-sec:hover,
.accordion-sec.active {
    background: linear-gradient(180deg, var(--bg-two), var(--bg-one));
}  

.accordion-sec-panel {
    display: none;
    flex-direction: column;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    width: 100%;
    height: auto;
    margin-top: 5px;
    padding: 5px 10px 5px 10px;
    border: 1px solid var(--accent);
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    overflow-y: scroll;
}

.accordion-sec-panel-content-box {
    color: rgba(82, 63, 63, 1);
    font-size: 16px; 
    word-break: break-word;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 20px;
}

/* ********************************************************************* */
.accordion-type-main {
    position: relative;
    width: 100%;
}    

.accordion-type {
    display: flex;
    justify-content: space-between;
    align-items: center;  
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    font-size: 16px;
    width: 100%;
    padding: 0px 5px 0px 10px;  
    margin: 10px 0;  
    border: 1px solid var(--accent);
    border-radius: 8px 8px 8px 8px;
    transition: 0.01s ease-in-out;
    cursor: pointer;
    word-break: break-word;
}

.accordion-type:hover,
.accordion-type.active {
    background: linear-gradient(180deg, var(--bg-two), var(--bg-one));
}  

.accordion-type-panel {
    display: none;
    flex-direction: column;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    width: 100%;
    height: auto;
    margin-top: 5px;
    padding: 5px 10px 5px 10px;
    border: 1px solid var(--accent);
    border-radius: 8px 8px 8px 8px;
}

.accordion-type-panel-content-box {
    color: rgba(82, 63, 63, 1);
    font-size: 16px; 
    word-break: break-word;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 20px;
}

/* ********************************************************************* */
.checkbox-main-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px 10px; 
}

.checkbox input[type="checkbox"] {
    appearance: none;
    display: none;
}

.checkbox {
    display: flex;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}

.checkbox input[type="checkbox"] ~ .checkbox-tick-box {
    position: relative;
    background-color: rgba(16, 16, 16, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 100px 100px 100px 100px;
    margin-right: 10px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    transition: 0.6s ease-in-out;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-tick-box {
    background-color: rgba(16, 16, 16, 0.1);
    border-radius: 100px 100px 100px 100px;
    transition: 0.6s ease-in-out;
}

.checkbox input[type="checkbox"] ~ .checkbox-tick-box .checkbox-svg {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 3px;
    stroke: var(--accent);    
    stroke-linecap: round;
    stroke-linejoin: round;
    top: -3px;
    left: -3px;
    stroke-dashoffset: 124.6;
    stroke-dasharray: 0 162.6 133 29.6;
    transition: 0.6s ease-in-out;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-tick-box .checkbox-svg {
    stroke-dashoffset: 162.6;
    stroke-dasharray: 0 162.6 28 134.6;
    transition: 0.6s ease-in-out;
}

/* ************************************************* */
.input-number,
.search {
    position: relative;
    margin-bottom: 5px;
}

.input-number input[type=number],
.search input[type=email],
.search input[type=text] {
    width: 100%;
    padding: 2px 2px 2px 10px;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    border-radius: 8px 8px 8px 8px;
    font-size: 16px;
    border: 1px solid var(--accent);
    outline: none;
    transition: 0.5s ease-in-out;
}

.input-number input[type=number]:focus::placeholder,
.search input[type=email]:focus::placeholder,
.search input[type=text]:focus::placeholder {
    color: transparent;
}

.input-number input[type=number]::placeholder,
.search input[type=email]::placeholder,
.search input[type=text]::placeholder {
    color: var(--muted);
}
/* **************************************************** */
.ta {
    position: relative;
    width: 100%;
    height: 80px;
    margin: 5px 0;
}

.ta .ta-textarea {
    width: 100%;
    height: 80px;
    padding: 5px 5px 5px 10px;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    border-radius: 8px 8px 8px 8px;
    font-size: 16px;
    border: 1px solid var(--accent);
    outline: none;
    transition: 0.5s ease-in-out;
    resize: none;
}

.ta .ta-textarea:focus::placeholder,
.ta .ta-textarea.has-value::placeholder {
    color: transparent;
}

.ta .ta-textarea::placeholder {
    color: var(--muted);
}
.ta-count {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    width: 60px;
    top: -10px;
    right: 10px;
    font-size: 12px;
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    padding: 0px 10px 0px 10px;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid var(--accent);
    pointer-events: none;
}
/* ********************************************************** */
select {
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0 8px;
    border-radius: 6px;         /* zaokrąglenie */
    font-size: 16px;
    width: 100%;
    font-family: inherit;
    outline: none;
}
select option {
    background-color: var(--bg-one);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px;
}

/* *************************************************************** */
.player{
    padding:14px;
}
.row{
    display:flex;
    align-items:
    center;gap:10px;
}
.title{
    font-weight:600;
}
.meta{color:var(--muted);
    font-size:13px;
}
.controls{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:8px;
}

.time{
    margin-left:auto;
    font-size:13px;
    color:var(--muted);
}
.progress-wrap{
    margin-top:8px;
}
input[type="range"]{
    width:100%;
    height:8px;
    appearance:none;
    background:linear-gradient(90deg,var(--accent),#2a6f89);
    border-radius:999px;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb{
    appearance:none;
    width:10px;
    height:20px;
    border-radius:2px;
    background:#2a6f89;
    border:2px solid var(--accent);
    cursor: pointer;
}
.times{
    display:flex;
    justify-content:space-between;
    font-family:monospace;
    font-size:13px;
    color:var(--muted);
    margin-top:6px;
}

.icon{
    width:16px;
    height:16px;
}
.currentColor{
    fill: var(--accent);
}

/* ******************************************************************* */
.custom-select-wrapper { position: relative; width: 150px; }
.custom-select { position: relative; cursor: pointer; color: var(--muted);}
.custom-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 10px; border: 1px solid #ccc; border-radius: 5px;
    background: #fff;
    
}
.custom-select-trigger img { margin-right: 5px; }
.custom-options {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #ccc; border-radius: 5px;
    display: none; flex-direction: column; z-index: 10;
    color: var(--muted);
}
.custom-option { padding: 5px 10px; display: flex; align-items: center; }
.custom-option img { margin-right: 5px; }
.custom-option:hover { background: #f0f0f0; }
.arrow { border: solid black; border-width: 0 1px 1px 0; padding: 3px; transform: rotate(45deg); margin-left: 5px; }

.home-box{
    position: relative;
    width: 100%;
    display: flex;
}

.home-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    color: var(--accent);
    width: 150%;
    height: auto;
}

.home-text{
    padding: 10px;
    color: var(--accent);
    background: linear-gradient(180deg, var(--bg-one), var(--bg-two));
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    margin: 5px;
}

.hide-table { 
    display: flex;
    justify-content: center;
    align-items: center; 
}

.hide-btn { 
    display: flex;
    justify-content: center;
    align-items: center; 
}
.show-btn { 
    display: none; 
}

/* Możesz ukryć toggle tylko jeśli chcesz na desktop */
@media(max-width: 720px) {
    .home-icon { display: none; }
}

@media(max-width: 991px) {
    .hide-table { display: none; }
    .hide-btn { display: none; }
    .show-btn { 
        display: flex;
        justify-content: center;
        align-items: center; 
    }
}
.svg-404{fill: var(--accent);}

.go-to-top{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 30px;
    fill: var(--accent);
    border:2px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}

.css-count-box-001{
    position: fixed;
    top: 130px;
    left: 10px;
    padding: 5px;
    border:1px solid var(--accent);
    border-radius: 5px;
    background: var(--panel);
    font-size: 12px;
    color: var(--accent);
}

/* DASHBOARD  */
/* === SEKCJA === */
.chart-section {
    border-radius:12px;
    padding:20px;
    margin-bottom:40px;
    box-shadow: 0 10px 30px rgba(20,20,20,0.12);
    border-radius: var(--radius);
    border: 1px solid var(--accent);
}

/* === KONTROLKI === */
.chart-controls {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:10px;
    align-items:center;
}

/* === LEGENDA === */
.legend {
    display:flex;
    gap:14px;
    font-size:12px;
    margin-bottom:6px;
}
.legend span {
    display:flex;
    align-items:center;
    gap:5px;
}
.legend i {
    width:10px;
    height:10px;
    display:inline-block;
    background: var(--series-color);
}

/* === WYKRES === */
.chart { overflow-x:auto; }
.chart-inner {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(18px,auto);
    align-items:end;
    gap:6px;
    height:220px;
}

/* dzień */
.day {
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:2px;
}

/* słupek */
.bar {
    width:3px;
    border-radius:2px 2px 0 0;
    position:relative;
}

/* tooltip */
.bar:hover::after {
    content: attr(data-tooltip);
    position:absolute;
    bottom:100%;
    left:50%;
    transform:translateX(-50%);
    background:#111;
    color:#fff;
    font-size:10px;
    padding:2px 5px;
    border-radius:4px;
    white-space:nowrap;
}

/* etykiety dni */
.labels {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(18px,auto);
    gap:6px;
    font-size:10px;
    color:#666;
    text-align:center;
    margin-top:4px;
}

.chart-actions { margin-bottom:8px; }   


/* ************************************************* */
.radio input[type="radio"] {
    appearance: none;
    display: none;
}

.radio {
    display: flex;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}

.radio input[type="radio"] ~ .radio-tick-box {
    position: relative;
    background-color: rgba(16, 16, 16, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 100px 100px 100px 100px;
    margin-right: 10px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    transition: 0.6s ease-in-out;
}

.radio input[type="radio"]:checked ~ .radio-tick-box {
    background-color: rgba(16, 16, 16, 0.1);
    border-radius: 100px 100px 100px 100px;
    transition: 0.6s ease-in-out;
}

.radio input[type="radio"] ~ .radio-tick-box .radio-svg {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 3px;
    stroke: var(--accent);    
    stroke-linecap: round;
    stroke-linejoin: round;
    top: -3px;
    left: -3px;
    stroke-dashoffset: 124.6;
    stroke-dasharray: 0 162.6 133 29.6;
    transition: 0.6s ease-in-out;
}

.radio input[type="radio"]:checked ~ .radio-tick-box .radio-svg {
    stroke-dashoffset: 162.6;
    stroke-dasharray: 0 162.6 28 134.6;
    transition: 0.6s ease-in-out;
}

/* ************************************************* */

#style-tooltip-preview {
    position: fixed; /* fixed żeby nie był ograniczony rodzicem */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50000;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

#style-tooltip-preview img {
    width: 100%;
    display: block;
}
/* 👁️ Przyciski podglądu tylko na mobile */
.style-preview-btn {
    display: inline-flex;          /* pokazujemy na mobile */
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

@media (min-width: 768px) {
    .style-preview-btn {
        display: none;             /* ukryte na desktop */
    }
}





