/* ==========================================================================
   DROPSITE FLUID CYBER-MINT & NEON-CYAN LIQUID WAVE SYSTEM (Siri-Style)
   ========================================================================== */

/* 1. Rotacje wstęg energetycznych (Wysoka dynamika i prędkość) */
@keyframes siriStreamClockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes siriStreamCounterClockwise {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* 2. Organiczne płynne fale plazmy (Optymalizacja GPU - transform 3D bez kosztownego repaintu border-radius) */
@keyframes plasmaMorph1 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate3d(24px, -18px, 0) scale(1.18) rotate(90deg);
    }
}

@keyframes plasmaMorph2 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate3d(-24px, 18px, 0) scale(1.15) rotate(-90deg);
    }
}

@keyframes plasmaMorph3 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate3d(18px, 14px, 0) scale(1.2) rotate(120deg);
    }
}

@keyframes plasmaMorph4 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate3d(-18px, -14px, 0) scale(1.16) rotate(-120deg);
    }
}

/* 3. Pulsująca fala rezonansowa fali dźwiękowo-świetlnej */
@keyframes siriWaveRipple {
    0% {
        opacity: 0.8;
        transform: scale(0.985);
        border-color: rgba(0, 240, 255, 0.7);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), inset 0 0 12px rgba(196, 231, 212, 0.35);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.04);
        border-color: rgba(196, 231, 212, 0.5);
        box-shadow: 0 0 45px rgba(196, 231, 212, 0.45), inset 0 0 20px rgba(0, 240, 255, 0.25);
    }
    100% {
        opacity: 0.8;
        transform: scale(0.985);
        border-color: rgba(0, 240, 255, 0.7);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), inset 0 0 12px rgba(196, 231, 212, 0.35);
    }
}

/* Główny kontener ramy świetlnej — responsywny clamp pod 2K, 1080p i mobile */
.siri-glow-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: clamp(24px, 2.2vw, 32px);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. Organiczne Chmury Płynnej Plazmy (Fluid Plasma Blobs - tło) */
.siri-fluid-plasma {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    filter: blur(64px);
    opacity: 0.18;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.plasma-blob {
    position: absolute;
    width: 55%;
    height: 60%;
    border-radius: 50%;
    /* GPU friendly native alpha blending */
    opacity: 0.65;
    pointer-events: none;
}

.blob-mint {
    top: -12%;
    left: -10%;
    background: radial-gradient(circle, #C4E7D4 0%, rgba(196, 231, 212, 0.45) 45%, transparent 75%);
    animation: plasmaMorph1 5.2s ease-in-out infinite alternate;
}

.blob-cyan {
    top: -14%;
    right: -10%;
    background: radial-gradient(circle, #00F0FF 0%, rgba(0, 240, 255, 0.55) 45%, transparent 75%);
    animation: plasmaMorph2 6.2s ease-in-out infinite alternate;
}

.blob-emerald {
    bottom: -16%;
    right: 2%;
    background: radial-gradient(circle, #C4E7D4 0%, rgba(196, 231, 212, 0.45) 45%, transparent 75%);
    animation: plasmaMorph3 6.8s ease-in-out infinite alternate;
}

.blob-sky {
    bottom: -14%;
    left: 0%;
    background: radial-gradient(circle, #38BDF8 0%, rgba(56, 189, 248, 0.55) 45%, transparent 75%);
    animation: plasmaMorph4 5.8s ease-in-out infinite alternate;
}

/* 2. Pulsująca Fala Rezonansowa — usunięty ostry neon */
.siri-wave-ripple {
    display: none !important;
}

/* 3. Opływowa Wstęga Światła — usunięty obracający się neon */
.siri-wave-stream {
    display: none !important;
}

.siri-glow-frame:hover .siri-fluid-plasma,
.siri-glow-frame:focus-within .siri-fluid-plasma,
.siri-glow-frame:has(.upload-container.has-files) .siri-fluid-plasma,
.siri-glow-frame:has(.upload-container.options-forced) .siri-fluid-plasma {
    opacity: 0.35;
    filter: blur(70px);
}

/* --- Główny Panel Kapsułki (True Liquid Frosted Glass) --- */
.upload-container {
    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.15) !important;
    box-shadow: 
        0 30px 80px -15px rgba(0, 0, 0, 0.78), 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.4) !important;
    border-radius: clamp(24px, 2.2vw, 32px) !important;
    padding: clamp(28px, 3.2vh, 42px) clamp(24px, 2.8vw, 44px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: visible !important;
}

.upload-container:hover {
    border-color: rgba(196, 231, 212, 0.4) !important;
    box-shadow: 
        0 35px 90px -15px rgba(0, 0, 0, 0.85), 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        0 0 40px -10px rgba(196, 231, 212, 0.22) !important;
}

/* --- Nagłówki --- */
.upload-header {
    text-align: center;
    margin-bottom: 24px;
}

.upload-header h1,
.upload-header h2,
.upload-header .upload-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #B0B5C0 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 16px rgba(94, 234, 212, 0.35);
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(94, 234, 212, 0.25); }
    to { text-shadow: 0 0 20px rgba(94, 234, 212, 0.55); }
}

.upload-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 8px 0 0;
    font-weight: 500;
}

/* --- Cinematic Drag & Drop Overlay --- */
.global-drag-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.global-drag-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drag-content {
    text-align: center;
    border: 3px dashed var(--accent-blue);
    border-radius: var(--radius-lg);
    padding: 60px 100px;
    background: rgba(196, 231, 212, 0.05);
    box-shadow: 0 0 50px rgba(196, 231, 212, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none; /* Żeby można było łatwo opuścić */
}

.global-drag-overlay.active .drag-content {
    transform: scale(1);
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 30px rgba(196, 231, 212, 0.2); }
    50% { box-shadow: 0 0 60px rgba(196, 231, 212, 0.5); }
    100% { box-shadow: 0 0 30px rgba(196, 231, 212, 0.2); }
}

.drag-icon {
    color: var(--accent-blue);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.drag-content h2 {
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #FFFFFF;
}

.drag-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Dropzone (Interactive Tactile Glass - PDF Studio Mint Palette) --- */
.dropzone {
    position: relative;
    border: 2px dashed rgba(196, 231, 212, 0.4);
    border-radius: 18px;
    padding: clamp(26px, 3vh, 36px) 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(196, 231, 212, 0.06) 50%, rgba(168, 218, 191, 0.04) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    margin-bottom: 12px;
    overflow: hidden;
    min-height: 175px;
    box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Stan załadowanego pliku — znika przerywana linia, wchodzi zwarta szklana rama */
.upload-container.has-files .dropzone,
.dropzone.has-media-loaded {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 18px !important;
    background: rgba(8, 12, 20, 0.75) !important;
    padding: 0 !important;
    min-height: auto !important;
    cursor: default !important;
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    margin-bottom: 8px !important;
}

.upload-container.has-files .upload-header {
    margin-bottom: 14px !important;
}

.upload-container.has-files .upload-header p {
    display: none !important;
}

/* --- Media Showcase (Luksusowa prezentacja wybranego zdjęcia/wideo bez pustego boiska) --- */
.media-showcase-card {
    position: relative;
    width: 100%;
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(30, 41, 59, 0.45) 0%, rgba(9, 14, 23, 0.85) 100%);
}

.showcase-img-wrap {
    position: relative;
    width: 100%;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.showcase-img {
    max-height: 196px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65), 0 0 16px rgba(196, 231, 212, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-video {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
    display: block;
    outline: none;
}

.showcase-floating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.showcase-badge-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    letter-spacing: 0.2px;
}

.btn-showcase-remove {
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #CBD5E1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-showcase-remove svg {
    color: inherit;
    stroke: currentColor;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-showcase-remove:hover {
    background: rgba(196, 231, 212, 0.16) !important;
    border-color: rgba(196, 231, 212, 0.55) !important;
    color: #C4E7D4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 16px rgba(196, 231, 212, 0.25) !important;
}

.btn-showcase-remove:hover svg {
    color: #C4E7D4 !important;
    stroke: #C4E7D4 !important;
    transform: rotate(45deg);
}

.btn-showcase-remove:active {
    transform: translateY(0) scale(0.97);
}

.dropzone::before {
    display: none;
}

.dropzone:hover, .dropzone.active {
    border-color: #C4E7D4;
    background: linear-gradient(180deg, rgba(196, 231, 212, 0.13) 0%, rgba(168, 218, 191, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(196, 231, 212, 0.28), inset 0 1px 10px rgba(255, 255, 255, 0.2);
}

.dropzone.active { animation: dropPulse 0.6s ease-in-out; }

@keyframes dropPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Iconic Glowing Squircle Badge */
.upload-icon-bubble {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(196, 231, 212, 0.2) 0%, rgba(168, 218, 191, 0.12) 100%);
    border: 1px solid rgba(196, 231, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(196, 231, 212, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropzone:hover .upload-icon-bubble,
.dropzone.active .upload-icon-bubble {
    transform: translateY(-3px) scale(1.08);
    background: linear-gradient(135deg, rgba(196, 231, 212, 0.32) 0%, rgba(168, 218, 191, 0.2) 100%);
    border-color: #C4E7D4;
    box-shadow: 0 10px 32px rgba(196, 231, 212, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.upload-icon {
    color: #C4E7D4;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(196, 231, 212, 0.55));
}

.dropzone:hover .upload-icon, .dropzone.active .upload-icon {
    color: #FFFFFF;
    filter: drop-shadow(0 0 16px rgba(196, 231, 212, 0.85));
}

.drop-text { 
    font-size: 16px; 
    font-weight: 700; 
    color: #FFFFFF; 
    letter-spacing: -0.2px;
}

.drop-subtext { 
    font-size: 12.5px; 
    color: #CBD5E1; 
    font-weight: 500;
}

.btn-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #A8DABF 0%, #C4E7D4 100%);
    color: #071E17;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 4px 18px rgba(196, 231, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* Kliknięcie w przycisk jest jednolicie obsługiwane przez kontener dropzone */
}

.dropzone:hover .btn-select,
.dropzone.active .btn-select {
    background: linear-gradient(135deg, #C4E7D4 0%, #E2F5EC 100%);
    box-shadow: 0 6px 26px rgba(196, 231, 212, 0.65), 0 0 32px rgba(196, 231, 212, 0.35);
    transform: scale(1.04);
}

.btn-select svg {
    margin-right: 2px;
    color: #071E17;
    stroke: #071E17;
}

input[type='file'] {
    display: none;
}

/* --- Czysty, bezramkowy File Info & Progress Stream (Anti-Pill Overload wg BRAND_GUIDELINES.md) --- */
.file-status-box {
    display: none;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
    border-radius: 0; 
    padding: 6px 2px 12px 2px;
    gap: 10px;
    margin-top: 2px;
    margin-bottom: 14px;
    min-height: auto;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.file-status-box.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.fs-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(196, 231, 212, 0.5));
}

.fs-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
    gap: 5px;
    overflow: hidden;
}

.fs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}

.fs-filename {
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 40px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fs-size { 
    color: #94A3B8; 
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.fs-track {
    height: 3.5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.fs-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 999px;
    width: 0%;
    transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Options --- */
.options-container { 
    margin-top: 18px; 
    margin-bottom: 24px; 
}

.options-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.options-radios {
    position: relative;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr 0.82fr 1.18fr;
    gap: 4px;
    background: rgba(0, 0, 0, 0.32);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--panel-border);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
    isolation: isolate;
}

/* PŁYNNY ŚLIZGACZ (AESTHETIC SPRING GLIDER) */
.options-glider {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, width, height;
}

.options-glider::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

/* Tryb 1 Dzień - Cyber Emerald */
.options-glider.glider-mode-1d {
    background: rgba(196, 231, 212, 0.16);
    border: 1px solid rgba(196, 231, 212, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 16px rgba(196, 231, 212, 0.22);
}

/* Tryb Burn After Read - Ogień / Płomień */
.options-glider.glider-mode-burn {
    background: linear-gradient(135deg, rgba(255, 68, 57, 0.35) 0%, rgba(255, 140, 0, 0.25) 100%);
    border: 1px solid rgba(255, 68, 57, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 68, 57, 0.45);
}

/* Tryb 30 Dni & Bezterminowo - Złoty PRO */
.options-glider.glider-mode-30d,
.options-glider.glider-mode-permanent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.26) 0%, rgba(217, 119, 6, 0.18) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 18px rgba(245, 158, 11, 0.3);
}

.option-item {
    position: relative;
    cursor: pointer;
    margin: 0;
    display: flex;
    z-index: 2;
}

.option-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.option-item > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 8px 6px;
    font-size: 11.5px;
    letter-spacing: -0.2px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    transition: color 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
}

.option-item > span .badge-pro-pill {
    font-size: 8px !important;
    padding: 1px 4px !important;
    margin-left: 2px !important;
    letter-spacing: 0.2px !important;
    border-radius: 4px !important;
}

.option-item > input:checked + span {
    color: #C4E7D4;
    font-weight: 700;
    transform: scale(1.02);
}

.option-item-burn > input:checked + span {
    color: #FF8E72 !important;
}

.option-item-pro > input:checked + span {
    color: #FCD34D !important;
}

.option-item:hover > input:not(:checked) + span {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.04);
}

.option-item:active > span {
    transform: scale(0.95);
}

.burn-icon-svg {
    stroke: #FF5A36;
    fill: rgba(255, 90, 54, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255, 90, 54, 0.4));
}

.option-item-burn:hover .burn-icon-svg {
    transform: scale(1.18);
    stroke: #FF7A00;
    fill: rgba(255, 122, 0, 0.4);
    filter: drop-shadow(0 0 8px rgba(255, 90, 54, 0.8));
}

.option-item-burn input:checked + span .burn-icon-svg {
    stroke: #FFA07A;
    fill: rgba(255, 140, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 68, 57, 0.9));
    animation: flameFlicker 1.8s infinite alternate ease-in-out;
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 6px rgba(255, 68, 57, 0.7)); }
    50% { transform: scale(1.12) rotate(3deg); filter: drop-shadow(0 0 14px rgba(255, 120, 0, 1)); }
    100% { transform: scale(1.02) rotate(-1.5deg); filter: drop-shadow(0 0 9px rgba(255, 68, 57, 0.8)); }
}

.option-item-burn.ignite-anim > span {
    animation: fireButtonBurst 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fireButtonBurst {
    0% {
        transform: scale(0.94);
        box-shadow: 0 0 0 rgba(255, 68, 57, 0);
    }
    35% {
        transform: scale(1.08);
        box-shadow: 0 0 26px rgba(255, 68, 57, 0.8), 0 0 45px rgba(255, 140, 0, 0.5);
        background: linear-gradient(135deg, rgba(255, 68, 57, 0.5) 0%, rgba(255, 140, 0, 0.4) 100%) !important;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(255, 68, 57, 0.35);
    }
}

.burn-fire-spark {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 999;
    will-change: transform, opacity;
    animation: sparkFly 0.8s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1.2);
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx, 0px), var(--dy, -45px)) scale(0);
    }
}

.option-item:hover > input:not(:checked) + span {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .options-radios {
        grid-template-columns: repeat(2, 1fr);
    }
    .option-item > span {
        font-size: 11.5px;
        padding: 8px 4px;
    }
}

/* --- Główny Przycisk (Translucent Cyber Glass Aesthetic) --- */
.btn-primary {
    box-sizing: border-box;
    margin-top: 18px;
    position: relative;
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    
    /* Półprzezroczyste, szlachetne szkło mrożone */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    color: #FFFFFF;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Organiczny cień i wewnętrzny refleks */
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s ease,
                border-color 0.25s ease,
                color 0.2s ease;
}

/* Wewnętrzna zawartość przycisku (ikona + tekst + sparkle) */
.btn-primary-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

/* Dynamiczna ikona strzałki z lewitacją */
.btn-upload-icon {
    flex-shrink: 0;
    color: #FFFFFF;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:not(:disabled) .btn-upload-icon {
    animation: uploadArrowFloat 2.2s ease-in-out infinite;
}

@keyframes uploadArrowFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.5px);
    }
}

/* Migocząca mikro-iskra dodająca sznytu premium */
.btn-sparkle-icon {
    flex-shrink: 0;
    opacity: 0.75;
    color: #E2E8F0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-primary:not(:disabled) .btn-sparkle-icon {
    animation: sparkleTwinkle 2.8s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.85) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(180deg);
    }
}

.btn-primary-sheen {
    display: none;
}

/* Aktywny Przycisk Główny (Oryginalne Szlachetne Szkło Mrożone Cyber-Glass) */
.btn-primary:not(:disabled) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.42) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
}

/* Hover na aktywnym przycisku: rozświetlenie szkła */
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1.5px) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0.09) 100%) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    border-top-color: rgba(255, 255, 255, 0.7) !important;
    color: #FFFFFF !important;
    box-shadow: 
        0 14px 34px -4px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.btn-primary:hover:not(:disabled) .btn-upload-icon {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    transform: translateY(-2px);
}

.btn-primary:hover:not(:disabled) .btn-sparkle-icon {
    opacity: 1;
    color: #FFFFFF;
    transform: scale(1.15) rotate(90deg);
}

/* Kliknięcie / Active - sprężysty, kinetyczny docisk */
.btn-primary:active:not(:disabled) {
    transform: scale(0.975) translateY(1px) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

/* Stan Oczekujący / Pusty (Gdy brak wybranego pliku - klikalny, otwiera okno wyboru pliku) */
.btn-primary.empty-state {
    cursor: pointer !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.btn-primary.empty-state:hover {
    cursor: pointer !important;
    transform: translateY(-1.5px) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%) !important;
    border-color: rgba(196, 231, 212, 0.35) !important;
    border-top-color: rgba(196, 231, 212, 0.6) !important;
    color: #FFFFFF !important;
    box-shadow: 
        0 10px 28px -4px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(196, 231, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-primary.empty-state:hover .btn-upload-icon {
    transform: translateY(-2px);
    color: #C4E7D4;
    filter: drop-shadow(0 0 8px rgba(196, 231, 212, 0.6));
}

.btn-primary.empty-state:hover .btn-sparkle-icon {
    opacity: 1;
    color: #C4E7D4;
}

.btn-primary.empty-state:active {
    transform: scale(0.975) translateY(1px) !important;
}

/* Stan Zablokowany (Disabled - podczas transferu) */
.btn-primary:disabled {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: none;
    animation: none;
}

.btn-primary:disabled .btn-upload-icon,
.btn-primary:disabled .btn-sparkle-icon {
    opacity: 0.25;
    animation: none;
    transform: none;
}

.btn-primary:disabled .btn-primary-sheen {
    display: none;
}

/* Stan Wgrywania (Kinetic Rocket Launch & Cyber Laser Sweep) */
.btn-primary.loading {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-color: rgba(196, 231, 212, 0.45) !important;
    border-top-color: rgba(255, 255, 255, 0.7) !important;
    color: #FFFFFF !important;
    cursor: wait !important;
    box-shadow: 
        0 10px 32px -4px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(196, 231, 212, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    animation: uploadCyberPulse 2.2s ease-in-out infinite alternate !important;
}

/* Laser sweep sweepujący po powierzchni szkła */
.btn-primary.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(196, 231, 212, 0.3) 50%,
        rgba(56, 189, 248, 0.22) 75%,
        transparent 100%
    );
    animation: cyberLaserSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cyberLaserSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes uploadCyberPulse {
    0% {
        box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(196, 231, 212, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        border-color: rgba(196, 231, 212, 0.4);
    }
    100% {
        box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.8), 0 0 32px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
        border-color: rgba(56, 189, 248, 0.6);
    }
}

/* Wystrzał strzałki w kosmos przy uruchomieniu uploadu */
.btn-primary.loading .btn-upload-icon {
    animation: uploadArrowRocketLaunch 1.4s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
    filter: drop-shadow(0 0 10px rgba(196, 231, 212, 0.85)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.5)) !important;
    color: #C4E7D4 !important;
}

@keyframes uploadArrowRocketLaunch {
    0% {
        transform: translateY(12px) scale(0.7);
        opacity: 0;
    }
    30% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateY(-8px) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translateY(-24px) scale(0.85);
        opacity: 0;
    }
}

.btn-primary.loading .btn-sparkle-icon {
    animation: sparkleTwinkleLoading 1.2s ease-in-out infinite alternate !important;
    color: #38BDF8 !important;
}

@keyframes sparkleTwinkleLoading {
    0% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.25) rotate(180deg); filter: drop-shadow(0 0 8px #38BDF8); }
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(196, 231, 212, 0.12) 50%, transparent 80%);
    transform: scale(0);
    animation: delicateSheen 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 5;
    filter: blur(4px);
}

@keyframes delicateSheen {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.btn-text {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.status {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* --- Mobile Responsive dla Paska Pliku --- */
@media (max-width: 600px) {
    .file-status-box {
        padding: 6px 2px 10px 2px;
        min-height: auto;
        gap: 8px;
        border-radius: 0;
    }

    .fs-icon {
        width: auto;
        height: auto;
        align-self: flex-start;
        margin-top: 2px;
    }

    .fs-content {
        padding: 0;
        gap: 3px;
    }

    .fs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .fs-filename {
        width: 100%;
        max-width: 100%;
        font-size: 12.5px;
    }

    .fs-meta-right {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 11.5px;
    }
}

/* --- Tryb Zen & Płynna Progresywna Konfiguracja --- */
.zen-options-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 2px;
    transition: opacity 0.3s ease, max-height 0.35s ease, margin 0.3s ease;
}

.upload-container.has-files .zen-options-toggle-wrap,
.upload-container.options-forced .zen-options-toggle-wrap {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.btn-zen-options {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted, #94A3B8);
    font-size: 12px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-zen-options:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 231, 212, 0.4);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-zen-options .zen-chevron {
    transition: transform 0.25s ease;
}

.btn-zen-options:hover .zen-chevron {
    transform: translateY(1px);
    color: #C4E7D4;
}

/* Rozwijana sekcja opcji — płynny grid i kaskadowy wjazd */
.upload-options-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                visibility 0.35s ease;
}

.upload-options-collapsible > .options-collapsible-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.upload-container.has-files .upload-options-collapsible,
.upload-container.options-forced .upload-options-collapsible,
.upload-container.options-expanded .upload-options-collapsible {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.upload-container.has-files .upload-options-collapsible > .options-collapsible-inner,
.upload-container.options-forced .upload-options-collapsible > .options-collapsible-inner,
.upload-container.options-expanded .upload-options-collapsible > .options-collapsible-inner {
    overflow: visible;
    transform: translateY(0);
    opacity: 1;
}
