<style>
.offer.frozen {
    opacity: 0.5;
    pointer-events: none;
}
.timer {
    font-weight: bold;
    color: #ff0000;
    margin-top: 5px;
}
@media (max-width: 768px) {
    .offer.frozen .timer {
        font-size: 12px;
        padding: 4px 8px;
        top: 5px;
        right: 5px;
    }
}

.offer .timer {
    display: block;
    font-weight: bold;
    color: red;
    margin-top: 5px;
    font-size: 14px;
}

.offer.frozen .timer {
    z-index: 10;
}



/* Styl nag?¨®wka panelu u?ytkownika - ciemny i elegancki */
.userpanel-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #a8e6a3;             /* stonowany zielony kontrastuj?cy z ciemnym t?em */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); /* subtelny cie¨˝ dla g??bi */
    margin-bottom: 20px;
    border-left: 4px solid #3a7f3a; /* ciemniejszy zielony akcent */
    padding-left: 12px;
    background-color: #121a12;   /* lekko ciemne t?o, dopasowane do panelu */
    border-radius: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
}



.offer .line {
    position: relative;
    overflow: visible;
    
}

/* Elegancka linia bia?a ?¨˛ z?ota */
.offer .line::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.9) 0%,      /* bia?a */
        rgba(255,220,120,1) 50%,       /* z?ota */
        rgba(255,200,50,1) 80%,        /* intensywnie z?ota */
        rgba(255,215,0,0.2) 100%       /* delikatne wyj?cie do b?ysku */
    );
    border-radius: 2px;
}

/* B?ysk Disney / gwiazdka na koˇ§?cu linii */
.offer .line::before {
    content: "";
    position: absolute;
    bottom: -3px; 
    right: -6px; 
    width: 14px;
    height: 14px;
    background: radial-gradient(
       
    );
    filter: blur(1px);
    pointer-events: none;
}


/* Tekst nad po?wiat? */
.offer .line * {
    
    z-index: 1;
}

/* Etykiety */
.offer strong {
    display: inline-block;
    width: 80px;
    font-weight: 600;
    color: #bbbbbb;
}

/* Warto?ci danych ˇ§C wyrˇ§??nienie gradientem lub kolorem */
.offer .store {
    color: #4fc3f7;
}
.offer .price {
    background: linear-gradient(90deg, #00e676, #1de9b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25em;
    font-weight: 700;
}
.offer .voucher {
    color: #ffca28;
    font-weight: 600;
}
.offer .username {
    color: #ba68c8;
    font-weight: 600;
}
.offer .valid_until {
    color: #ff5252;
    font-weight: 600;
}

/* Responsive ˇ§C zmniejszenie fontˇ§?w i paddingu na mobile */
@media (max-width: 768px) {
    .offer {
        padding: 15px;
    }
    .offer strong {
        width: 120px;
    }
    .offer .price {
        font-size: 1.15em;
    }
	
		.userpanel-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #a8e6a3;             /* stonowany zielony kontrastuj?cy z ciemnym t?em */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); /* subtelny cie¨˝ dla g??bi */
    margin-bottom: 20px;
    border-left: 4px solid #3a7f3a; /* ciemniejszy zielony akcent */
    padding-left: 12px;
    background-color: #121a12;   /* lekko ciemne t?o, dopasowane do panelu */
    border-radius: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
}
}


/* Styl dla przycisku w?asnej oferty */
.buy-now.own-offer {
    background-color: #cccccc; /* jasnoszary */
    color: #666666;            /* ciemniejszy szary tekst */
    cursor: not-allowed;       /* pokazuje, ?e nie mo?na klikn?? */
    pointer-events: none;      /* blokuje klikni?cie */
    opacity: 0.9;
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}




</style>

<style>
.you-offer {
    flex: 0;                      /* nie rozciąga się jak przycisk */
    padding: 6px 12px;            /* mniejsze odstępy */
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: default;              /* brak sugerowania kliknięcia */
    border: 1px solid #ffb74d;
    background: #fff3e0;          /* jasny pomarańczowy */
    color: #e65100;               /* ciemny pomarańcz */
    box-shadow: none;             /* brak efektu „button” */
    transition: none;
    position: relative;
    z-index: 0;
    user-select: none;
    white-space: nowrap;
}

</style>

<style>
.offer-verifying .show-code-btn,
.offer-frozen .show-code-btn,
.offer-rejected .show-code-btn {
    pointer-events: none;   /* blokuje kliknięcia */
    opacity: 0.6;           /* przyciemnia przycisk */
    cursor: default;        /* pokazuje, że nie da się kliknąć */
}


.offer-verifying {
    background-color: #eef4ff; 
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}

.offer-frozen {
    background-color: #fff7ed;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.offer-rejected {
    background-color: #ffe6e6;
    color: #a00;
    border-left: 4px solid #e60000;
}

</style>
<style>
/* === ZMIENNE KOLORÓW === */
:root {
    --panel-bg: #ffffff;
    --panel-text: #1f2937;
    --border-soft: #e5e7eb;

    --info-bg: #f9f9f6;
    --info-text: #333;
    --info-border: #ffb300;

    --notice-bg: #eef4ff;
    --notice-text: #1e3a8a;
    --notice-border: #3b82f6;
}

body.dark {
    --panel-bg: #121212;
    --panel-text: #e5e7eb;
    --border-soft: #2a2a2a;

    --info-bg: #1f1f1f;
    --info-text: #e5e5e5;
    --info-border: #d6a600;

    --notice-bg: #1a1a2b;
    --notice-text: #c0d6ff;
    --notice-border: #3b82f6;
}


/* === PANEL OFERT === */
.offers-panel {
    background-color: var(--panel-bg);
    color: var(--panel-text);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    margin-top: 120px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* === SUWAK === */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(20px);
}
</style>
<style>

.offer-row {
    position: relative;
    display: inline-block;
}


.info-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 6px;
}


.comment-text {
    margin-top: 20px;
    padding: 0;
    line-height: 1.35;          /* profesjonalny, zwarty odstęp */
    font-size: 14px;            /* czytelny, nie za duży */
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #eaeaea;

    white-space: pre-wrap;
    word-break: break-word;
}




.comment-pop {
    display: none;
    position: absolute;

    top: 40px;              /* TU sterujesz wysokością */
    left: 50%;
    transform: translateX(-50%);
 background: linear-gradient(180deg, #242526, #1c1d1f);
    color: #e5e7eb;

    border-radius: 10px;
    border-left: 4px solid #d4af37; /* złoty akcent informacyjny */

    box-shadow:
        0 10px 25px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.04);
		
	   border-left: 4px solid #d4af37;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.04);
	
		
		
    width: 220px;
    max-height: 320px;
    padding: 12px 14px;

    background-color: #222;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    z-index: 9999;
    margin-top:-280px;
    overflow-y: auto;
}



.comment-pop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #4fc3f7,
        #2196f3
    );

    border-radius: 10px 10px 0 0;
}



.comment-pop::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;

    width: 3px;
    height: 45%;

    background: linear-gradient(
        180deg,
        #4fc3f7,
        rgba(79,195,247,0)
    );

    border-radius: 0 6px 6px 0;
}



.comment-pop .close-pop {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);

    border-radius: 50%;
    cursor: pointer;

    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}










.real {
    display: none;

    min-width: 200px;
    min-height: 50px;
    padding: 12px 16px;

    background: #1e1f22;
    color: #f9fafb;

    border: 2px solid #d4af37;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;
    text-align: center;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.real.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}




/*koniec stylu dla voucher code*/

.offer-comment {
    display: none;                 /* sterowane przez JS */
    
    margin-top: 12px;
    padding: 16px 18px;

    background: #1e1f22;           /* ciemne, neutralne tło */
    color: #e5e7eb;                /* jasny tekst (nie rażący) */

    border-left: 4px solid #d4af37; /* subtelny złoty akcent */
    border-radius: 8px;

    font-size: 14px;
    line-height: 1.6;

    box-shadow: 
        0 6px 18px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.04);

    word-wrap: break-word;
    overflow-wrap: break-word;

    transition: opacity 0.3s ease, transform 0.3s ease;
}




.show-code-wrapper {
    margin-top: 10px;
}

.show-code-btn {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #f7e7b4, #e6c978);
    color: #2b2b2b;
    transition: all 0.25s ease;
}

.show-code-btn:hover {
    background: linear-gradient(135deg, #fdebbf, #eed58a);
}

.voucher-code {
    display: none;          /* domyślnie ukryty */
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    background: #111;
    color: #0f0;
    border-radius: 6px;
    margin-top: 8px;
    white-space: pre-wrap;  /* bardzo ważne – łamie linie automatycznie */
    word-break: break-all;  /* wymusza łamanie długich kodów */
}

</style>
<style>
.info-message {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px 24px;
    background-color: var(--info-bg);
    border-left: 5px solid var(--info-border);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--info-text);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.notice-info {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--notice-text);
    background-color: var(--notice-bg);
    border-left: 4px solid var(--notice-border);
    border-radius: 8px;
    line-height: 1.5;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}


.info-message h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #6d4c41;   /* spokojny brąz */
    font-size: 18px;
    font-weight: bold;
}

.info-message p {
    margin: 10px 0;
    font-size: 14px;
}

.info-message strong {
    color: #8d6e63;
}
</style>
<style>
.offer-process-info {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 🟡 W użyciu */
.offer-process-info.status-pending {
    background: #fff7ed;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* 🔵 W weryfikacji */
.offer-process-info.status-verifying {
    background: #eef4ff;
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}

</style>
<style>
.offer-process-info {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 🔵 Weryfikacja */
.status-verifying {
    background: #eef4ff;
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}

/* 🟡 Zamrożona */
.status-pending {
    background: #fff7ed;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

</style>
<style>
.code-modal-verify,
.confirm-modal-verify {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

[hidden] {
    display: none !important;
}

.modal-box {
    background: #ffffff;
    color: #111;
    padding: 20px;
    border-radius: 12px;
    width: 50%;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


</style>
<style>
.info-code_icon {
    display: inline-flex;
    align-items: center;
    position: relative; /* kontener dla tooltipu */
}

/* TOOLTIP / INFORMACJA */
.info-code__tooltip {
    display: none;
    position: fixed;       /* wychodzi ponad wszystkie oferty */
    top: 0;                /* ustalane dynamicznie w JS */
    left: 0;               /* ustalane dynamicznie w JS */
    width: 220px;
    max-height: 320px;
    background-color: #1f1f1f;
    color: #eaeaea;
    border-left: 4px solid #ff9800;
    border-top: 2px solid #2196f3;
    border-right: 2px solid #2196f3;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    font-size: 12px;
    z-index: 2000;         /* wyższy niż oferta */
    overflow-y: auto;
}

/* Pokazanie tooltipu wyłącznie przy hover ikonki */
.info-code__icon:hover + .info-code__tooltip {
    display: block;
}


/* Tytuł w tooltipie */
.info-code__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* P elementy w tooltipie */
.info-code__tooltip p {
    margin: 6px 0;
    line-height: 1.4;
}

/* Nota dodatkowa */
.info-code__note {
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 6px;
}
</style>


<style>
.offer.frozen {
    opacity: 0.5;
    pointer-events: none;
}
.timer {
    font-weight: bold;
    color: #ff0000;
    margin-top: 5px;
}
@media (max-width: 768px) {
    .offer.frozen .timer {
        font-size: 12px;
        padding: 4px 8px;
        top: 5px;
        right: 5px;
    }
}

.offer .timer {
    display: block;
    font-weight: bold;
    color: red;
    margin-top: 5px;
    font-size: 14px;
}

.offer.frozen .timer {
    z-index: 10;
}



/* Styl nag?¨®wka panelu u?ytkownika - ciemny i elegancki */
.userpanel-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #a8e6a3;             /* stonowany zielony kontrastuj?cy z ciemnym t?em */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); /* subtelny cie¨˝ dla g??bi */
    margin-bottom: 20px;
    border-left: 4px solid #3a7f3a; /* ciemniejszy zielony akcent */
    padding-left: 12px;
    background-color: #121a12;   /* lekko ciemne t?o, dopasowane do panelu */
    border-radius: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
}



.offer .line {
    position: relative;
    overflow: visible;
    
}

/* Elegancka linia bia?a ?¨˛ z?ota */
.offer .line::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.9) 0%,      /* bia?a */
        rgba(255,220,120,1) 50%,       /* z?ota */
        rgba(255,200,50,1) 80%,        /* intensywnie z?ota */
        rgba(255,215,0,0.2) 100%       /* delikatne wyj?cie do b?ysku */
    );
    border-radius: 2px;
}

/* B?ysk Disney / gwiazdka na koˇ§?cu linii */
.offer .line::before {
    content: "";
    position: absolute;
    bottom: -3px; 
    right: -6px; 
    width: 14px;
    height: 14px;
    background: radial-gradient(
       
    );
    filter: blur(1px);
    pointer-events: none;
}


/* Tekst nad po?wiat? */
.offer .line * {
    
    z-index: 1;
}

/* Etykiety */
.offer strong {
    display: inline-block;
    width: 80px;
    font-weight: 600;
    color: #bbbbbb;
}

/* Warto?ci danych ˇ§C wyrˇ§??nienie gradientem lub kolorem */
.offer .store {
    color: #4fc3f7;
}
.offer .price {
    background: linear-gradient(90deg, #00e676, #1de9b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25em;
    font-weight: 700;
}
.offer .voucher {
    color: #ffca28;
    font-weight: 600;
}
.offer .username {
    color: #ba68c8;
    font-weight: 600;
}
.offer .valid_until {
    color: #ff5252;
    font-weight: 600;
}

/* Responsive ˇ§C zmniejszenie fontˇ§?w i paddingu na mobile */
@media (max-width: 768px) {
    .offer {
        padding: 15px;
    }
    .offer strong {
        width: 120px;
    }
    .offer .price {
        font-size: 1.15em;
    }
	
		.userpanel-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #a8e6a3;             /* stonowany zielony kontrastuj?cy z ciemnym t?em */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); /* subtelny cie¨˝ dla g??bi */
    margin-bottom: 20px;
    border-left: 4px solid #3a7f3a; /* ciemniejszy zielony akcent */
    padding-left: 12px;
    background-color: #121a12;   /* lekko ciemne t?o, dopasowane do panelu */
    border-radius: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
}
}


/* Styl dla przycisku w?asnej oferty */
.buy-now.own-offer {
    background-color: #cccccc; /* jasnoszary */
    color: #666666;            /* ciemniejszy szary tekst */
    cursor: not-allowed;       /* pokazuje, ?e nie mo?na klikn?? */
    pointer-events: none;      /* blokuje klikni?cie */
    opacity: 0.9;
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}




</style>

<style>
.you-offer {
    flex: 0;                      /* nie rozciąga się jak przycisk */
    padding: 6px 12px;            /* mniejsze odstępy */
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: default;              /* brak sugerowania kliknięcia */
    border: 1px solid #ffb74d;
    background: #fff3e0;          /* jasny pomarańczowy */
    color: #e65100;               /* ciemny pomarańcz */
    box-shadow: none;             /* brak efektu „button” */
    transition: none;
    position: relative;
    z-index: 0;
    user-select: none;
    white-space: nowrap;
}

</style>

<style>
.offer-verifying .show-code-btn,
.offer-frozen .show-code-btn,
.offer-rejected .show-code-btn {
    pointer-events: none;   /* blokuje kliknięcia */
    opacity: 0.6;           /* przyciemnia przycisk */
    cursor: default;        /* pokazuje, że nie da się kliknąć */
}


.offer-verifying {
    background-color: #eef4ff; 
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}

.offer-frozen {
    background-color: #fff7ed;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.offer-rejected {
    background-color: #ffe6e6;
    color: #a00;
    border-left: 4px solid #e60000;
}

</style>
<style>
/* === ZMIENNE KOLORÓW === */
:root {
    --panel-bg: #ffffff;
    --panel-text: #1f2937;
    --border-soft: #e5e7eb;

    --info-bg: #f9f9f6;
    --info-text: #333;
    --info-border: #ffb300;

    --notice-bg: #eef4ff;
    --notice-text: #1e3a8a;
    --notice-border: #3b82f6;
}

body.dark {
    --panel-bg: #121212;
    --panel-text: #e5e7eb;
    --border-soft: #2a2a2a;

    --info-bg: #1f1f1f;
    --info-text: #e5e5e5;
    --info-border: #d6a600;

    --notice-bg: #1a1a2b;
    --notice-text: #c0d6ff;
    --notice-border: #3b82f6;
}


/* === PANEL OFERT === */
.offers-panel {
    background-color: var(--panel-bg);
    color: var(--panel-text);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    margin-top: 180px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* === SUWAK === */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(20px);
}
</style>
<style>

.offer-row {
    position: relative;
    display: inline-block;
}


.info-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 6px;
}


.comment-text {
    margin-top: 20px;
    padding: 0;
    line-height: 1.35;          /* profesjonalny, zwarty odstęp */
    font-size: 14px;            /* czytelny, nie za duży */
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #eaeaea;

    white-space: pre-wrap;
    word-break: break-word;
}




.comment-pop {
    display: none;
    position: absolute;

    top: 90px;              /* TU sterujesz wysokością */
    left: 130%;
    transform: translateX(-50%);
 background: linear-gradient(180deg, #242526, #1c1d1f);
    color: #e5e7eb;

    border-radius: 10px;
    border-left: 4px solid #d4af37; /* złoty akcent informacyjny */

    box-shadow:
        0 10px 25px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.04);
		
	   border-left: 4px solid #d4af37;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.04);
	
		
		
    width: 220px;
    max-height: 320px;
    padding: 12px 14px;

    background-color: #222;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    z-index: 9999;
    margin-top:-280px;
    overflow-y: auto;
}



.comment-pop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #4fc3f7,
        #2196f3
    );

    border-radius: 10px 10px 0 0;
}



.comment-pop::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;

    width: 3px;
    height: 45%;

    background: linear-gradient(
        180deg,
        #4fc3f7,
        rgba(79,195,247,0)
    );

    border-radius: 0 6px 6px 0;
}



.comment-pop .close-pop {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);

    border-radius: 50%;
    cursor: pointer;

    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}










.real {
    display: none;

    min-width: 200px;
    min-height: 50px;
    padding: 12px 16px;

    background: #1e1f22;
    color: #f9fafb;

    border: 2px solid #d4af37;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;
    text-align: center;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.real.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}




/*koniec stylu dla voucher code*/

.offer-comment {
    display: none;                 /* sterowane przez JS */
    
    margin-top: 12px;
    padding: 16px 18px;

    background: #1e1f22;           /* ciemne, neutralne tło */
    color: #e5e7eb;                /* jasny tekst (nie rażący) */

    border-left: 4px solid #d4af37; /* subtelny złoty akcent */
    border-radius: 8px;

    font-size: 14px;
    line-height: 1.6;

    box-shadow: 
        0 6px 18px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.04);

    word-wrap: break-word;
    overflow-wrap: break-word;

    transition: opacity 0.3s ease, transform 0.3s ease;
}




.offer-comment {
    display: none;
}

.offer-comment--active {
    display: block;
}

/* MOBILE WYGLĄD */
@media (max-width: 768px) {

    .offer-comment--active {

        position: relative;
        margin: 18px auto;
        padding: 18px 16px;

        width: 90%;
        max-width: 340px;

        background: linear-gradient(145deg, #1e1f22, #18191c);
        border-left: 3px solid #d4af37;
        border-radius: 10px;

        box-shadow:
            0 10px 25px rgba(0,0,0,0.55),
            inset 0 0 0 1px rgba(255,255,255,0.03);

        font-size: 13px;
        line-height: 1.6;

        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: pre-wrap;

        animation: slideFade 0.25s ease forwards;
    }
}

/* Animacja */
@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





.offer-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
}

.offer-actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.show-code-wrapper {
    margin-top: 10px;
}

.show-code-btn {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #f7e7b4, #e6c978);
    color: #2b2b2b;
    transition: all 0.25s ease;
    margin-right: 5px;
}

.show-code-btn:hover {
    background: linear-gradient(135deg, #fdebbf, #eed58a);
}

.show-comment-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}

.voucher-code {
    display: none;          /* domyślnie ukryty */
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    background: #111;
    color: #0f0;
    border-radius: 6px;
    margin-top: 8px;
    white-space: pre-wrap;  /* bardzo ważne – łamie linie automatycznie */
    word-break: break-all;  /* wymusza łamanie długich kodów */
}

</style>
<style>
.info-message {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px 24px;
    background-color: var(--info-bg);
    border-left: 5px solid var(--info-border);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--info-text);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.notice-info {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--notice-text);
    background-color: var(--notice-bg);
    border-left: 4px solid var(--notice-border);
    border-radius: 8px;
    line-height: 1.5;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}


.info-message h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #6d4c41;   /* spokojny brąz */
    font-size: 18px;
    font-weight: bold;
}

.info-message p {
    margin: 10px 0;
    font-size: 14px;
}

.info-message strong {
    color: #8d6e63;
}
</style>

<style>
.offer-process-info {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/*  W użyciu */
.offer-process-info.status-pending {
    background: #fff7ed;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}


/*  W weryfikacji */
.offer-process-info.status-verifying {
    background: #eef4ff;
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}


/*  Aktywna oferta */
.offer-process-info.status-active {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
	border: 3px solid transparent;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.offer.status-active {
    border: 3px solid #22c55e;
}

.offer.status-in_use {
    border: 3px solid #f59e0b;
}

.offer.status-verifying {
    border: 3px solid #3b82f6;
}

.offer.status-reserved {
    border: 3px solid red;
     box-sizing: border-box;
    position: relative;
    background:linear-gradient(160deg, #1a1d21, #2e97e1);
    border: 1px solid #2a2d33;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.35s ease;
    overflow: hidden;
    color: #0feb88;
    z-index: 0;
}


/* ===== SMARTFONY ===== */
@media (max-width: 768px) {

    .offer.status-active {
        border: 2px solid #22c55e;
    }

    .offer.status-in_use {
        border: 2px solid #f59e0b;
    }

    .offer.status-verifying {
        border: 2px solid #3b82f6;
    }

.offer.status-reserved {
    border: 3px solid red;
    box-sizing: border-box;
    position: relative;
    background:linear-gradient(160deg, #1a1d21, #2e97e1);
    border: 1px solid #2a2d33;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.35s ease;
    overflow: hidden;
    color: #0feb88;
    z-index: 0;
}

}

</style>
<style>
.code-modal-verify,
.confirm-modal-verify {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px; /* zabezpieczenie na małe ekrany */
}

[hidden] {
    display: none !important;
}

.modal-box-confirm {
    background: #ffffff;
    color: #111;
    padding: 20px;
    border-radius: 12px;

    width: 50% ;
    max-width: 400px ;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    box-sizing: border-box;
}


/* 📱 WERSJA MOBILNA */
@media (max-width: 768px) {
    .modal-box-confirm {
        width: 100% !important;
        max-width: 100% !important;
    }
}



</style>
<style>
.info-code_icon {
    display: inline-flex;
    align-items: center;
    position: relative; /* kontener dla tooltipu */
}

/* TOOLTIP / INFORMACJA */
.info-code__tooltip {
    display: none;
    position: fixed;       /* wychodzi ponad wszystkie oferty */
    top: 0;                /* ustalane dynamicznie w JS */
    left: 0;               /* ustalane dynamicznie w JS */
    width: 220px;
    max-height: 320px;
    background-color: #1f1f1f;
    color: #eaeaea;
    border-left: 4px solid #ff9800;
    border-top: 2px solid #2196f3;
    border-right: 2px solid #2196f3;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    font-size: 12px;
    z-index: 2000;         /* wyższy niż oferta */
    overflow-y: auto;
}

/* Pokazanie tooltipu wyłącznie przy hover ikonki */
.info-code__icon:hover + .info-code__tooltip {
    display: block;
}


/* Tytuł w tooltipie */
.info-code__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* P elementy w tooltipie */
.info-code__tooltip p {
    margin: 6px 0;
    line-height: 1.4;
}

/* Nota dodatkowa */
.info-code__note {
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 6px;
}



/* ===== PANEL REZERWACJI ===== */

.reservation-panel {
    background: linear-gradient(145deg, #eef4ff, #e3efff);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(59,130,246,0.08);
    transition: all 0.25s ease;
}



.reservation-panel input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s ease;
}

.reservation-panel input:focus {
    outline: none;
    border-color: #3b82f6;
}

.reservation-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.reservation-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

#reservationMessage {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== PANEL REZERWACJI FIXED ===== */

.reservation-form {
    position: fixed;
    right: 10px;
    top: 290px;
    width: calc(50% - 15px);
    max-width: 1100px;
    padding: 16px;
    /* Subtelny gradient: góra #333, dół ciemny granat */
    background: linear-gradient(to bottom, #333, #0f1625);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #f1f1f1;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    z-index: 99;
    transition: all 0.4s ease;
}
.reservation-title {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
}


display: flex;
.reservation-fields {
    
    flex-wrap: wrap;
    gap: 10px;
}

.reservation-fields input {
    flex: 1;
    min-width: 100px;

    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    outline: none;

    background: #0f1c2e;
    color: #fff;
    font-size: 14px;

    border: 1px solid rgba(96,165,250,0.2);
    transition: 0.25s ease;
}

.reservation-fields input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 6px rgba(96,165,250,0.4);
}

.reservation-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;

    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 600;
    cursor: pointer;

    transition: 0.25s ease;
}

.reservation-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

#reservationMessage {
    font-size: 13px;
    font-weight: 600;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .reservation-form {
        position: static;   /* 🔥 kluczowa zmiana */
        width: 100%;
        margin: 15px 0;
    }

    .reservation-fields {
        flex-direction: column;
    }

}

/* --- TRYB 2: REZERWACJA JAKO PANEL BOCZNY --- */

.reservation-form.scrolled {
    position: fixed;
    top: 290px;
    right: 75px;       /* teraz po prawej stronie */
    width: 180px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(to bottom, #333, #0f1625);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.35s ease;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

/* Efekt hover – panel „ożywa” */



/* ===== MOBILE / TABLET RESERVATION BAR ===== */

.mobile-reservation-bar {
    display: none;
}

.mobile-reservation-wrapper {
    display: none;
}

@media (max-width: 992px) {

    .mobile-reservation-wrapper {
    display: block;
    position: fixed;
    top: var(--header-height, 0px);  /* 🔥 dynamiczne */
    left: 0;
    width: 100%;
    z-index:200;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Pasek nagłówkowy */
    .mobile-reservation-toggle {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        text-align: center;
        padding: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        user-select: none;
        transition: 0.3s ease;
		
    }

    .mobile-reservation-toggle:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
    }

    /* Szufladka */
    .mobile-reservation-drawer {
        max-height: 0;
        overflow: hidden;
        background: linear-gradient(145deg, #1b2d4a, #12223a);
        transition: max-height 0.35s ease;
    }

    .mobile-reservation-drawer.open {
        max-height: 400px;
    }

    .mobile-reservation-content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-reservation-content input {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid rgba(96,165,250,0.3);
        background: #0f1c2e;
        color: #fff;
        font-size: 14px;
    }

    .mobile-reservation-content button {
        padding: 10px;
        border-radius: 8px;
        border: none;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: 0.25s ease;
    }

    .mobile-reservation-content button:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
    }

    #mobileReservationMessage {
        font-size: 12px;
        font-weight: 600;
    }

    

}

}




.info-code_icon {
    display: inline-flex;
    align-items: center;
    position: relative; /* kontener dla tooltipu */
}

/* TOOLTIP / INFORMACJA */
.info-code__tooltip {
    display: none;
    position: fixed;       /* wychodzi ponad wszystkie oferty */
    top: 0;                /* ustalane dynamicznie w JS */
    left: 0;               /* ustalane dynamicznie w JS */
    width: 220px;
    max-height: 320px;
    background-color: #1f1f1f;
    color: #eaeaea;
    border-left: 4px solid #ff9800;
    border-top: 2px solid #2196f3;
    border-right: 2px solid #2196f3;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    font-size: 12px;
    z-index: 2000;         /* wyższy niż oferta */
    overflow-y: auto;
}

/* Pokazanie tooltipu wyłącznie przy hover ikonki */
.info-code__icon:hover + .info-code__tooltip {
    display: block;
}


/* Tytuł w tooltipie */
.info-code__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* P elementy w tooltipie */
.info-code__tooltip p {
    margin: 6px 0;
    line-height: 1.4;
}

/* Nota dodatkowa */
.info-code__note {
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 6px;
}




.mobile-comment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.mobile-comment-box {
    width: 90%;
    max-width: 380px;
    max-height: 80vh;

    background: linear-gradient(145deg, #1e1f22, #18191c);
    border-left: 4px solid #d4af37;
    border-radius: 12px;

    padding: 20px;
    color: #e5e7eb;

    overflow-y: auto;
    position: relative;

    box-shadow: 0 15px 40px rgba(0,0,0,0.7);

    animation: fadeInScale 0.2s ease;
}

.mobile-comment-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}








.code-choice-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* WYGLĄD PODSTAWOWY */
.code-choice-btn {
    position: relative;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f5f7fa;
    border: 2px solid #d9e1ec;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    color: #1e2a38; /* ciemny granat zamiast czerni */
}

/* Hover */
.code-choice-btn:hover {
    border-color: #2c4a6b;
    background: #eaf1f8;
    transform: translateY(-1px);
}

/* PTASZEK */
.code-choice-btn .checkmark {
    position: absolute;
    right: 14px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s ease;
    font-weight: bold;
    font-size: 14px;
}

/* =======================
   WYBRANY – ZIELONY (STONOWANY)
======================= */
#status-used:checked + .code-choice-btn {
    background: linear-gradient(135deg, #dcefe3, #c8e6d5);
    border-color: #2f5d46;
    color: #1e3a34;
    box-shadow: 0 6px 16px rgba(47, 93, 70, 0.15);
}

#status-used:checked + .code-choice-btn .checkmark {
    opacity: 1;
    transform: scale(1);
    color: #1e3a34;
}

/* =======================
   WYBRANY – BORDOWY
======================= */
#status-invalid:checked + .code-choice-btn {
    background: linear-gradient(135deg, #efe2e6, #e4c7cf);
    border-color: #6b2c3a;
    color: #4a1f29;
    box-shadow: 0 6px 16px rgba(107, 44, 58, 0.15);
}

#status-invalid:checked + .code-choice-btn .checkmark {
    opacity: 1;
    transform: scale(1);
    color: #4a1f29;
}


@media (max-width: 768px) {
    .reservation-form {
        display: none !important;
    }
}


.loyalty-warning{
background:#3a0000;
color:#ffb3b3;
padding:10px;
border-radius:6px;
font-size:14px;
margin-bottom:10px;
text-align:center;
}

.loyalty-box{
background:#111;
padding:15px;
border-radius:8px;
text-align:center;
color:white;
}

#loyaltyMasked{
font-family:monospace;
font-size:18px;
letter-spacing:4px;
margin-bottom:10px;
}

#loyaltyTimer{
margin-top:10px;
font-size:13px;
opacity:.8;
}

#showLoyalty{
background:#f0d807;
border:none;
padding:8px 16px;
border-radius:6px;
cursor:pointer;
font-weight:600;
}

#closeLoyalty{
background:#444;
color:white;
border:none;
padding:8px 16px;
border-radius:6px;
cursor:pointer;
margin-top:10px;
}


.nego-offers {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    flex: 0 1 auto;
    white-space: nowrap;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #fff;
    transition: all 0.25s ease;
    margin-left: 5px;
}

.nego-offers:hover {
    background: linear-gradient(135deg, #64d0ff, #1e88e5);
}









.nego-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 998;
}

.nego-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 90vw;
    background: #181818;
    color: #f0f0f0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nego-panel.nego-panel--open {
    transform: translateX(0);
}

.nego-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #2196f3, #1769aa);
    flex-shrink: 0;
}

.nego-panel__title {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nego-panel__label {
    font-size: 11px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nego-panel__owner {
    font-size: 16px;
    font-weight: 600;
}

.nego-panel__close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nego-panel__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nego-panel__offer-info {
    padding: 8px 16px;
    font-size: 12px;
    color: #aaa;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.nego-panel__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nego-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.nego-msg--system {
    align-self: center;
    background: transparent;
    color: #888;
    font-size: 12px;
    text-align: center;
    max-width: 100%;
}

.nego-msg--me {
    align-self: flex-end;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.nego-msg--them {
    align-self: flex-start;
    background: #2a2a2a;
    color: #eee;
    border-bottom-left-radius: 2px;
}

.nego-panel__input-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #2a2a2a;
    background: #1c1c1c;
    flex-shrink: 0;
}

.nego-panel__input {
    width: 100%;
    resize: none;
    min-height: 60px;
    max-height: 140px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #333;
    background: #0f0f0f;
    color: #f0f0f0;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nego-panel__input::placeholder {
    color: #666;
}

.nego-panel__input:hover {
    border-color: #4a4a4a;
    background: #131313;
}

.nego-panel__input:focus {
    outline: none;
    border-color: #2196f3;
    background: #0f0f0f;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2), 0 0 12px rgba(33, 150, 243, 0.15);
}

.nego-panel__send {
    align-self: flex-end;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nego-panel__send:hover {
    opacity: 0.95;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
}

.nego-panel__send:active {
    transform: scale(0.96);
}

@media (max-width: 480px) {
    .nego-panel {
        width: 100%;
        max-width: 100%;
    }
}



/* ===== STOS LISTKÓW ===== */
.nego-tabs-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;

    display: flex;
    flex-direction: column-reverse; /* nowe rozmowy dokładane od dołu w górę */
    gap: 2px;

    pointer-events: none; /* kontener przezroczysty na kliknięcia, dzieci mają pointer-events: auto */
}

/* Gdy panel jest otwarty, stos przesuwa się nad okno czatu, żeby go nie zasłaniać */
.nego-tabs-stack.nego-tabs-stack--shifted {
    bottom: 520px; /* wysokość panelu (480px) + margines (20px) + odstęp (20px) */
}

.nego-tab {
    pointer-events: auto;
     position: relative; /* potrzebne dla pozycjonowania badge */
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    width: 220px;
    max-width: 90vw;

    background: linear-gradient(135deg, #2196f3, #1769aa);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);

    cursor: pointer;
    user-select: none;

    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nego-tab:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Listek aktualnie otwartej rozmowy - wyróżniony, pełna widoczność */
.nego-tab.nego-tab--active {
    opacity: 1;
    border: 1px solid rgba(255,255,255,0.4);
}

.nego-tab__icon {
    font-size: 15px;
    flex-shrink: 0;
}

.nego-tab__name {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nego-tab__close {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.nego-tab:hover .nego-tab__close {
    opacity: 1;
}

.nego-tab__close:hover {
    background: rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
    .nego-tabs-stack {
        right: 10px;
        bottom: 10px;
    }
    .nego-tabs-stack.nego-tabs-stack--shifted {
        bottom: calc(70vh + 20px);
    }
    .nego-tab {
        width: calc(100vw - 20px);
    }
}

.nego-tab[hidden] {
    display: none;
}


.nego-tab__badge {
    position: absolute;
    top: -6px;
    right: -6px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    background: #e53935;
    color: #fff;

    border-radius: 999px;
    border: 2px solid #181818;

    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;

    display: none; /* pokazujemy tylko gdy > 0 */
}

.nego-tab__badge.nego-tab__badge--visible {
    display: block;
}

.chat-unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50%;
    background: #e60000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 20px;
}



</style>