/* ==========================================================================
   DROPSITE CLEAN TRANSFER SUCCESS VIEW (Apple & Linear Minimalist Aesthetic)
   ========================================================================== */

/* Automatyczne dopasowanie i wysmuklenie karty głównej oraz świetlnej ramy po udanym przesłaniu */
.studio-hero-right:has(#successFlow:not([hidden])),
.siri-glow-frame:has(#successFlow:not([hidden])),
.upload-container:has(#successFlow:not([hidden])),
.studio-hero-right .upload-container:has(#successFlow:not([hidden])) {
    max-width: clamp(520px, 44vw, 780px) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.siri-glow-frame:has(#successFlow:not([hidden])) .siri-fluid-plasma {
    opacity: 0.15 !important;
    filter: blur(64px) !important;
}

.upload-container:has(#successFlow:not([hidden])),
.studio-hero-right .upload-container:has(#successFlow:not([hidden])) {
    width: 100% !important;
    padding: clamp(28px, 3.2vh, 42px) clamp(24px, 2.8vw, 44px) !important;
    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;
}

/* Ukryj przełącznik trybów Chmura/Beam gdy plik jest już wrzucony (niepotrzebny clutter) */
.upload-container:has(#successFlow:not([hidden])) .transfer-mode-switcher {
    display: none !important;
}

/* Wygaszanie bocznych dymków asystenta (Omni-Dropzone, Kompresja, Opcje) na etapie sukcesu */
.studio-hero-right:has(#successFlow:not([hidden])) .omni-context-card,
.siri-glow-frame:has(#successFlow:not([hidden])) .omni-context-card,
.upload-container:has(#successFlow:not([hidden])) .omni-context-card,
#omniContextCard:has(~ #successFlow:not([hidden])),
.studio-hero-right:has(#successFlow:not([hidden])) .compress-flyout-card,
.siri-glow-frame:has(#successFlow:not([hidden])) .compress-flyout-card,
.upload-container:has(#successFlow:not([hidden])) .compress-flyout-card,
.upload-container:has(#successFlow:not([hidden])) .adv-flyout-card {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Ukryj zewnętrzny slot reklamowy strony głównej, gdy ekran sukcesu ma już własny baner */
.studio-split-hero:has(#successFlow:not([hidden])) #homeAdSlot {
    display: none !important;
}

.success-flow {
    padding: 2px 0 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    animation: cleanSuccessIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-flow:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@keyframes cleanSuccessIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- 1. Sygnet Sukcesu (Sam Ptaszek + Sparkle Stars) --- */
.success-vault-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 52px;
    margin: 0 auto 4px;
}

.vault-badge-halo {
    display: block;
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(52, 211, 153, 0.12) 50%, transparent 70%);
    filter: blur(12px);
    opacity: 0;
    animation: haloPulseIn 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

/* Sparkles (Błyski Studio/AI) */
.vault-sparkle {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
}

.vault-sparkle.sparkle-1 {
    top: -2px;
    right: 2px;
    color: #38BDF8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
    animation: sparkleBurst 0.6s 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               sparkleTwinkle 2.6s 0.85s ease-in-out infinite alternate;
}

.vault-sparkle.sparkle-2 {
    bottom: 2px;
    left: 2px;
    color: #6EE7B7;
    filter: drop-shadow(0 0 6px rgba(110, 231, 183, 0.75));
    animation: sparkleBurst 0.6s 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               sparkleTwinkle 3s 0.95s ease-in-out infinite alternate-reverse;
}

.vault-sparkle.sparkle-3 {
    top: 6px;
    left: -4px;
    color: #BAE6FD;
    filter: drop-shadow(0 0 4px rgba(186, 230, 253, 0.75));
    animation: sparkleBurst 0.55s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               sparkleTwinkle 2.2s 1s ease-in-out infinite alternate;
}

.vault-badge-circle {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
    animation: checkLevitate 3.2s 0.55s ease-in-out infinite;
}

.vault-check-svg {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    color: #38BDF8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)) drop-shadow(0 0 2px #38BDF8);
    animation: drawCheckmark 0.45s 0.14s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               checkPopIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               checkGlowBreath 3.2s 0.55s ease-in-out infinite;
}

@keyframes checkPopIn {
    0% {
        transform: scale(0.65);
        opacity: 0;
    }
    65% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheckmark {
    0% {
        stroke-dashoffset: 32;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkLevitate {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.04);
    }
}

@keyframes checkGlowBreath {
    0%, 100% {
        filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 2px #38BDF8);
    }
    50% {
        filter: drop-shadow(0 0 13px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 4px #6EE7B7);
    }
}

@keyframes haloPulseIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes sparkleBurst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.3) rotate(15deg);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes sparkleTwinkle {
    0% {
        opacity: 0.5;
        transform: scale(0.85) rotate(-5deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.85) rotate(-5deg);
    }
}

/* --- 2. Tytuł Sukcesu --- */
.success-header {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.success-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

/* --- 3. Wizytówka Pliku (Asset Showcase Hero Card) --- */
.success-file-card {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.success-file-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.sfc-thumb-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sfc-thumb-box:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.45);
    transform: scale(1.05);
}

.sfc-live-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sfc-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
}

.sfc-filename {
    font-size: 13px;
    font-weight: 600;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s ease;
}

.sfc-filename:hover {
    color: #38BDF8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sfc-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94A3B8;
}

.sfc-size {
    font-weight: 500;
    color: #CBD5E1;
}

.sfc-retention-text {
    font-weight: 500;
    color: #94A3B8;
}

.sfc-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 9px;
}

.sfc-status-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #C4E7D4;
}

.sfc-live-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C4E7D4;
    box-shadow: 0 0 6px rgba(196, 231, 212, 0.8);
    animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- 4. Plakietki zaawansowane (Tylko gdy aktywne) --- */
.success-settings-status {
    width: 100%;
}

.success-applied-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.applied-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}

/* --- 5. Główny Hero Link Bar (Sleek Glass Bar) --- */
.clean-hero-link-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 6px 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    cursor: default;
    transition: all 0.25s ease;
}

.clean-hero-link-bar:hover {
    border-color: rgba(52, 211, 153, 0.28);
    border-top-color: rgba(52, 211, 153, 0.45);
    box-shadow: 
        0 10px 28px -4px rgba(0, 0, 0, 0.55), 
        0 0 20px rgba(52, 211, 153, 0.06), 
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.clean-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.clean-link-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(196, 231, 212, 0.1);
    border: 1px solid rgba(196, 231, 212, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4E7D4;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clean-link-icon-wrap:hover {
    background: rgba(196, 231, 212, 0.25);
    border-color: rgba(196, 231, 212, 0.6);
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(196, 231, 212, 0.35);
    transform: scale(1.06);
}

.clean-hero-link-bar:hover .clean-link-icon-wrap {
    background: rgba(196, 231, 212, 0.16);
    border-color: rgba(196, 231, 212, 0.4);
    color: #E2F5EC;
}

.clean-link-text {
    color: #F8FAFC;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: text;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color 0.18s ease;
}

.clean-link-text::selection {
    background: rgba(196, 231, 212, 0.25);
    color: #FFFFFF;
}

.clean-link-text:hover {
    color: #C4E7D4;
}

.clean-copy-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 11px;
    border: 1px solid rgba(196, 231, 212, 0.45);
    background: linear-gradient(135deg, #A8DABF 0%, #C4E7D4 100%);
    color: #071E17;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    font-family: inherit;
    cursor: pointer;
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    contain: paint;
    box-shadow: 0 2px 12px rgba(196, 231, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    user-select: none;
}

/* Shimmer beam przechodzący przez przycisk Kopiuj */
.clean-copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(196, 231, 212, 0.4) 75%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: buttonSheenLoop 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes buttonSheenLoop {
    0%, 35% {
        left: -120%;
    }
    75%, 100% {
        left: 220%;
    }
}

.clean-copy-btn svg,
.clean-copy-btn span {
    position: relative;
    z-index: 3;
    pointer-events: none;
    transition: color 0.18s ease;
}

.clean-copy-btn svg {
    color: #071E17;
    stroke: #071E17;
    transition: transform 0.18s ease;
}

.clean-copy-btn:hover {
    background: linear-gradient(135deg, #C4E7D4 0%, #E2F5EC 100%);
    border-color: rgba(196, 231, 212, 0.8);
    color: #04140E;
    box-shadow: 0 4px 18px rgba(196, 231, 212, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.clean-copy-btn:hover svg {
    color: #04140E;
    stroke: #04140E;
    transform: scale(1.05);
}

.clean-copy-btn:active {
    background: #A8DABF;
    transform: translateY(0);
    box-shadow: 0 1px 8px rgba(196, 231, 212, 0.35);
}

.clean-copy-btn.copied {
    background: linear-gradient(135deg, #A8DABF 0%, #C4E7D4 100%) !important;
    border-color: #C4E7D4 !important;
    color: #071E17 !important;
    box-shadow: 0 0 20px rgba(196, 231, 212, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.clean-copy-btn.copied svg {
    color: #071E17 !important;
    stroke: #071E17 !important;
}

/* --- Dopracowany, aksamitny efekt Ripple Button o zerowym wpływie na wymiary przycisku --- */
.btn-light-splash {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 2;
}

.btn-light-splash::after {
    content: '';
    position: absolute;
    top: -55px;
    left: -55px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(110, 231, 183, 0.75) 30%,
        rgba(56, 189, 248, 0.4) 55%,
        rgba(16, 185, 129, 0.15) 75%,
        transparent 85%
    );
    filter: blur(3px);
    animation: smoothRippleSplash 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    mix-blend-mode: screen;
}

@keyframes smoothRippleSplash {
    0% {
        transform: scale(0.15);
        opacity: 0.95;
    }
    40% {
        opacity: 0.75;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* --- 6. Zbalansowany Smart Action Dock --- */
.success-actions-dock {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.success-dock-primary-btn {
    position: relative;
    overflow: hidden;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #94A3B8;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-dock-primary-btn svg {
    color: #94A3B8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.success-dock-primary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 231, 212, 0.4);
    border-top-color: rgba(196, 231, 212, 0.5);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 14px rgba(196, 231, 212, 0.15);
}

.success-dock-primary-btn:hover svg {
    color: #C4E7D4;
}

.success-dock-primary-btn:hover .dock-arrow-icon {
    transform: translate(2px, -2px);
}

.dock-arrow-icon {
    transition: transform 0.2s ease;
    opacity: 0.85;
}

/* Zintegrowana, minimalistyczna listwa narzędziowa (bez bąbli) */
.success-utility-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 2px 0;
}

.clean-strip-item {
    position: relative;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transition: all 0.18s ease;
}

.clean-strip-item svg {
    color: #94A3B8;
    transition: color 0.18s ease, transform 0.2s ease;
}

.clean-strip-item:hover {
    color: #FFFFFF;
    background: rgba(196, 231, 212, 0.08);
}

.clean-strip-item:hover svg {
    color: #C4E7D4;
    transform: scale(1.08);
}

.clean-strip-dot {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
    user-select: none;
}

/* --- 7. Slot reklamowy na ekranie sukcesu --- */
#successAdSlot,
.ad-slot-success {
    width: 100%;
    margin: 4px 0 2px 0 !important;
    overflow: visible !important;
}

.ad-slot-success .dropsite-ad-banner {
    padding: 15px 16px 13px 16px !important;
    border-radius: 14px !important;
}

/* --- 8. Certyfikat bezpieczeństwa Zero-Knowledge (Czysty podpis) --- */
.clean-security-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #64748B;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1px;
    margin: 2px auto 0;
}

.clean-security-caption svg {
    color: #C4E7D4;
    opacity: 0.85;
}

/* --- Responsywność dla Telefonów (<= 600px) --- */
@media (max-width: 600px) {
    .studio-hero-right:has(#successFlow:not([hidden])),
    .siri-glow-frame:has(#successFlow:not([hidden])),
    .upload-container:has(#successFlow:not([hidden])),
    .studio-hero-right .upload-container:has(#successFlow:not([hidden])) {
        padding: 22px 16px 18px 16px !important;
        border-radius: 20px !important;
        max-width: 100% !important;
    }

    .success-title {
        font-size: 18px !important;
    }

    .clean-hero-link-bar {
        padding: 4px 4px 4px 12px !important;
    }

    .clean-link-text {
        font-size: 12px !important;
    }

    .clean-copy-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .clean-actions-row {
        gap: 6px !important;
    }

    .clean-tool-btn {
        padding: 7px 8px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
    }

    .clean-tool-btn svg {
        width: 13px !important;
        height: 13px !important;
    }
}

/* --- 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 --- */
.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;
}
/* ==========================================================================
   SUCCESS SCREEN REDESIGN – OPCJE A + B + C + D
   ========================================================================== */

/* ===== OPCJA D – GLASSMORPHISM HERO CARD (Spójne tło ze stanem uploadu) ===== */

.upload-container:has(#successFlow:not([hidden])),
.studio-hero-right .upload-container:has(#successFlow:not([hidden])) {
    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;
}

/* ===== OPCJA A – WZMOCNIONY MOMENT TRIUMFU (Czysty, luksusowy sygnet) ===== */

.success-vault-badge {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 4px !important;
}

/* Usunięcie surowych pierścieni drucianych */
.success-vault-badge::before,
.success-vault-badge::after {
    display: none !important;
}

/* Halo brand mint (PDF Studio palette) */
.vault-badge-halo {
    position: absolute !important;
    inset: -14px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle,
        rgba(196, 231, 212, 0.45) 0%,
        rgba(52, 211, 153, 0.2) 40%,
        transparent 70%) !important;
    filter: blur(14px) !important;
    pointer-events: none !important;
}

/* Całkowicie swobodny znaczek zatwierdzenia (zero kwadratów, zero ramek) */
.vault-badge-circle {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #C4E7D4 !important;
}

/* Checkmark brand mint */
.vault-check-svg {
    width: 36px !important;
    height: 36px !important;
    color: #C4E7D4 !important;
    stroke: #C4E7D4 !important;
    filter: drop-shadow(0 0 10px rgba(196, 231, 212, 0.85)) drop-shadow(0 0 2px rgba(196, 231, 212, 1)) !important;
    animation: drawCheckmark 0.45s 0.14s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               checkPopIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               checkGlowBreathMint 3.2s 0.55s ease-in-out infinite !important;
}

@keyframes checkGlowBreathMint {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(196, 231, 212, 0.75)) drop-shadow(0 0 2px #C4E7D4); }
    50% { filter: drop-shadow(0 0 16px rgba(196, 231, 212, 0.95)) drop-shadow(0 0 5px #A8DABF); }
}

.vault-sparkle.sparkle-1 { color: #E2F5EC !important; filter: drop-shadow(0 0 6px rgba(196, 231, 212, 0.85)) !important; }
.vault-sparkle.sparkle-2 { color: #C4E7D4 !important; filter: drop-shadow(0 0 6px rgba(196, 231, 212, 0.75)) !important; }
.vault-sparkle.sparkle-3 { color: #A8DABF !important; filter: drop-shadow(0 0 5px rgba(168, 218, 191, 0.75)) !important; }

/* Tytuł */
.success-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: -0.3px !important;
}

/* ==========================================================================
   ZUNIFIKOWANA KARTA TRANSFERU (VAULT PASS) & PŁYNNY MOTION DESIGN
   ========================================================================== */

.success-vault-pass {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.018) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 18px !important;
    box-shadow: 
        0 12px 32px -6px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.success-vault-pass:hover {
    border-color: rgba(196, 231, 212, 0.28) !important;
    border-top-color: rgba(196, 231, 212, 0.45) !important;
    box-shadow: 
        0 16px 36px -6px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(196, 231, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px) !important;
}

.svp-asset-section {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
    min-height: 64px !important;
}

.sfc-info-col {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    gap: 4px !important;
    overflow: hidden !important;
}

.sfc-filename {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #F8FAFC !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

.sfc-meta-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 7px !important;
    font-size: 12px !important;
    color: #94A3B8 !important;
    line-height: 1.2 !important;
}

.sfc-status-live {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.success-settings-status {
    width: auto !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.success-settings-status:empty,
.success-applied-badges:empty {
    display: none !important;
}

.svp-divider {
    width: 100% !important;
    height: 1px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.09) 15%, 
        rgba(255, 255, 255, 0.09) 85%, 
        transparent 100%) !important;
}

.svp-link-section {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 14px 10px 18px !important;
    background: rgba(0, 0, 0, 0.22) !important;
    box-sizing: border-box !important;
}

/* Dynamic Motion Choreography: Wyjście dropzone przy sukcesie */
.upload-container.transition-to-success > :not(#successFlow) {
    opacity: 0 !important;
    transform: translateY(-8px) scale(0.97) !important;
    filter: blur(3px) !important;
    pointer-events: none !important;
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.success-flow {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-flow.is-revealing {
    animation: smoothSuccessEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.success-flow.is-revealing .success-vault-badge {
    animation: badgeStaggerIn 0.5s 0.04s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.success-flow.is-revealing .success-header {
    animation: contentStaggerIn 0.45s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.success-flow.is-revealing .success-vault-pass {
    animation: contentStaggerIn 0.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.success-flow.is-revealing .success-actions-dock {
    animation: contentStaggerIn 0.5s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.success-flow.is-revealing .clean-security-caption {
    animation: contentStaggerIn 0.45s 0.36s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.success-flow.is-exiting {
    opacity: 0 !important;
    transform: translateY(8px) scale(0.98) !important;
    pointer-events: none !important;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes smoothSuccessEntrance {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes contentStaggerIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeStaggerIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dropzoneFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== OPCJA C – COUNTDOWN TIMER ===== */

.success-countdown-bar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.05);
    border: 1px solid rgba(52, 211, 153, 0.15);
    box-sizing: border-box;
    animation: fadeSlideIn 0.4s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-icon {
    color: #34D399;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.countdown-label {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    white-space: nowrap;
}

.countdown-value {
    font-size: 12.5px;
    font-weight: 800;
    color: #34D399;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.countdown-expire-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    min-width: 40px;
}

.countdown-expire-fill {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34D399, #C4E7D4);
    transition: width 1s linear;
}

.countdown-value.expiring-soon {
    color: #FBBF24 !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5) !important;
}

.countdown-expire-fill.expiring-soon {
    background: linear-gradient(90deg, #FBBF24, #FDE68A) !important;
}

/* ===== OPCJA B – KARTY AKCJI 2×2 ===== */

.success-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.sag-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #94A3B8;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sag-card:nth-child(1) { animation-delay: 0.55s; }
.sag-card:nth-child(2) { animation-delay: 0.65s; }
.sag-card:nth-child(3) { animation-delay: 0.75s; }
.sag-card:nth-child(4) { animation-delay: 0.85s; }

.sag-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: #64748B;
}

.sag-card-label {
    flex: 1;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sag-card:hover {
    background: rgba(196, 231, 212, 0.08);
    border-color: rgba(196, 231, 212, 0.2);
    border-top-color: rgba(196, 231, 212, 0.35);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 12px rgba(196, 231, 212, 0.06);
}

.sag-card:hover .sag-card-icon {
    background: rgba(196, 231, 212, 0.12);
    border-color: rgba(196, 231, 212, 0.3);
    color: #C4E7D4;
}

.sag-card:active { transform: translateY(0); }

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 480px) {
    .success-action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .sag-card { padding: 8px 10px; font-size: 11.5px; gap: 7px; }
    .sag-card-icon { width: 24px; height: 24px; }
    .success-countdown-bar { flex-wrap: wrap; justify-content: center; gap: 6px; }
    .countdown-expire-bar { width: 100%; flex: none; }
}
