/* --- Pływający Widżet Dysku --- */
.storage-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: none;
    /* Domyślnie schowane dla gości */
}

body.is-admin .storage-widget {
    display: block;
}

.storage-widget .storage-container {
    width: 360px;
    /* Poszerzony kontener dla lepszego oddechu */
    max-height: 400px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-top: 1px solid var(--panel-border-highlight);
    padding: 36px 28px 28px;
    /* Zwiększone marginesy wewnętrzne */
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;

    /* Płynne zwijanie (max-height i padding) */
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        border-radius 0.6s ease,
        border-color 0.4s ease;
}

/* Zawartość kontenera płynnie znika przy zwijaniu */
.storage-widget .storage-container>* {
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Przycisk minimalizacji - szeroki pasek na górze */
.minimize-dot {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Prawie cała szerokość kapsułki */
    height: 15px;
    /* Grubość paska */
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    z-index: 110;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0;
}

.minimize-dot:hover {
    background: var(--accent-blue);
    transform: translateX(-50%) scaleY(1.5);
    /* Lekko pogrubia się przy najeździe */
    box-shadow: 0 0 10px var(--accent-glow);
}

/* =========================================
   STAN SCHOWANY (ZWINIĘTA PIGUŁKA) 
   ========================================= */

.storage-widget.minimized .storage-container {
    max-height: 12px;
    /* Wysokość zwiniętej pigułki */
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 12px;
    /* Pełne, obłe zaokrąglenie */
    border-color: rgba(196, 231, 212, 0.2);
    /* Lekki miętowy akcent na granicy */
    cursor: pointer;
}

/* Ukrycie tekstów i wykresów w środku */
.storage-widget.minimized .storage-container>* {
    opacity: 0;
    pointer-events: none;
}

/* Rozciągnięcie kropki na cały zwinięty pasek (cały pasek działa jak przycisk powrotu) */
.storage-widget.minimized .minimize-dot {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: transparent;
    /* Znika jako fizyczny pasek, przejmuje kliknięcia */
    transform: none;
    box-shadow: none;
}

/* Efekt najechania myszką na zwinięty pasek */
.storage-widget.minimized:hover .storage-container {
    border-color: var(--accent-blue);
    background: rgba(20, 22, 30, 0.8);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* =========================================
   ZAWARTOŚĆ DYSKU (NAGŁÓWEK, PASEK, LEGENDA) 
   ========================================= */

.storage-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Zwiększony odstęp między tytułem a pojemnością */
    margin-bottom: 28px;
    /* Zwiększony odstęp od paska postępu */
}

.storage-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.storage-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}

#diskUsedText {
    color: var(--text-muted);
}

.storage-free {
    color: var(--text-main);
}

.storage-bar {
    display: flex;
    height: 14px;
    /* Grubszy i bardziej czytelny pasek */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 30px;
    /* Zwiększony odstęp od legendy */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-bar .segment {
    height: 100%;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.storage-widget .storage-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    /* Zwiększony odstęp w poziomie */
    row-gap: 12px;
    /* Zwiększony odstęp w pionie */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.legend-item:hover {
    color: var(--text-main);
}

.legend-item span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    box-shadow: 0 0 6px currentColor;
}

/* =========================================
   RESPONSYWNOŚĆ (TELEFONY I TABLETY) 
   ========================================= */

@media (max-width: 1200px) {
    .storage-widget {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 520px;
        margin-top: 20px;
    }

    .storage-widget.minimized {
        margin-top: 10px;
        /* Mniejszy odstęp gdy jest zminimalizowane */
    }
}

/* --- Przycisk Moderacji --- */
.btn-mod-open {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.18) 0%, rgba(255, 167, 81, 0.12) 100%);
    border: 1px solid rgba(255, 210, 76, 0.45);
    color: #FFD24C;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 195, 60, 0.15);
}

.btn-mod-open svg {
    color: #FFD24C;
    transition: var(--transition-smooth);
}

.btn-mod-open:hover {
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.32) 0%, rgba(255, 167, 81, 0.22) 100%) !important;
    border-color: rgba(255, 210, 76, 0.8) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 195, 60, 0.3) !important;
}

.btn-mod-open:hover svg {
    color: #FFFFFF !important;
    transform: rotate(15deg);
}

/* --- Przycisk Panelu Użytkownika (Moje Pliki) --- */
.btn-user-panel {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(20, 22, 30, 0.85);
    border: 1px solid var(--panel-border);
    color: #8A8F98;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-user-panel svg {
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.btn-user-panel:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent-blue);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(196, 231, 212, 0.15);
}

.btn-user-panel:hover svg {
    transform: scale(1.15);
}

/* ============================================================================
   SELEKTOR JĘZYKA (LANGUAGE SELECTOR)
   ============================================================================ */
.lang-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: auto;
    padding: 2px 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    cursor: pointer;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    transition: color 0.25s ease, transform 0.2s ease;
    user-select: none;
    font-family: inherit;
}

.lang-btn svg {
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    transform: none;
    box-shadow: none !important;
}

.lang-btn:hover svg,
.lang-btn.active svg {
    color: var(--text-main);
}

.lang-arrow-icon {
    transition: transform 0.2s ease;
    opacity: 0.55;
}

.lang-btn.active .lang-arrow-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 20, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 6px;
    min-width: 165px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(15, 145, 210, 0.12);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu[hidden] {
    display: none !important;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateX(2px);
}

.lang-option.active {
    background: rgba(15, 145, 210, 0.18);
    color: var(--accent-blue);
    border: 1px solid rgba(15, 145, 210, 0.3);
}

.lang-badge {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 6px;
}

/* --- Panel Moderacji (Modal) - Głębia UI & Glassmorphism --- */
/* --- Ultra-Smooth Modern Glassmorphism Animations --- */
@keyframes smoothBackdropIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@keyframes smoothBackdropOut {
    0% {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    100% {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
}

@keyframes smoothModalIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes smoothModalOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(6px) scale(0.99);
    }
}

/* Kompatybilność wsteczna */
@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popUpModalDepth {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mod-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 14, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    padding: 24px 16px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .mod-modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-modal-container {
        padding: 24px 18px !important;
        width: 100% !important;
        max-width: 94vw !important;
        border-radius: 20px !important;
    }
}

.mod-modal:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: smoothBackdropIn 0.28s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.mod-modal.is-closing {
    animation: smoothBackdropOut 0.2s ease-out forwards !important;
}

.mod-modal.is-closing .mod-container {
    animation: smoothModalOut 0.2s ease-out forwards !important;
}

.mod-container {
    contain: content;
    background: linear-gradient(165deg, rgba(16, 20, 30, 0.96) 0%, rgba(10, 13, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    width: 92%;
    max-width: 860px;
    max-height: 88vh;
    max-height: 88dvh;
    margin: auto;
    /* Auto-centers when space is available, allows scrolling from top when content overflows */
    padding: 26px 30px;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    /* Enables native, buttery-smooth touch & wheel scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    animation: smoothModalIn 0.3s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

/* Custom subtle scrollbar for all modals */
.mod-container::-webkit-scrollbar {
    width: 6px;
}

.mod-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.mod-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.mod-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Ambient beam - miękkie, kinowe oświetlenie */
.mod-container::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(196, 231, 212, 0.12) 0%, rgba(15, 145, 210, 0.04) 45%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.mod-container>* {
    position: relative;
    z-index: 1;
}

.mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mod-icon-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    max-height: 42px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.mod-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-main);
}

.mod-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-top: 2px;
    opacity: 0.85;
}

.mod-close {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 10px;
    box-shadow: none;
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mod-close svg {
    display: block;
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.2s ease;
}

.mod-close:hover {
    background: transparent;
    color: #FFFFFF;
    transform: scale(1.15);
}

.mod-close:hover svg {
    color: #FFFFFF;
    transform: rotate(90deg);
}

.mod-close:active {
    transform: scale(0.92);
}

/* Kafelki statystyk z trójwymiarową głębią */
.mod-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
    padding-top: 8px;
    margin-top: -8px;
}

.mod-stat-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.mod-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mod-stat-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.038);
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.mod-stat-card:hover::before {
    opacity: 1;
}

.mod-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mod-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.mod-stat-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-main);
}

/* Pasek narzędzi (Szukajka + Sort) */
.mod-toolbar {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mod-search-wrap {
    position: relative;
    flex-grow: 1;
}

.mod-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.mod-search-input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.mod-search-input:focus {
    border-color: var(--accent-blue);
    background: rgba(196, 231, 212, 0.03);
    box-shadow: 0 0 0 3px rgba(196, 231, 212, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mod-search-wrap:focus-within .mod-search-icon {
    color: var(--accent-blue);
}

.mod-toolbar-actions {
    position: relative;
    z-index: 60;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Custom Glass Dropdowns (Select) --- */
.custom-select-wrap {
    position: relative;
    user-select: none;
}

.custom-select-wrap.open {
    z-index: 100;
}

.custom-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 175px;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(196, 231, 212, 0.3);
    border-top-color: rgba(196, 231, 212, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.custom-select-wrap.open .custom-select-trigger {
    border-color: var(--accent-blue);
    background: rgba(196, 231, 212, 0.06);
    box-shadow: 0 0 0 3px rgba(196, 231, 212, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-select-arrow {
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.2s ease;
    flex-shrink: 0;
}

.custom-select-wrap.open .custom-select-arrow,
.custom-expiry-wrap.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

/* Menu rozwijane - Solid Dark Obsidian (100% krycia bez prześwitywania) */
.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background-color: #121620 !important;
    background: linear-gradient(180deg, #161A26 0%, #0E1118 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(196, 231, 212, 0.6) !important;
    border-radius: 14px;
    padding: 6px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.98),
        0 0 0 1px rgba(0, 0, 0, 0.95),
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    z-index: 9999 !important;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    animation: dropDownEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-select-menu[hidden] {
    display: none !important;
}

@keyframes dropDownEnter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-select-option {
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    pointer-events: auto;
    background: transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateX(2px);
}

.custom-select-option.selected {
    background: rgba(196, 231, 212, 0.14);
    color: #C4E7D4;
    font-weight: 600;
}

.custom-select-option .opt-check {
    opacity: 0;
    color: var(--accent-blue);
    transition: opacity 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.custom-select-option.selected .opt-check {
    opacity: 1;
    transform: scale(1.1);
}

.mod-refresh-btn {
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(196, 231, 212, 0.22) !important;
}

/* Filtry kategorii (Pill buttons) */
.mod-filter-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 2px 2px 6px 2px;
    -webkit-overflow-scrolling: touch;
}

.mod-pill {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.mod-pill .pill-icon {
    color: var(--text-muted);
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.22s ease;
    flex-shrink: 0;
    opacity: 0.85;
}

.mod-pill .pill-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 1.5px 7px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.22s ease;
    min-width: 14px;
    text-align: center;
}

.mod-pill:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(196, 231, 212, 0.35);
    border-top-color: rgba(196, 231, 212, 0.55);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(196, 231, 212, 0.12);
}

.mod-pill:hover .pill-icon {
    color: var(--accent-blue);
    opacity: 1;
    transform: scale(1.12);
}

.mod-pill:hover .pill-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.mod-pill:active {
    transform: translateY(0px) scale(0.97);
}

.mod-pill.active {
    background: linear-gradient(180deg, rgba(196, 231, 212, 0.18) 0%, rgba(196, 231, 212, 0.05) 100%), rgba(16, 22, 30, 0.7);
    color: #C4E7D4;
    border: 1px solid rgba(196, 231, 212, 0.35);
    border-top: 1px solid rgba(196, 231, 212, 0.75);
    font-weight: 600;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(196, 231, 212, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1.5px);
}

.mod-pill.active .pill-icon {
    color: #C4E7D4;
    opacity: 1;
}

.mod-pill.active .pill-badge {
    background: rgba(196, 231, 212, 0.22);
    color: #C4E7D4;
    font-weight: 700;
}

.mod-files-screen {
    position: relative;
}

.mod-file-list {
    list-style: none;
    padding: 4px 2px 60px 2px;
    margin: 0;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mod-file-list::-webkit-scrollbar {
    width: 6px;
}

.mod-file-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.mod-file-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.mod-file-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.mod-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    will-change: transform, border-color;
    backface-visibility: hidden;
    animation: modItemEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modItemEnter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-file-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.2);
    border-top-color: rgba(56, 189, 248, 0.3);
    transform: translate3d(0, -1px, 0);
}

.mod-file-main {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: visible;
    min-width: 0;
    flex-grow: 1;
    margin-right: 12px;
}

.mod-preview-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    transform: translateZ(0);
}

.mod-preview-img:hover {
    transform: scale(1.05);
    cursor: zoom-in;
}

.mod-preview-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.18s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.2s ease, border-color 0.2s ease;
    transform: translateZ(0);
}

.mod-file-item:hover .mod-preview-icon {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(196, 231, 212, 0.25);
}

.mod-file-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: visible;
    min-width: 0;
}

.mod-file-name {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mod-file-name:hover {
    color: var(--accent-blue);
}

.mod-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    position: relative;
}

.mod-badge-size {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.mod-badge-exp {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.mod-badge-exp.exp-1d {
    background: rgba(255, 188, 57, 0.18);
    color: #FFBC39;
}

.mod-badge-exp.exp-30d {
    background: rgba(15, 145, 210, 0.18);
    color: #0F91D2;
}

.mod-badge-exp.exp-permanent,
.mod-badge-exp.exp-perm {
    background: rgba(89, 168, 41, 0.18);
    color: #64bd2e;
}

/* --- Custom Glass Expiry Dropdown w wierszu pliku --- */
.custom-expiry-wrap {
    position: relative;
    display: inline-flex;
    user-select: none;
}

.custom-expiry-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3.5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.custom-expiry-wrap.exp-1d .custom-expiry-trigger {
    background: rgba(255, 188, 57, 0.15);
    color: #FFBC39;
    border-color: rgba(255, 188, 57, 0.35);
}

.custom-expiry-wrap.exp-30d .custom-expiry-trigger {
    background: rgba(15, 145, 210, 0.15);
    color: #0F91D2;
    border-color: rgba(15, 145, 210, 0.35);
}

.custom-expiry-wrap.exp-permanent .custom-expiry-trigger,
.custom-expiry-wrap.exp-perm .custom-expiry-trigger {
    background: rgba(89, 168, 41, 0.15);
    color: #64bd2e;
    border-color: rgba(89, 168, 41, 0.35);
}

.custom-expiry-trigger:hover {
    filter: brightness(1.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.custom-expiry-wrap.open {
    z-index: 1000 !important;
}

.custom-expiry-wrap.open .custom-expiry-trigger {
    box-shadow: 0 0 0 2px rgba(196, 231, 212, 0.35);
}

.custom-expiry-wrap.loading .custom-expiry-trigger {
    opacity: 0.5;
    pointer-events: none;
}

.custom-select-menu.expiry-menu {
    min-width: 155px;
    top: calc(100% + 5px);
    left: 0;
    z-index: 99999 !important;
}

.exp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.exp-dot-1d {
    background: #FFBC39;
    box-shadow: 0 0 6px rgba(255, 188, 57, 0.6);
}

.exp-dot-30d {
    background: #0F91D2;
    box-shadow: 0 0 6px rgba(15, 145, 210, 0.6);
}

.exp-dot-permanent,
.exp-dot-perm {
    background: #64bd2e;
    box-shadow: 0 0 6px rgba(89, 168, 41, 0.6);
}

.mod-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.btn-copy-mod,
.btn-delete {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: -0.01em;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy-mod svg,
.btn-delete svg {
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

/* Hover dla Kopiuj: Subtelny miętowy glow & uniesienie 3D */
.btn-copy-mod:hover {
    color: #5EEAD4;
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.2) 0%, rgba(94, 234, 212, 0.05) 100%), rgba(14, 24, 30, 0.85);
    border-color: rgba(94, 234, 212, 0.45);
    border-top-color: rgba(94, 234, 212, 0.75);
    transform: translateY(-1.5px);
    box-shadow:
        0 6px 16px -2px rgba(0, 0, 0, 0.65),
        0 0 16px rgba(94, 234, 212, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-copy-mod:hover svg {
    color: #5EEAD4;
    transform: scale(1.1);
}

/* Hover dla Usuń: Subtelny koralowy glow & uniesienie 3D */
.btn-delete:hover {
    color: #FF7E75;
    background: linear-gradient(180deg, rgba(255, 68, 57, 0.16) 0%, rgba(255, 68, 57, 0.04) 100%), rgba(28, 18, 22, 0.85);
    border-color: rgba(255, 68, 57, 0.35);
    border-top-color: rgba(255, 68, 57, 0.65);
    transform: translateY(-1.5px);
    box-shadow:
        0 6px 16px -2px rgba(0, 0, 0, 0.65),
        0 0 14px rgba(255, 68, 57, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-delete:hover svg {
    color: #FF7E75;
    transform: scale(1.1);
}

/* Stan wciśnięcia (Click tactile feedback) */
.btn-copy-mod:active,
.btn-delete:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.65),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stan potwierdzania usunięcia pliku */
.btn-delete.confirming {
    background: linear-gradient(180deg, #FF4439 0%, #D82F25 100%);
    border-color: #FF4439;
    border-top-color: #FF7E75;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow:
        0 4px 18px rgba(255, 68, 57, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: pulse 1s infinite alternate;
}

.btn-delete.confirming svg {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .mod-stats-grid {
        grid-template-columns: 1fr;
    }

    .mod-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mod-file-name {
        max-width: 160px;
    }

    .storage-widget {
        right: 16px;
        bottom: 74px;
    }

    .storage-widget .storage-container {
        width: 290px;
        padding: 28px 18px 18px;
    }

    .btn-mod-open {
        left: 16px;
        bottom: 16px;
    }

    body.is-admin .btn-login {
        left: 106px;
        bottom: 16px;
    }

    .btn-login {
        left: 16px;
        bottom: 16px;
    }
}

/* --- System Zakładek (SPA) - Spokojne, Płynne Przejście --- */
.view-section {
    width: 100%;
}

.view-section.active {
    animation: smoothViewFade 0.45s ease-out forwards;
}

.view-section[hidden] {
    display: none !important;
}

@keyframes smoothViewFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Widoki SPA z wydłużonym widokiem (pierwszy ekran czysty, stopka schowana poniżej 100vh) */
#view-glowna,
#view-narzedzia,
#view-beam,
#view-funkcje,
#view-cennik,
#view-kontakt,
#view-regulamin,
#view-polityka {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-bottom: 200px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {

    #view-glowna,
    #view-narzedzia,
    #view-beam,
    #view-funkcje,
    #view-cennik,
    #view-kontakt,
    #view-regulamin,
    #view-polityka {
        padding-bottom: 80px !important;
    }
}

/* Dedykowane wydłużenie dla sekcji Beam P2P, aby stopka była głęboko pod pierwszym ekranem */
#view-beam {
    min-height: 115vh;
    min-height: 115dvh;
    padding-bottom: clamp(240px, 28vh, 400px);
}

#view-beam .main-wrapper {
    max-width: 740px !important;
    width: 100% !important;
}

#view-glowna[hidden],
#view-narzedzia[hidden],
#view-beam[hidden],
#view-funkcje[hidden],
#view-cennik[hidden],
#view-kontakt[hidden],
#view-regulamin[hidden],
#view-polityka[hidden] {
    display: none !important;
}

/* Opadanie kapsuły podstron (optyczne zbalansowanie przestrzeni pionowej) */
#view-narzedzia .main-wrapper,
#view-beam .main-wrapper,
#view-funkcje .main-wrapper,
#view-cennik .main-wrapper,
#view-kontakt .main-wrapper,
#view-regulamin .main-wrapper,
#view-polityka .main-wrapper {
    margin-top: clamp(35px, 8vh, 120px);
    transition: margin-top 0.25s ease;
}

@media (max-width: 768px) {

    #view-narzedzia .main-wrapper,
    #view-beam .main-wrapper,
    #view-funkcje .main-wrapper,
    #view-cennik .main-wrapper,
    #view-kontakt .main-wrapper,
    #view-regulamin .main-wrapper,
    #view-polityka .main-wrapper {
        margin-top: 14px;
    }
}

@keyframes fadeInView {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#app-views {
    width: 100%;
    flex: 1 0 auto;
    /* Ensures main view area expands to push footer to the very bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 105px 20px 50px 20px;
    box-sizing: border-box;
    z-index: 10;
}

@media (max-width: 768px) {
    #app-views {
        padding: 52px 6px 20px 6px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* --- Style dla nowych paneli --- */
.info-panel {
    text-align: center;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 24px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.info-card h3 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
}

.info-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* Cennik */
.pricing-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
    border-radius: 18px;
    text-align: left;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.premium {
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-top: 1px solid rgba(245, 158, 11, 0.55);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(20, 28, 45, 0.85) 100%);
    box-shadow: 0 14px 36px -6px rgba(0, 0, 0, 0.6), 0 0 28px -6px rgba(245, 158, 11, 0.15);
}

.pricing-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.pricing-card h2 {
    margin: 0 0 20px 0;
    color: var(--text-main);
    font-size: 28px;
    font-weight: 800;
}

.pricing-card ul {
    padding: 0;
    margin: 0 0 24px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card ul li {
    color: var(--text-main);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card ul li svg {
    flex-shrink: 0;
}

/* Kontakt */
.contact-box {
    margin-top: 24px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-email-title {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.contact-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #F8FAFC !important;
    text-decoration: none !important;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.contact-email-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.contact-email-icon {
    width: 17px;
    height: 17px;
    color: #CBD5E1;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-email-pill:hover .contact-email-icon {
    transform: scale(1.08);
    color: #FFFFFF;
}

.contact-hours-text {
    margin: 4px 0 0 0 !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
    }
}

/* Gwarancja i bezpieczeństwo pod cennikiem */
.pricing-trust-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12.5px;
}

.trust-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.trust-pill-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* Funkcje: responsywna siatka 2-kolumnowa */
#view-funkcje .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    #view-funkcje .info-grid {
        grid-template-columns: 1fr;
    }
}

.features-bottom-cta {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
}

.features-cta-text strong {
    display: block;
    font-size: 15px;
    color: #F8FAFC;
    font-weight: 700;
}

.features-cta-text span {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Kontakt: szybki boks FAQ */
.contact-faq-teaser {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.faq-teaser-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #CBD5E1;
    flex-shrink: 0;
}

.faq-teaser-text strong {
    display: block;
    font-size: 13.5px;
    color: #F8FAFC;
    font-weight: 700;
}

.faq-teaser-text p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.contact-faq-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #F8FAFC !important;
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.contact-faq-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* --- Pola wpisywania w Modalach (Logowanie) --- */
.dropsite-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    box-sizing: border-box;
    transition: var(--transition-smooth);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dropsite-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Stan aktywny (gdy wpisujesz) */
.dropsite-input:focus {
    border-color: var(--accent-blue);
    background: rgba(196, 231, 212, 0.03);
    /* Bardzo delikatne miętowe tło */
    box-shadow: 0 0 0 4px rgba(196, 231, 212, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Wyłączenie autouzupełniania z żółtym/białym tłem w przeglądarkach Chrome */
.dropsite-input:-webkit-autofill,
.dropsite-input:-webkit-autofill:hover,
.dropsite-input:-webkit-autofill:focus,
.dropsite-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0e1015 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   NOWE FUNKCJE: CANAVS BACKGROUND, HISTORIA, QR, STRONA POBIERANIA
   ========================================================================== */

/* 1. Canvas z cząsteczkami Aurora */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    contain: strict;
    transform: translateZ(0);
    will-change: transform;
}

@media (max-width: 768px) {
    .bg-canvas {
        display: none !important;
    }
}

/* Wstrzymaj animacje i obciążenie GPU/CPU w ukrytych modalach */
.mod-modal[hidden] {
    content-visibility: hidden;
}

.mod-modal[hidden] * {
    animation-play-state: paused !important;
}

/* 2. Przycisk historii w nawigacji */
.btn-history-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 12px;
}

.btn-history-nav:hover {
    background: rgba(196, 231, 212, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* 3. Opcja "Zniszcz po pobraniu" */
.option-item.burn-option input:checked+span {
    background: rgba(255, 68, 57, 0.2);
    border-color: #FF4439;
    color: #FF4439;
    font-weight: 700;
}

/* 4. Dedykowana Strona Pobierania */
.download-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    animation: fadeInModal 0.4s ease-out;
}

.dl-preview-container {
    margin: 18px 0 14px;
    border-radius: 18px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    max-height: none;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    transition: var(--transition-smooth);
}

/* Swobodny kontener dla galerii albumów i archiwów */
.dl-preview-container:has(.photo-album-recipient-container),
.dl-preview-container:has(.archive-explorer-box),
.dl-preview-container:has(.album-gallery-grid),
.dl-preview-container.has-album,
.dl-preview-container.has-archive {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 14px 0 !important;
}

.dl-preview-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Studio Passe-partout: Jasne, aksamitne szkło mrożone jak na stronie głównej */
    background: linear-gradient(180deg, rgba(26, 38, 58, 0.45) 0%, rgba(12, 19, 32, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(196, 231, 212, 0.35);
    border-radius: 18px;
    padding: 18px 18px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 2px 14px rgba(0, 0, 0, 0.45), 0 12px 32px -8px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
    margin: 14px 0 12px 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-preview-image-wrapper::before {
    display: none !important;
}

.dl-preview-image-wrapper:hover {
    border-color: rgba(196, 231, 212, 0.32);
    border-top-color: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 2px 16px rgba(0, 0, 0, 0.5), 0 16px 40px -8px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 231, 212, 0.12);
}

.dl-preview-image-wrapper .proofing-media-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    max-height: 330px !important;
    position: relative !important;
    margin: 0 auto !important;
    padding: 0 !important;
    z-index: 1;
}

/* Floating Image: Zdjęcie lewitujące nad podkładką z obwódką światła i cieniem 3D */
.dl-preview-media {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 12px !important;
    margin: 0 auto;
    display: block;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-preview-image-wrapper:hover .dl-preview-media {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -4px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 24px rgba(56, 189, 248, 0.1) !important;
}

.dl-preview-toolbar {
    margin: 14px auto 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 6;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.dl-tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    background: transparent !important;
    border: none !important;
    outline: none;
    box-shadow: none !important;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    color: #64748B;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.25s ease;
}

/* Dyskretna świetlna linia akcentu pod przyciskiem (Brand Mint #C4E7D4) */
.dl-tool-pill::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #C4E7D4, #A8DABF, transparent);
    box-shadow: 0 0 8px rgba(196, 231, 212, 0.6);
    border-radius: 999px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.dl-tool-pill svg {
    color: #64748B;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-tool-pill:hover {
    color: #FFFFFF !important;
    text-shadow: 0 0 14px rgba(196, 231, 212, 0.45);
    transform: translateY(-1.5px);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dl-tool-pill:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.dl-tool-pill:hover svg {
    color: #C4E7D4;
    filter: drop-shadow(0 0 6px rgba(196, 231, 212, 0.85));
}

.dl-tool-pill:active {
    transform: translateY(0) scale(0.98);
}

.proofing-remarks-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #C4E7D4;
    background: rgba(196, 231, 212, 0.12);
    border: 1px solid rgba(196, 231, 212, 0.3);
    border-radius: 999px;
    margin-left: 2px;
    transition: all 0.25s ease;
}

.dl-tool-pill:hover .proofing-remarks-count-pill {
    background: rgba(196, 231, 212, 0.22);
    border-color: rgba(196, 231, 212, 0.55);
    color: #C4E7D4;
    box-shadow: 0 0 8px rgba(196, 231, 212, 0.4);
}

.dl-tool-newtab {
    color: #64748B;
}

/* === DOCUMENT SHOWCASE CARD (PDF / GENERIC FILES) === */
.dl-doc-showcase-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 30%, rgba(30, 41, 59, 0.4) 0%, rgba(10, 14, 23, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    text-align: left;
    transition: all 0.25s ease;
}

.dl-doc-showcase-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 38px -8px rgba(0, 0, 0, 0.7);
}

.dl-doc-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.dl-doc-icon-badge.pdf {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.2);
}

.dl-doc-icon-badge.generic {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(2, 132, 199, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.dl-doc-info {
    flex: 1;
    min-width: 0;
}

.dl-doc-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.3;
}

.dl-doc-sub {
    display: block;
    font-size: 12.5px;
    color: #94A3B8;
    margin-top: 2px;
}

.dl-doc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dl-doc-action-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.burn-warning-box {
    background: rgba(255, 68, 57, 0.1);
    border: 1px solid rgba(255, 68, 57, 0.3);
    color: #FF7B72;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 15px;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

.dl-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Przycisk Kopiuj Direct Stream URL na stronie pobierania */
.btn-dl-copy-stream {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all 0.22s ease;
    letter-spacing: 0.2px;
}

.btn-dl-copy-stream:hover {
    background: rgba(167, 139, 250, 0.16);
    border-color: rgba(167, 139, 250, 0.55);
    color: #C4B5FD;
    transform: translateY(-1px);
}

.dl-btn-large {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius-md, 14px);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(196, 231, 212, 0.25);
    transition: var(--transition-smooth);
}

.dl-btn-secondary {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md, 14px);
    background: rgba(31, 35, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.dl-btn-secondary:hover {
    background: rgba(45, 52, 70, 0.8);
    border-color: rgba(196, 231, 212, 0.3);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dl-btn-secondary:active {
    transform: translateY(0);
}

/* --- Globalny Przycisk Drugorzędny (Sleek Cyber Glass) --- */
.btn-secondary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(180deg, rgba(30, 36, 50, 0.7) 0%, rgba(16, 20, 30, 0.85) 100%);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth, all 0.25s cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, rgba(42, 52, 72, 0.8) 0%, rgba(22, 28, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* --- Dedykowane przyciski w modalu Kod QR (Pobierz QR, Udostępnij) --- */
.qr-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.qr-modal-actions .btn-secondary {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 11px;
}

#btnDownloadQr {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 18, 14, 0.85) 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    border-top: 1px solid rgba(52, 211, 153, 0.6) !important;
    color: #34D399 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 16px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

#btnDownloadQr:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0%, rgba(8, 26, 20, 0.95) 100%) !important;
    border-color: rgba(52, 211, 153, 0.65) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.32) !important;
}

#btnShareQr {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

#btnShareQr:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
}

.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-transform: none;
    transition: all 0.25s ease;
}

.dl-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #C4E7D4;
    box-shadow: 0 0 6px rgba(196, 231, 212, 0.7);
}

.dl-badge-dot.temp {
    background: #C4E7D4;
    box-shadow: 0 0 6px rgba(196, 231, 212, 0.8);
    animation: badgePulse 2s infinite ease-in-out;
}

.dl-badge-dot.burn {
    background: #EF4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
    animation: badgePulseFast 1s infinite ease-in-out;
}

.dl-badge-dot.perm {
    background: #C4E7D4;
    box-shadow: 0 0 6px rgba(196, 231, 212, 0.8);
}

.dl-badge-dot.spy,
.dl-badge-dot.spy-badge {
    background: #F43F5E;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.8);
    animation: badgePulseFast 1s infinite ease-in-out;
}

.dl-badge-dot.limit-badge {
    background: #94A3B8;
}

.dl-badge.temp {
    background: rgba(196, 231, 212, 0.1);
    border: 1px solid rgba(196, 231, 212, 0.25);
    color: #C4E7D4;
    box-shadow: none;
}

.dl-badge.temp .dl-badge-dot {
    background: #C4E7D4;
    box-shadow: 0 0 5px #C4E7D4;
    animation: badgePulse 2s infinite ease-in-out;
}

.dl-badge.burn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #F87171;
    box-shadow: none;
}

.dl-badge.burn .dl-badge-dot {
    background: #EF4444;
    box-shadow: 0 0 6px #EF4444;
    animation: badgePulseFast 1s infinite ease-in-out;
}

.dl-badge.perm {
    background: rgba(196, 231, 212, 0.1);
    border: 1px solid rgba(196, 231, 212, 0.25);
    color: #C4E7D4;
    box-shadow: none;
}

.dl-badge.perm .dl-badge-dot {
    background: #C4E7D4;
    box-shadow: 0 0 5px #C4E7D4;
}

.dl-badge.spy-badge {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #FB7185;
    box-shadow: none;
}

.dl-badge.spy-badge .dl-badge-dot {
    background: #F43F5E;
    box-shadow: 0 0 6px #F43F5E;
    animation: badgePulseFast 1s infinite ease-in-out;
}

.dl-badge.limit-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
}

.dl-badge.limit-badge .dl-badge-dot {
    background: #94A3B8;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

@keyframes badgePulseFast {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.75);
    }
}

/* === DROPSITE IMAGE LIGHTBOX MODAL === */
.dl-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    animation: smoothBackdropIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dl-lightbox-modal:not([hidden]) {
    display: flex;
}

.dl-lightbox-modal.is-closing {
    animation: smoothBackdropOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.dl-lightbox-modal.is-closing .dl-lightbox-wrap {
    animation: smoothModalOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.dl-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(196, 231, 212, 0.05) 0%, rgba(5, 7, 12, 0.92) 50%, rgba(2, 3, 6, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    cursor: zoom-out;
}

.dl-lightbox-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    background: linear-gradient(165deg, rgba(22, 26, 38, 0.94) 0%, rgba(12, 14, 22, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(196, 231, 212, 0.4);
    border-radius: var(--radius-lg, 24px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 80px rgba(196, 231, 212, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    animation: smoothModalIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dl-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(8, 10, 16, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.dl-lightbox-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dl-lightbox-info>svg {
    flex-shrink: 0;
    color: #64748B;
}

.dl-lightbox-filename {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.dl-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}

.dl-lightbox-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    user-select: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.dl-lightbox-tool-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.dl-lightbox-tool-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #F1F5F9;
}

.dl-lightbox-tool-btn:hover svg {
    opacity: 1;
}

.dl-lightbox-tool-btn .proofing-remarks-count-pill {
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    box-shadow: none;
}

.dl-lightbox-tool-btn:hover .proofing-remarks-count-pill {
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.dl-lightbox-newtab-btn,
.dl-lightbox-pin-btn,
.dl-lightbox-close-btn {
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    box-shadow: none !important;
}

.dl-lightbox-newtab-btn:hover,
.dl-lightbox-pin-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #F1F5F9 !important;
    border: none !important;
    box-shadow: none !important;
}

.dl-lightbox-close-btn {
    padding: 6px 8px;
    margin-left: 6px;
    position: relative;
}

.dl-lightbox-close-btn::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.dl-lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
}

.dl-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    padding: 16px;
    height: 78vh;
    max-height: calc(92vh - 110px);
    width: 100%;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.45) 0%, rgba(5, 6, 10, 0.88) 100%);
    box-sizing: border-box;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.dl-lightbox-media-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
    cursor: zoom-in;
}

.dl-lightbox-img {
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm, 8px);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    display: block;
    pointer-events: auto;
}

.dl-lightbox-proofing-overlay {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    z-index: 15;
}

/* Szuflada uwag w Lightboxie */
.dl-lightbox-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 55vh;
    background: rgba(10, 14, 23, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 16px 16px;
    padding: 14px 20px;
    z-index: 100;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.75);
    animation: dlDrawerSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-lightbox-tool-btn.active {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38BDF8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

@keyframes dlDrawerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dl-lightbox-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-lightbox-drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #F8FAFC;
}

.btn-task-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-task-edit:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38BDF8;
}


.dl-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    font-size: 11.5px;
    color: var(--text-muted);
    background: rgba(10, 12, 18, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    box-sizing: border-box;
}

.dl-lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 25;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dl-lightbox-nav-btn:hover {
    background: rgba(56, 189, 248, 0.35);
    border-color: #38BDF8;
    color: #38BDF8;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(56, 189, 248, 0.4);
}

.dl-lightbox-prev {
    left: 18px;
}

.dl-lightbox-next {
    right: 18px;
}

/* =========================================================================
   DEDYKOWANA KARTA ALBUMU FOTOGRAFICZNEGO (RECIPIENT PHOTO ALBUM SUITE)
   ========================================================================= */
.photo-album-recipient-container {
    width: 100%;
    background: linear-gradient(170deg, rgba(16, 22, 34, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(94, 234, 212, 0.45);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 4px;
}

.photo-album-recipient-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-album-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-align: left;
}

.photo-album-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(94, 234, 212, 0.14);
    border: 1px solid rgba(94, 234, 212, 0.35);
    color: #5EEAD4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.photo-album-title {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.25;
    display: block;
}

.photo-album-subtitle {
    font-size: 11.5px;
    color: #94A3B8;
    display: block;
    margin-top: 2px;
}

.btn-album-slideshow-quick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.18) 0%, rgba(45, 212, 191, 0.28) 100%);
    border: 1px solid rgba(94, 234, 212, 0.45);
    color: #5EEAD4;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(94, 234, 212, 0.15);
}

.btn-album-slideshow-quick:hover {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.32) 0%, rgba(45, 212, 191, 0.45) 100%);
    border-color: #5EEAD4;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(94, 234, 212, 0.3);
    color: #A7F3D0;
}

@media (max-width: 640px) {

    /* Mobilny pasek narzędzi podglądu pliku (Preview Toolbar) */
    .dl-preview-toolbar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 4px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dl-preview-toolbar::-webkit-scrollbar {
        display: none;
    }

    .dl-tool-pill {
        flex: 0 0 auto;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    /* Mobilny nagłówek i belka narzędzi w powiększeniu (Lightbox Header & Actions) */
    .dl-lightbox-modal {
        padding: 0 !important;
    }

    .dl-lightbox-wrap {
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .dl-lightbox-header {
        padding: 10px 12px !important;
        gap: 8px !important;
        background: rgba(8, 10, 16, 0.85) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .dl-lightbox-filename {
        max-width: 110px;
        font-size: 13px;
    }

    .dl-lightbox-actions {
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        max-width: calc(100vw - 140px);
        justify-content: flex-end;
    }

    .dl-lightbox-actions::-webkit-scrollbar {
        display: none;
    }

    .dl-lightbox-tool-btn {
        padding: 7px 8px !important;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        min-height: 34px;
    }

    .dl-lightbox-tool-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Chowanie etykiet tekstowych, zostają same czytelne dotykowe ikony z badge'ami */
    .dl-lightbox-tool-btn span:not(.proofing-remarks-count-pill) {
        display: none !important;
    }

    .dl-lightbox-tool-btn .proofing-remarks-count-pill {
        margin-left: 0;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
    }

    .dl-lightbox-close-btn {
        margin-left: 2px !important;
        padding: 7px 10px !important;
        background: rgba(239, 68, 68, 0.15) !important;
        color: #F87171 !important;
    }

    .dl-lightbox-close-btn::before {
        display: none;
    }

    .dl-lightbox-body {
        height: calc(100vh - 100px) !important;
        max-height: calc(100vh - 100px) !important;
        padding: 8px !important;
    }

    .dl-lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }

    .dl-lightbox-prev {
        left: 8px;
    }

    .dl-lightbox-next {
        right: 8px;
    }

    .dl-lightbox-drawer {
        border-radius: 20px 20px 0 0 !important;
        max-height: 70vh !important;
        padding: 16px 14px !important;
    }
}

/* 5. Modal Kodu QR */
.qr-modal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qrCanvas {
    width: 200px !important;
    height: 200px !important;
}

/* ==========================================================================
   FAZA 3: PREMIUM UI - PRZYCISKI NAWIGACJI, PRZEŁĄCZNIK SWITCH I SUWAK
   ========================================================================== */

/* 1. Nowoczesna minimalistyczna grupa przycisków w prawym górnym rogu (dolna linia) */
.nav-action-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 0;
}

.btn-nav-glass {
    height: auto;
    padding: 6px 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 15.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.3s ease, transform 0.2s ease;
    font-family: inherit;
}

.btn-nav-glass:hover {
    background: transparent;
    border: none;
    color: var(--text-main);
    box-shadow: none;
    transform: none;
}

.btn-nav-glass:hover svg {
    color: var(--accent-blue);
    transform: scale(1.08);
}

.btn-nav-glass svg {
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
}

/* Okrągłe przyciski ikon: Audio & Historia */
.btn-nav-glass.sound-btn,
.btn-nav-glass.history-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-nav-glass.sound-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.2s ease, opacity 0.2s ease;
    color: var(--text-muted);
}

.btn-nav-glass.sound-btn .sound-icon-on {
    display: block;
}

.btn-nav-glass.sound-btn .sound-icon-off {
    display: none;
}

.btn-nav-glass.sound-btn.is-muted .sound-icon-on {
    display: none !important;
}

.btn-nav-glass.sound-btn.is-muted .sound-icon-off {
    display: block !important;
    color: var(--text-muted);
}

.btn-nav-glass.sound-btn:hover svg {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--text-main);
}

.btn-nav-glass.history-btn svg {
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.2s ease;
}

.btn-nav-glass.history-btn:hover svg {
    transform: rotate(-15deg) scale(1.1);
    color: var(--accent-blue);
}

/* 2. Luksusowy Panel Kompresji Grafiki */
/* ==========================================================================
   KOMPRESJA GRAFIKI & WŁASNY ALIAS: MONOCHROMATYCZNE GLASS FLYOUTS (DYMKI)
   ========================================================================== */
.fs-meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.fs-target-size-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.fs-arrow {
    color: #38BDF8;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
}

.fs-target-size {
    color: #34D399;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.compress-inline-savings {
    color: #94A3B8;
    /* Neutralny szary */
    font-size: 11px;
    font-weight: 500;
    margin-left: 5px;
    letter-spacing: -0.01em;
    text-shadow: none;
    /* Usunięto neonową poświatę */
    opacity: 0.8;
}

.btn-flyout-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94A3B8;
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flyout-trigger:hover,
.btn-flyout-trigger.active {
    color: #F8FAFC;
    /* Prawie czysta biel na hover */
    background: rgba(255, 255, 255, 0.08);
    /* Delikatne białawe szkło */
    transform: scale(1.05);
}

.btn-flyout-trigger svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flyout-trigger:hover svg,
.btn-flyout-trigger.active svg {
    transform: rotate(90deg);
}

/* WSPÓLNE STYLE DLA BOCZNYCH DYMKÓW / POPOVERÓW - 100% STABILNA POZYCJA BEZ SKOKÓW */
.compress-flyout-card,
.slug-flyout-card {
    position: absolute;
    left: calc(100% + 14px);
    top: -10px;
    width: 345px;
    background: 
        radial-gradient(circle at 85% 0%, rgba(196, 231, 212, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 10% 100%, rgba(168, 218, 191, 0.12) 0%, transparent 60%),
        linear-gradient(168deg, #131c29 0%, #080d16 100%);
    border: 1px solid rgba(196, 231, 212, 0.18);
    border-top: 1px solid rgba(196, 231, 212, 0.65);
    border-left: 1px solid rgba(196, 231, 212, 0.25);
    border-radius: 16px;
    padding: 16px 18px;
    /* Dyskretne, miękkie cienie ze świetlistą miętową poświatą */
    box-shadow:
        0 24px 60px -12px rgba(0, 0, 0, 0.94),
        0 8px 24px -4px rgba(0, 0, 0, 0.7),
        0 0 35px -5px rgba(196, 231, 212, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(44px) saturate(210%);
    -webkit-backdrop-filter: blur(44px) saturate(210%);
    z-index: 9999;
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(14px) scale(0.97);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.32s;
    will-change: transform, opacity;
}

.compress-flyout-card.is-visible,
.slug-flyout-card.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.compress-flyout-arrow,
.slug-flyout-arrow {
    position: absolute;
    left: -6px;
    top: 24px;
    transform: rotate(45deg);
    width: 11px;
    height: 11px;
    background: #121a28;
    border-left: 1px solid rgba(196, 231, 212, 0.45);
    border-bottom: 1px solid rgba(196, 231, 212, 0.45);
    box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.5);
}

.compress-flyout-header,
.slug-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compress-flyout-title,
.slug-flyout-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

.btn-flyout-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
    outline: none;
    padding: 0;
}

.btn-flyout-close:hover {
    color: #FFFFFF;
    background: transparent;
    transform: scale(1.15);
}

.slider-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-hint-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.slider-val-badge {
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1px 7px;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}

/* Przełącznik Switch - Czysty Styl */
.custom-switch-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.custom-switch {
    position: relative;
    width: 34px;
    height: 18px;
    display: inline-block;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.switch-slider:before {
    content: "";
    position: absolute;
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #94A3B8;
    border-radius: 50%;
    transition: transform 0.18s ease, background-color 0.18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.custom-switch input:checked+.switch-slider {
    background: rgba(196, 231, 212, 0.22);
    border-color: rgba(196, 231, 212, 0.55);
}

.custom-switch input:checked+.switch-slider:before {
    transform: translateX(16px);
    background-color: #C4E7D4;
    box-shadow: 0 0 8px rgba(196, 231, 212, 0.7);
}

.switch-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #E2E8F0;
}

/* Suwak kompresji */
.compress-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.22s ease, filter 0.22s ease;
}

.compress-slider-wrap.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.6);
    user-select: none;
}

.btn-flyout-trigger.compress-inactive {
    opacity: 0.55;
    color: #64748B;
}

.btn-flyout-trigger.compress-inactive:hover {
    opacity: 0.9;
    color: #CBD5E1;
}

.slider-container {
    position: relative;
    width: 100%;
    padding: 3px 0;
}

.dropsite-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
}

.dropsite-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C4E7D4;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(196, 231, 212, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
    border: 2px solid #FFFFFF;
    transition: box-shadow 0.15s ease;
}

.dropsite-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(196, 231, 212, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Segmentowe Przyciski Presetów - Płynne, delikatne przejścia kolorystyczne bez podskoków */
/* Segmentowe Przyciski Presetów - Płynne, delikatne przejścia */
.compress-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-preset {
    background: transparent;
    border: 1px solid transparent;
    color: #94A3B8;
    padding: 6px 2px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-preset:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.btn-preset.active {
    background: rgba(196, 231, 212, 0.16);
    border-color: rgba(196, 231, 212, 0.45);
    color: #C4E7D4;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(196, 231, 212, 0.2);
}

/* Stopka panelu kompresji - Czysta typografia Awwwards, ZERO kapsułek */
.compress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

.compress-info-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.compress-savings-val {
    font-size: 12.5px;
    color: #C4E7D4 !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: 0 0 10px rgba(196, 231, 212, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

/* WŁASNY ALIAS LINKU */
.custom-slug-wrap {
    position: relative;
    margin-top: 12px;
    margin-bottom: 6px;
}

.slug-toggle-header {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    user-select: none;
    transition: var(--transition-smooth);
}

.slug-toggle-header:hover {
    background: transparent;
    border: none;
    color: var(--text-main);
}

.slug-toggle-header .slug-toggle-icon {
    color: #64748B;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.slug-toggle-header:hover .slug-toggle-icon {
    opacity: 1;
    color: #FFFFFF;
}

.slug-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.slug-arrow-svg {
    color: #64748B;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.slug-toggle-header.active .slug-arrow-svg {
    transform: rotate(180deg);
    color: #FFFFFF;
}

.slug-input-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    transition: var(--transition-smooth);
}

.slug-input-container:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.7);
}

.slug-prefix {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    user-select: none;
    padding-right: 4px;
}

.custom-slug-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 12.5px;
    padding: 7px 0;
    width: 100%;
    outline: none;
    font-family: inherit;
}

/* RWD DLA WSZYSTKICH DYMKÓW NA EKRANACH MOBILNYCH / WĄSKICH */
@media (max-width: 860px) {

    /* Własny alias: naturalny in-flow wewnątrz karty */
    .slug-flyout-card {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 6px !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: linear-gradient(165deg, #152030 0%, #0B111B 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
        clear: both !important;
    }

    .compress-flyout-arrow,
    .slug-flyout-arrow {
        display: none !important;
    }

    /* KOMPRESJA & ZAAWANSOWANE: NATIVE BOTTOM-SHEET DRAWERY (NIE PSUJĄ UKŁADU KARTY) */
    .compress-flyout-card,
    .adv-flyout-card {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 86vh !important;
        border-radius: 24px 24px 0 0 !important;
        background: 
            radial-gradient(circle at 85% 0%, rgba(196, 231, 212, 0.16) 0%, transparent 60%),
            radial-gradient(circle at 10% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
            linear-gradient(175deg, #121a28 0%, #080D16 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-top: 1px solid rgba(196, 231, 212, 0.55) !important;
        border-bottom: none !important;
        box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.92), 0 0 0 100vmax rgba(0, 0, 0, 0.65) !important;
        z-index: 999999 !important;
        padding: 16px 18px 24px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.28s !important;
    }

    .compress-flyout-card::before,
    .adv-flyout-card::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.25);
        margin: 0 auto 12px auto;
    }

    .compress-flyout-card.is-visible,
    .adv-flyout-card.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 540px) {
    .compress-flyout-card {
        padding: 16px 16px 28px !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .slug-flyout-card {
        padding: 13px 12px !important;
        border-radius: 14px !important;
    }

    .adv-flyout-card {
        padding: 14px 14px 28px !important;
        max-height: 88vh !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .btn-preset {
        padding: 6px 2px !important;
        font-size: 10.5px !important;
        letter-spacing: -0.01em !important;
    }

    .adv-tab-btn {
        font-size: 12px !important;
        gap: 5px !important;
    }

    .adv-toggle-row {
        padding: 9px 2px !important;
    }

    .adv-toggle-name {
        font-size: 12px !important;
    }

    .cue-tag {
        font-size: 10.5px !important;
    }

    .limit-radio-item span {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
}

.slug-prefix {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
    opacity: 0.75;
    padding-right: 2px;
}

.custom-slug-input.dropsite-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    font-size: 13.5px !important;
    color: var(--text-main);
    width: 100%;
}

.custom-slug-input:focus {
    box-shadow: none !important;
    border: none !important;
}

/* 4. Licznik wyświetleń i pobrań */
.dl-stats-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    color: #64748B;
    font-size: 11.5px;
    font-weight: 500;
}

/* ============================================================================
   5. LUKSUSOWE POWIADOMIENIA TOAST (Dark Glass, Głębia 3D, Ambient Glow)
   ============================================================================ */
.dropsite-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 16px;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(22, 27, 38, 0.96) 0%, rgba(12, 15, 22, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-main);
    user-select: none;
    box-shadow:
        0 18px 45px -4px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: toastEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
    touch-action: pan-y;
    cursor: grab;
}

.dropsite-toast:active {
    cursor: grabbing;
}

.toast-text {
    flex: 1 1 auto;
    line-height: 1.4;
}

.toast-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 6px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
    outline: none;
    box-shadow: none;
}

.toast-close-btn:hover {
    background: transparent;
    color: #FFFFFF;
    border: none;
    transform: scale(1.15);
    opacity: 1;
}

.toast-close-btn:active {
    transform: scale(0.9);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .dropsite-toast {
        top: calc(16px + env(safe-area-inset-top, 0px));
        left: 16px;
        right: 16px;
        width: auto;
        display: flex;
        justify-content: space-between;
        padding: 10px 12px 10px 14px;
        font-size: 12.5px;
    }
}

.dropsite-toast.toast-hide {
    animation: toastExit 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }
}

.toast-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Wariant: Sukces (Ciemne szkło + miętowa poświata) */
.dropsite-toast.toast-success {
    border-top: 1px solid rgba(196, 231, 212, 0.65);
    box-shadow:
        0 18px 45px -4px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(196, 231, 212, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dropsite-toast.toast-success .toast-icon-wrap {
    background: linear-gradient(135deg, rgba(196, 231, 212, 0.22) 0%, rgba(196, 231, 212, 0.05) 100%);
    border: 1px solid rgba(196, 231, 212, 0.35);
    border-top: 1px solid rgba(196, 231, 212, 0.6);
    color: #C4E7D4;
    box-shadow: 0 0 12px rgba(196, 231, 212, 0.2);
}

/* Wariant: Błąd (Ciemne szkło + stonowana czerwień) */
.dropsite-toast.toast-error {
    border-top: 1px solid rgba(255, 68, 57, 0.6);
    box-shadow:
        0 18px 45px -4px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(255, 68, 57, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dropsite-toast.toast-error .toast-icon-wrap {
    background: linear-gradient(135deg, rgba(255, 68, 57, 0.22) 0%, rgba(255, 68, 57, 0.05) 100%);
    border: 1px solid rgba(255, 68, 57, 0.35);
    border-top: 1px solid rgba(255, 68, 57, 0.6);
    color: #FF4439;
    box-shadow: 0 0 12px rgba(255, 68, 57, 0.2);
}

/* Wariant: Info (Ciemne szkło + błękit) */
.dropsite-toast.toast-info {
    border-top: 1px solid rgba(94, 234, 212, 0.6);
    box-shadow:
        0 18px 45px -4px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(94, 234, 212, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dropsite-toast.toast-info .toast-icon-wrap {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.22) 0%, rgba(94, 234, 212, 0.05) 100%);
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-top: 1px solid rgba(94, 234, 212, 0.6);
    color: #5eead4;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.2);
}

/* --- Telemetria transferu (Speed & ETA) --- */
.fs-telemetry {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    animation: fadeInModal 0.25s ease;
    margin-top: 2px;
}

.fs-telemetry[hidden],
.fs-telemetry.is-hidden {
    display: none !important;
}

.telemetry-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.telemetry-item.speed-item {
    color: var(--accent-blue);
    font-weight: 600;
}

.telemetry-item.eta-item {
    color: var(--text-main);
}

.telemetry-dot {
    opacity: 0.4;
}

/* --- Zaawansowane opcje transferu (Hasło, Notatka, Limit) - Boczny Dymek --- */
.custom-adv-wrap {
    position: relative;
    margin-top: 8px;
    margin-bottom: 22px;
}

.adv-flyout-card {
    top: auto;
    bottom: -14px;
    width: 380px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px) scale(0.96);
    transform-origin: left bottom;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.36s !important;
}

.adv-flyout-card.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
}

.adv-flyout-card .compress-flyout-arrow {
    top: auto;
    bottom: 24px;
}

.adv-flyout-card::-webkit-scrollbar {
    width: 4px;
}

.adv-flyout-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.adv-mini-tabs-nav {
    display: flex;
    gap: 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 4px 10px 4px;
    margin-bottom: 14px;
    border-radius: 0;
}

.adv-tab-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 12.5px;
    font-weight: 550;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: color 0.2s ease;
}

.adv-tab-btn:hover {
    color: #E2E8F0;
    background: transparent;
}

.adv-tab-btn.active {
    background: transparent;
    border: none;
    color: #C4E7D4;
    font-weight: 600;
    box-shadow: none;
}

.adv-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #C4E7D4, #A8DABF);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(196, 231, 212, 0.85);
}

.adv-options-box {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adv-tab-pane {
    display: none;
    flex-direction: column;
    gap: 0;
}

.adv-tab-pane.active {
    display: flex;
}

.adv-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    transition: background 0.15s ease;
}

.adv-toggle-row:last-child {
    border-bottom: none;
}

.adv-toggle-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.adv-toggle-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adv-toggle-name {
    font-size: 12.5px;
    font-weight: 500;
    color: #F1F5F9;
}

.cue-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    letter-spacing: 0.1px;
    display: inline-flex;
    align-items: center;
}

.cue-tag::before {
    content: '•';
    opacity: 0.4;
    margin-right: 5px;
    color: #94A3B8;
}

.cue-emerald {
    color: #C4E7D4;
}

.cue-blue {
    color: #38BDF8;
}

.cue-amber {
    color: #FBBF24;
}

.cue-purple {
    color: #C084FC;
}

.cue-gold {
    color: #FCD34D;
}

.adv-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.adv-input-icon-left {
    position: absolute;
    left: 11px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.adv-pro-input {
    width: 100%;
    padding: 10px 14px 10px 34px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.adv-pro-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #C4E7D4;
    box-shadow: 0 0 0 3px rgba(196, 231, 212, 0.2), 0 0 16px rgba(196, 231, 212, 0.15);
}

.adv-input-toggle-pwd {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.15s ease;
}

.adv-input-toggle-pwd:hover {
    color: #C4E7D4;
}

.adv-field-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 2px;
}

.adv-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adv-field-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
}

.adv-limit-radios {
    display: flex;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 4px;
}

.limit-radio-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    text-align: center;
}

.limit-radio-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.limit-radio-item span {
    display: block;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
    user-select: none;
}

.limit-radio-item input:checked+span {
    background: rgba(196, 231, 212, 0.18);
    border-color: #C4E7D4;
    color: #C4E7D4;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(196, 231, 212, 0.28);
}

.adv-mini-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.adv-mini-sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748B;
}

.sync-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C4E7D4;
    box-shadow: 0 0 8px #C4E7D4;
}

.adv-mini-done-btn {
    background: linear-gradient(135deg, #A8DABF 0%, #C4E7D4 100%);
    border: none;
    color: #061A12;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 14px rgba(196, 231, 212, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.adv-mini-done-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 20px rgba(196, 231, 212, 0.55);
}

.adv-mini-done-btn:active {
    transform: scale(0.95);
}

.adv-mini-done-btn:hover {
    background: rgba(56, 189, 248, 0.3);
}

/* --- Karta notatki od nadawcy na stronie pobierania --- */
.dl-note-card {
    background: linear-gradient(145deg, rgba(15, 145, 210, 0.08) 0%, rgba(20, 25, 36, 0.6) 100%);
    border: 1px solid rgba(15, 145, 210, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: fadeInModal 0.3s ease;
}

.dl-note-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.dl-note-body {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- Karta blokady hasłem na stronie pobierania --- */
.dl-password-box {
    background: linear-gradient(165deg, rgba(22, 27, 38, 0.95) 0%, rgba(12, 15, 22, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(196, 231, 212, 0.4);
    border-radius: 18px;
    padding: 28px 24px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(196, 231, 212, 0.08);
    animation: fadeInModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwd-lock-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(196, 231, 212, 0.18) 0%, rgba(196, 231, 212, 0.04) 100%);
    border: 1px solid rgba(196, 231, 212, 0.3);
    color: #C4E7D4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(196, 231, 212, 0.15);
}

.dl-password-box h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.dl-password-box p {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.pwd-input-wrap {
    display: flex;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
}

.pwd-unlock-input.dropsite-input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
}

/* --- Dark Glass Odtwarzacz Audio (MP3, WAV, M4A, FLAC, OGG) --- */
.dropsite-audio-player {
    background: linear-gradient(165deg, rgba(16, 22, 34, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(94, 234, 212, 0.45);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audio-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.audio-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A7F3D0 0%, #5EEAD4 100%);
    border: none;
    color: #051311;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(94, 234, 212, 0.4);
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.audio-play-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #D1FAF0 0%, #6EE7D4 100%);
    box-shadow: 0 8px 25px rgba(94, 234, 212, 0.65);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-info-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    overflow: hidden;
}

.audio-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-time-row {
    font-size: 11.5px;
    color: #94A3B8;
    font-weight: 500;
}

/* Animowane słupki fal dźwiękowych (Waveform Bars) */
.audio-waveform-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
    padding: 0 4px;
}

.wave-bar {
    width: 3px;
    height: 6px;
    background: rgba(94, 234, 212, 0.3);
    border-radius: 2px;
    transition: height 0.15s ease, background 0.2s ease;
}

.dropsite-audio-player.playing .wave-bar {
    background: #5EEAD4;
    box-shadow: 0 0 8px rgba(94, 234, 212, 0.6);
    animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.dropsite-audio-player.playing .wave-bar:nth-child(2n) {
    animation-delay: 0.15s;
}

.dropsite-audio-player.playing .wave-bar:nth-child(3n) {
    animation-delay: 0.3s;
}

.dropsite-audio-player.playing .wave-bar:nth-child(4n) {
    animation-delay: 0.45s;
}

@keyframes waveBounce {
    0% {
        height: 4px;
    }

    50% {
        height: 26px;
    }

    100% {
        height: 8px;
    }
}

.audio-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-progress-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.audio-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5EEAD4;
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.7);
    cursor: pointer;
    transition: transform 0.18s ease;
}

.audio-progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* ============================================================================
   DROPSITE PRO — STYLE SYSTEMU LICENCYJNEGO, MODALU I ODZNAK
   ============================================================================ */

/* Odznaka PRO Pill w formularzu i nawigacji */
.badge-pro-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%) !important;
    color: #121214 !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    padding: 1px 4.5px !important;
    border-radius: 4px !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 0 8px rgba(255, 167, 81, 0.3) !important;
    vertical-align: middle !important;
    margin-left: 3px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}

/* Przycisk PRO w pasku nawigacji - czysty złoty styl bez kapsułki (bez tła/ramki) */
.pro-nav-btn {
    position: relative;
    height: auto;
    padding: 4px 6px !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFD24C !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    gap: 4px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Gradient złoto → amber na tekście PRO */
#proNavLabel {
    background: linear-gradient(135deg, #FFD24C 0%, #FFB800 45%, #FFDE6B 75%, #FFD24C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: proTextShine 4.5s linear infinite;
    font-weight: 800;
    filter: drop-shadow(0 0 6px rgba(255, 210, 76, 0.35));
    transition: filter 0.3s ease;
}

@keyframes proTextShine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.pro-nav-btn:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-1px) scale(1.05);
}

.pro-nav-btn:hover #proNavLabel {
    filter: drop-shadow(0 0 10px rgba(255, 210, 76, 0.75));
}

/* Iskierka — przez większość czasu spokojna, co 4.5s rozbłysk */
.pro-sparkle {
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    color: #FFD24C;
    filter: drop-shadow(0 0 4px rgba(255, 210, 76, 0.6));
    animation: proSparkleIdle 4.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes proSparkleIdle {
    /* Większość czasu w spokoju */
    0%   { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 3px rgba(255,210,76,0.5)); opacity: 0.9; }
    /* Rozbłysk */
    10%  { transform: scale(1.45) rotate(45deg); filter: drop-shadow(0 0 8px #FFE259) drop-shadow(0 0 16px rgba(255,210,76,0.9)); opacity: 1; }
    20%  { transform: scale(0.95) rotate(90deg); filter: drop-shadow(0 0 4px rgba(255,210,76,0.5)); opacity: 0.85; }
    30%  { transform: scale(1.25) rotate(45deg); filter: drop-shadow(0 0 10px #FFD24C); opacity: 1; }
    40%  { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 3px rgba(255,210,76,0.5)); opacity: 0.9; }
    /* Reszta czasu — spokój */
    100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 3px rgba(255,210,76,0.5)); opacity: 0.9; }
}

.pro-nav-btn:hover .pro-sparkle {
    animation: none;
    transform: rotate(45deg) scale(1.35);
    filter: drop-shadow(0 0 10px #FFE259) drop-shadow(0 0 20px rgba(255,210,76,0.85));
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Stan aktywnego PRO w nawigacji */
body.is-pro .pro-nav-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.is-pro .pro-sparkle {
    color: #FFD24C;
    filter: drop-shadow(0 0 6px #FFD24C);
}


/* Karty Cennika */
.pricing-badge-free,
.pricing-badge-gold {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-badge-free {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-badge-gold {
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.2) 0%, rgba(255, 167, 81, 0.2) 100%);
    color: #FFD24C;
    border: 1px solid rgba(255, 210, 76, 0.4);
    box-shadow: 0 0 12px rgba(255, 195, 60, 0.2);
}

.pricing-subtext {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 16px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-main, #E4E7EB);
}

.pricing-card.premium {
    border-color: rgba(255, 195, 60, 0.35) !important;
    background: linear-gradient(180deg, rgba(255, 195, 60, 0.04) 0%, rgba(20, 22, 30, 0.75) 100%) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 195, 60, 0.1) !important;
}

.btn-pro-action {
    background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%) !important;
    color: #121214 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(255, 167, 81, 0.35) !important;
}

.btn-pro-action:hover {
    box-shadow: 0 12px 30px rgba(255, 167, 81, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* Modal Dropsite PRO */
.pro-modal-container {
    background: rgba(14, 16, 24, 0.97) !important;
    backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 195, 60, 0.3) !important;
    border-top: 1px solid rgba(255, 226, 89, 0.6) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 195, 60, 0.2) !important;
    padding: 28px 30px !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

.pro-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 195, 60, 0.45) !important;
}

.pro-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 195, 60, 0.7) !important;
}

.pro-modal-container .mod-header {
    position: sticky;
    top: -28px;
    margin-top: -28px;
    padding-top: 22px;
    padding-bottom: 12px;
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
    background: rgba(14, 16, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 640px) {
    .mod-modal {
        padding: 12px 8px !important;
        align-items: flex-start !important;
    }

    .mod-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        border-radius: 20px !important;
        margin: 8px auto !important;
    }

    .pro-modal-container {
        padding: 20px 16px 26px 16px !important;
        max-height: 92vh !important;
        max-height: 92dvh !important;
    }

    .pro-modal-container .mod-header {
        top: -20px;
        margin-top: -20px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 14px 14px 10px 14px;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .pro-modal-header-left {
        gap: 10px !important;
    }

    .pro-modal-header-left h2 {
        font-size: 16.5px !important;
        margin: 0 0 2px 0 !important;
    }

    .pro-modal-subtitle {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    .pro-modal-logo-gold {
        width: 32px !important;
        height: 32px !important;
    }

    .pro-modal-logo-gold .pro-logo-gold-svg {
        width: 26px !important;
        height: 26px !important;
    }

    .pro-features-summary {
        padding: 12px 12px !important;
        margin: 12px 0 !important;
        gap: 8px !important;
    }

    .pro-feature-item {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        align-items: flex-start !important;
    }

    .pro-feature-item svg {
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    .pro-buy-card {
        padding: 14px 14px !important;
    }

    .pro-buy-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .pro-buy-card-price {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .pro-buy-btn-sub,
    .pro-buy-btn-blik {
        width: 100% !important;
        padding: 12px 14px !important;
        font-size: 13.5px !important;
    }

    .pro-methods-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}

.pro-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pro-modal-title-row {
    margin: 0 0 2px 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.pro-title-brand {
    color: #FFFFFF;
}

/* Luksusowy akcent PRO ze złotym płynącym gradientem światła */
.pro-title-gold-tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 210, 76, 0.22) 0%, rgba(255, 158, 0, 0.12) 100%);
    border: 1px solid rgba(255, 210, 76, 0.45);
    color: #FFD24C;
    box-shadow: 0 0 12px rgba(255, 210, 76, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.pro-title-gold-tag::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(25deg);
    animation: goldSheenSlide 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes goldSheenSlide {

    0%,
    30% {
        left: -100%;
    }

    70%,
    100% {
        left: 180%;
    }
}

/* Złote Logo Dropsite w nagłówku modala PRO - subtelny, kompaktowy sygnet */
.pro-modal-logo-gold {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: default;
}

/* Pulsująca, aksamitna złota aura w tle bez kanciastych granic */
.pro-logo-gold-aura {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 76, 0.5) 0%, rgba(255, 158, 0, 0.18) 50%, transparent 72%);
    filter: blur(7px);
    opacity: 0.85;
    pointer-events: none;
    animation: goldAuraPulse 3s ease-in-out infinite alternate;
}

/* Subtelny pierścień rozpraszania światła (halo) */
.pro-logo-gold-glow-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 210, 76, 0.35);
    opacity: 0.6;
    animation: goldRingBreath 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes goldRingBreath {
    0% {
        transform: scale(0.92);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes goldAuraPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        filter: blur(6px);
    }

    100% {
        transform: scale(1.15);
        opacity: 0.95;
        filter: blur(9px);
    }
}

.pro-logo-gold-svg {
    position: relative;
    z-index: 2;
    overflow: visible;
    filter: drop-shadow(0 0 7px rgba(255, 210, 76, 0.75)) drop-shadow(0 0 14px rgba(255, 158, 0, 0.4));
    transition: filter 0.3s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-modal-logo-gold:hover .pro-logo-gold-svg {
    filter: drop-shadow(0 0 12px rgba(255, 226, 89, 0.95)) drop-shadow(0 0 22px rgba(255, 158, 0, 0.65));
    transform: scale(1.08);
}

/* Szlachetny strumień światła w złotej strzałce */
.pro-logo-gold-svg .pro-logo-arrow {
    animation: goldArrowStream 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center bottom;
}

@keyframes goldArrowStream {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 3px rgba(255, 230, 100, 0.6));
    }

    50% {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 8px rgba(255, 240, 160, 0.95));
    }
}

.pro-logo-gold-svg .pro-logo-tray {
    filter: drop-shadow(0 0 4px rgba(255, 210, 76, 0.6));
}

/* Drobne, lśniące iskierki (Micro-Sparkles) dodające magii i prestiżu */
.pro-micro-sparkle {
    position: absolute;
    color: #FFF2A3;
    font-size: 8px;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 0 5px #FFD24C;
}

.pms-1 {
    top: -4px;
    right: -4px;
    animation: sparkleGlint1 2.8s ease-in-out infinite;
}

.pms-2 {
    bottom: -3px;
    left: -3px;
    font-size: 7px;
    color: #FFD24C;
    animation: sparkleGlint2 3.2s ease-in-out 1.2s infinite;
}

@keyframes sparkleGlint1 {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.4) rotate(0deg);
    }

    40% {
        opacity: 1;
        transform: scale(1.15) rotate(45deg);
        filter: drop-shadow(0 0 6px #FFF);
    }

    60% {
        opacity: 0.8;
        transform: scale(0.9) rotate(90deg);
    }

    80% {
        opacity: 0;
        transform: scale(0.3) rotate(135deg);
    }
}

@keyframes sparkleGlint2 {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }

    35% {
        opacity: 0.9;
        transform: scale(1.1) rotate(-40deg);
        filter: drop-shadow(0 0 5px #FFD24C);
    }

    70% {
        opacity: 0;
        transform: scale(0.2) rotate(-90deg);
    }
}

.pro-modal-subtitle {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--text-muted);
    display: block;
}

.pro-features-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-main, #F0F2F5);
}

.pro-plan-selector-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.pro-buy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-buy-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pro-buy-card.featured {
    background: linear-gradient(145deg, rgba(255, 210, 76, 0.07) 0%, rgba(255, 167, 81, 0.03) 100%);
    border: 1px solid rgba(255, 210, 76, 0.35);
    box-shadow: 0 6px 20px rgba(255, 167, 81, 0.12);
}

.pro-buy-card.featured:hover {
    border-color: rgba(255, 210, 76, 0.6);
    box-shadow: 0 10px 28px rgba(255, 167, 81, 0.25);
}

.pro-buy-card-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
    color: #121214;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 167, 81, 0.4);
}

.pro-buy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pro-buy-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #FFFFFF);
}

.pro-buy-card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.pro-buy-card-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pro-buy-card-price .price-val {
    font-size: 17px;
    font-weight: 800;
    color: #FFD24C;
}

.pro-buy-card-price .price-period {
    font-size: 11px;
    color: var(--text-muted);
}

.pro-methods-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pay-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.pay-badge.blik-badge {
    background: #000000;
    border-color: rgba(235, 0, 41, 0.4);
    padding: 2px 6px;
}

.pro-buy-btn-sub {
    width: 100%;
    padding: 13px 16px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%) !important;
    color: #121214 !important;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(255, 167, 81, 0.35) !important;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pro-buy-btn-sub:hover {
    box-shadow: 0 6px 26px rgba(255, 167, 81, 0.6) !important;
    transform: translateY(-1px);
}

.pro-buy-btn-blik {
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-buy-btn-blik:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.pro-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
}

.pro-divider::before,
.pro-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-divider span {
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-activation-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-key-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.pro-key-input-row {
    display: flex;
    gap: 10px;
}

.pro-key-input {
    flex: 1;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    font-size: 13.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pro-activate-btn {
    padding: 0 20px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.pro-key-status-text {
    font-size: 12px;
    margin: 4px 0 0 0;
    min-height: 16px;
    font-weight: 600;
}

.pro-key-status-text.success {
    color: #59A829;
}

.pro-key-status-text.error {
    color: #FF4439;
}

.pro-active-box {
    margin-top: 18px;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(255, 210, 76, 0.09) 0%, rgba(255, 179, 0, 0.03) 100%);
    border: 1px solid rgba(255, 210, 76, 0.32);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.4), 0 0 24px -6px rgba(255, 210, 76, 0.16);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.pro-active-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 160, 0.6), rgba(255, 210, 76, 0.4), transparent);
    pointer-events: none;
}

.pro-active-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pro-active-status-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 230, 110, 0.22) 0%, rgba(255, 179, 0, 0.08) 100%), rgba(22, 27, 38, 0.6);
    border: 1px solid rgba(255, 210, 76, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(255, 210, 76, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.pro-active-status-icon svg {
    filter: drop-shadow(0 0 6px rgba(255, 210, 76, 0.5));
}

.pro-active-status-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.pro-active-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFE259;
    letter-spacing: -0.2px;
    text-shadow: 0 0 14px rgba(255, 210, 76, 0.35);
}

.pro-active-subtitle {
    font-size: 12px;
    color: #CBD5E1;
    line-height: 1.4;
}

.pro-active-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.btn-pro-manage {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #F8FAFC;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pro-manage:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-pro-deactivate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted, #94A3B8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pro-deactivate:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.btn-pro-deactivate.confirming {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #FCA5A5 !important;
    font-weight: 600 !important;
    animation: pulseDeactivate 1.2s infinite ease-in-out;
}

@keyframes pulseDeactivate {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Boks inteligentnego przywracania odpiętej licencji PRO */
.pro-restore-box {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35), 0 0 20px -8px rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(12px);
    animation: proBoxFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-restore-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pro-restore-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pro-restore-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.pro-restore-title {
    font-size: 15px;
    font-weight: 700;
    color: #FBBF24;
    letter-spacing: -0.2px;
}

.pro-restore-subtitle {
    font-size: 12px;
    color: var(--text-muted, #94A3B8);
    line-height: 1.4;
}

.pro-restore-actions {
    display: flex;
    width: 100%;
}

.pro-restore-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.pro-restore-btn:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

@media (max-width: 480px) {
    .pro-active-actions {
        flex-direction: column;
    }

    .btn-pro-manage,
    .btn-pro-deactivate,
    .pro-restore-btn {
        width: 100%;
    }
}

/* Viral Promo na karcie pobierania */
.dl-promo-card {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.06) 0%, rgba(255, 167, 81, 0.03) 100%);
    border: 1px solid rgba(255, 195, 60, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.dl-promo-tag {
    font-size: 11px;
    font-weight: 800;
    color: #FFD24C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.dl-promo-left p {
    margin: 0;
    font-size: 13px;
    color: var(--text-main, #E4E7EB);
}

.btn-promo-action {
    background: rgba(255, 210, 76, 0.15);
    border: 1px solid rgba(255, 210, 76, 0.4);
    color: #FFD24C;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-promo-action:hover {
    background: rgba(255, 210, 76, 0.28);
    box-shadow: 0 0 12px rgba(255, 195, 60, 0.25);
    transform: translateY(-1px);
}

/* Ukryj banery reklamowe zakupu PRO gdy użytkownik ma już PRO lub jest adminem */
body.is-pro .dl-promo-card {
    display: none !important;
}

/* ============================================================================
   AUTORYZACJA GOOGLE & NOWOCZESNE OKNO LOGOWANIA
   ============================================================================ */

.auth-modal-container {
    background: rgba(18, 20, 28, 0.95) !important;
    backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(15, 145, 210, 0.1) !important;
}

.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FFFFFF;
    color: #1F2328 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    box-sizing: border-box;
}

.btn-google-auth:hover {
    background: #F3F4F6;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-google-auth:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 16px 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================================================
   ADMIN ROLE SWITCHER BAR (Pasek wyboru roli)
   ============================================================================ */

.admin-role-bar {
    position: fixed;
    bottom: max(22px, env(safe-area-inset-bottom, 22px));
    right: max(24px, env(safe-area-inset-right, 24px));
    top: auto;
    left: auto;
    transform: none;
    z-index: 10001;
    background: rgba(18, 20, 28, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 210, 76, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 195, 60, 0.15);
    border-radius: 30px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    animation: adminBarSlideBottomRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-role-bar.is-hidden-toggle {
    transform: translateY(30px) scale(0.9) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes adminBarSlideBottomRight {
    0% {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.admin-role-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-role-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #FFD24C;
    padding: 2px 8px 2px 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.admin-role-pills {
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-pill-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.role-pill-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.role-pill-btn.active {
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.25) 0%, rgba(255, 167, 81, 0.2) 100%);
    color: #FFD24C;
    border-color: rgba(255, 210, 76, 0.5);
    box-shadow: 0 0 10px rgba(255, 195, 60, 0.2);
}

@media (max-width: 768px) {
    .admin-role-bar {
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        right: 12px;
        left: auto;
        padding: 4px 8px;
        border-radius: 24px;
    }

    .admin-role-badge {
        display: none;
    }
}

/* Przełącznik zakresu plików w nagłówku panelu */
.admin-scope-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3px;
}

.scope-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scope-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.scope-btn.active {
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.2) 0%, rgba(255, 167, 81, 0.15) 100%);
    color: #FFD24C;
    border-color: rgba(255, 210, 76, 0.4);
    box-shadow: 0 0 10px rgba(255, 195, 60, 0.15);
}

/* ==========================================================================
   SLOTY REKLAMOWE & PRO AD-FREE ENGINE
   ========================================================================== */
.ad-container {
    width: 100%;
    margin: 16px 0;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.ad-container.ad-slot-top {
    margin-bottom: 20px;
}

.ad-container.ad-slot-bottom {
    margin-top: 24px;
    margin-bottom: 16px;
}

.ad-container.ad-slot-success {
    margin: 8px 0 2px 0;
    overflow: visible;
    width: 100%;
}

.ad-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

/* Zabezpieczenie układu i tła strony przed inwazyjnymi reklamami */
.ad-container {
    width: 100%;
    max-width: 520px;
    margin: 14px 0;
    overflow: visible;
    border-radius: 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

ins.adsbygoogle {
    background: transparent !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ad-content {
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content:empty,
.ad-container:empty {
    display: none !important;
}

/* Nowoczesny Luksusowy Baner Reklamowy i Afiliacyjny Dropsite (Z Auto-Rotacją) */
.dropsite-ad-banner {
    width: 100%;
    background: linear-gradient(165deg, rgba(22, 27, 38, 0.88) 0%, rgba(12, 15, 22, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(196, 231, 212, 0.28);
    border-radius: 16px;
    padding: 16px 18px 14px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 11px;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dropsite-ad-banner:hover {
    border-color: rgba(196, 231, 212, 0.45);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 20px rgba(196, 231, 212, 0.12);
    transform: translateY(-1px);
}

.ad-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1.4;
    padding-top: 1px;
}

.ad-tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 231, 212, 0.15);
    color: #C4E7D4;
    border: 1px solid rgba(196, 231, 212, 0.3);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.ad-pro-link {
    color: #FFD24C;
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.ad-pro-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.ad-banner-body {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ad-banner-body.ad-animating {
    opacity: 0;
    transform: translateX(8px);
}

.ad-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.dropsite-ad-banner:hover .ad-icon-box {
    transform: scale(1.06);
}

.ad-info-text {
    flex-grow: 1;
    overflow: hidden;
}

.ad-banner-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-banner-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-ad-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ad-action:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Pasek wskaźników rotatora (Kropki & Strzałki) */
.ad-rotator-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-dots-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-dot-pill {
    width: 6px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-dot-pill.active {
    width: 18px;
    background: #C4E7D4;
    box-shadow: 0 0 8px rgba(196, 231, 212, 0.6);
}

.ad-arrow-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ad-arrow-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.ad-arrow-btn:hover {
    color: #C4E7D4;
    background: rgba(255, 255, 255, 0.08);
}

/* CAŁKOWITE WYŁĄCZENIE REKLAM DLA UŻYTKOWNIKÓW PRO I ADMINA */
body.is-pro .ad-container,
body.is-admin .ad-container {
    display: none !important;
}

@media (max-width: 540px) {
    .ad-banner-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-ad-action {
        width: 100%;
    }
}

/* === PRZYCISKI I WIDOKI DOKUMENTÓW PRAWNYCH === */
.btn-legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main, #FFFFFF);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: fit-content;
    text-decoration: none;
    line-height: 1;
}

.btn-legal-back:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(15, 145, 210, 0.6);
    color: #FFFFFF;
    transform: translateX(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-legal-back svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-legal-back:hover svg {
    transform: translateX(-2px);
}

.btn-legal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main, #FFFFFF);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1;
    min-width: 150px;
    text-decoration: none;
}

.btn-legal-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.legal-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-legal-pill:hover .legal-pill-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* === EKSPLORATOR ARCHIWUM ZIP & PODGLĄD WIELU PLIKÓW / FOLDERÓW === */
.multifile-upload-preview,
.archive-explorer-box {
    width: 100%;
    background: rgba(14, 18, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
    box-sizing: border-box;
}

.mf-header,
.archive-explorer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.mf-folder-icon-box,
.archive-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 188, 57, 0.12);
    border: 1px solid rgba(255, 188, 57, 0.3);
    color: #FFBC39;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mf-title-box,
.archive-title-box {
    flex-grow: 1;
    overflow: hidden;
}

.mf-bundle-title,
.archive-bundle-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-bundle-sub,
.archive-bundle-sub {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted, #94A3B8);
    margin-top: 2px;
}

.mf-list-scroll,
.archive-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
}

.mf-list-scroll::-webkit-scrollbar,
.archive-file-list::-webkit-scrollbar {
    width: 5px;
}

.mf-list-scroll::-webkit-scrollbar-thumb,
.archive-file-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mf-file-row,
.archive-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 9px;
    transition: all 0.2s ease;
}

.mf-file-row:hover,
.archive-file-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.mf-file-left,
.archive-file-left {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    flex-grow: 1;
}

.mf-file-icon,
.archive-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.mf-file-name,
.archive-file-name {
    font-size: 12px;
    font-weight: 500;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-file-right,
.archive-file-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mf-size-badge,
.archive-size-badge {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted, #94A3B8);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
}

.btn-archive-dl-single {
    background: rgba(196, 231, 212, 0.12);
    border: 1px solid rgba(196, 231, 212, 0.3);
    color: #C4E7D4;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-archive-dl-single:hover {
    background: #C4E7D4;
    color: #0A0C10;
    transform: scale(1.04);
}

.btn-archive-preview-single {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-archive-preview-single:hover {
    background: #38BDF8;
    color: #0A0C10;
    transform: scale(1.04);
}

.archive-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 10px;
    color: #94A3B8;
    transition: border-color 0.2s ease;
}

.archive-search-wrap:focus-within {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.archive-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #F8FAFC;
    font-size: 12px;
    width: 100%;
}

.archive-search-input::placeholder {
    color: #64748B;
}

.archive-count-badge {
    font-size: 10.5px;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.archive-preview-code {
    max-height: 620px;
    overflow: auto;
    background: #090B10;
    color: #34D399;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    text-align: left;
}

/* =========================================================================
   DROPSITE SMART MULTI-UPLOAD: MODE SWITCHER (ZIP VS KOLEKCJA / ALBUM)
   ========================================================================= */
.mf-mode-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.mf-mode-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.mf-mode-tab:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.mf-mode-tab.active {
    color: #F8FAFC;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mf-mode-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    letter-spacing: 0.02em;
}

.mf-mode-tab.active .mf-mode-badge.mf-badge-highlight {
    background: rgba(52, 211, 153, 0.25);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.mf-collection-custom-title-wrap {
    margin-bottom: 12px;
}

.mf-collection-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 8px 12px;
    color: #F8FAFC;
    font-size: 12.5px;
    outline: none;
    transition: all 0.2s ease;
}

.mf-collection-input:focus {
    border-color: #34D399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
    background: rgba(0, 0, 0, 0.45);
}

.mf-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.mf-collection-grid::-webkit-scrollbar {
    width: 5px;
}

.mf-collection-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mf-collection-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.mf-collection-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-2px);
}

.mf-collection-thumb-box {
    width: 100%;
    height: 78px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mf-collection-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mf-collection-thumb-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mf-collection-type-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.3);
    text-transform: uppercase;
}

.mf-collection-card-info {
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mf-collection-card-name {
    font-size: 11px;
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-collection-card-size {
    font-size: 10px;
    color: #94A3B8;
}

.mf-collection-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34D399;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mf-collection-card:hover .mf-collection-play-icon {
    background: rgba(52, 211, 153, 0.85);
    color: #0A0C10;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.6);
}

/* === DROPSITE PRO SUPERPOWERS STYLING === */
.badge-pro-pill {
    background: linear-gradient(135deg, #FFBC39, #E69B19);
    color: #0B0E14;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 188, 57, 0.4);
}

/* Karta / Baner Brandingu Twórcy na stronie pobierania */
.creator-branding-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 188, 57, 0.08), rgba(20, 24, 32, 0.7));
    border: 1px solid rgba(255, 188, 57, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    margin: 0 auto 16px auto;
    max-width: 480px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.4s ease-out;
}

.creator-branding-banner .brand-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFBC39, #FF7E1D);
    color: #0B0E14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 188, 57, 0.5);
}

.creator-branding-banner .brand-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.creator-branding-banner .brand-label {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.creator-branding-banner .brand-title {
    font-size: 14.5px;
    color: #FFD56B;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Tarcza Pancernego Szyfrowania AES-256 (Zero-Knowledge) */
.vault-security-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6EE7B7;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 auto 14px auto;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
    animation: fadeIn 0.4s ease-out;
}

/* Przycisk Kopiowania Direct Stream URL */
.btn-stream-link {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #DDD6FE !important;
    transition: all 0.25s ease !important;
}

.btn-stream-link:hover {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: #A78BFA !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

/* =======================================================
   DROPSITE TOOLBOX (PDF & MEDIA TOOLS) DESIGN SYSTEM
   ======================================================= */
#view-narzedzia .main-wrapper {
    max-width: 1040px !important;
    width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
}

/* 1. BEZRAMKOWY KONTENER STUDIO (BORDERLESS STUDIO STAGE) */
.toolbox-container {
    position: relative;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ŚWIETLNA AURA W TLE SCENY ROBOCZEJ (CYBER MINT / ELECTRIC CYAN) */
.toolbox-container::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 90vw);
    height: 280px;
    background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.12) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 72%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

.toolbox-container .upload-header {
    position: relative;
    z-index: 1;
    text-align: center !important;
    margin-bottom: clamp(24px, 3.5vw, 36px) !important;
}

.toolbox-container .upload-header h1 {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 0 0 10px 0;
    color: #FFFFFF;
}

.toolbox-container .upload-header p {
    font-size: clamp(13.5px, 1.4vw, 15.5px);
    color: #94A3B8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.toolbox-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #34D399;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   DROPSITE TOOLBOX CATEGORIZED NAVIGATION (OBSIDIAN GLASS SYSTEM)
   ========================================================================== */

/* 1. GŁÓWNY PŁYWAJĄCY SEGMENT KATEGORII (FLOATING SEGMENTED BAR) */
.toolbox-categories-bar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px auto;
    background: rgba(13, 18, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow:
        0 14px 35px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toolbox-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #94A3B8;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
    user-select: none;
}

.toolbox-cat-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.toolbox-cat-btn:active {
    transform: scale(0.97);
}

.toolbox-cat-btn.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18) 0%, rgba(56, 189, 248, 0.12) 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
    border-top: 1px solid rgba(52, 211, 153, 0.7) !important;
    box-shadow:
        0 4px 18px rgba(52, 211, 153, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    animation: catBtnSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes catBtnSpring {
    0% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.toolbox-cat-btn.active svg {
    color: #34D399;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.6));
}

.toolbox-cat-count {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    transition: all 0.2s ease;
}

.toolbox-cat-btn.active .toolbox-cat-count {
    background: rgba(52, 211, 153, 0.25);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

/* 2. PASEK PODZAKŁADEK DLA WYBRANEJ KATEGORII (SUB-TABS) */
.toolbox-subnav-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: clamp(24px, 3.5vw, 32px);
}

.toolbox-subnav-group {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.toolbox-subnav-group.active {
    display: flex !important;
    animation: subnavGroupFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes subnavGroupFade {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toolbox-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 11px 24px;
    min-height: 44px;
    color: #CBD5E1;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    user-select: none;
}

.toolbox-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.toolbox-tab-btn:active {
    transform: scale(0.97);
}

.toolbox-tab-btn.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(52, 211, 153, 0.16) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.85) !important;
    box-shadow:
        0 6px 22px rgba(56, 189, 248, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    animation: tabBtnSpring 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabBtnSpring {
    0% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.toolbox-tab-btn.active svg {
    color: #38BDF8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}

.toolbox-tab-btn svg {
    flex-shrink: 0;
}

/* 3. LEWITUJĄCA KARTA NARZĘDZIA (OBSIDIAN STUDIO STAGE) */
.tool-panel {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    animation: toolPanelFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toolPanelFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.992);
        filter: brightness(1.04);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

.tool-card-box {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(16, 18, 24, 0.45) 0%, rgba(10, 12, 16, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: clamp(26px, 4vw, 42px);
    box-shadow:
        0 30px 80px -15px rgba(0, 0, 0, 0.6),
        0 0 45px -10px rgba(52, 211, 153, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 4. PANORAMICZNA, PRZEWIEWNA STREFA UPUSZCZANIA (SPACIOUS DROPZONE) */
.tool-dropzone {
    position: relative;
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: clamp(42px, 5.5vw, 60px) clamp(20px, 3vw, 36px);
    text-align: center;
    cursor: pointer;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 24px;
}

.tool-dropzone:hover,
.tool-dropzone.drag-over {
    border-color: #34D399;
    background: radial-gradient(circle at 50% 30%, rgba(52, 211, 153, 0.12) 0%, rgba(56, 189, 248, 0.04) 100%);
    box-shadow:
        0 14px 40px rgba(52, 211, 153, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tool-drop-icon {
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-dropzone:hover .tool-drop-icon {
    transform: scale(1.12) translateY(-3px);
}

/* ==========================================================================
   RESPONSYWNOŚĆ MOBILNA (MOBILE STUDIO ERGONOMICS <= 768px & <= 480px)
   ========================================================================== */
@media (max-width: 768px) {
    #view-narzedzia {
        overflow-x: hidden;
    }

    #view-narzedzia .main-wrapper {
        padding: 0 12px;
        box-sizing: border-box;
    }

    .toolbox-container .upload-header {
        margin-bottom: 16px !important;
    }

    .toolbox-container .upload-header h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .toolbox-container .upload-header p {
        font-size: 13px;
        line-height: 1.45;
    }

    /* PŁYWAJĄCY PASEK KATEGORII NA MOBILE: flex-start + przewijanie od pierwszej zakładki */
    .toolbox-categories-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 16px auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center;
        border-radius: 999px;
        padding: 4px 6px;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .toolbox-categories-bar::-webkit-scrollbar {
        display: none;
    }

    .toolbox-cat-btn {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        padding: 8px 14px;
        font-size: 12.5px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .toolbox-cat-count {
        font-size: 9.5px;
        padding: 1px 6px;
    }

    .toolbox-subnav-container {
        margin-bottom: 18px;
        width: 100%;
    }

    /* TYLKO AKTYWNA GRUPA JEST WIDOCZNA NA MOBILE */
    .toolbox-subnav-group {
        display: none !important;
        width: 100%;
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .toolbox-subnav-group.active {
        display: flex !important;
    }

    .toolbox-tab-btn {
        flex: 1 1 calc(50% - 6px);
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 10px;
        white-space: nowrap;
        justify-content: center;
    }

    .tool-card-box {
        padding: 18px 12px;
        border-radius: 18px;
    }

    .tool-dropzone {
        padding: 28px 12px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .tool-drop-icon {
        margin-bottom: 10px;
    }

    .tool-drop-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .toolbox-subnav-group {
        display: none !important;
    }

    .toolbox-subnav-group.active {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .toolbox-tab-btn {
        flex: 1 1 calc(50% - 4px);
        font-size: 11.5px;
        padding: 8px 8px;
        min-height: 36px;
    }

    /* Gdy jest nieparzysta liczba elementów (np. 3), ostatni ładnie wyśrodkowany */
    .toolbox-subnav-group[data-cat-group="organize"] .toolbox-tab-btn:last-child {
        flex: 1 1 100%;
        max-width: 240px;
        margin: 0 auto;
    }
}

.tool-drop-title {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 6px;
}

.tool-drop-sub {
    display: block;
    font-size: 13px;
    color: #94A3B8;
}

/* Manager listy plików PDF do łączenia */
.tool-file-manager {
    margin-bottom: 20px;
}

.tool-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 0 4px;
}

.tool-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.tool-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.tool-file-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.tool-file-idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.tool-file-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tool-file-name {
    font-size: 13.5px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.tool-file-size {
    font-size: 11.5px;
    color: var(--text-muted);
}

.tool-file-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-tool-reorder,
.btn-tool-delete {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

.btn-tool-reorder:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.btn-tool-reorder:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-tool-delete:hover {
    background: rgba(255, 68, 57, 0.2);
    border-color: #FF4439;
    color: #FF8E72;
}

.tool-action-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    background: var(--gradient-accent, linear-gradient(135deg, #0F91D2 0%, #0284C7 100%));
    border: none;
    color: #FFFFFF;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(15, 145, 210, 0.3);
    outline: none;
}

.tool-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 145, 210, 0.45);
}

.tool-action-btn:disabled {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted, #94A3B8) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.tool-empty-placeholder {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 12.5px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* =======================================================
   DROPSITE PDF STUDIO DESIGN SYSTEM
   ======================================================= */
.studio-doc-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.studio-doc-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex-wrap: wrap;
}

.studio-filename {
    font-size: 13px;
    color: #FFFFFF;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-filesize {
    font-size: 11.5px;
    color: var(--text-muted);
}

.studio-doc-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
}

.btn-studio-file {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #CBD5E1;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-studio-file:hover {
    background: rgba(196, 231, 212, 0.15);
    border-color: rgba(196, 231, 212, 0.45);
    color: #C4E7D4;
    box-shadow: 0 2px 10px rgba(196, 231, 212, 0.2);
}

.btn-studio-file.btn-studio-file-reset {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
}

.btn-studio-file.btn-studio-file-reset:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #FFFFFF;
}

.studio-zoom-ctrls {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 2px 4px;
    margin-right: 4px;
}

.studio-zoom-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    min-width: 36px;
    text-align: center;
}

.studio-page-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-studio-nav {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-studio-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-studio-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.studio-page-indicator {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 84px;
    text-align: center;
}

.studio-page-ops {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-studio-op {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-studio-op:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.btn-studio-op.btn-op-danger:hover {
    background: rgba(255, 68, 57, 0.2);
    border-color: #FF4439;
    color: #FF8E72;
}

.studio-ribbon {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.studio-ribbon-btn {
    flex: 1;
    min-width: 85px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.studio-ribbon-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.studio-ribbon-btn.active {
    background: rgba(15, 145, 210, 0.15);
    color: #FFFFFF;
    border-color: var(--accent-blue);
    box-shadow: 0 2px 10px rgba(15, 145, 210, 0.25);
}

.studio-prop-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    min-height: 48px;
    box-sizing: border-box;
}

.prop-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prop-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.prop-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 10px;
    color: #FFFFFF;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
}

.prop-input:focus {
    border-color: var(--accent-blue);
}

.prop-select {
    background: #12141C;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 8px;
    color: #FFFFFF;
    font-size: 12px;
    font-family: inherit;
    outline: none;
}

.prop-colors {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.prop-color-pill {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.prop-color-pill:hover {
    transform: scale(1.15);
}

.prop-color-pill.active {
    border-color: #FFFFFF;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.prop-btn-stamp {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 68, 57, 0.15);
    border: 1px dashed #FF4439;
    color: #FF8E72;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.prop-btn-stamp:hover {
    background: rgba(255, 68, 57, 0.3);
    color: #FFFFFF;
}

.prop-btn-del {
    background: rgba(255, 68, 57, 0.12);
    border: 1px solid rgba(255, 68, 57, 0.3);
    color: #FF8E72;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}

.prop-btn-del:hover {
    background: rgba(255, 68, 57, 0.25);
    color: #FFFFFF;
}

.studio-viewport-stage {
    width: 100%;
    min-height: 540px;
    max-height: 76vh;
    overflow: auto !important;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #080B12;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 16px;
    box-sizing: border-box;
    position: relative;
}

.studio-sheet-wrap {
    position: relative;
    margin: 0 auto;
    flex-shrink: 0 !important;
    background: #FFFFFF;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    line-height: 0;
    transform-origin: top center;
    box-sizing: content-box !important;
}

#pdfRenderCanvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.pdf-overlay-layer {
    position: absolute;
    inset: 0;
    cursor: crosshair;
    overflow: hidden;
}

/* Draggable & editable items on the PDF */
.pdf-item-wrap {
    position: absolute;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.15s ease;
    z-index: 10;
}

.pdf-item-wrap:active {
    cursor: grabbing;
}

.pdf-item-wrap.selected {
    outline: 2px dashed #0F91D2;
    outline-offset: 2px;
}

/* Przycisk usuwania widoczny TYLKO przy zaznaczeniu lub najechaniu myszką */
.pdf-item-del-btn {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #EF4444;
    color: #FFFFFF;
    border: 1.5px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: scale(0.8);
}

.pdf-item-wrap.selected .pdf-item-del-btn,
.pdf-item-wrap:hover .pdf-item-del-btn {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.pdf-item-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.pdf-item-text[contenteditable="true"] {
    outline: 2px solid #0F91D2 !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: text;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    min-width: 60px;
}

.pdf-item-sig img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.pdf-item-highlight {
    border-radius: 2px;
}

.pdf-item-censor {
    border-radius: 2px;
}

/* =======================================================
   AUTENTYCZNE WZORY PIECZĘCI DROPSITE STUDIO
   ======================================================= */
.pdf-item-stamp {
    user-select: none;
    cursor: grab;
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1.25;
    padding: 3px 6px;
}

.pdf-item-stamp .stamp-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.15;
}

.pdf-item-stamp .stamp-sub {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.15;
    margin-top: 1px;
}

/* 1. ZATWIERDZONO - Podwójna obwódka, pieczęć akceptacji */
.pdf-item-stamp.stamp-type-approved {
    border: 2.5px solid #16A34A;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.08);
    color: #16A34A;
    padding: 4px 8px;
    box-shadow: inset 0 0 0 1.5px rgba(22, 163, 74, 0.4);
    transform: rotate(-3deg);
}

.stamp-type-approved .stamp-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    display: block;
}

.stamp-type-approved .stamp-sub {
    font-size: 8.5px;
    font-weight: 600;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

/* 2. OPŁACONO - Podwójna ramka kasowa, gwiazdki */
.pdf-item-stamp.stamp-type-paid {
    border: 3px double #0284C7;
    border-radius: 4px;
    background: rgba(2, 132, 199, 0.08);
    color: #0284C7;
    padding: 3px 6px;
    text-align: center;
    transform: rotate(2deg);
}

.stamp-type-paid .stamp-title {
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: block;
}

.stamp-type-paid .stamp-sub {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 1px;
}

/* 3. ŚCIŚLE POUFNE - Wyrazista czerwona ramka z gwiazdkami */
.pdf-item-stamp.stamp-type-confidential {
    border: 2.5px solid #DC2626;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.09);
    color: #DC2626;
    padding: 3px 6px;
    text-align: center;
    box-shadow: inset 0 0 0 1px #DC2626;
    transform: rotate(-5deg);
}

.stamp-type-confidential .stamp-title {
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: block;
}

.stamp-type-confidential .stamp-sub {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 1px;
}

/* 4. ZA ZGODNOŚĆ Z ORYGINAŁEM - Przerywana kancelaryjna */
.pdf-item-stamp.stamp-type-copy {
    border: 2px dashed #4338CA;
    border-radius: 8px;
    background: rgba(67, 56, 202, 0.08);
    color: #4338CA;
    padding: 3px 6px;
    text-align: center;
    transform: rotate(-1deg);
}

.stamp-type-copy .stamp-title {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: block;
}

.stamp-type-copy .stamp-sub {
    font-size: 8px;
    font-weight: 600;
    display: block;
    margin-top: 1px;
}

/* 5. PILNE - Ostrzegawcza ramka z błyskawicami */
.pdf-item-stamp.stamp-type-urgent {
    border: 2.5px solid #D97706;
    border-radius: 4px;
    background: rgba(217, 119, 6, 0.1);
    color: #D97706;
    padding: 3px 6px;
    text-align: center;
    transform: rotate(-3deg);
}

.stamp-type-urgent .stamp-title {
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: block;
}

/* 6. WŁASNA PIECZĄTKA */
.pdf-item-stamp.stamp-type-custom {
    border: 2px solid #8B5CF6;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.08);
    color: #8B5CF6;
    padding: 6px 14px;
    text-align: center;
    font-weight: 800;
}

.stamp-type-custom .stamp-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.pdf-item-link {
    border: 1px dashed #0F91D2;
    background: rgba(15, 145, 210, 0.15);
    color: #0F91D2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    border-radius: 4px;
    padding: 4px 6px;
}

/* =======================================================
   PŁYWAJĄCY TOOLBAR (FLOATING PILL MENU ZE ZDJĘCIA)
   ======================================================= */
.studio-float-pill {
    position: absolute;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 6px 4px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    user-select: none;
    animation: pillFloatIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}

@keyframes pillFloatIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateX(-6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.float-pill-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.float-pill-btn:hover {
    background: #F1F5F9;
    color: #0F91D2;
    transform: scale(1.08);
}

.float-pill-btn.active {
    background: #E0F2FE;
    color: #0284C7;
}

.float-pill-btn svg {
    display: block;
}

.float-pill-btn.btn-float-del:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Podręczne mini-okienka rozwijane z pill toolbar */
.studio-float-popover {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #11141E;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 110;
    animation: popoverFade 0.15s ease;
}

@keyframes popoverFade {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.float-popover-left {
    left: auto;
    right: calc(100% + 8px);
}

.float-size-badge {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    min-width: 44px;
    text-align: center;
}

.float-mini-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s ease;
}

.float-mini-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.float-color-pill {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.float-color-pill:hover {
    transform: scale(1.2);
}

.float-color-pill.active {
    border-color: #FFFFFF;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.studio-bottom-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.studio-export-options {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.studio-export-options:hover {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(15, 23, 42, 0.85);
}

.studio-cert-toggle {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.studio-cert-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.studio-cert-toggle-slider {
    position: relative;
    width: 38px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-top: 2px;
}

.studio-cert-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.studio-cert-toggle input:checked+.studio-cert-toggle-slider {
    background: #10B981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.studio-cert-toggle input:checked+.studio-cert-toggle-slider::before {
    transform: translateX(16px);
}

.studio-cert-toggle-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.studio-cert-toggle-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #F8FAFC;
    line-height: 1.3;
}

.studio-cert-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.18);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.studio-cert-toggle-sub {
    font-size: 0.77rem;
    color: #94A3B8;
    line-height: 1.4;
}

/* Modal Signature Pad & Studio Modals */
.signature-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    will-change: opacity, backdrop-filter;
    animation: smoothBackdropIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.signature-modal-backdrop.is-closing {
    animation: smoothBackdropOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.signature-modal-backdrop.is-closing .signature-modal-box {
    animation: smoothModalOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.signature-modal-box {
    background: #11141E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    animation: smoothModalIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sig-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sig-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.sig-modal-title h3 {
    margin: 0;
    font-size: 16px;
}

.sig-modal-body {
    padding: 20px 24px;
}

.sig-instruction {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.sig-canvas-wrap {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #CBD5E1;
    cursor: crosshair;
}

#sigPadCanvas {
    display: block;
    width: 100%;
    height: 200px;
    touch-action: none;
}

.sig-canvas-baseline {
    position: absolute;
    bottom: 40px;
    left: 24px;
    right: 24px;
    height: 1px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.sig-tools-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.sig-colors-picker {
    display: flex;
    gap: 10px;
}

.sig-color-choice {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.sig-color-choice.active {
    border-color: #0F91D2;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(15, 145, 210, 0.5);
}

.sig-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-sig-upload {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.sig-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =======================================================
   KONWERTER FORMATÓW & CHIPY WYBORU
   ======================================================= */
.tool-loaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.format-chips-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.format-chip {
    position: relative;
    cursor: pointer;
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
}

.format-chip[style*="display: none"] {
    display: none !important;
}

.format-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.format-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
}

.format-chip:hover span {
    border-color: rgba(255, 255, 255, 0.18);
    color: #F1F5F9;
}

.format-chip input:checked+span {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22C55E;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

.tool-range-slider {
    width: 100%;
    margin-top: 8px;
    accent-color: var(--accent-blue);
}

/* =======================================================
   KARTA WYNIKU ZAKOŃCZENIA (POŁĄCZONO / PRZEKONWERTOWANO)
   ======================================================= */
.tool-result-card {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 20px;
    margin-top: 24px;
    animation: slideInUp 0.4s ease;
}

.tool-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tool-result-badge {
    background: #22C55E;
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tool-result-filename {
    font-size: 14.5px;
    color: #FFFFFF;
    word-break: break-all;
}

.tool-result-status {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.tool-result-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-top: 16px;
}

.btn-tool-dl,
.btn-tool-send {
    flex: 1;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    outline: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Przycisk Pobierz Plik (Zielony akcent sukcesu) */
.btn-tool-dl {
    background: #22C55E !important;
    border: 1px solid #16A34A !important;
    color: #090A0F !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
}

.btn-tool-dl:hover {
    background: #4ADE80 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45) !important;
}

/* Przycisk Wyślij przez Dropsite (Błękitny akcent platformy) */
.btn-tool-send {
    background: rgba(15, 145, 210, 0.15) !important;
    border: 1px solid var(--accent-blue, #0F91D2) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(15, 145, 210, 0.2) !important;
}

.btn-tool-send:hover {
    background: var(--accent-blue, #0F91D2) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(15, 145, 210, 0.4) !important;
}

.btn-tool-dl svg,
.btn-tool-send svg {
    flex-shrink: 0 !important;
}

/* ==========================================================================
   PDF STUDIO PRO: KREATOR PIECZĘCI FIRMOWEJ, ZNAK WODNY, NUMEROWANIE, MINIATURKI
   ========================================================================== */

/* 1. KREATOR PIECZĘCI FIRMOWEJ */
.company-stamp-box {
    max-width: 780px !important;
    width: 95vw !important;
}

.company-stamp-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    padding: 20px 24px;
}

@media (max-width: 768px) {
    .company-stamp-body {
        grid-template-columns: 1fr;
    }
}

.company-stamp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.company-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stamp-shape-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stamp-shape-btn {
    flex: 1;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94A3B8;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stamp-shape-btn.active {
    background: #0F91D2;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 145, 210, 0.4);
}

.company-colors-picker {
    display: flex;
    gap: 10px;
}

.company-color-choice,
.wm-color-choice {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-color-choice:hover,
.wm-color-choice:hover {
    transform: scale(1.15);
}

.company-color-choice.active,
.wm-color-choice.active {
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(15, 145, 210, 0.6);
    transform: scale(1.18);
}

.company-stamp-preview-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 18px;
}

.preview-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.company-stamp-canvas-wrap {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

#companyStampCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.company-stamp-hint {
    font-size: 0.76rem;
    color: #94A3B8;
    text-align: center;
    margin-top: 14px;
    line-height: 1.35;
}

/* 2. ZNAK WODNY & PAGINACJA */
.watermark-modal-box,
.page-number-modal-box {
    max-width: 520px !important;
    width: 95vw !important;
}

.watermark-toggle-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.switch-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.switch-toggle-label input {
    display: none;
}

.switch-toggle-label .switch-slider {
    position: relative;
    width: 42px;
    height: 22px;
    background: #334155;
    border-radius: 20px;
    transition: background 0.25s ease;
    flex-shrink: 0;
    display: inline-block;
}

.switch-toggle-label .switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.switch-toggle-label input:checked+.switch-slider {
    background: #0F91D2;
}

.switch-toggle-label input:checked+.switch-slider::after {
    transform: translateX(20px);
}

.wm-presets-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #94A3B8;
}

.wm-preset-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wm-preset-pill:hover {
    background: rgba(15, 145, 210, 0.2);
    border-color: #0F91D2;
    color: #FFFFFF;
}

/* 3. BOCZNY PANEL MINIATUREK STRON (THUMBNAILS DRAWER) */
.studio-thumbs-drawer {
    position: sticky;
    top: 0;
    left: 0;
    align-self: stretch;
    min-height: 100%;
    width: 220px;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    animation: slideInThumbs 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-right: 16px;
}

@keyframes slideInThumbs {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.thumbs-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #FFFFFF;
}

.thumbs-drawer-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.thumbs-drawer-close:hover {
    color: #FFFFFF;
}

.thumbs-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.thumb-page-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.thumb-page-card:hover {
    border-color: rgba(15, 145, 210, 0.5);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.thumb-page-card.active {
    border-color: #0F91D2;
    background: rgba(15, 145, 210, 0.12);
    box-shadow: 0 0 0 2px rgba(15, 145, 210, 0.4);
}

.thumb-page-card.deleted {
    opacity: 0.4;
    border-color: #EF4444;
}

.thumb-page-canvas-wrap {
    width: 140px;
    height: 180px;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.thumb-page-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.thumb-page-num {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94A3B8;
}

.thumb-page-card.active .thumb-page-num {
    color: #38BDF8;
}

.thumb-del-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   DROPSITE UNIFIED DARK GLASS FORM & MODAL CONTROLS
   ========================================================================== */

/* Pola tekstowe i selektory we wszystkich modalach i toolboxie */
.tool-text-input,
.company-stamp-form input,
.watermark-modal-box input[type="text"],
.page-number-modal-box input[type="text"],
.studio-prompt-box input[type="text"] {
    width: 100%;
    background: rgba(18, 22, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tool-text-input:hover,
.company-stamp-form input:hover {
    background: rgba(24, 29, 44, 0.95);
    border-color: rgba(255, 255, 255, 0.22);
}

.tool-text-input:focus,
.company-stamp-form input:focus {
    background: rgba(20, 27, 44, 0.98);
    border-color: #0F91D2;
    box-shadow: 0 0 0 3px rgba(15, 145, 210, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tool-text-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Pola wyboru <select> w stylu dark glass z elegancką strzałką SVG */
select.tool-text-input,
.company-input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-color: rgba(18, 22, 34, 0.9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select.tool-text-input option {
    background-color: #0F131D;
    color: #FFFFFF;
    padding: 10px;
}

/* Kontrolki w pasku właściwości (property bar) */
.prop-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    padding: 5px 10px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.prop-input:focus {
    border-color: #0F91D2;
    background: rgba(15, 145, 210, 0.1);
    box-shadow: 0 0 0 2px rgba(15, 145, 210, 0.3);
}

.prop-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.prop-select option {
    background-color: #0F131D;
    color: #FFFFFF;
}

/* Przyciski w stopkach modali */
.btn-sm-ghost,
.sig-modal-footer .btn-sm-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-decoration: none;
}

.btn-sm-ghost:hover,
.sig-modal-footer .btn-sm-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-sm-ghost:active,
.sig-modal-footer .btn-sm-ghost:active {
    transform: translateY(0);
}

#btnChangeConvertFile:hover,
#btnChangeCompressFile:hover {
    background: rgba(196, 231, 212, 0.15);
    border-color: rgba(196, 231, 212, 0.45);
    color: #C4E7D4;
    box-shadow: 0 2px 12px rgba(196, 231, 212, 0.2);
}

/* Główny przycisk zatwierdzenia w modalach (luminous cyan/blue gradient) */
.sig-modal-footer .btn-primary {
    margin: 0 !important;
    padding: 11px 24px !important;
    width: auto !important;
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%) !important;
    color: #042f2e !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sig-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #99f6e4 0%, #2dd4bf 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 24px rgba(45, 212, 191, 0.6) !important;
    color: #022020 !important;
}

.sig-modal-footer .btn-primary:active {
    transform: translateY(0) !important;
}

/* Przycisk zamknięcia modala (✕) */
.btn-close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1;
}

.btn-close-modal:hover {
    background: rgba(255, 68, 57, 0.18);
    border-color: rgba(255, 68, 57, 0.35);
    color: #FF6B6B;
    transform: scale(1.05);
}

/* Suwaki <input type="range"> */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.18);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0F91D2;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(15, 145, 210, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(15, 145, 210, 0.9);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0F91D2;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(15, 145, 210, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Szybkie szablony (preset pills) w znaku wodnym */
.wm-preset-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wm-preset-pill:hover {
    background: rgba(15, 145, 210, 0.15);
    border-color: #0F91D2;
    color: #38BDF8;
}

/* Okno prompta (studioPromptModal) */
.studio-prompt-box {
    max-width: 480px !important;
}

/* ==========================================================================
   DROPSITE PDF STUDIO: PEŁNY EKRAN (FULLSCREEN WORKSPACE)
   ========================================================================== */
.btn-studio-fs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 145, 210, 0.12);
    border: 1px solid rgba(15, 145, 210, 0.35);
    color: #38BDF8;
    margin-left: 6px;
    padding: 4px 10px;
    font-weight: 600;
}

.btn-studio-fs:hover {
    background: rgba(15, 145, 210, 0.28);
    border-color: #0F91D2;
    color: #FFFFFF;
}

body.studio-fullscreen-active {
    overflow: hidden !important;
}

#editWorkspace:fullscreen,
#editWorkspace.studio-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 2147483647 !important;
    background: #070A14 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 20px 16px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

#editWorkspace:fullscreen .studio-doc-bar,
#editWorkspace.studio-fullscreen .studio-doc-bar {
    margin-bottom: 10px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#editWorkspace:fullscreen .studio-ribbon,
#editWorkspace.studio-fullscreen .studio-ribbon {
    margin-bottom: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#editWorkspace:fullscreen .studio-prop-bar,
#editWorkspace.studio-fullscreen .studio-prop-bar {
    flex-shrink: 0;
}

#editWorkspace:fullscreen .studio-viewport-stage,
#editWorkspace.studio-fullscreen .studio-viewport-stage {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    overflow: auto !important;
    border-radius: 16px !important;
    padding: 34px 20px !important;
    box-sizing: border-box !important;
    background: radial-gradient(circle at 50% 30%, rgba(15, 145, 210, 0.05) 0%, #06080F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.8) !important;
}

#editWorkspace:fullscreen .studio-sheet-wrap,
#editWorkspace.studio-fullscreen .studio-sheet-wrap {
    margin: 0 auto !important;
    transform-origin: top center !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

#editWorkspace:fullscreen .studio-bottom-actions,
#editWorkspace.studio-fullscreen .studio-bottom-actions {
    margin-top: 10px;
    padding-top: 8px;
    flex-shrink: 0;
}

#editWorkspace:fullscreen .btn-studio-fs,
#editWorkspace.studio-fullscreen .btn-studio-fs {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #F87171;
}

#editWorkspace:fullscreen .btn-studio-fs:hover,
#editWorkspace.studio-fullscreen .btn-studio-fs:hover {
    background: rgba(239, 68, 68, 0.32);
    border-color: #EF4444;
    color: #FFFFFF;
}

/* ==========================================================================
   DROPSITE TOOLBOX SUITE: HISTORIA UNDO/REDO, KSZTAŁTY, OBRAZY, KOMPRESOR
   ========================================================================== */

/* Kontrolki historii (Cofnij / Ponów) */
.studio-history-ctrls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-studio-op:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Obrazy / Logo wklejone do dokumentu */
.pdf-item-wrap[data-type="image"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-item-wrap[data-type="image"] img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Kształty geometryczne na scenie */
.pdf-item-wrap[data-type="shape"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-item-wrap[data-type="shape"] svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Przyciski kształtów w pasku właściwości */
.prop-shape-types {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prop-btn-shape {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.prop-btn-shape:hover,
.prop-btn-shape.active {
    background: rgba(15, 145, 210, 0.2);
    border-color: #0F91D2;
    color: #38BDF8;
}

/* Wieloplikowy konwerter obrazów */
.convert-multi-wrap {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.convert-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.convert-thumb-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.15s ease;
}

.convert-thumb-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
}

.convert-thumb-img-wrap {
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    overflow: hidden;
}

.convert-thumb-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.convert-thumb-name {
    font-size: 0.72rem;
    color: #CBD5E1;
    margin-top: 5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.convert-thumb-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.convert-thumb-del:hover {
    transform: scale(1.15);
    background: #EF4444;
}

/* Selektor DPI / Ostrości dla konwertera PDF -> Obrazy */
.convert-dpi-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.convert-dpi-chips .format-chip input:checked+span {
    background: rgba(15, 145, 210, 0.18);
    border-color: #0F91D2;
    color: #38BDF8;
    box-shadow: 0 2px 10px rgba(15, 145, 210, 0.25);
}

@media (max-width: 640px) {
    .convert-dpi-chips {
        grid-template-columns: 1fr;
    }
}

/* Interaktywna galeria wyrenderowanych stron PDF */
.convert-gallery-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.convert-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.convert-gallery-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.convert-gallery-title svg {
    color: #38BDF8;
}

.convert-gallery-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.convert-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding: 4px;
}

.convert-page-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.convert-page-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.convert-page-preview {
    position: relative;
    width: 100%;
    height: 190px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.convert-page-preview img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    transition: transform 0.25s ease;
}

.convert-page-card:hover .convert-page-preview img {
    transform: scale(1.04);
}

.convert-page-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #E2E8F0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.convert-page-badge svg {
    color: #38BDF8;
}

.convert-page-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(10, 15, 25, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 4px 6px;
    color: #94A3B8;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.convert-page-preview:hover .convert-page-zoom-hint {
    opacity: 1;
}

.convert-page-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: space-between;
}

.convert-page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.convert-page-res {
    color: #94A3B8;
    font-weight: 500;
}

.convert-page-size {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: #E2E8F0;
    font-weight: 600;
}

.btn-convert-page-dl {
    width: 100%;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ADE80;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-convert-page-dl:hover {
    background: #22C55E;
    color: #090A0F;
    border-color: #22C55E;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

.btn-convert-page-dl svg {
    flex-shrink: 0;
}


/* Profile kompresora PDF */
.compress-profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.compress-profile-card {
    background: rgba(18, 22, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.compress-profile-card input {
    display: none;
}

.compress-profile-card:hover {
    background: rgba(24, 30, 48, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.compress-profile-card.active,
.compress-profile-card:has(input:checked) {
    background: rgba(15, 145, 210, 0.12);
    border-color: #38BDF8;
    box-shadow: 0 0 16px rgba(15, 145, 210, 0.25);
}

.compress-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.compress-card-header strong {
    font-size: 0.92rem;
    color: #FFFFFF;
}

.compress-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
}

.compress-tag-rec {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399;
}

.compress-tag-max {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

.compress-card-content p {
    font-size: 0.78rem;
    color: #94A3B8;
    line-height: 1.4;
    margin: 0;
}

.compress-est-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   DROPSITE ADMIN SUPER-DASHBOARD (Executive Dark Glass)
   ========================================================================== */
.mod-modal.is-admin-dashboard .mod-container {
    max-width: 1220px !important;
    width: 95% !important;
    max-height: 92vh !important;
    padding: 24px 30px !important;
}

/* Pasek zakładek nawigacji admina (z przewijaniem łapką / drag-to-scroll) */
.admin-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 10, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 8px;
    margin-bottom: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: auto;
    touch-action: pan-x;
}

.admin-nav-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge, Opera */
    width: 0;
    height: 0;
}

.admin-nav-tabs.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.admin-nav-tabs.is-dragging .admin-tab-btn {
    pointer-events: none;
    /* Zapobiega przypadkowemu klikaniu zakładek tylko podczas faktycznego przeciągania */
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #94A3B8;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 2;
}

.admin-tab-btn * {
    pointer-events: none;
    /* Zapobiega przechwytywaniu zdarzeń kliknięcia przez ikony i tekst */
}

.admin-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(15, 145, 210, 0.22) 0%, rgba(16, 185, 129, 0.14) 100%);
    border-color: rgba(15, 145, 210, 0.4);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.admin-tab-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
}

.admin-tab-badge-alert {
    background: rgba(255, 68, 57, 0.25);
    color: #FF8E72;
    border: 1px solid rgba(255, 68, 57, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Panele zakładek */
.admin-tab-pane {
    overflow-y: auto;
    max-height: calc(88vh - 175px);
    padding-top: 8px;
    margin-top: -8px;
    padding-right: 4px;
}

.admin-tab-pane::-webkit-scrollbar {
    width: 6px;
}

.admin-tab-pane::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.admin-tab-pane::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* KPI Hero Cards */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.admin-kpi-card {
    background: linear-gradient(165deg, rgba(17, 22, 36, 0.7) 0%, rgba(10, 13, 22, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.admin-kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.admin-kpi-card.highlight-green::after {
    background: linear-gradient(90deg, #10B981, #059669);
}

.admin-kpi-card.highlight-blue::after {
    background: linear-gradient(90deg, #0F91D2, #38BDF8);
}

.admin-kpi-card.highlight-amber::after {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.admin-kpi-card.highlight-purple::after {
    background: linear-gradient(90deg, #8B5CF6, #6366F1);
}

.admin-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-kpi-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
}

.admin-kpi-icon {
    font-size: 1.15rem;
}

.admin-kpi-val {
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.admin-kpi-sub {
    font-size: 0.75rem;
    color: #64748B;
}

/* Glass Card Box */
.admin-card-box {
    background: linear-gradient(180deg, rgba(16, 21, 35, 0.65) 0%, rgba(9, 12, 20, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.admin-card-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-card-title-wrap h3,
.admin-card-title-wrap h4 {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-card-badge {
    background: rgba(15, 145, 210, 0.15);
    border: 1px solid rgba(15, 145, 210, 0.3);
    color: #38BDF8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Symulator Grid */
.admin-sim-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .admin-sim-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sim-metric-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-metric-label {
    font-size: 0.75rem;
    color: #94A3B8;
}

.sim-metric-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: #FFFFFF;
}

/* Mini stat row */
.admin-stats-mini-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-mini-stat {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94A3B8;
}

.admin-mini-stat strong {
    color: #FFFFFF;
    font-size: 14px;
}

/* Szybkie nadanie PRO */
.admin-quick-grant-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .admin-quick-grant-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Tabele Danych */
.admin-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.admin-table-responsive {
    overflow-x: auto;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-data-table th {
    padding: 10px 14px;
    color: #94A3B8;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.admin-data-table td {
    padding: 12px 14px;
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-data-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F91D2, #10B981);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-badge-pro {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}

.status-badge-free {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94A3B8;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
}

.status-badge-admin {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #C084FC;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}

/* Magazyn Danych & Odblokowanie */
.admin-storage-visual-box {
    margin-bottom: 20px;
}

.admin-storage-bar-outer {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.admin-storage-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6 0%, #34d399 100%);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.admin-storage-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94A3B8;
}

.admin-quota-unlock-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.admin-quota-pills {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

@media (max-width: 900px) {
    .admin-quota-pills {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .admin-quota-pills {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quota-pill-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quota-pill-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.quota-pill-btn strong {
    color: #FFFFFF;
    font-size: 14px;
}

.quota-pill-btn span {
    font-size: 10px;
    color: #94A3B8;
}

.quota-pill-btn.active {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10B981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.quota-pill-btn.active strong {
    color: #34D399;
}

.admin-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .admin-grid-2col {
        grid-template-columns: 1fr;
    }
}

.admin-cat-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Studio Workspace Smooth Entrance --- */
#editWorkspace:not([style*="display: none"]) {
    animation: smoothWorkspaceIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes smoothWorkspaceIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.992);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {

    .mod-modal:not([hidden]),
    .signature-modal-backdrop,
    .dl-lightbox-modal:not([hidden]),
    .mod-container,
    .signature-modal-box,
    .dl-lightbox-wrap,
    #editWorkspace {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==========================================================================
   TOOLBOX MARKETING & DISCOVERABILITY SHOWCASE (PREMIUM GLASS)
   ========================================================================== */
.nav-tool-tag {
    background: rgba(196, 231, 212, 0.18);
    color: var(--accent-green, #C4E7D4);
    border: 1px solid rgba(196, 231, 212, 0.35);
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 5.5px;
    border-radius: 6px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    top: -1px;
    box-shadow: 0 0 10px rgba(196, 231, 212, 0.2);
}

.feature-tag-tool {
    cursor: pointer;
    background: rgba(196, 231, 212, 0.12) !important;
    border-color: rgba(196, 231, 212, 0.3) !important;
    color: #FFFFFF !important;
    font-family: inherit;
}

.feature-tag-tool:hover {
    background: rgba(196, 231, 212, 0.22) !important;
    border-color: rgba(196, 231, 212, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 231, 212, 0.2);
}

.toolbox-hero-showcase {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(165deg, rgba(20, 24, 36, 0.88) 0%, rgba(10, 12, 18, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(196, 231, 212, 0.35);
    border-radius: 20px;
    padding: 20px 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(196, 231, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
    overflow: hidden;
    /* Fix: children cannot overflow or protrude */
    transition: all 0.25s ease;
}

.toolbox-hero-showcase:hover {
    border-color: rgba(196, 231, 212, 0.45);
}

.tb-showcase-header {
    margin-bottom: 16px;
    text-align: left;
}

.tb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(196, 231, 212, 0.12);
    border: 1px solid rgba(196, 231, 212, 0.3);
    color: #C4E7D4;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tb-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 5px 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.tb-desc {
    font-size: 12.5px;
    color: #8A8F98;
    margin: 0;
    line-height: 1.45;
}

.tb-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Fix: minmax(0, 1fr) strictly contains columns within parent */
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .tb-cards-grid {
        grid-template-columns: 1fr;
    }
}

.tb-card-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    color: inherit;
    position: relative;
    min-width: 0;
    /* Fix: prevents grid children from expanding */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tb-card-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 231, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.tb-card-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-merge {
    background: rgba(255, 68, 57, 0.16);
    color: #FF4439;
}

.icon-edit {
    background: rgba(15, 145, 210, 0.16);
    color: #0F91D2;
}

.icon-compress {
    background: rgba(255, 188, 57, 0.16);
    color: #FFBC39;
}

.icon-convert {
    background: rgba(196, 231, 212, 0.16);
    color: #C4E7D4;
}

.tb-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    /* Fix: required for ellipsis */
    overflow: hidden;
}

.tb-card-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-card-text span {
    font-size: 11px;
    color: #8A8F98;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.tb-arrow {
    color: #64748B;
    font-size: 13px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.tb-card-btn:hover .tb-arrow {
    color: #C4E7D4;
    transform: translateX(3px);
}

/* --- Features Interactive Cards --- */
.info-card-interactive {
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.info-card-interactive:hover {
    border-color: rgba(196, 231, 212, 0.45) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
}

/* --- Site Footer (SEO & Sticky Engine) --- */
.site-footer {
    margin-top: auto;
    /* Sticky: pins to bottom of viewport on short pages */
    width: 100%;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px 24px 85px 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 15;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 36px;
    text-align: left;
}

@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13.5px;
    color: #8A8F98;
    line-height: 1.6;
    margin: 0 0 16px 0;
    max-width: 380px;
}

.footer-copy {
    font-size: 12px;
    color: #555A64;
}

.footer-col h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col ul li a {
    color: #8A8F98;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #C4E7D4;
    transform: translateX(3px);
}

/* =========================================================================
   ROZDZIELANIE PDF (PDF SPLIT & EXTRACT) WIDGET STYLES
   ========================================================================= */
.split-card-box {
    border-color: rgba(255, 167, 81, 0.25) !important;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 167, 81, 0.08) !important;
}

.split-page-badge {
    background: rgba(255, 167, 81, 0.15);
    border: 1px solid rgba(255, 167, 81, 0.35);
    color: #FFA751;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.split-mode-container {
    margin: 18px 0;
}

.split-mode-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 600px) {
    .split-mode-selector {
        grid-template-columns: 1fr;
    }
}

.split-mode-option {
    display: block;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.split-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.split-mode-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.split-mode-option.active {
    background: linear-gradient(145deg, rgba(255, 167, 81, 0.12) 0%, rgba(255, 226, 89, 0.05) 100%);
    border-color: rgba(255, 167, 81, 0.55);
    box-shadow: 0 4px 20px rgba(255, 167, 81, 0.15);
}

.split-mode-card-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.split-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.split-mode-text-col strong {
    display: block;
    font-size: 14px;
    color: #F8FAFC;
    margin-bottom: 3px;
}

.split-mode-text-col p {
    font-size: 12px;
    color: var(--text-muted, #94A3B8);
    margin: 0;
    line-height: 1.4;
}

.split-controls-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-range-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 6px;
}

.split-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.split-text-input {
    width: 100%;
    padding-right: 140px !important;
}

.split-count-badge {
    position: absolute;
    right: 10px;
    background: rgba(255, 167, 81, 0.2);
    border: 1px solid rgba(255, 167, 81, 0.4);
    color: #FFA751;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    pointer-events: none;
}

.split-quick-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.split-quick-label {
    font-size: 12px;
    color: var(--text-muted, #94A3B8);
}

.btn-split-quick {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-split-quick:hover {
    background: rgba(255, 167, 81, 0.18);
    border-color: rgba(255, 167, 81, 0.4);
    color: #FFA751;
    transform: translateY(-1px);
}

.split-grid-wrapper {
    margin: 20px 0;
}

.split-grid-title-row {
    font-size: 12.5px;
    color: var(--text-muted, #94A3B8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.split-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding: 8px 4px 12px 4px;
    -webkit-overflow-scrolling: touch;
}

.split-pages-grid::-webkit-scrollbar {
    width: 6px;
}

.split-pages-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 167, 81, 0.35);
    border-radius: 8px;
}

.split-page-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.split-page-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.split-page-card.selected {
    border-color: #FFA751;
    background: rgba(255, 167, 81, 0.08);
    box-shadow: 0 4px 20px rgba(255, 167, 81, 0.2);
}

.split-page-card.selected .split-page-check {
    background: #FFA751;
    border-color: #FFA751;
    color: #121214;
}

.split-page-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: transparent;
    transition: all 0.2s ease;
}

.split-page-canvas-wrap {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.split-page-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.split-page-num {
    font-size: 11.5px;
    font-weight: 600;
    color: #E2E8F0;
}

/* =========================================================================
   TRYB SZPIEGOWSKI (MISSION: IMPOSSIBLE 007 - VIRAL ENGINE)
   ========================================================================= */

/* Badge VIRAL na przełączniku uploadu */
.badge-spy-viral-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.35));
    border: 1px solid rgba(245, 158, 11, 0.55);
    color: #FBBF24;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    animation: spyFlamePulse 2s ease-in-out infinite alternate;
}

@keyframes spyFlamePulse {
    0% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
        border-color: rgba(245, 158, 11, 0.45);
    }

    100% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.55), 0 0 24px rgba(245, 158, 11, 0.3);
        border-color: rgba(239, 68, 68, 0.7);
    }
}

/* Karta pobierania w trybie szpiegowskim */
.download-card.is-spy-active {
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.18) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Nakładka zasłaniająca (Hold to Reveal) */
.spy-mode-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(9, 11, 17, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.spy-mode-overlay.revealed {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
}

/* Wiązka radaru skanująca w tle */
.spy-scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), #EF4444, transparent);
    box-shadow: 0 0 18px #F59E0B;
    animation: spyScanMove 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes spyScanMove {
    0% {
        top: 0%;
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        top: 98%;
        opacity: 0.3;
    }
}

.spy-top-secret-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #F87171;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.spy-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 10px #EF4444;
    animation: spyBeaconPulse 1.2s infinite;
}

@keyframes spyBeaconPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 14px #EF4444;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.spy-lock-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #F59E0B;
}

.spy-title {
    font-size: 20px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.spy-subtitle {
    font-size: 13.5px;
    color: #94A3B8;
    max-width: 360px;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Kontener przycisku przytrzymania */
.spy-hold-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-spy-hold {
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-spy-hold:active,
.btn-spy-hold.is-pressing {
    transform: scale(0.95);
}

.spy-hold-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.spy-ring-bg {
    fill: rgba(15, 23, 42, 0.85);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 5px;
}

.spy-ring-progress {
    fill: none;
    stroke: #F59E0B;
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    /* 2 * PI * 52 */
    stroke-dashoffset: 326.7;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
    transition: stroke-dashoffset 0.05s linear;
}

.spy-hold-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #F8FAFC;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
}

.spy-hold-hint {
    font-size: 11.5px;
    color: #64748B;
    margin: 0;
    font-family: monospace;
    letter-spacing: 0.3px;
}

/* Pasek HUD odliczania samozniszczenia (po odsłonięciu) */
.spy-countdown-hud {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    animation: spyHudAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spyHudAppear {
    0% {
        transform: translateY(-12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.spy-countdown-hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.spy-countdown-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spy-countdown-flame {
    font-size: 18px;
    animation: spyFlameWiggle 1s infinite alternate;
}

@keyframes spyFlameWiggle {
    0% {
        transform: rotate(-6deg) scale(0.95);
    }

    100% {
        transform: rotate(6deg) scale(1.1);
    }
}

.spy-countdown-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #F87171;
    text-transform: uppercase;
}

.spy-countdown-timer {
    font-family: monospace;
    font-size: 18px;
    font-weight: 900;
    color: #FEE2E2;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.spy-countdown-hud.critical .spy-countdown-timer {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.25);
    animation: spyEmergencyBlink 0.4s infinite alternate;
}

@keyframes spyEmergencyBlink {
    0% {
        opacity: 0.6;
        transform: scale(0.97);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.spy-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.spy-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #EF4444, #F59E0B);
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* Animacja spopielenia / desintegracji karty */
.spy-disintegrating {
    animation: spyDisintegrate 0.85s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

@keyframes spyDisintegrate {
    0% {
        filter: brightness(1) blur(0px);
        transform: scale(1);
        opacity: 1;
    }

    30% {
        filter: brightness(2.5) contrast(2) blur(3px);
        box-shadow: 0 0 60px rgba(239, 68, 68, 0.8);
        transform: scale(1.02);
    }

    70% {
        filter: brightness(3) blur(12px);
        opacity: 0.6;
        transform: scale(0.98);
    }

    100% {
        filter: brightness(0) blur(24px);
        opacity: 0;
        transform: scale(0.92);
    }
}

/* Karta zniszczonego dokumentu (popiół / dym) */
.spy-destroyed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    animation: spyFadeInAshes 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spyFadeInAshes {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.spy-burn-ashes-icon {
    font-size: 54px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.4));
    animation: spySmokeFloat 3s infinite ease-in-out alternate;
}

@keyframes spySmokeFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

.spy-destroyed-title {
    font-size: 22px;
    font-weight: 800;
    color: #F87171;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.spy-destroyed-sub {
    font-size: 14px;
    color: #94A3B8;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   MONETYZACJA & KONWERSJA PRO (14,99 ZŁ)
   ========================================================================== */

.pro-modal-conv-banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 188, 57, 0.12) 0%, rgba(255, 107, 0, 0.05) 100%);
    border: 1px solid rgba(255, 188, 57, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(255, 188, 57, 0.1);
    animation: convBannerFadeIn 0.3s ease;
}

@keyframes convBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pro-modal-conv-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
    color: #121214;
    padding: 2px 8px;
    border-radius: 20px;
}

.pro-modal-conv-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.pro-modal-conv-desc {
    font-size: 12.5px;
    color: #CBD5E1;
    margin: 0;
    line-height: 1.45;
}

/* Modal Natywny BLIK */
.blik-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.blik-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blik-logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    filter: drop-shadow(0 2px 8px rgba(235, 0, 41, 0.3));
}

.blik-modal-amount {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: #FF4D6D;
    background: rgba(235, 0, 41, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 2px;
}

.blik-instruction-text {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 18px;
    text-align: center;
}

.blik-digits-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.blik-digit-input {
    width: 44px;
    height: 56px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
    caret-color: #FF4D6D;
    outline: none;
}

.blik-digit-input:focus {
    border-color: #EB0029;
    background: rgba(235, 0, 41, 0.06);
    box-shadow: 0 0 16px rgba(235, 0, 41, 0.4);
    transform: translateY(-2px);
}

.blik-digit-separator {
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.blik-submit-btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #EB0029 0%, #C40022 100%);
    border: 1px solid #FF3355;
    color: #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blik-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.blik-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(235, 0, 41, 0.45);
}

.blik-waiting-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    animation: blikFadeIn 0.3s ease;
}

.blik-spinner-ring {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(235, 0, 41, 0.18);
    border-top-color: #EB0029;
    border-radius: 50%;
    animation: blikSpin 1s linear infinite;
    margin-bottom: 18px;
}

@keyframes blikSpin {
    to {
        transform: rotate(360deg);
    }
}

.blik-waiting-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px;
}

.blik-waiting-info p {
    font-size: 13px;
    color: #94A3B8;
    margin: 0 0 16px;
    max-width: 320px;
    line-height: 1.45;
}

.blik-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(235, 0, 41, 0.1);
    border: 1px solid rgba(235, 0, 41, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #FF6B81;
}

.blik-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    animation: blikFadeIn 0.3s ease;
}

.blik-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.blik-success-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: #22C55E;
    margin: 0 0 6px;
}

.blik-success-state p {
    font-size: 13px;
    color: #CBD5E1;
    margin: 0;
    max-width: 320px;
    line-height: 1.45;
}

.blik-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 11px;
    color: #64748B;
    text-align: center;
    line-height: 1.4;
}

@keyframes blikFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================================
   PRIORYTET PODGLĄDU PLIKÓW (LIGHTBOX & ODTWARZACZ WIDEO NAD PANELEM MOJE PLIKI)
   ========================================================================= */
#videoPreviewModal,
#archiveQuickPreviewModal {
    z-index: 2000000 !important;
}

#proofingCommentModal {
    z-index: 2000100 !important;
}

.mod-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bug-report-pin {
    display: none !important;
}

.bug-report-pin:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: #FFBC39;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 188, 57, 0.35);
    background: rgba(32, 38, 58, 0.95);
    color: #FFFFFF;
}

.bug-report-pin:active {
    transform: translateY(0) scale(0.97);
}

.pin-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFBC39;
    flex-shrink: 0;
}

.pin-pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #FFBC39;
    border-radius: 50%;
    box-shadow: 0 0 8px #FFBC39;
    animation: pinPulse 2s infinite ease-in-out;
}

@keyframes pinPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.35;
    }
}

#feedbackModalWrap {
    z-index: 1050 !important;
}

@media (max-width: 600px) {
    .mod-header-actions {
        gap: 8px;
    }

    .bug-report-pin {
        padding: 6px 11px;
        font-size: 12px;
        gap: 6px;
    }
}

/* =========================================================================
   MODAL ZGŁASZANIA BŁĘDÓW (FEEDBACK MODAL)
   ========================================================================= */
.feedback-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 188, 57, 0.12);
    border: 1px solid rgba(255, 188, 57, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedback-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.feedback-cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.feedback-cat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.feedback-cat-pill.active {
    background: rgba(255, 188, 57, 0.15);
    border-color: rgba(255, 188, 57, 0.45);
    color: #FFBC39;
    box-shadow: 0 0 12px rgba(255, 188, 57, 0.15);
}

.feedback-textarea {
    resize: vertical;
    min-height: 95px;
    line-height: 1.45;
    font-family: inherit;
    font-size: 13.5px;
}

.feedback-diag-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(15, 145, 210, 0.08);
    border: 1px solid rgba(15, 145, 210, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #94A3B8;
    line-height: 1.4;
}

.feedback-success-box {
    text-align: center;
    padding: 24px 12px;
    animation: blikFadeIn 0.3s ease;
}

.feedback-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.3);
}

.feedback-success-box h3 {
    font-size: 19px;
    font-weight: 700;
    color: #22C55E;
    margin: 0 0 8px;
}

.feedback-success-box p {
    font-size: 13.5px;
    color: #CBD5E1;
    margin: 0 auto;
    max-width: 340px;
    line-height: 1.45;
}

/* =========================================================================
   PANEL ADMINA: ZAKŁADKA FEEDBACK & BŁĘDY
   ========================================================================= */
.admin-feedback-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-feedback-empty {
    text-align: center;
    padding: 44px 20px;
    color: #94A3B8;
    font-size: 13.5px;
}

.admin-feedback-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-feedback-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.admin-feedback-card.is-resolved {
    opacity: 0.75;
    border-color: rgba(34, 197, 94, 0.2);
}

.admin-feedback-card.is-resolved:hover {
    opacity: 1;
}

.admin-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-feedback-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-cat-badge {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feedback-cat-badge.cat-bug {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
}

.feedback-cat-badge.cat-suggestion {
    background: rgba(15, 145, 210, 0.18);
    border: 1px solid rgba(15, 145, 210, 0.4);
    color: #38BDF8;
}

.feedback-cat-badge.cat-payment {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
}

.feedback-cat-badge.cat-other {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #C084FC;
}

.feedback-status-pill {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.feedback-status-pill.pending {
    background: rgba(255, 188, 57, 0.15);
    border: 1px solid rgba(255, 188, 57, 0.35);
    color: #FFBC39;
}

.feedback-status-pill.resolved {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ADE80;
}

.admin-feedback-date {
    font-size: 12px;
    color: #64748B;
}

.admin-feedback-body {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: #E2E8F0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #94A3B8;
    flex-wrap: wrap;
}

.admin-feedback-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-feedback-diag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #64748B;
    flex-wrap: wrap;
}

.admin-feedback-diag span {
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-feedback-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-fb-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: inherit;
}

.btn-fb-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.btn-fb-action.btn-resolve {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ADE80;
}

.btn-fb-action.btn-resolve:hover {
    background: rgba(34, 197, 94, 0.28);
    color: #FFFFFF;
}

.btn-fb-action.btn-delete {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.btn-fb-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FFFFFF;
}

/* =========================================================================
   CLIENT PROOFING & REVISION PINS (MINI-FRAME.IO)
   ========================================================================= */

.proofing-section {
    margin-top: 14px;
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.proofing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.proofing-toolbar-left,
.proofing-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-proofing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-proofing-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-proofing-toggle.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93C5FD;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.proofing-toggle-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748B;
    transition: all 0.25s ease;
}

.btn-proofing-toggle.active .proofing-toggle-dot {
    background: #3B82F6;
    box-shadow: 0 0 8px #3B82F6;
}

.proofing-badge-count {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.btn-proofing-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #CBD5E1;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-proofing-action:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.btn-proofing-action.btn-add-note {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.btn-proofing-action.btn-add-note:hover {
    background: rgba(16, 185, 129, 0.22);
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.btn-proofing-action.btn-drawer-toggle {
    padding: 6px 8px;
}

.btn-proofing-action.btn-drawer-toggle svg {
    transition: transform 0.25s ease;
}

.proofing-drawer:not(.open)+.proofing-toolbar .btn-drawer-toggle svg,
.proofing-section:has(.proofing-drawer:not(.open)) .btn-drawer-toggle svg {
    transform: rotate(180deg);
}

/* KONTENER MEDIÓW (WIDEO / GRAFIKA) Z NAKŁADKĄ */
.proofing-media-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.proofing-media-container video,
.proofing-media-container img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    background: #05070A;
}

.proofing-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
}

.proofing-overlay.disabled {
    pointer-events: none;
    cursor: default;
}

.proofing-overlay:hover:not(.disabled) {
    background: rgba(59, 130, 246, 0.03);
}

/* PINEZKA NA KLATCE (PIN) */
.proofing-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 30;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    pointer-events: auto;
}

.proofing-pin:hover {
    transform: translate(-50%, -108%) scale(1.15);
    z-index: 40;
}

.proofing-pin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 13px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.85);
    position: relative;
    letter-spacing: -0.2px;
}

.proofing-pin.resolved .proofing-pin-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    border-color: #E2E8F0;
}

.proofing-pin-pointer {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #D97706;
    margin-top: -1px;
}

.proofing-pin.resolved .proofing-pin-pointer {
    border-top-color: #059669;
}

.proofing-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.4);
    pointer-events: none;
    animation: proofingPinPulseAnim 2s infinite ease-out;
}

.proofing-pin.resolved .proofing-pin-pulse {
    display: none;
}

@keyframes proofingPinPulseAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* TOOLTIP PINEZKI PO NAJECHANIU */
.proofing-pin-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 7px 10px;
    color: #F8FAFC;
    font-size: 11px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    z-index: 50;
}

.proofing-pin:hover .proofing-pin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.proofing-pin-tooltip-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.proofing-pin-tooltip-time {
    color: #FCD34D;
    font-weight: 700;
    font-size: 10px;
}

.proofing-pin-tooltip-author {
    color: #94A3B8;
    font-weight: 500;
    font-size: 10.5px;
}

.proofing-pin-tooltip-text {
    color: #E2E8F0;
    font-size: 11px;
    line-height: 1.3;
}

/* DEDYKOWANA OŚ CZASU WIDEO ZE ZNACZNIKAMI */
.proofing-timeline-wrap {
    background: linear-gradient(180deg, rgba(14, 20, 32, 0.98) 0%, rgba(8, 12, 22, 0.99) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -8px 24px rgba(0, 0, 0, 0.6);
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 26;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* PEŁNEJ SZEROKOŚCI WIERSZ OŚ CZASU / SCRUBBER */
.proofing-timeline-track-row {
    width: 100%;
    padding: 6px 0 8px 0;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.proofing-timeline-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(4, 6, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    overflow: visible;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: height 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.proofing-timeline-track:hover,
.proofing-timeline-track.is-dragging {
    height: 12px;
    background: rgba(8, 12, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
}

.proofing-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #5eead4 100%);
    border-radius: 6px;
    width: 0%;
    pointer-events: none;
    box-shadow: 0 0 14px rgba(94, 234, 212, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: visible;
}

.proofing-timeline-thumb {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%) scale(1);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #14b8a6;
    box-shadow: 0 0 14px #5eead4, 0 3px 10px rgba(0, 0, 0, 0.9), inset 0 1px 1px #FFFFFF;
    pointer-events: none;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease;
    z-index: 12;
}

.proofing-timeline-track:hover .proofing-timeline-thumb,
.proofing-timeline-track.is-dragging .proofing-timeline-thumb {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(56, 189, 248, 1), 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 1px 1px #FFFFFF;
}

.proofing-timeline-hover-indicator {
    position: absolute;
    top: -32px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: #F8FAFC;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    z-index: 25;
}

.proofing-timeline-hover-indicator::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.proofing-timeline-markers-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.proofing-timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F59E0B;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 15;
}

.proofing-timeline-marker:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 20;
}

.proofing-timeline-marker.resolved {
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

/* DOLNY PASEK KONTROLEK ODTWARZACZA */
.proofing-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.proofing-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proofing-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-timeline-play {
    background: transparent;
    border: none;
    color: #E2E8F0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, filter 0.18s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
}

.btn-timeline-play:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38BDF8;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
}

.btn-timeline-play:active {
    transform: scale(0.95);
}

.btn-timeline-play #proofingPlayIcon,
.btn-side-timeline-play #sidePlayIcon {
    transform: none;
    display: block;
}

.btn-timeline-play #proofingPauseIcon,
.btn-side-timeline-play #sidePauseIcon {
    transform: none;
    display: block;
}

.proofing-timeline-time-display {
    color: #CBD5E1;
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
    white-space: nowrap;
    min-width: 85px;
}

.proofing-timeline-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 580px) {
    .proofing-controls-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-timeline-add-pin span {
        display: none;
    }

    .btn-timeline-add-pin {
        padding: 5px 8px;
    }
}

/* DRAWER / PANEL LISTY ZADAŃ POPRAWEK */
.btn-timeline-toggle-remarks {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #CBD5E1;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
    user-select: none;
}

.btn-timeline-toggle-remarks:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38BDF8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.btn-timeline-toggle-remarks.active {
    background: rgba(14, 165, 233, 0.22);
    border-color: #38BDF8;
    color: #38BDF8;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
}

.btn-timeline-toggle-remarks .chevron-toggle {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.btn-timeline-toggle-remarks.active .chevron-toggle {
    transform: rotate(180deg);
    opacity: 1;
}

.proofing-remarks-count-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
    min-width: 14px;
    text-align: center;
    line-height: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-timeline-toggle-remarks.has-pins .proofing-remarks-count-pill,
.proofing-remarks-count-pill.has-items {
    background: #0284C7;
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.proofing-drawer {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 2px 4px;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
    max-height: 480px;
    overflow: hidden;
    opacity: 1;
    width: 100%;
    box-sizing: border-box;
}

.proofing-drawer:not(.open) {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    border-top-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.proofing-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
}

.proofing-drawer-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proofing-drawer-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #F1F5F9;
    letter-spacing: 0.3px;
}

.proofing-progress-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.proofing-drawer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.proofing-link-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #93C5FD;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.18s ease;
}

.proofing-link-btn:hover {
    background: rgba(96, 165, 250, 0.16);
    color: #FFFFFF;
    border-color: rgba(96, 165, 250, 0.35);
}

.btn-drawer-close {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-drawer-close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.proofing-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 270px;
    overflow-y: auto;
    padding: 2px 4px 6px 0;
}

.proofing-tasks-list::-webkit-scrollbar {
    width: 5px;
}

.proofing-tasks-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.proofing-task-item {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 7px 10px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.proofing-task-item:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.12);
    transform: translateY(-1px);
}

.proofing-task-item.active-play {
    background: rgba(14, 165, 233, 0.15);
    border-color: #38BDF8;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.3), inset 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.proofing-task-item.is-resolved {
    opacity: 0.6;
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.2);
}

.proofing-task-item.is-resolved .proofing-task-text {
    text-decoration: line-through;
    color: #94A3B8;
}

.proofing-task-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.proofing-checkbox-btn {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.proofing-checkbox-btn:hover {
    border-color: #38BDF8;
    background: rgba(56, 189, 248, 0.15);
}

.proofing-task-item.is-resolved .proofing-checkbox-btn {
    background: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
}

.proofing-time-pill,
.proofing-play-seek-btn {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 9px !important;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #FCD34D;
    font-size: 11.5px;
    font-family: monospace;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    line-height: 1;
}

.proofing-time-pill:hover,
.proofing-play-seek-btn:hover {
    background: #F59E0B;
    border-color: #FBBF24;
    color: #000000;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    transform: scale(1.04);
}

.proofing-time-pill .seek-play-icon {
    opacity: 0.85;
    transition: transform 0.18s ease;
}

.proofing-time-pill:hover .seek-play-icon {
    opacity: 1;
    transform: scale(1.15);
}

.proofing-task-author-badge {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 9px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 7px;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}

.proofing-task-text {
    font-size: 13px;
    color: #F8FAFC;
    word-break: break-word;
    line-height: 28px;
    flex: 1;
    min-width: 60px;
    display: flex;
    align-items: center;
}

.proofing-task-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-task-play {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 11px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
}

.btn-task-play:hover {
    background: #0284C7;
    border-color: #38BDF8;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
    transform: scale(1.03);
}

.btn-task-del {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    background: none;
    border: 1px solid transparent;
    color: #64748B;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-task-del:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.proofing-empty-hint {
    text-align: center;
    padding: 20px 16px;
    color: #64748B;
    font-size: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* MODAL DODAWANIA UWAGI */
.proofing-modal-wrap {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.proofing-modal-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proofing-modal-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FCD34D;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.proofing-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proofing-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.proofing-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #94A3B8;
}

.proofing-input,
.proofing-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 11px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.proofing-input:focus,
.proofing-textarea:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.proofing-textarea {
    resize: vertical;
    min-height: 65px;
}

.proofing-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748B;
    font-size: 11px;
    line-height: 1.3;
}

.proofing-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proofing-btn-cancel {
    padding: 8px 14px;
    font-size: 12.5px;
}

.proofing-btn-save {
    padding: 8px 16px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================================
   DIGITAL UNBOXING (WIDEO / NOTATKA GŁOSOWA OD NADAWCY)
   ========================================================================= */

/* KARTA OPCJI W FORMULARZU UPLOADU */
.unboxing-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.25s ease;
}

.unboxing-option-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.unboxing-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.unboxing-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.unboxing-icon-badge {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.unboxing-title-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unboxing-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unboxing-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #F1F5F9;
}

.badge-unboxing-wow {
    background: linear-gradient(135deg, #A855F7 0%, #3B82F6 100%);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.4px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    animation: unboxingPulseGlow 2.5s infinite;
}

@keyframes unboxingPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    }

    50% {
        box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
    }
}

.unboxing-subtitle {
    font-size: 11.5px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.35;
}

.btn-unboxing-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93C5FD;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-unboxing-trigger:hover {
    background: #3B82F6;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* PASEK DOŁĄCZONEGO NAGRANIA W UPLOADERZE */
.unboxing-attached-bar {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 15px rgba(94, 234, 212, 0.06);
    animation: attachedBarFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes attachedBarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unboxing-attached-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: #5EEAD4;
    font-weight: 600;
}

.unboxing-attached-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5EEAD4;
    box-shadow: 0 0 10px #5EEAD4;
    animation: unboxingRecDotPulse 1.8s infinite ease-in-out;
}

.btn-attached-preview {
    background: rgba(94, 234, 212, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.35);
    color: #5EEAD4;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    outline: none;
}

.btn-attached-preview:hover {
    background: rgba(94, 234, 212, 0.22);
    border-color: rgba(94, 234, 212, 0.7);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(94, 234, 212, 0.35);
    transform: translateY(-1px);
}

.btn-attached-preview:active {
    transform: translateY(0);
}

.btn-attached-remove {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    outline: none;
}

.btn-attached-remove:hover {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-attached-remove:active {
    transform: translateY(0);
}

/* MODAL NAGRYWARKI DIGITAL UNBOXING */
#unboxingRecorderModal {
    z-index: 10050 !important;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.05) 0%, rgba(10, 15, 26, 0.72) 60%, rgba(4, 7, 14, 0.85) 100%) !important;
    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
}

.unboxing-modal-wrap {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.unboxing-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unboxing-modal-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unboxing-title-icon {
    font-size: 18px;
}

.unboxing-modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* SEGMENTED SWITCH: WIDEO VS AUDIO */
.unboxing-mode-switch-row {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.unboxing-mode-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unboxing-mode-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* VIEWFINDER KADRU / KAMERA */
.unboxing-viewfinder-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.unboxing-camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Lustrzany podgląd selfie */
    display: block;
}

.unboxing-audio-live-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.unboxing-mic-pulse-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
    animation: unboxingMicPulse 2s infinite ease-in-out;
}

@keyframes unboxingMicPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
    }
}

.unboxing-audio-status {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.unboxing-wave-canvas {
    width: 100%;
    height: 50px;
}

.unboxing-playback-wrap {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unboxing-playback-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.unboxing-playback-audio {
    width: 90%;
}

/* NOWOCZESNA KARTA PODGLĄDU GŁOSÓWKI */
.unboxing-audio-playback-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.7) 0%, rgba(10, 15, 29, 0.95) 100%);
    overflow: hidden;
}

.voice-card-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.unboxing-voice-bubble {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(96, 165, 250, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

.btn-voice-playpause {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.btn-voice-playpause:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.65);
}

.btn-voice-playpause:active {
    transform: scale(0.95);
}

.voice-track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.voice-wave-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
    cursor: pointer;
    padding: 2px 0;
}

.voice-bar {
    flex: 1;
    min-width: 2px;
    background: #334155;
    border-radius: 3px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.voice-bar.played {
    background: #60A5FA;
}

.voice-time-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    font-variant-numeric: tabular-nums;
}

.voice-time-divider {
    color: #475569;
}

.btn-voice-speed {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-voice-speed:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.btn-unboxing-voice {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
    color: #93C5FD !important;
}

.btn-unboxing-voice:hover {
    background: rgba(59, 130, 246, 0.22) !important;
    border-color: #60A5FA !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.unboxing-mic-pulse-ring.is-recording {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    animation: unboxingMicRecordingPulse 1.2s infinite ease-in-out;
}

.unboxing-mic-pulse-ring.is-recording svg {
    stroke: #EF4444;
}

@keyframes unboxingMicRecordingPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    }

    50% {
        transform: scale(1.12);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.65);
    }
}

/* HUD CZASU I DIODA REC */
.unboxing-hud-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 25;
    pointer-events: none;
}

.unboxing-rec-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.85);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

.unboxing-rec-blip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFFFFF;
    animation: recBlipAnim 1s infinite alternate;
}

@keyframes recBlipAnim {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.2;
    }
}

.unboxing-timer-badge {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    font-size: 11.5px;
    font-family: monospace;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-left: auto;
}

.unboxing-permission-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FCD34D;
    font-size: 12px;
}

.unboxing-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 22, 0.75);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.unboxing-controls-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

/* Wymuszenie proporcjonalnych, eleganckich proporcji, wysokości i animacji dla przycisków w stopce */
.unboxing-controls-group button {
    margin: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-radius: 11px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    letter-spacing: -0.01em !important;
}

.unboxing-controls-group button .btn-icon-svg {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efekt eleganckiego refleksu świetlnego (sheen sweep) na hover dla przycisków akcji */
.unboxing-controls-group button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: none;
}

.unboxing-controls-group button:hover::after {
    left: 170%;
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.unboxing-controls-group button:active {
    transform: translateY(0) scale(0.97) !important;
}

#btnUnboxingCancel {
    flex: 1 1 0 !important;
    max-width: 130px !important;
    min-width: 100px !important;
    padding: 0 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #CBD5E1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

#btnUnboxingCancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

#btnUnboxingRetake {
    flex: 1 1 0 !important;
    max-width: 180px !important;
    min-width: 140px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

#btnUnboxingRetake:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 255, 255, 0.06) !important;
}

#btnUnboxingRetake:hover .btn-icon-svg {
    transform: rotate(-180deg);
}

.btn-unboxing-rec {
    flex: 1.4 1 0 !important;
    max-width: 240px !important;
    min-width: 180px !important;
    padding: 0 20px !important;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 60%, #B91C1C 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4), 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

.btn-unboxing-rec:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 60%, #DC2626 100%) !important;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-rec-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: unboxingRecDotPulse 1.6s infinite ease-in-out;
}

@keyframes unboxingRecDotPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Zbalansowany, nie-pusty i elegancki przycisk stopu nagrywania */
.btn-unboxing-stop {
    width: auto !important;
    min-width: 250px !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 0 26px !important;
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(234, 88, 12, 0.38), 0 0 14px rgba(245, 158, 11, 0.22) !important;
}

.btn-unboxing-stop:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #EA580C 100%) !important;
    box-shadow: 0 6px 24px rgba(234, 88, 12, 0.55), 0 0 20px rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-2px) !important;
}

.btn-stop-square {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #FFFFFF;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    flex-shrink: 0;
}

.btn-unboxing-stop:hover .btn-stop-square {
    transform: scale(1.15);
    box-shadow: 0 0 12px #FFFFFF;
}

/* Zbalansowany przycisk zatwierdzenia / dołączenia do transferu */
#btnUnboxingAttach {
    flex: 1.25 1 0 !important;
    max-width: 220px !important;
    min-width: 170px !important;
    padding: 0 22px !important;
    background: linear-gradient(135deg, #34D399 0%, #10B981 60%, #059669 100%) !important;
    border: 1px solid rgba(167, 243, 208, 0.35) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
    color: #03231A !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4), 0 0 14px rgba(52, 211, 153, 0.25) !important;
    font-weight: 700 !important;
}

#btnUnboxingAttach:hover {
    background: linear-gradient(135deg, #6EE7B7 0%, #34D399 50%, #10B981 100%) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6), 0 0 20px rgba(52, 211, 153, 0.4) !important;
    transform: translateY(-2px) !important;
}

#btnUnboxingAttach:hover .btn-icon-svg {
    transform: scale(1.18) rotate(4deg);
}

/* =========================================================================
   ODBIORCA: PULSUJĄCY SZKLANY AWATAR WIDEO & ODTWARZACZ NA STRONIE POBIERANIA
   ========================================================================= */

.unboxing-recipient-section {
    margin: 12px 0;
    transition: all 0.3s ease;
}

.unboxing-avatar-card {
    background: rgba(13, 17, 24, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(94, 234, 212, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left !important;
}

.unboxing-avatar-card:hover {
    border-color: rgba(94, 234, 212, 0.65);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(94, 234, 212, 0.22);
    transform: translateY(-2px);
}

.unboxing-avatar-card.is-expanded {
    display: none !important;
}

/* OKRĄGŁY AWATAR WIDEO Z NEONOWYM PULSEM */
.unboxing-avatar-bubble {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at center, #151D28 0%, #090C12 100%);
    border: 2px solid #5EEAD4;
    box-shadow: 0 0 16px rgba(94, 234, 212, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.unboxing-avatar-card:hover .unboxing-avatar-bubble {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(94, 234, 212, 0.75);
    border-color: #A7F3D0;
}

.unboxing-avatar-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #5EEAD4;
    opacity: 0.8;
    animation: unboxingPulseRing 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes unboxingPulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.unboxing-bubble-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.unboxing-bubble-audio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.unboxing-avatar-card:hover .unboxing-bubble-audio-icon {
    opacity: 0.12;
    transform: scale(0.88);
}

.unboxing-bubble-mic {
    color: #5EEAD4;
    filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.7));
    flex-shrink: 0;
}

.unboxing-audio-bar {
    width: 3px;
    background: #5EEAD4;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(94, 234, 212, 0.6);
    transform-origin: center;
    animation: unboxingBarAnim 1.2s infinite ease-in-out alternate;
}

.unboxing-audio-bar.b-1 {
    height: 10px;
    animation-delay: 0.1s;
}

.unboxing-audio-bar.b-2 {
    height: 18px;
    animation-delay: 0.3s;
}

.unboxing-audio-bar.b-3 {
    height: 18px;
    animation-delay: 0.2s;
}

.unboxing-audio-bar.b-4 {
    height: 10px;
    animation-delay: 0.4s;
}

@keyframes unboxingBarAnim {
    0% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1.2);
    }
}

.unboxing-bubble-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 12, 18, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.unboxing-avatar-card:hover .unboxing-bubble-play-overlay {
    opacity: 1;
}

.unboxing-play-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A7F3D0 0%, #5EEAD4 100%);
    box-shadow: 0 0 16px rgba(94, 234, 212, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #051311;
    transform: scale(0.85);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.unboxing-avatar-card:hover .unboxing-play-badge {
    transform: scale(1);
}

.unboxing-avatar-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.unboxing-avatar-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #5EEAD4;
    font-weight: 600;
}

.unboxing-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5EEAD4;
    box-shadow: 0 0 6px #5EEAD4;
}

.unboxing-note-snippet {
    font-size: 13.5px;
    color: #F8FAFC;
    font-style: italic;
    margin: 2px 0;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.unboxing-avatar-title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.unboxing-avatar-cta {
    font-size: 11.5px;
    color: #FCD34D;
    font-weight: 600;
}

.unboxing-play-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(94, 234, 212, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.35);
    color: #5EEAD4;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: auto;
}

.unboxing-avatar-card:hover .unboxing-play-action-pill {
    background: #5EEAD4;
    color: #051311;
    box-shadow: 0 0 16px rgba(94, 234, 212, 0.55);
    transform: scale(1.05);
}

/* ROZWINIĘTY ODTWARZACZ UNBOXING */
.unboxing-player-expanded {
    background: rgba(9, 13, 20, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(94, 234, 212, 0.1);
    margin-top: 10px;
    animation: unboxingExpandAnim 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes unboxingExpandAnim {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.unboxing-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unboxing-player-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #FFFFFF;
}

.btn-close-unboxing-player {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.18s ease;
}

.btn-close-unboxing-player:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.unboxing-player-media-wrap {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unboxing-full-video {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    background: #000;
}

.unboxing-full-audio-wrap {
    padding: 18px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(14, 19, 28, 0.7) 0%, rgba(9, 13, 20, 0.95) 100%);
    box-sizing: border-box;
}

/* NOWOCZESNY ODTWARZACZ POWITANIA AUDIO DLA ODBIORCY */
.unboxing-custom-audio-player {
    width: 100%;
    background: linear-gradient(165deg, rgba(18, 24, 35, 0.95) 0%, rgba(10, 14, 22, 0.98) 100%);
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-top: 1px solid rgba(94, 234, 212, 0.5);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.unboxing-audio-main-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.unboxing-audio-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A7F3D0 0%, #5EEAD4 100%);
    border: none;
    color: #051311;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(94, 234, 212, 0.45);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    outline: none;
}

.unboxing-audio-play-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #D1FAF0 0%, #6EE7D4 100%);
    box-shadow: 0 6px 24px rgba(94, 234, 212, 0.7);
}

.unboxing-audio-play-btn:active {
    transform: scale(0.95);
}

.unboxing-audio-info-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow: hidden;
}

.unboxing-audio-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.unboxing-audio-type-badge {
    font-size: 12px;
    font-weight: 700;
    color: #5EEAD4;
    letter-spacing: 0.3px;
}

.unboxing-audio-time {
    font-size: 12px;
    color: #94A3B8;
    font-family: monospace;
    font-weight: 600;
}

.unboxing-audio-waveform-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 22px;
}

.unbox-wave-bar {
    width: 3px;
    height: 6px;
    background: rgba(94, 234, 212, 0.3);
    border-radius: 2px;
    transition: height 0.15s ease, background 0.2s ease;
}

.unboxing-custom-audio-player.playing .unbox-wave-bar {
    background: #5EEAD4;
    box-shadow: 0 0 8px rgba(94, 234, 212, 0.6);
    animation: unboxWaveBounce 1.1s ease-in-out infinite alternate;
}

.unboxing-custom-audio-player.playing .unbox-wave-bar:nth-child(2n) {
    animation-delay: 0.12s;
}

.unboxing-custom-audio-player.playing .unbox-wave-bar:nth-child(3n) {
    animation-delay: 0.24s;
}

.unboxing-custom-audio-player.playing .unbox-wave-bar:nth-child(4n) {
    animation-delay: 0.36s;
}

.unboxing-custom-audio-player.playing .unbox-wave-bar:nth-child(5n) {
    animation-delay: 0.48s;
}

@keyframes unboxWaveBounce {
    0% {
        height: 4px;
    }

    50% {
        height: 22px;
    }

    100% {
        height: 8px;
    }
}

.btn-voice-speed {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
    outline: none;
}

.btn-voice-speed:hover {
    background: rgba(94, 234, 212, 0.18);
    border-color: rgba(94, 234, 212, 0.45);
    color: #5EEAD4;
}

.unboxing-audio-progress-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.unboxing-audio-progress-wrap .audio-progress-slider {
    accent-color: #5EEAD4;
}












/* =========================================================================
   CINEMATIC DELIVERY – POKAZ ZDJĘĆ Z MUZYKĄ DLA FOTOGRAFÓW (WOW EFFECT)
   ========================================================================= */

/* KARTA OPCJI U NADAWCY */
.cinematic-option-card {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.72) 0%, rgba(11, 17, 32, 0.88) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(251, 191, 36, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cinematic-option-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.12);
}

.cinematic-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cinematic-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cinematic-icon-badge {
    font-size: 20px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.cinematic-title-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cinematic-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cinematic-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

.badge-cinematic-wow {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #090D16;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.cinematic-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: #94A3B8;
    line-height: 1.35;
}

/* SIATKA WYBORU ŚCIEŻKI DŹWIĘKOWEJ */
.cinematic-track-picker {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cinematic-picker-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 10px;
    display: block;
}

.cinematic-track-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .cinematic-track-grid {
        grid-template-columns: 1fr;
    }
}

.cinematic-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cinematic-track-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cinematic-track-item:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.cinematic-track-item.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: #F59E0B;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.cinematic-track-item .track-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cinematic-track-item .track-icon {
    font-size: 18px;
}

.cinematic-track-item .track-texts {
    display: flex;
    flex-direction: column;
}

.cinematic-track-item .track-texts strong {
    font-size: 0.85rem;
    color: #F8FAFC;
}

.cinematic-track-item .track-texts span {
    font-size: 0.72rem;
    color: #94A3B8;
}

.btn-track-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F59E0B;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-track-preview:hover {
    background: #F59E0B;
    color: #050811;
    transform: scale(1.1);
}

.btn-track-preview.playing {
    background: #F59E0B;
    color: #050811;
    animation: trackPulse 1.2s infinite;
}

@keyframes trackPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* BANER ODBIORCY NA STRONIE POBIERANIA */
.cinematic-recipient-section {
    margin: 16px 0 20px 0;
}

.cinematic-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.92) 0%, rgba(10, 15, 30, 0.96) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.12);
    position: relative;
    overflow: hidden;
}

.cinematic-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08), transparent 45%);
    pointer-events: none;
}

.cinematic-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.cinematic-hero-icon-box {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cinematic-film-icon {
    font-size: 22px;
    position: relative;
    z-index: 2;
}

.cinematic-hero-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.5);
    animation: cinematicPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes cinematicPulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.cinematic-hero-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cinematic-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FBBF24;
}

.cinematic-badge-dot {
    width: 6px;
    height: 6px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 8px #F59E0B;
}

.cinematic-hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.cinematic-hero-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #94A3B8;
    line-height: 1.4;
}

.btn-cinematic-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #050811;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: all 0.22s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.btn-cinematic-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
    filter: brightness(1.06);
}

@media (max-width: 700px) {
    .cinematic-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .btn-cinematic-start {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   PEŁNOEKRANOWY ODTWARZACZ KINOWY (CINEMATIC MODAL)
   ========================================================================= */
.cinematic-modal {
    position: fixed;
    inset: 0;
    z-index: 2000000 !important;
    display: flex;
    flex-direction: column;
    background: #030712;
    overflow: hidden;
    user-select: none;
    animation: cinematicFadeIn 0.35s ease forwards;
}

@keyframes cinematicFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cinematic-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, #030712 100%);
    pointer-events: none;
}

.cinematic-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* HUD TOP */
.cinematic-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0) 100%);
    z-index: 30;
    transition: opacity 0.3s ease;
}

.cinematic-hud-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cinematic-brand-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #F59E0B;
    text-transform: uppercase;
}

.cinematic-collection-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.cinematic-hud-center {
    display: flex;
    align-items: center;
}

.cinematic-counter {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}

.cinematic-hud-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cinematic-tool-btn {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #E2E8F0;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.18s ease;
}

.cinematic-tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.cinematic-close-btn {
    padding: 8px;
    border-radius: 50%;
}

.cinematic-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

/* KOREKTOR DŹWIĘKU W PASKU HUD */
.cinematic-eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.cinematic-eq-bar {
    width: 2.5px;
    height: 4px;
    background: #F59E0B;
    border-radius: 1px;
    transition: height 0.15s ease;
}

.cinematic-eq-bars.playing .cinematic-eq-bar:nth-child(1) {
    animation: eqBounce1 0.7s infinite ease-in-out;
}

.cinematic-eq-bars.playing .cinematic-eq-bar:nth-child(2) {
    animation: eqBounce2 0.5s infinite ease-in-out 0.15s;
}

.cinematic-eq-bars.playing .cinematic-eq-bar:nth-child(3) {
    animation: eqBounce1 0.6s infinite ease-in-out 0.3s;
}

.cinematic-eq-bars.playing .cinematic-eq-bar:nth-child(4) {
    animation: eqBounce2 0.8s infinite ease-in-out 0.1s;
}

@keyframes eqBounce1 {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 14px;
    }
}

@keyframes eqBounce2 {

    0%,
    100% {
        height: 6px;
    }

    50% {
        height: 12px;
    }
}

/* MENU WYBORU PIOSENEK W POKAZIE SLAJDÓW */
.cinematic-track-selector-wrap {
    position: relative;
}

.cinematic-track-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.4);
    padding: 10px;
    z-index: 1000;
    animation: smoothDropdownIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cinematic-track-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cinematic-mute-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cinematic-mute-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.cinematic-track-options-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.cinematic-track-opt-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border-radius: 9px;
    background: transparent;
    border: 1px solid transparent;
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cinematic-track-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.cinematic-track-opt-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FDE68A;
    font-weight: 700;
}

.cinematic-track-opt-icon {
    font-size: 14px;
    margin-right: 8px;
}

/* SCENA ZDJĘCIA (KEN BURNS STAGE) */
.cinematic-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

.cinematic-slide-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.cinematic-img {
    max-width: 92vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 2px rgba(255, 255, 255, 0.15);
    will-change: transform;
}

/* ANIMACJE KEN BURNS */
@keyframes kenBurnsA {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.06) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.12) translate(1%, 0.5%);
    }
}

@keyframes kenBurnsB {
    0% {
        transform: scale(1.12) translate(1%, -1%);
    }

    50% {
        transform: scale(1.05) translate(0, 1%);
    }

    100% {
        transform: scale(1) translate(-1%, 0);
    }
}

.cinematic-img.ken-burns {
    animation: kenBurnsA 14s ease-in-out infinite alternate;
}

.cinematic-img.ken-burns-alt {
    animation: kenBurnsB 14s ease-in-out infinite alternate;
}

/* PRZYCISKI POPRZEDNIE / NASTĘPNE */
.cinematic-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    z-index: 25;
}

.cinematic-nav-btn.prev {
    left: 28px;
}

.cinematic-nav-btn.next {
    right: 28px;
}

.cinematic-nav-btn:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #F59E0B;
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 600px) {
    .cinematic-nav-btn {
        width: 40px;
        height: 40px;
    }

    .cinematic-nav-btn.prev {
        left: 10px;
    }

    .cinematic-nav-btn.next {
        right: 10px;
    }
}

/* HUD BOTTOM */
.cinematic-hud-bottom {
    display: flex;
    flex-direction: column;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0) 100%);
    z-index: 30;
}

.cinematic-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.cinematic-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.cinematic-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px 24px 32px;
}

.cinematic-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cinematic-ctrl-btn {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #F8FAFC;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.18s ease;
}

.cinematic-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.cinematic-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cinematic-action-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    padding: 9px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.cinematic-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.cinematic-action-btn.primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    color: #050811;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.cinematic-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    filter: brightness(1.06);
}

@media (max-width: 600px) {
    .cinematic-controls-bar {
        padding: 12px 16px 20px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cinematic-action-btn span {
        display: none;
    }
}

/* PLANSZA KOŃCOWA (FINISHED SCREEN) */
.cinematic-finished-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(24px);
    z-index: 40;
    animation: cinematicFadeIn 0.4s ease;
}

.cinematic-finished-box {
    background: linear-gradient(135deg, rgba(20, 28, 48, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.15);
}

.cinematic-finished-spark {
    font-size: 38px;
    display: block;
    margin-bottom: 12px;
}

.cinematic-finished-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.cinematic-finished-sub {
    margin: 0 0 24px 0;
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.5;
}

.cinematic-finished-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cinematic-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-cinematic-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-cinematic-glow {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    color: #050811;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}

.btn-cinematic-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6);
}


/* =========================================================================
   PASEK ZATWIERDZENIA I AUTO-ZAPISU USTAWIEŃ TRANSFERU (DROPSITE)
   ========================================================================= */
.adv-apply-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.btn-apply-settings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #A7F3D0 0%, #5EEAD4 100%);
    color: #051311;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(94, 234, 212, 0.35);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.btn-apply-settings:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #D1FAF0 0%, #6EE7D4 100%);
    box-shadow: 0 6px 20px rgba(94, 234, 212, 0.55);
}

.btn-apply-settings:active {
    transform: translateY(0);
}

.btn-apply-settings.applied {
    background: linear-gradient(135deg, #5EEAD4 0%, #2DD4BF 100%);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.4);
    color: #051311;
}

.adv-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #5EEAD4;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.25);
    padding: 5px 11px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.adv-sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5EEAD4;
    box-shadow: 0 0 8px #5EEAD4;
    animation: syncDotPulse 2s infinite ease-in-out;
}

@keyframes syncDotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

.transfer-link-highlight {
    animation: transferLinkPulse 1.2s ease-out;
}

@keyframes transferLinkPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
        border-color: #10B981;
    }

    50% {
        box-shadow: 0 0 22px 6px rgba(16, 185, 129, 0.45);
        border-color: #10B981;
    }

    100% {
        box-shadow: none;
    }
}

/* ODZNAKI ZASTOSOWANYCH OPCJI NA EKRANIE SUKCESU */
.success-settings-status {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 8px;
}

.success-applied-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.applied-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 9px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.applied-badge-pill.pwd {
    color: #FBBF24;
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.applied-badge-pill.note {
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
}

.applied-badge-pill.brand {
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.applied-badge-pill.limit {
    color: #C084FC;
    border-color: rgba(192, 132, 252, 0.3);
    background: rgba(192, 132, 252, 0.08);
}

.applied-badge-pill.spy {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.applied-badge-pill.cinematic {
    color: #6EE7B7;
    border-color: rgba(110, 231, 183, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.applied-badge-pill.aes {
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.08);
}

.applied-badge-pill.unbox {
    color: #EC4899;
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(236, 72, 153, 0.08);
}

.applied-badge-pill.exif {
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

/* PRZYCISK PODGLĄDU MUZYKI - STYL AKTYWNY */
.btn-track-preview.playing {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #050811 !important;
    animation: trackPulseGreen 1.1s infinite !important;
}

@keyframes trackPulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}


/* =========================================================================
   KAPSUŁKA I BOCZNY PANEL PINEZEK (FRAME.IO CLIENT PROOFING)
   ========================================================================= */

.success-proofing-capsule-wrap {
    margin: 14px 0 10px 0;
    width: 100%;
}

.btn-proofing-capsule {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #F8FAFC;
    cursor: pointer;
    text-align: left;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    font-family: inherit;
}

.btn-proofing-capsule:hover {
    border-color: #A78BFA;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-proofing-capsule:active {
    transform: translateY(0);
}

.capsule-glow-halo {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.capsule-icon-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #C084FC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.capsule-pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: capsuleDotPulse 2s infinite ease-in-out;
}

@keyframes capsuleDotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

.capsule-info-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.capsule-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.capsule-main-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.2px;
}

.capsule-pro-badge {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.capsule-sub-text {
    font-size: 11.5px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.capsule-meta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.capsule-pin-counter {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.capsule-chevron {
    color: #94A3B8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-proofing-capsule:hover .capsule-chevron {
    color: #A78BFA;
    transform: translateX(3px);
}

/* DOCKED SIDE TRIGGER */
.side-proofing-capsule-trigger {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

.side-proofing-capsule-trigger:hover {
    transform: translateY(-50%) translateX(-5px);
    border-color: #C084FC;
    box-shadow: -8px 6px 30px rgba(167, 139, 250, 0.35);
    padding-right: 18px;
}

.side-capsule-pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: capsuleDotPulse 2s infinite ease-in-out;
}

.side-capsule-icon {
    color: #C084FC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-capsule-label-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.side-capsule-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.side-capsule-counter {
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FCD34D;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* SIDE DRAWER BACKDROP & PANEL */
.side-proofing-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.side-proofing-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.side-proofing-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 94vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-proofing-drawer.open {
    transform: translateX(0);
}

.side-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
}

.side-drawer-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.side-drawer-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #C084FC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-drawer-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.side-drawer-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-drawer-main-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.side-drawer-badge {
    background: rgba(167, 139, 250, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #C084FC;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.side-drawer-file-name {
    font-size: 11.5px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.btn-side-drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-side-drawer-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #EF4444;
}

.side-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.side-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.side-media-viewport-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.side-media-wrapper {
    position: relative;
    width: 100%;
    min-height: 220px;
    max-height: 460px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-proofing-video,
.side-proofing-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.side-proofing-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: crosshair;
}

.side-proofing-overlay.disabled {
    pointer-events: none;
    opacity: 0.3;
}

.side-overlay-cursor-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.side-media-wrapper:hover .side-overlay-cursor-hint {
    opacity: 1;
}

.side-proofing-pins-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.side-proofing-pins-layer .proofing-pin {
    pointer-events: auto;
}

.side-timeline-container {
    background: linear-gradient(180deg, rgba(14, 20, 32, 0.98) 0%, rgba(8, 12, 22, 0.99) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -6px 20px rgba(0, 0, 0, 0.5);
    padding: 8px 14px 10px;
    width: 100%;
    box-sizing: border-box;
}

.side-timeline-track-row {
    width: 100%;
    padding: 4px 0 8px 0;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.side-timeline-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(4, 6, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    overflow: visible;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: height 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.side-timeline-track:hover,
.side-timeline-track.is-dragging {
    height: 12px;
    background: rgba(8, 12, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
}

.side-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: visible;
    pointer-events: none;
}

.side-timeline-thumb {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%) scale(1);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #8B5CF6;
    box-shadow: 0 0 14px #8B5CF6, 0 3px 10px rgba(0, 0, 0, 0.9), inset 0 1px 1px #FFFFFF;
    pointer-events: none;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease;
    z-index: 12;
}

.side-timeline-track:hover .side-timeline-thumb,
.side-timeline-track.is-dragging .side-timeline-thumb {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 1), 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 1px 1px #FFFFFF;
}

.side-timeline-hover-indicator {
    position: absolute;
    top: -30px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: #F8FAFC;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 25;
}

.side-timeline-hover-indicator::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.side-timeline-markers-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.side-timeline-markers-layer .proofing-timeline-marker {
    pointer-events: auto;
}

.side-timeline-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.side-timeline-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-timeline-controls-right {
    display: flex;
    align-items: center;
}

.side-timeline-hint {
    font-size: 11px;
    color: #94A3B8;
    opacity: 0.75;
    font-family: var(--font-mono, monospace);
}

.side-timeline-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-side-timeline-play {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, filter 0.18s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
}

.btn-side-timeline-play:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38BDF8;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
}

.btn-side-timeline-play:active {
    transform: scale(0.95);
}

.side-timeline-time {
    font-size: 11.5px;
    font-family: monospace;
    font-weight: 700;
    color: #E2E8F0;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.side-drawer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

.side-toolbar-left,
.side-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-side-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-side-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.btn-side-add-pin {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FCD34D;
}

.btn-side-add-pin:hover {
    background: rgba(245, 158, 11, 0.28);
    color: #FFFFFF;
}

.side-toggle-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

.side-drawer-tasks-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.side-tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-tasks-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-tasks-title {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-tasks-counter-pill {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.side-tasks-progress {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

.side-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 100px;
}

.side-empty-placeholder {
    text-align: center;
    padding: 28px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #64748B;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* PROOFING MODAL SPECIFICS */
.proofing-modal-box {
    max-width: 440px;
    width: 90%;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.proofing-input-hint {
    font-size: 11px;
    color: #64748B;
    margin-top: 4px;
}

.proofing-input-hint kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 10px;
    color: #CBD5E1;
}


/* =========================================================================
   POPRAWKI ODTWARZACZA WIDEO I RAMKI PODGLĄDU
   ========================================================================= */

.dl-preview-container.has-proofing-media {
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 14px 0 !important;
}

.proofing-media-container {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #04060A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
}

.proofing-video-frame-box {
    position: relative;
    width: 100%;
    min-height: 220px;
    max-height: 620px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.98), inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.proofing-video-frame-box video {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    background: #05070A;
}

/* DUŻY PRZYCISK PLAY NA ŚRODKU (CLEAN CYBER ICON) */
.proofing-center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 35;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    outline: none;
    color: #38BDF8;
    pointer-events: auto;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, filter 0.22s ease, color 0.22s ease;
}

.proofing-center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.16);
    color: #FFFFFF;
}

.proofing-center-play-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
}

.center-play-circle,
.center-play-pulse-ring {
    display: contents !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.center-play-svg {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    aspect-ratio: 1 / 1;
    display: block;
    flex-shrink: 0;
    margin: 0 !important;
    transform: translateX(1px);
    fill: currentColor;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.75));
    transition: transform 0.22s ease, filter 0.22s ease, color 0.22s ease;
}

.proofing-center-play-btn:hover .center-play-svg {
    transform: translateX(1px) scale(1.05);
    filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 28px rgba(56, 189, 248, 1));
}

.proofing-center-play-btn.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) scale(0.65) !important;
}

.proofing-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
    pointer-events: auto;
}

.proofing-overlay.disabled {
    cursor: pointer;
}

/* TIMELINE BAR */
/* .proofing-timeline-wrap defined above */

.btn-timeline-util {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-timeline-util:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}


/* =========================================================================
   PERFEKCYJNE DOPASOWANIE WIDEO DO PINEZEK (STAGE RATIO) ORAZ FULLSCREEN
   ========================================================================= */

.proofing-video-frame-box {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 480px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.98), inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.proofing-video-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-width: 100%;
    flex-shrink: 0;
    overflow: visible;
}

.proofing-video-stage video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000000;
}

.proofing-video-stage .proofing-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: pointer;
    pointer-events: auto;
}

.proofing-video-stage .proofing-pins-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.proofing-video-stage .proofing-pins-layer .proofing-pin {
    pointer-events: auto;
}

/* PEŁNY EKRAN DLA CAŁEGO ODTWARZACZA */
.proofing-media-container.is-fullscreen,
.proofing-media-container:fullscreen,
.proofing-media-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    background: #000000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
}

.proofing-media-container.is-fullscreen .proofing-video-frame-box,
.proofing-media-container:fullscreen .proofing-video-frame-box,
.proofing-media-container:-webkit-full-screen .proofing-video-frame-box {
    flex: 1 !important;
    height: calc(100vh - 65px) !important;
    max-height: calc(100vh - 65px) !important;
    width: 100% !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.proofing-media-container.is-fullscreen .proofing-video-stage,
.proofing-media-container:fullscreen .proofing-video-stage,
.proofing-media-container:-webkit-full-screen .proofing-video-stage {
    max-height: calc(100vh - 65px) !important;
    max-width: 100vw !important;
    margin: auto !important;
}

.proofing-media-container.is-fullscreen .proofing-video-stage video,
.proofing-media-container:fullscreen .proofing-video-stage video,
.proofing-media-container:-webkit-full-screen .proofing-video-stage video {
    max-height: calc(100vh - 65px) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.proofing-media-container.is-fullscreen .proofing-timeline-wrap,
.proofing-media-container:fullscreen .proofing-timeline-wrap,
.proofing-media-container:-webkit-full-screen .proofing-timeline-wrap {
    position: relative !important;
    width: 100% !important;
    background: rgba(11, 15, 25, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 14px 28px !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
}

/* PRZYCISK DODAWANIA UWAGI NA OSI CZASU */
.btn-timeline-add-pin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93C5FD;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
}

.btn-timeline-add-pin:hover {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #60A5FA;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
    transform: translateY(-1px);
}

.btn-timeline-add-pin:active {
    transform: translateY(0);
}

/* UKRYWANIE / POKAZYWANIE PINEZEK (TOGGLE VISIBILITY) */
.proofing-pins-layer.is-hidden-pins,
.proofing-pins-layer.is-hidden-pins *,
.dl-lightbox-modal.is-hidden-pins .proofing-pins-layer,
.dl-lightbox-modal.is-hidden-pins .proofing-pin,
.dl-lightbox-proofing-overlay.is-hidden-pins .proofing-pins-layer,
.dl-lightbox-proofing-overlay.is-hidden-pins .proofing-pin,
.proofing-overlay.is-hidden-pins .proofing-pins-layer,
.proofing-overlay.is-hidden-pins .proofing-pin,
.proofing-media-container.is-hidden-pins .proofing-pins-layer,
.proofing-media-container.is-hidden-pins .proofing-pin,
.dl-preview-image-wrapper.is-hidden-pins .proofing-pins-layer,
.dl-preview-image-wrapper.is-hidden-pins .proofing-pin {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    transition: opacity 0.22s ease, visibility 0.22s ease !important;
}

/* MODAL PROOFING W TRYBIE PEŁNOEKRANOWYM */
#proofingCommentModal[hidden],
#proofingCommentModal.is-hidden,
#proofingCommentModal:not(.is-open),
:fullscreen #proofingCommentModal[hidden],
:-webkit-full-screen #proofingCommentModal[hidden],
.proofing-media-container.is-fullscreen #proofingCommentModal[hidden],
:fullscreen #proofingCommentModal.is-hidden,
:-webkit-full-screen #proofingCommentModal.is-hidden,
.proofing-media-container.is-fullscreen #proofingCommentModal.is-hidden,
:fullscreen #proofingCommentModal:not(.is-open),
:-webkit-full-screen #proofingCommentModal:not(.is-open),
.proofing-media-container.is-fullscreen #proofingCommentModal:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

:fullscreen #proofingCommentModal.is-open:not([hidden]):not(.is-hidden),
:-webkit-full-screen #proofingCommentModal.is-open:not([hidden]):not(.is-hidden),
.proofing-media-container.is-fullscreen #proofingCommentModal.is-open:not([hidden]):not(.is-hidden) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2000100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

:fullscreen #proofingCommentModal .proofing-modal-box,
:fullscreen #proofingCommentModal .proofing-modal-wrap,
:-webkit-full-screen #proofingCommentModal .proofing-modal-box,
:-webkit-full-screen #proofingCommentModal .proofing-modal-wrap,
.proofing-media-container.is-fullscreen #proofingCommentModal .proofing-modal-box,
.proofing-media-container.is-fullscreen #proofingCommentModal .proofing-modal-wrap {
    position: relative !important;
    z-index: 100001 !important;
    margin: auto !important;
    width: 100% !important;
    max-width: 480px !important;
    background: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9) !important;
    border-radius: 16px !important;
    pointer-events: auto !important;
}

:fullscreen #proofingCommentModal .sig-modal-footer,
:-webkit-full-screen #proofingCommentModal .sig-modal-footer,
.proofing-media-container.is-fullscreen #proofingCommentModal .sig-modal-footer {
    position: relative !important;
    z-index: 100002 !important;
    pointer-events: auto !important;
}

#proofingCommentModal .btn-close-modal,
#proofingCommentModal .sig-modal-footer button,
#proofingCommentModal #proofingModalCancelBtn,
#proofingCommentModal #proofingModalSaveBtn {
    position: relative !important;
    z-index: 100005 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* PINEZKA NA KLATCE (PIN) */
.proofing-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    transform-origin: 50% 100%;
    z-index: 30;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    pointer-events: auto;
    user-select: none;
    touch-action: none;
}

.proofing-pin.is-dragging {
    cursor: grabbing !important;
    transition: none !important;
    z-index: 60 !important;
    transform: translate(-50%, -100%) scale(1.18);
}

.proofing-pin:hover {
    transform: translate(-50%, -100%) scale(1.12);
    /* Kotwica pozostaje dokładnie w kadrze, brak odrywania się w powietrze */
    z-index: 40;
}

.proofing-pin.temp-marker {
    pointer-events: none;
    animation: bounceTempPin 0.6s ease-in-out infinite alternate;
}

@keyframes bounceTempPin {
    0% {
        transform: translate(-50%, -100%);
    }

    100% {
        transform: translate(-50%, -108%);
    }
}

.proofing-pin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 13px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.85);
    position: relative;
    letter-spacing: -0.2px;
}

.proofing-pin.resolved .proofing-pin-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    border-color: #E2E8F0;
}

.proofing-pin-pointer {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #D97706;
    margin-top: -1px;
}

.proofing-pin.resolved .proofing-pin-pointer {
    border-top-color: #059669;
}

/* ŚWIETLNA KROPKA KOTWICZĄCA DOKŁADNIE NA PUNKCIE KLATKI */
.proofing-pin-anchor-dot {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #D97706;
    box-shadow: 0 0 8px #F59E0B, 0 0 14px rgba(245, 158, 11, 0.9);
    pointer-events: none;
}

.proofing-pin.resolved .proofing-pin-anchor-dot {
    border-color: #059669;
    box-shadow: 0 0 8px #10B981;
}

.proofing-pin-pulse {
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, 50%);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.4);
    pointer-events: none;
    animation: proofingPinPulseAnim 2s infinite ease-out;
}

.proofing-pin.resolved .proofing-pin-pulse {
    display: none;
}

@keyframes proofingPinPulseAnim {
    0% {
        transform: translate(-50%, 50%) scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, 50%) scale(2.2);
        opacity: 0;
    }
}

/* TOOLTIP PINEZKI PO NAJECHANIU */
.proofing-pin-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 7px 10px;
    color: #F8FAFC;
    font-size: 11px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    z-index: 50;
}

.proofing-pin:hover .proofing-pin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.proofing-pin-tooltip-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.proofing-pin-tooltip-time {
    color: #FCD34D;
    font-weight: 700;
    font-size: 10px;
}

.proofing-pin-tooltip-author {
    color: #94A3B8;
    font-weight: 500;
    font-size: 10.5px;
}

.proofing-pin-tooltip-text {
    color: #E2E8F0;
    font-size: 11px;
    line-height: 1.3;
}

.proofing-pin-tooltip-hint {
    font-size: 9.5px;
    color: #94A3B8;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Dopasowanie paska postępu */
.proofing-timeline-progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}


/* CAŁKOWITE USUNIĘCIE WISZĄCYCH PINEZEK Z KADRU WIDEO */
.proofing-video-stage .proofing-pins-layer,
.proofing-video-stage .proofing-pin,
.side-media-wrapper .proofing-pin {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* PRZYCISKI UTILITY W PASKU TIMELINE (PIP, DIRECT STREAM) */
.btn-timeline-util.active {
    color: #A855F7 !important;
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

.btn-stream-action {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #C084FC;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-stream-action:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: #C084FC;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* SZKLANY POPOVER ZE SZCZEGÓŁAMI UWAGI PO KLIKNIĘCIU W ZNACZNIK NA OSI CZASU */
.timeline-marker-detail-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 230px;
    max-width: 320px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(167, 139, 250, 0.25);
    z-index: 100;
    color: #F8FAFC;
    animation: markerPopoverIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    text-align: left;
}

@keyframes markerPopoverIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.timeline-marker-detail-popover .popover-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(15, 23, 42, 0.96);
}

.marker-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marker-popover-time {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: monospace;
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.marker-popover-time.resolved {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.4);
}

.marker-popover-author {
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.marker-popover-close {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.marker-popover-close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

.marker-popover-text {
    font-size: 0.85rem;
    color: #E2E8F0;
    line-height: 1.45;
    word-break: break-word;
    margin-bottom: 10px;
}

.marker-popover-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marker-popover-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.marker-popover-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.marker-popover-btn.btn-resolve {
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
}

.marker-popover-btn.btn-resolve:hover {
    background: rgba(16, 185, 129, 0.25);
}

.marker-popover-btn.btn-delete {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
}

.marker-popover-btn.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* =========================================================================
   SZEROKI, PRZESTRZENNY UKŁAD KARTY POBIERANIA DLA ODTWARZACZA (FRAME.IO REVIEW)
   ========================================================================= */
#view-download {
    width: 100%;
    min-height: 100dvh;
    /* wypycha footer poza fold */
    padding-bottom: 120px;
    /* bufor, żeby karta nie kleila się do dołu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

#view-download .main-wrapper {
    max-width: clamp(540px, 46vw, 840px);
    width: 100%;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   UNIFIED LUXURY DOWNLOAD CAPSULE & COHESIVE CLIENT EXPERIENCE
   ========================================================================= */

.upload-container.download-card {
    max-width: clamp(540px, 46vw, 840px) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: clamp(32px, 3.5vh, 44px) clamp(26px, 3vw, 48px) !important;
    border-radius: clamp(24px, 2.2vw, 32px) !important;
    /* Jasne, świetliste szkło mrożone identyczne jak na stronie głównej */
    background: linear-gradient(180deg, rgba(26, 38, 58, 0.65) 0%, rgba(12, 19, 32, 0.82) 100%) !important;
    backdrop-filter: blur(36px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-top: 1px solid rgba(196, 231, 212, 0.45) !important;
    box-shadow: 
        0 30px 80px -15px rgba(0, 0, 0, 0.78),
        0 0 50px -10px rgba(196, 231, 212, 0.18),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Interaktywny Holograficzny Świetlik Szkła (Spotlight na kursorze) */
.upload-container.download-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        520px circle at var(--dl-spotlight-x, 50%) var(--dl-spotlight-y, 30%),
        rgba(196, 231, 212, 0.14) 0%,
        rgba(196, 231, 212, 0.04) 40%,
        transparent 75%
    );
    opacity: var(--dl-spotlight-opacity, 0.45);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: screen;
}

.upload-container.download-card:hover {
    border-color: rgba(196, 231, 212, 0.42) !important;
    border-top-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        0 35px 90px -15px rgba(0, 0, 0, 0.85),
        0 0 60px -10px rgba(196, 231, 212, 0.28),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.45) !important;
}

.upload-container.download-card:hover::after {
    --dl-spotlight-opacity: 0.9;
}

.upload-container.download-card > * {
    position: relative;
    z-index: 2;
}

/* Fluid Plasma Glow Frame na stronie pobierania (identyczny jak na stronie głównej) */
.dl-siri-glow-frame {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: clamp(24px, 2.2vw, 32px) !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.dl-siri-glow-frame .siri-fluid-plasma {
    position: absolute !important;
    inset: -25px !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: visible !important;
    filter: blur(68px) !important;
    opacity: 0.28 !important;
    transition: opacity 0.5s ease, filter 0.5s ease !important;
}

#view-download .main-wrapper {
    max-width: clamp(540px, 46vw, 840px) !important;
    width: 100% !important;
    margin: 0 auto !important;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wideo kinowe rozszerza kapsułkę do 980px */
.upload-container.download-card.has-proofing-video,
#view-download .main-wrapper.has-proofing-video,
#view-download .main-wrapper.has-proofing-video .dl-siri-glow-frame {
    max-width: 980px !important;
}

/* ========================================================
   ZUNIFIKOWANY KOKPIT NAGŁÓWKA TRANSFERU (DOWNLOAD COCKPIT)
   ======================================================== */
.dl-meta-cockpit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    animation: fadeIn 0.3s ease-out;
}

.dl-meta-cockpit:empty {
    display: none !important;
}

/* Wyśrodkowanie kokpitu gdy jest tylko branding twórcy */
.dl-meta-cockpit.is-solo-brand {
    justify-content: center !important;
}

.dl-meta-cockpit.is-solo-brand .creator-branding-banner {
    margin: 0 auto !important;
}

/* Baner twórcy wewnątrz kokpitu */
.dl-meta-cockpit .creator-branding-banner {
    margin: 0 !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, rgba(255, 188, 57, 0.08) 0%, rgba(20, 24, 32, 0.7) 100%) !important;
    border: 1px solid rgba(255, 188, 57, 0.25) !important;
    border-radius: 10px !important;
    max-width: fit-content !important;
    box-shadow: none !important;
    gap: 10px !important;
    animation: none !important;
}

.dl-meta-cockpit .creator-branding-banner .brand-avatar-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
    box-shadow: 0 0 8px rgba(255, 188, 57, 0.35) !important;
}

.dl-meta-cockpit .creator-branding-banner .brand-label {
    font-size: 9px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.5px !important;
}

.dl-meta-cockpit .creator-branding-banner .brand-title {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
}

.dl-meta-cockpit .creator-branding-banner .brand-verified-pill {
    padding: 2px 7px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
    margin-left: 6px !important;
}

/* Prawa strona: statusy bezpieczeństwa i licznik szpiegowski */
.dl-cockpit-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Tarcza AES wewnątrz kokpitu (Brand Mint) */
.dl-meta-cockpit .vault-security-badge {
    margin: 0 !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    background: rgba(196, 231, 212, 0.1) !important;
    border: 1px solid rgba(196, 231, 212, 0.28) !important;
    color: #C4E7D4 !important;
    box-shadow: none !important;
    animation: none !important;
}

/* Licznik samozniszczenia wewnątrz kokpitu */
.dl-meta-cockpit .spy-countdown-hud {
    margin: 0 !important;
    padding: 5px 12px 7px 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 8px !important;
    background: rgba(239, 68, 68, 0.09) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
    animation: none !important;
}

.dl-meta-cockpit .spy-countdown-hud .spy-countdown-left {
    gap: 5px !important;
}

.dl-meta-cockpit .spy-countdown-hud .spy-countdown-flame {
    font-size: 13px !important;
}

.dl-meta-cockpit .spy-countdown-hud .spy-countdown-label {
    font-size: 10px !important;
}

.dl-meta-cockpit .spy-countdown-hud .spy-countdown-timer {
    font-size: 12.5px !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
}

.dl-meta-cockpit .spy-countdown-hud .spy-progress-track {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    border-radius: 0 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

.dl-meta-cockpit .spy-countdown-hud .spy-progress-bar {
    height: 100% !important;
    background: #EF4444 !important;
}

/* Zunifikowany przepływ wewnątrz karty */
.dl-unified-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: center;
}

.dl-header-unified {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}

.dl-header-unified .dl-title {
    font-size: 23px !important;
    font-weight: 700 !important;
    color: #F8FAFC !important;
    line-height: 1.35 !important;
    margin: 0;
}

.dl-header-unified .dl-subtitle {
    font-size: 13.5px !important;
    color: var(--text-muted) !important;
    margin-top: 6px !important;
}

/* Scena Prezentacji i Multimediów */
.dl-showcase-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.cinematic-recipient-section {
    width: 100%;
    margin: 0;
}

.cinematic-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(20, 28, 45, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-top: 1px solid rgba(245, 158, 11, 0.65);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 14px 36px -6px rgba(0, 0, 0, 0.65), 0 0 32px -8px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-align: left;
}

.cinematic-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cinematic-hero-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.35;
}

.cinematic-hero-sub {
    font-size: 12px;
    color: #CBD5E1;
    margin: 2px 0 0 0;
}

.btn-cinematic-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid #FFFFFF;
    color: #000;
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-cinematic-start:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dl-preview-container {
    width: 100%;
    margin: 0;
    min-height: auto;
}

/* Karta Notatki (Jasne Szkło + Brand Mint #C4E7D4) */
.dl-note-card {
    background: linear-gradient(135deg, rgba(196, 231, 212, 0.12) 0%, rgba(20, 32, 45, 0.75) 100%);
    border: 1px solid rgba(196, 231, 212, 0.3);
    border-left: 3.5px solid #C4E7D4;
    border-radius: 14px;
    padding: 14px 18px;
    text-align: left;
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dl-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #C4E7D4;
    margin-bottom: 6px;
}

.dl-note-body {
    font-size: 13.5px;
    color: #F8FAFC;
    margin: 0;
    line-height: 1.45;
}

/* Główny przycisk pobierania (Jasne Cyber Szkło jak na stronie głównej + Brand Mint + Breathing Aura) */
.dl-btn-large,
#dlDownloadBtn {
    width: 100% !important;
    padding: 16px 28px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: 1px solid rgba(196, 231, 212, 0.65) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4) !important;
    /* Półprzezroczyste, jasne szkło mrożone z nutą mięty */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(196, 231, 212, 0.08) 100%) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    color: #FFFFFF !important;
    box-shadow:
        0 8px 24px -4px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(196, 231, 212, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transform: translateZ(0) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    animation: dlBtnGlowBreathe 3.8s ease-in-out infinite !important;
}

@keyframes dlBtnGlowBreathe {
    0%, 100% {
        box-shadow:
            0 8px 24px -4px rgba(0, 0, 0, 0.55),
            0 0 20px rgba(196, 231, 212, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow:
            0 12px 30px -4px rgba(0, 0, 0, 0.62),
            0 0 38px rgba(196, 231, 212, 0.40),
            inset 0 1px 0 #FFFFFF,
            inset 0 0 16px rgba(196, 231, 212, 0.16);
    }
}

/* Wyłączenie zbugowanej wirującej maski z .btn-primary na przycisku pobierania */
.dl-btn-large::after,
#dlDownloadBtn::after {
    display: none !important;
    animation: none !important;
    content: none !important;
}

/* Jednolity, aksamitny miętowy refleks światła na hover & okresowy przebieg */
.dl-btn-large::before,
#dlDownloadBtn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -120% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(196, 231, 212, 0.35) 50%, transparent 100%) !important;
    transform: skewX(-20deg) !important;
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 1 !important;
    animation: dlBtnShimmerIdle 6.5s ease-in-out infinite !important;
}

@keyframes dlBtnShimmerIdle {
    0%, 82% {
        left: -120%;
    }
    94%, 100% {
        left: 190%;
    }
}

.dl-btn-large:hover,
#dlDownloadBtn:hover {
    animation: none !important;
    transform: translateY(-2.5px) scale(1.01) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(196, 231, 212, 0.16) 100%) !important;
    border-color: rgba(196, 231, 212, 0.6) !important;
    border-top-color: #FFFFFF !important;
    box-shadow:
        0 14px 38px -4px rgba(0, 0, 0, 0.68),
        0 0 44px rgba(196, 231, 212, 0.48),
        inset 0 1px 0 #FFFFFF,
        inset 0 0 22px rgba(196, 231, 212, 0.22) !important;
    color: #FFFFFF !important;
}

.dl-btn-large:hover::before,
#dlDownloadBtn:hover::before {
    animation: none !important;
    left: 190% !important;
}

.dl-btn-large:active,
#dlDownloadBtn:active {
    transform: translateY(1px) scale(0.975) !important;
    transition-duration: 0.08s !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Lewitująca ikona pobierania z przeskokiem w akcję na hover */
.dl-btn-large svg,
#dlDownloadBtn svg {
    color: #C4E7D4 !important;
    animation: dlIconFloat 2.8s ease-in-out infinite !important;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease, color 0.2s ease !important;
    filter: drop-shadow(0 0 8px rgba(196, 231, 212, 0.5)) !important;
}

@keyframes dlIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.5px);
    }
}

.dl-btn-large:hover svg,
#dlDownloadBtn:hover svg {
    animation: none !important;
    transform: translateY(3.5px) scale(1.12) !important;
    color: #FFFFFF !important;
    filter: drop-shadow(0 0 14px rgba(196, 231, 212, 0.95)) !important;
}

.dl-btn-large .btn-text,
#dlDownloadBtn .btn-text {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    letter-spacing: 0.25px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Statystyki */
.dl-stats-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748B;
    font-size: 11.5px;
    font-weight: 500;
    margin: 12px auto 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 640px) {
    .upload-container.download-card {
        padding: 24px 20px 22px !important;
        border-radius: 20px !important;
    }

    .cinematic-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .btn-cinematic-start {
        width: 100%;
        justify-content: center;
    }

    .dl-meta-cockpit {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dl-cockpit-status-group {
        margin-left: 0;
        justify-content: space-between;
        width: 100%;
    }
}

/* Wzbogacony pasek twórcy z odznaką zaufania */
.creator-branding-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, rgba(255, 188, 57, 0.1) 0%, rgba(20, 24, 32, 0.85) 100%);
    border: 1px solid rgba(255, 188, 57, 0.35);
    border-radius: 14px;
    padding: 12px 18px;
    margin: 0 auto 20px auto;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 188, 57, 0.15);
    border: 1px solid rgba(255, 188, 57, 0.4);
    color: #FFD24C;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Subtelny przycisk pod głównym CTA pobierania */
.btn-subtle-upload-own {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-subtle-upload-own:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #F8FAFC;
}

/* Dyskretny boks promo na dole prawego panelu */
.dl-promo-discreet {
    margin-top: 6px;
    padding: 12px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
}

.dl-promo-discreet .dl-promo-tag {
    font-size: 11px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: 0.4px;
}

.dl-promo-discreet p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    line-height: 1.35;
}

.dl-promo-discreet .btn-promo-action {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 8px;
}

/* Nakładka na zdjęciu - kursor powiększenia i naturalna interakcja */
.dl-preview-image-wrapper .proofing-overlay {
    cursor: zoom-in !important;
}

/* Wideo z proofingiem i odtwarzaczem kinowym */
.upload-container.download-card.has-proofing-video,
#view-download .main-wrapper.has-proofing-video {
    max-width: 1060px !important;
}

.dl-preview-container.has-proofing-video {
    width: 100% !important;
    max-height: none !important;
}

/* =========================================================================
   ZERO-KNOWLEDGE DECRYPTION LOADER & MEDIA FALLBACK
   ========================================================================= */
.proofing-decrypt-loader {
    width: 100%;
    min-height: 230px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    margin-bottom: 12px;
}

.decrypt-shield-pulse {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
    animation: shieldPulse 1.8s infinite ease-in-out;
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 32px rgba(16, 185, 129, 0.5);
    }
}

.decrypt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.decrypt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
    animation: syncDotPulse 1.5s infinite ease-in-out;
}

.decrypt-title {
    font-size: 15px;
    font-weight: 600;
    color: #F8FAFC;
    margin: 0 0 6px 0;
}

.decrypt-hint {
    font-size: 12px;
    color: #94A3B8;
    max-width: 440px;
    margin: 0;
    line-height: 1.5;
}

.proofing-video-error-fallback {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.video-error-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.video-error-title {
    font-size: 15px;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 6px;
}

.video-error-desc {
    font-size: 12px;
    color: #94A3B8;
    max-width: 420px;
    line-height: 1.5;
}

.btn-error-fallback {
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

/* =========================================================================
   ALBUM FOTOGRAFICZNY & GŁĘBIA 3D (PHOTO ALBUM SHOWCASE & DEPTH)
   ========================================================================= */

/* Trójwymiarowy stos zdjęć w banerze kinowym (3D Photo Deck) */
.album-hero-3d-stack {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    perspective: 800px;
}

.album-stack-card {
    position: absolute;
    width: 52px;
    height: 62px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #1E293B;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.album-stack-card.card-back {
    top: 0;
    left: 2px;
    transform: rotate(-10deg) translateY(2px) scale(0.92);
    opacity: 0.75;
    z-index: 1;
}

.album-stack-card.card-mid {
    top: 3px;
    left: 10px;
    transform: rotate(7deg) translateY(-2px) scale(0.96);
    opacity: 0.9;
    z-index: 2;
}

.album-stack-card.card-front {
    top: 6px;
    left: 6px;
    transform: rotate(0deg) translateY(0);
    z-index: 3;
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cinematic-hero-card:hover .album-stack-card.card-back {
    transform: rotate(-16deg) translate(-6px, -2px) scale(0.92);
}

.cinematic-hero-card:hover .album-stack-card.card-mid {
    transform: rotate(12deg) translate(8px, -4px) scale(0.96);
}

.cinematic-hero-card:hover .album-stack-card.card-front {
    transform: rotate(0deg) scale(1.05);
}

/* Wizualna Siatka Galerii Zdjęć wewnątrz paczki */
.album-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px !important;
    padding: 12px 4px !important;
    max-height: 480px !important;
    overflow-y: auto !important;
}

.album-grid-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.album-grid-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(94, 234, 212, 0.6);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.65), 0 0 18px rgba(94, 234, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.album-grid-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0B0E14;
}

.album-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-grid-card:hover .album-grid-img {
    transform: scale(1.08);
}

.album-grid-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8px;
}

.album-grid-card:hover .album-grid-hover-overlay {
    opacity: 1;
}

.album-grid-zoom-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.btn-album-grid-dl {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-album-grid-dl:hover {
    background: #5EEAD4;
    border-color: #5EEAD4;
    color: #051311;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.5);
}

.album-grid-meta {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.album-grid-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-grid-size {
    font-size: 10px;
    color: var(--text-muted);
    font-family: monospace;
    flex-shrink: 0;
}

/* Miniatura mozaiki w podglądzie uploadu (Sender View) */
.mf-album-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    padding: 10px 4px 4px 4px;
    max-height: 180px;
    overflow-y: auto;
}

.mf-album-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0B0E14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mf-album-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mf-album-tile-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #FFD24C;
    font-size: 8.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mf-album-tile-more {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(255, 188, 57, 0.1);
    border: 1px dashed rgba(255, 188, 57, 0.35);
    color: #FFD24C;
    font-size: 12px;
    font-weight: 700;
}

.mf-album-icon-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2)) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #F59E0B !important;
}

/* Ambient Backlight Glow na scenie odtwórczej (Głębia w UI) */
.dl-stage-col {
    position: relative;
}

.dl-stage-col::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 15%;
    width: 70%;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.14) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 80%);
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

/* ==========================================================================
   AWWWARDS-GRADE UI: TRUST BAR (BELKA ZAUFANIA / MAGNESY DROPSITE)
   ========================================================================== */
.trust-bar-section {
    margin-top: 36px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.trust-bar-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.trust-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 231, 212, 0.08);
    border: 1px solid rgba(196, 231, 212, 0.25);
    color: #C4E7D4;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 0 25px rgba(196, 231, 212, 0.12);
}

.trust-badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #C4E7D4;
    box-shadow: 0 0 10px #C4E7D4;
    animation: trustPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes trustPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

.trust-header-title {
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #FFFFFF 20%, #E2F5EC 65%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.trust-header-subtitle {
    font-size: 13.5px;
    color: #8A8F98;
    margin: 0 auto;
    max-width: 580px;
    line-height: 1.5;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-card {
    background: linear-gradient(160deg, rgba(22, 26, 38, 0.75) 0%, rgba(12, 15, 23, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(196, 231, 212, 0.25);
    border-radius: 18px;
    padding: 22px 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 231, 212, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dynamic radial cursor glow on cards */
.trust-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(196, 231, 212, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:hover::after {
    opacity: 1;
}

.trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 231, 212, 0.45);
    background: linear-gradient(160deg, rgba(28, 33, 50, 0.85) 0%, rgba(16, 20, 32, 0.95) 100%);
    box-shadow:
        0 18px 45px -10px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(196, 231, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.trust-card:hover .trust-icon-box {
    transform: scale(1.1) rotate(2deg);
}

/* Icon thematic palettes */
.trust-icon-cinema {
    background: rgba(196, 231, 212, 0.12);
    border: 1px solid rgba(196, 231, 212, 0.3);
    color: #C4E7D4;
    box-shadow: 0 0 20px rgba(196, 231, 212, 0.2);
}

.trust-icon-shield {
    background: rgba(89, 168, 41, 0.12);
    border: 1px solid rgba(89, 168, 41, 0.3);
    color: #72D437;
    box-shadow: 0 0 20px rgba(89, 168, 41, 0.2);
}

.trust-icon-lock {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #C084FC;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.trust-icon-rocket {
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #FDE047;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

.trust-icon-pdf {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.trust-icon-burn {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #FB7185;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.trust-card-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    transition: all 0.3s ease;
}

.trust-card:hover .trust-card-pill {
    border-color: rgba(196, 231, 212, 0.3);
    color: #E2F5EC;
    background: rgba(196, 231, 212, 0.08);
}

.trust-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
    line-height: 1.35;
}

.trust-card-desc {
    font-size: 12.8px;
    color: #8A8F98;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   AWWWARDS-GRADE UI: FAQ ACCORDION (ZWIJANE FAQ)
   ========================================================================== */
.faq-section {
    margin-top: 48px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.faq-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.faq-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 231, 212, 0.08);
    border: 1px solid rgba(196, 231, 212, 0.25);
    color: #C4E7D4;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 0 25px rgba(196, 231, 212, 0.12);
}

.faq-header-title {
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #FFFFFF 20%, #E2F5EC 65%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.faq-header-subtitle {
    font-size: 13.5px;
    color: #8A8F98;
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.5;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.faq-card-item {
    background: linear-gradient(160deg, rgba(22, 26, 38, 0.7) 0%, rgba(12, 15, 23, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.faq-card-item:hover {
    border-color: rgba(196, 231, 212, 0.3);
    background: linear-gradient(160deg, rgba(26, 31, 46, 0.8) 0%, rgba(15, 18, 28, 0.92) 100%);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.faq-card-item[open] {
    border-color: rgba(196, 231, 212, 0.4);
    background: linear-gradient(160deg, rgba(28, 33, 50, 0.88) 0%, rgba(16, 20, 32, 0.95) 100%);
    box-shadow:
        0 14px 35px -8px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(196, 231, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.faq-card-item summary {
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #F1F5F9;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 14px;
    transition: color 0.2s ease;
}

.faq-card-item summary::-webkit-details-marker {
    display: none;
}

.faq-card-item:hover summary {
    color: #FFFFFF;
}

.faq-question-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-num-pill {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-mint);
    background: rgba(196, 231, 212, 0.1);
    border: 1px solid rgba(196, 231, 212, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.faq-toggle-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8A8F98;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-card-item:hover .faq-toggle-circle {
    background: rgba(196, 231, 212, 0.12);
    color: #C4E7D4;
    border-color: rgba(196, 231, 212, 0.3);
}

.faq-card-item[open] .faq-toggle-circle {
    transform: rotate(45deg);
    background: rgba(196, 231, 212, 0.2);
    color: #C4E7D4;
    border-color: rgba(196, 231, 212, 0.5);
    box-shadow: 0 0 15px rgba(196, 231, 212, 0.25);
}

.faq-content-body {
    padding: 0 20px 20px 20px;
    color: #94A3B8;
    font-size: 13.8px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -2px;
    padding-top: 14px;
    animation: faqFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-hl-mint {
    color: #C4E7D4;
    font-weight: 600;
    background: rgba(196, 231, 212, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(196, 231, 212, 0.2);
}

.faq-hl-purple {
    color: #C084FC;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.faq-hl-rose {
    color: #FB7185;
    font-weight: 600;
    background: rgba(244, 63, 94, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   AWWWARDS-GRADE UI: VIRAL REFERRAL LOOP BANNER (PĘTLA WIRUSOWA - SLIM GLASS)
   ========================================================================== */
.viral-loop-card {
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    overflow: hidden;
}

.viral-loop-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 231, 212, 0.4);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5), 0 0 20px -4px rgba(196, 231, 212, 0.2);
}

.viral-loop-inner {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.viral-cta-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.viral-pill-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.viral-spark-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.viral-title-compact {
    font-size: 13px;
    font-weight: 600;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viral-features-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748B;
    white-space: nowrap;
}

.viral-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(196, 231, 212, 0.12);
    border: 1px solid rgba(196, 231, 212, 0.28);
    border-radius: 9px;
    color: #C4E7D4;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.viral-loop-card:hover .viral-cta-btn {
    background: #C4E7D4;
    color: #091216;
    border-color: #FFFFFF;
    box-shadow: 0 0 14px rgba(196, 231, 212, 0.45);
}

.viral-loop-card:hover .viral-cta-btn svg {
    transform: translateX(2px);
}

/* Unified Header Metadata */
.dl-meta-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #94A3B8;
    margin-top: 6px;
    flex-wrap: wrap;
}

.dl-meta-pill {
    color: #CBD5E1;
}

.dl-meta-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.dl-meta-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 500;
}

.dl-meta-status.temp {
    color: #C4E7D4;
}

.dl-meta-status.burn {
    color: #F87171;
}

.dl-meta-status.perm {
    color: #C4E7D4;
}

.dl-meta-status.spy {
    color: #FB7185;
}

.viral-feat-dot {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   AWWWARDS-GRADE UI: CYBER-PIANO BENTO TABS (FORTEPIAN ZE SZKŁA I ŚWIATŁA)
   ========================================================================== */
.home-bento-piano-container {
    margin-top: 36px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Klawiatura pianina (Piano Keyboard Shell) */
.piano-keyboard-bar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(180deg, rgba(14, 17, 26, 0.85) 0%, rgba(8, 10, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 10px 12px 14px 12px;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    z-index: 10;
}

/* Główny biały klawisz pianina (White Glass Key) */
.piano-key-btn {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, rgba(32, 38, 54, 0.7) 0%, rgba(18, 22, 32, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid rgba(0, 0, 0, 0.5);
    border-radius: 14px;
    padding: 14px 16px 12px 16px;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -3px 0 rgba(0, 0, 0, 0.35);
    transform-origin: top center;
    overflow: hidden;
}

/* Haptyczna dolna warga klawisza (Tactile Lip) */
.piano-key-tactile-lip {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px 2px 0 0;
    transition: all 0.25s ease;
}

/* Klawisz hover */
.piano-key-btn:hover {
    background: linear-gradient(180deg, rgba(40, 48, 68, 0.8) 0%, rgba(22, 28, 42, 0.9) 100%);
    border-color: rgba(196, 231, 212, 0.3);
    border-top-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(196, 231, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.piano-key-btn:hover .piano-key-tactile-lip {
    background: rgba(196, 231, 212, 0.4);
    box-shadow: 0 0 8px rgba(196, 231, 212, 0.3);
}

/* Klawisz aktywny / wciśnięty (Key Strike / Pressed State) */
.piano-key-btn.active {
    background: linear-gradient(180deg, rgba(28, 38, 52, 0.95) 0%, rgba(14, 20, 30, 0.98) 100%);
    border-color: rgba(196, 231, 212, 0.5);
    border-top-color: #C4E7D4;
    border-bottom: 1px solid rgba(196, 231, 212, 0.6);
    transform: translateY(3px);
    /* Fizyczne wciśnięcie klawisza pianina */
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(196, 231, 212, 0.28),
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(196, 231, 212, 0.3);
}

.piano-key-btn.active .piano-key-tactile-lip {
    background: #C4E7D4;
    box-shadow: 0 0 12px #C4E7D4;
}

/* Wewnętrzna kompozycja klawisza */
.piano-key-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.piano-key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.piano-key-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.piano-key-btn:hover .piano-key-icon {
    transform: scale(1.1) rotate(2deg);
}

.piano-key-btn.active .piano-key-icon {
    transform: scale(1.05);
}

.icon-cyan {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.icon-emerald {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #C084FC;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

/* Odznaka (Badge) na klawiszu */
.piano-key-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38BDF8;
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #10B981;
}

.badge-purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.25);
    color: #C084FC;
}

/* Tytuł i podtytuł na klawiszu */
.piano-key-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.piano-key-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.piano-key-btn.active .piano-key-title {
    color: #C4E7D4;
}

.piano-key-sub {
    font-size: 11.5px;
    color: #8A8F98;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.piano-key-btn.active .piano-key-sub {
    color: #A7B3C6;
}

/* Czarny klawisz pianina (Acoustic Black Key Accent) */
.piano-black-key {
    width: 32px;
    height: 54px;
    background: linear-gradient(180deg, #111319 0%, #050608 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid #000000;
    border-radius: 0 0 8px 8px;
    margin: -10px -4px 0 -4px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6px;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(255, 255, 255, 0.05);
    user-select: none;
    pointer-events: none;
    flex-shrink: 0;
}

.black-key-led {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 6px #38BDF8;
    margin-bottom: 3px;
    animation: blackKeyPulse 2s infinite ease-in-out;
}

.led-purple {
    background: #A855F7;
    box-shadow: 0 0 6px #A855F7;
}

@keyframes blackKeyPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.black-key-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #64748B;
    text-transform: uppercase;
}

/* Poświata pod klawiszem pianina */
.piano-underglow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(196, 231, 212, 0.22) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.piano-key-btn.active .piano-underglow {
    opacity: 1;
}

/* Kontener paneli zawartości */
.piano-panels-wrapper {
    margin-top: 14px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Panel pojedynczej zakładki */
.piano-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.piano-panel.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: pianoPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pianoPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dopasowanie marginesów wewnątrz paneli */
.piano-panel .toolbox-hero-showcase,
.piano-panel .trust-bar-section,
.piano-panel .faq-section {
    margin-top: 0 !important;
}

/* Responsywność dla mobile */
@media (max-width: 768px) {
    .piano-keyboard-bar {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }

    .piano-black-key {
        display: none;
    }

    .piano-key-btn {
        width: 100%;
        border-radius: 12px;
        padding: 12px 14px;
    }
}

/* ==========================================================================
   DROPSITE ALBUMY & KOLEKCJE (SYSTEM ALBUMÓW)
   ========================================================================== */
.user-panel-subtabs {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.subtab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.subtab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(196, 231, 212, 0.12) 100%);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38BDF8;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.subtab-count {
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.subtab-btn.active .subtab-count {
    background: rgba(56, 189, 248, 0.25);
    color: #38BDF8;
}

/* Płynne przełączanie między zakładkami plików i albumów */
.myfiles-subpane {
    animation: subpaneFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes subpaneFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-selection-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 20, 34, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    contain: layout paint;
}

.file-select-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    outline: none;
    display: inline-grid;
    place-content: center;
    transition: none;
}

.file-select-checkbox:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.file-select-checkbox:checked {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(34, 197, 94, 0.25) 100%), rgba(15, 23, 42, 0.9);
    border-color: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: none;
}

.file-select-checkbox::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #38BDF8;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-0.5px, -1px) scale(0);
    opacity: 0;
    transition: none;
}

.file-select-checkbox:checked::after {
    transform: rotate(45deg) translate(-0.5px, -1px) scale(1);
    opacity: 1;
    transition: none;
}

/* Siatka albumów */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.album-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.album-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.album-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.album-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    word-break: break-word;
}

.album-badge-theme {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-transform: uppercase;
    font-weight: 700;
}

.album-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.album-card-actions .btn-copy-mod {
    flex: 1;
}

/* Publiczny widok albumu */
.album-public-showcase {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

.album-public-header {
    text-align: center;
    margin-bottom: 28px;
}

.album-public-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.album-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.album-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.album-item-card:hover {
    transform: scale(1.02);
    border-color: rgba(56, 189, 248, 0.4);
}

.album-item-thumb {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.album-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-item-card:hover .album-item-thumb img {
    transform: scale(1.06);
}

.album-item-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-item-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 20px;
}

.album-item-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.album-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-item-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.album-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.album-item-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.album-item-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38BDF8;
}

/* Motyw kinowy dla publicznego albumu */
.theme-cinematic .album-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.theme-cinematic .album-item-thumb {
    height: 220px;
}

/* Motyw listy */
.theme-list .album-items-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.theme-list .album-item-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.theme-list .album-item-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.theme-list .album-item-info {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================================
   KAPSUŁA CZASU (TIME-LOCKED DELIVERY) - STYLE NADAWCY I ODBIORCY
   ========================================================================= */

/* Panel ustawień w formularzu uploadu */
.timelock-settings-box {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: timelockFadeIn 0.3s ease-out;
}

@keyframes timelockFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timelock-settings-box input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(240deg);
    cursor: pointer;
}

/* Nakładka szklana na widok pobierania (Recipient Overlay) */
.timelock-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    background: rgba(9, 11, 17, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
    overflow: hidden;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.timelock-overlay.unlocked {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
}

/* Pulsująca aureola w tle monolitu */
.timelock-glow-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(192, 132, 252, 0.18) 0%, rgba(245, 158, 11, 0.08) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: timelockAuraPulse 4s ease-in-out infinite alternate;
}

@keyframes timelockAuraPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* Szklany monolit odliczania */
.timelock-monolith {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: 100%;
    background: rgba(18, 20, 29, 0.75);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-top: 1px solid rgba(192, 132, 252, 0.5);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Plakietka statusu */
.timelock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #C084FC;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.2);
}

.timelock-pulse-gem {
    font-size: 13px;
    animation: timelockGemPulse 1.8s infinite;
}

@keyframes timelockGemPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px #C084FC);
    }

    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px #E879F9);
    }
}

.timelock-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.timelock-subtitle {
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 420px;
}

/* Karta wskazówki od nadawcy */
.timelock-hint-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: left;
}

.timelock-hint-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.2;
}

.timelock-hint-content {
    flex: 1;
    min-width: 0;
}

.timelock-hint-author {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #C084FC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.timelock-hint-text {
    font-size: 13px;
    font-style: italic;
    color: #E2E8F0;
    margin: 0;
    word-break: break-word;
    line-height: 1.4;
}

/* Siatka 4 kasetonów zegara */
.timelock-clock-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 24px 0;
    width: 100%;
}

.timelock-digit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 82px;
    background: linear-gradient(180deg, rgba(30, 32, 48, 0.85) 0%, rgba(16, 18, 26, 0.95) 100%);
    border: 1px solid rgba(192, 132, 252, 0.28);
    border-top: 1px solid rgba(192, 132, 252, 0.45);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timelock-digit-box:hover {
    transform: translateY(-2px);
    border-color: rgba(192, 132, 252, 0.6);
}

.timelock-number {
    font-size: 32px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 0 0 16px rgba(192, 132, 252, 0.5);
    letter-spacing: -0.5px;
}

.timelock-unit {
    font-size: 9.5px;
    font-weight: 800;
    color: #C084FC;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-top: 6px;
}

.timelock-separator {
    font-size: 26px;
    font-weight: 800;
    color: rgba(192, 132, 252, 0.6);
    line-height: 1;
    margin-bottom: 14px;
    animation: timelockBlink 1s infinite;
}

@keyframes timelockBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Data docelowa */
.timelock-target-date {
    font-size: 12.5px;
    color: var(--text-muted, #94A3B8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
}

.timelock-target-date strong {
    color: #F8FAFC;
    font-weight: 600;
    margin-left: 4px;
}

/* Responsywność dla małych ekranów smartfonów */
@media (max-width: 480px) {
    .timelock-monolith {
        padding: 24px 16px;
    }

    .timelock-digit-box {
        width: 60px;
        height: 68px;
    }

    .timelock-number {
        font-size: 24px;
    }

    .timelock-unit {
        font-size: 8.5px;
        letter-spacing: 0.8px;
    }

    .timelock-separator {
        font-size: 20px;
        margin-bottom: 10px;
    }
}

/* =========================================================================
   SEGMENTED TRANSFER MODE SWITCHER (CHMURA DROPSITE vs BEAM P2P)
   ========================================================================= */

.transfer-mode-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 22px;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mode-switch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94A3B8;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-decoration: none;
}

.mode-switch-btn:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.04);
}

.mode-switch-btn.active#modeSwitchCloudBtn,
.mode-switch-btn.active#beamModeSwitchCloudBtn {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.08));
    border-color: rgba(52, 211, 153, 0.3);
    color: #F8FAFC;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mode-switch-btn.active#modeSwitchCloudBtn .mode-icon,
.mode-switch-btn.active#beamModeSwitchCloudBtn .mode-icon {
    color: #34D399;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.5));
}

.mode-switch-btn.active#modeSwitchBeamBtn,
.mode-switch-btn.active#beamModeSwitchBeamBtn {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(14, 165, 233, 0.12));
    border-color: rgba(6, 182, 212, 0.45);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(6, 182, 212, 0.3);
}

.mode-switch-btn.active#modeSwitchBeamBtn .mode-icon,
.mode-switch-btn.active#beamModeSwitchBeamBtn .mode-icon {
    color: #22D3EE;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.7));
}

.mode-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.mode-badge-cloud {
    background: rgba(148, 163, 184, 0.14);
    color: #94A3B8;
}

.mode-switch-btn.active#modeSwitchCloudBtn .mode-badge-cloud,
.mode-switch-btn.active#beamModeSwitchCloudBtn .mode-badge-cloud {
    background: rgba(52, 211, 153, 0.18);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.mode-badge-beam {
    background: rgba(6, 182, 212, 0.15);
    color: #22D3EE;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.mode-switch-btn.active#modeSwitchBeamBtn .mode-badge-beam,
.mode-switch-btn.active#beamModeSwitchBeamBtn .mode-badge-beam {
    background: rgba(6, 182, 212, 0.28);
    color: #E0F2FE;
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

@media (max-width: 520px) {
    .mode-switch-btn {
        padding: 8px 10px;
        font-size: 12px;
        gap: 5px;
    }

    .mode-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
}

/* =========================================================================
   ANIMACJA PŁYNNEGO PRZEJŚCIA (WARP TRANSITION) MIĘDZY CHMURĄ A BEAM P2P
   ========================================================================= */

.mode-switch-btn.active {
    animation: modeSwitchSpring 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modeSwitchSpring {
    0% {
        transform: scale(0.94);
    }

    55% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.mode-switch-btn.active .mode-badge {
    animation: badgeGlowPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeGlowPop {
    0% {
        transform: scale(0.85);
        filter: brightness(1.4);
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Klasy wejścia karty: Beam i Chmura (fallback bez View Transitions API) */
.beam-warp-enter {
    animation: beamWarpEnter 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes beamWarpEnter {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(6px);
        filter: brightness(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

.cloud-warp-enter {
    animation: cloudWarpEnter 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cloudWarpEnter {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(6px);
        filter: brightness(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

/* Wsparcie dla standardu View Transitions API — ultra płynny morphing bez prostokątnych artefaktów */
@media (prefers-reduced-motion: no-preference) {
    ::view-transition-group(transfer-card) {
        animation-duration: 0.32s;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 28px !important;
        overflow: hidden !important;
    }

    ::view-transition-image-pair(transfer-card) {
        border-radius: 28px !important;
        overflow: hidden !important;
        isolation: isolate;
    }

    ::view-transition-old(transfer-card) {
        animation: 0.22s cubic-bezier(0.4, 0, 1, 1) both transferCardExit;
        border-radius: 28px !important;
        overflow: hidden !important;
    }

    ::view-transition-new(transfer-card) {
        animation: 0.32s cubic-bezier(0.16, 1, 0.3, 1) both transferCardEnter;
        border-radius: 28px !important;
        overflow: hidden !important;
    }
}

@keyframes transferCardExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes transferCardEnter {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.beam-container {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(13, 16, 25, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-top: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(6, 182, 212, 0.08);
}

.beam-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #22D3EE;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

/* Przełącznik trybu: Wyślij / Odbierz */
.beam-mode-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    margin: 22px 0 28px 0;
}

.beam-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted, #94A3B8);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.beam-tab-btn:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
}

.beam-tab-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #22D3EE;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.12);
}

/* Strefa upuszczania pliku */
.beam-dropzone {
    border: 2px dashed rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 42px 24px;
    text-align: center;
    background: rgba(6, 182, 212, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beam-dropzone:hover,
.beam-dropzone.dragover {
    border-color: #06B6D4;
    background: rgba(6, 182, 212, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
}

.beam-dropzone-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.12);
    border-radius: 50%;
    margin-bottom: 16px;
}

.beam-radar-ripple {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.4);
    animation: beamRipple 2.2s infinite;
}

@keyframes beamRipple {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.beam-choose-btn {
    margin-top: 16px;
    background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

/* Karta aktywnego transferu */
.beam-active-card {
    background: rgba(18, 22, 33, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 18px;
    padding: 28px 24px;
    animation: timelockFadeIn 0.3s ease-out;
}

.beam-file-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.beam-file-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #22D3EE;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.beam-file-name {
    color: #F8FAFC;
    font-size: 14px;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beam-file-size {
    font-size: 12.5px;
    color: var(--text-muted, #94A3B8);
    margin-left: auto;
}

/* Kaseton Kodu PIN */
.beam-pin-section {
    text-align: center;
    margin-bottom: 26px;
}

.beam-pin-section label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted, #94A3B8);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.beam-pin-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.beam-pin-box {
    width: 48px;
    height: 56px;
    background: linear-gradient(180deg, rgba(26, 32, 48, 0.9) 0%, rgba(13, 17, 26, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-top: 1px solid rgba(6, 182, 212, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #FFFFFF;
    text-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.beam-pin-divider {
    font-size: 24px;
    color: rgba(6, 182, 212, 0.6);
    margin: 0 4px;
}

/* Radar połączenia i QR kod */
.beam-connect-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.beam-radar-box {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.beam-radar-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.beam-radar-circle.circle-1 {
    width: 40px;
    height: 40px;
}

.beam-radar-circle.circle-2 {
    width: 80px;
    height: 80px;
}

.beam-radar-circle.circle-3 {
    width: 120px;
    height: 120px;
}

.beam-radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    transform-origin: top left;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.45) 0%, transparent 60%);
    animation: beamRadarSweep 3s linear infinite;
    pointer-events: none;
}

@keyframes beamRadarSweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.beam-radar-center {
    font-size: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px #06B6D4);
}

.beam-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.beam-qr-box canvas {
    display: block;
    border-radius: 6px;
}

.beam-qr-sub {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    margin-top: 6px;
    text-align: center;
}

/* Status tekstowy */
.beam-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

.beam-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06B6D4;
    box-shadow: 0 0 10px #06B6D4;
    animation: spyBeaconPulse 1.2s infinite;
}

/* Pasek postępu i prędkościomierz */
.beam-progress-box {
    margin-bottom: 22px;
}

.beam-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 8px;
}

.beam-speed-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.beam-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.beam-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #06B6D4 0%, #10B981 100%);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
    border-radius: 999px;
    transition: width 0.15s ease-out;
}

/* Przyciski akcji Beam */
.beam-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-copy-direct {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    color: #22D3EE;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-direct:hover {
    background: rgba(6, 182, 212, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-outline-danger {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    color: #F87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #EF4444;
}

/* Tab Odbiorcy */
.beam-receive-card {
    text-align: center;
    padding: 10px 0;
}

.beam-receive-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.beam-pin-input-wrap {
    margin: 22px auto;
    max-width: 280px;
}

.beam-pin-input {
    width: 100%;
    height: 56px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(16, 185, 129, 0.35);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beam-pin-input:focus {
    border-color: #10B981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.beam-receive-submit-btn {
    width: 100%;
    max-width: 280px;
    height: 48px;
    margin: 0 auto;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.beam-completed-box {
    text-align: center;
    padding: 16px 0;
}

.beam-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #10B981;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.btn-save-beam {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    text-decoration: none;
}

/* Siatka zalet i cech Dropsite Beam P2P pod kartą */
.beam-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
    width: 100%;
}

@media (max-width: 640px) {
    .beam-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }
}

.beam-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(13, 17, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 20px 22px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.beam-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.1);
}

.beam-feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.beam-feat-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.2px;
}

.beam-feat-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #94A3B8;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OPTIMIZATIONS (SMARTPHONES <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    #view-beam {
        min-height: auto !important;
        padding-bottom: 90px !important;
    }

    .beam-container {
        padding: 20px 14px !important;
        border-radius: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .transfer-mode-switcher {
        padding: 3px !important;
        gap: 3px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 999px !important;
    }

    .mode-switch-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 999px !important;
    }

    .mode-switch-btn .mode-label {
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    .mode-badge {
        font-size: 8px !important;
        padding: 1.5px 5px !important;
        border-radius: 999px !important;
    }

    .beam-pin-grid {
        gap: 5px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .beam-pin-box {
        width: 36px !important;
        height: 46px !important;
        font-size: 20px !important;
        border-radius: 9px !important;
    }

    .beam-pin-divider {
        font-size: 18px !important;
        margin: 0 1px !important;
    }

    .beam-connect-row {
        gap: 16px !important;
        flex-direction: column !important;
    }

    .beam-radar-box {
        width: 100px !important;
        height: 100px !important;
    }

    .beam-action-btn {
        padding: 13px 20px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    .beam-mode-tabs {
        width: 100% !important;
    }

    .beam-mode-tab {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   DROPSITE HIGH-PERFORMANCE / ECO MODE (POTATO PC & WEAK HARDWARE SHIELD)
   ========================================================================== */
.eco-mode,
.perf-mode {
    --transition-smooth: all 0.15s ease !important;
    --transition-bounce: all 0.15s ease !important;
}

/* Wyłączenie cząsteczek tła canvas na słabszym sprzęcie */
.eco-mode .bg-canvas,
.perf-mode .bg-canvas {
    display: none !important;
}

/* Wyłączenie ruchomych i wielkich pseudoelementów tła */
.eco-mode body::before,
.eco-mode body::after,
.perf-mode body::before,
.perf-mode body::after {
    display: none !important;
}

.eco-mode .studio-split-hero::before,
.perf-mode .studio-split-hero::before {
    display: none !important;
}

/* Wyłączenie rotujących wstęg świetlnych i bąbli plazmy */
.eco-mode .siri-fluid-plasma,
.eco-mode .siri-wave-stream,
.eco-mode .siri-wave-ripple,
.perf-mode .siri-fluid-plasma,
.perf-mode .siri-wave-stream,
.perf-mode .siri-wave-ripple {
    display: none !important;
}

/* Wyłączenie kosztownych rozmyć tła GPU (Backdrop-Filter Bypass) */
.eco-mode *,
.perf-mode * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Solidne, eleganckie ciemne panele zastępujące przezroczyste szklane blury */
.eco-mode .nav-bar,
.perf-mode .nav-bar {
    background: #0B0E14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.eco-mode .upload-container,
.perf-mode .upload-container {
    background: #0F131D !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

.eco-mode .bento-card,
.perf-mode .bento-card {
    background: #10141E !important;
    box-shadow: none !important;
}

.eco-mode .mod-modal-content,
.perf-mode .mod-modal-content,
.eco-mode .modal-box,
.perf-mode .modal-box {
    background: #0C1017 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8) !important;
}

.eco-mode .nav-dropdown-menu,
.perf-mode .nav-dropdown-menu {
    background: #0D111A !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8) !important;
}

/* Wstrzymanie obciążających animacji tła i pulsu */
.eco-mode [class*="pulse"],
.perf-mode [class*="pulse"],
.eco-mode .value-icon,
.perf-mode .value-icon {
    animation: none !important;
}

/* Przycisk przełączania trybu w stopce i nawigacji */
.footer-perf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}
.footer-perf-pill:hover {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: #34D399;
}
.eco-mode .footer-perf-pill {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
    color: #34D399;
}

/* Wyłączenie bąbli w sekcji Bento dla trybu Eco */
.eco-mode .snake-story-panel::before,
.eco-mode .bento-flow-panel::before,
.eco-mode .bento-pigment-wash,
.eco-mode .hud-showcase-card::before,
.perf-mode .snake-story-panel::before,
.perf-mode .bento-flow-panel::before,
.perf-mode .bento-pigment-wash,
.perf-mode .hud-showcase-card::before {
    display: none !important;
}

/* Wyłączenie ciągłych animacji w przycisku technologii radialnych */
.eco-mode .btn-radial-trigger *,
.perf-mode .btn-radial-trigger * {
    animation: none !important;
    filter: none !important;
}
