/* ========================================
   IMPORT ELEGANCKICH CZCIONEK
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ========================================
   PODSTAWOWE STYLE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 1s ease;
    color: #ffffff;
}

body.envelope-opened {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* ========================================
   EKRAN Z KOPERTĄ
   ======================================== */

.envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

.envelope-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.birthday-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.birthday-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 4rem;
    letter-spacing: 4px;
    font-weight: 300;
    opacity: 0.9;
}

/* ========================================
   KOPERTA
   ======================================== */

.envelope-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope-wrapper:hover {
    transform: scale(1.05);
}

.envelope-image {
    position: relative;
    width: 400px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.envelope-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.6s ease;
}

.envelope-wrapper.clicked .envelope-image {
    transform: scale(1.1);
    opacity: 0;
}

.seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #f4d03f 0%, #d4af37 50%, #a98a2a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.5),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.6s ease;
}

.seal span {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    color: #000000;
    letter-spacing: 2px;
}

.envelope-wrapper.clicked .seal {
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
    opacity: 0;
}

.tap-text {
    margin-top: 3rem;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   GŁÓWNA ZAWARTOŚĆ
   ======================================== */

.main-content {
    visibility: hidden;
    padding: 3rem 2rem 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.main-content.visible {
    visibility: visible;
}

/* ========================================
   PIĘTRO Z KARTAMI
   ======================================== */

.card-tier {
    position: relative;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.card-tier:first-child {
    margin-top: 0;
    margin-bottom: 2rem;
}

.main-content.visible .card-tier {
    opacity: 1;
    transform: translateY(0);
}

.card-tier:nth-child(1) { transition-delay: 0s; }
.card-tier:nth-child(2) { transition-delay: 0.4s; }

/* ========================================
   ZŁOTE AKCENTY DEKORACYJNE
   ======================================== */

/* ========================================
   DEKORACJE PRZY KARTACH
   ======================================== */

.decoration-image {
    position: absolute;
    width: 220px;
    height: auto;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* PIĘTRO 1 - DEKOR 3 po obu stronach */
.decoration-tier1-left {
    left: 90px;
    top: 80%;
    transform: translateY(-50%);
}

.decoration-tier1-right {
    right: 90px;
    top: 80%;
    transform: translateY(-50%) scaleX(-1);
}

/* PIĘTRO 2 - DEKOR 1 po obu stronach */
.decoration-tier2-left {
    left: -58px;
    top: 40%;
    transform: translateY(-50%) rotate(-30deg);
}

.decoration-tier2-right {
    right: -58px;
    top: 60%;
    transform: translateY(-50%) rotate(30deg) scaleX(-1);
}

/* PIĘTRO 3 - DEKOR 2 po obu stronach */
.decoration-tier3-left {
    left: -45px;
    top: 40%;
    transform: translateY(-50%) rotate(-30deg);
}

.decoration-tier3-right {
    right: -45px;
    top: 60%;
    transform: translateY(-50%) rotate(30deg) scaleX(-1);
}

/* ========================================
   POZYCJONOWANIE KART W PIĘTRZE
   ======================================== */

.card-wrapper {
    position: relative;
    z-index: 1;
}

.center-single {
    margin: 0 auto;
}

.left-side {
    flex: 0 0 auto;
}

.right-side {
    flex: 0 0 auto;
}

/* ========================================
   OBRAZY KART - BAZOWE STYLE
   ======================================== */

.card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.card-image.clickable {
    cursor: pointer;
}

.card-image.clickable:hover,
.card-wrapper:hover .card-image {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
}

/* ========================================
   KARTA Z PRZYCISKIEM GOOGLE DRIVE
   ======================================== */

.card-with-button {
    position: relative;
    display: inline-block;
}

.drive-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #d4af37;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow:
        0 8px 20px rgba(212, 175, 55, 0.5),
        0 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
}

.drive-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow:
        0 12px 30px rgba(212, 175, 55, 0.7),
        0 0 25px rgba(212, 175, 55, 0.5);
    background: #f4d03f;
}

.button-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.button-text {
    font-size: 0.95rem;
    font-weight: 700;
}

/* ========================================
   SEKCJA ROZWIJANA
   ======================================== */

.expandable-section {
    max-height: 5000px;
    overflow: visible;
    transition: max-height 1s ease;
}

.expandable-tier {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin: 2rem 0;
}

/* ========================================
   LICZNIK ODLICZANIA - prawy górny róg
   ======================================== */

.countdown-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease 1.5s, visibility 1s ease 1.5s;
    border: 2px solid #d4af37;
}

body.envelope-opened .countdown-container {
    opacity: 1;
    visibility: visible;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.countdown-display {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.countdown-item span:first-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #d4af37;
    line-height: 1;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    color: #d4af37;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}



/* ========================================
   PRZYCISK MUZYKI
   ======================================== */

.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

body.envelope-opened .music-toggle {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease 2.5s, visibility 1s ease 2.5s;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
}

.music-toggle svg {
    width: 24px;
    height: 24px;
    color: #d4af37;
}

.music-toggle .music-off {
    display: none;
}

.music-toggle.muted .music-on {
    display: none;
}

.music-toggle.muted .music-off {
    display: block;
}

@media (max-width: 768px) {
    .music-toggle {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .music-toggle svg {
        width: 22px;
        height: 22px;
    }
}



/* ========================================
   CANVAS NA KONFETTI
   ======================================== */

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}


/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */

@media (max-width: 968px) {
    .card-tier {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .expandable-tier {
        margin: 1.5rem 0;
    }

    .card-image {
        max-width: 280px;
    }

    .decoration-image {
        width: 180px;
    }

    .decoration-tier1-left {
        left: -50px;
    }

    .decoration-tier1-right {
        right: -50px;
    }

    .decoration-tier2-left {
        left: -48px;
    }

    .decoration-tier2-right {
        right: -48px;
    }

    .decoration-tier3-left {
        left: -38px;
    }

    .decoration-tier3-right {
        right: -38px;
    }
}

@media (max-width: 768px) {
    .birthday-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .birthday-date {
        font-size: 0.9rem;
        letter-spacing: 2px;
        margin-bottom: 3rem;
    }

    .envelope-image {
        width: 260px;
    }

    .seal {
        width: 55px;
        height: 55px;
    }

    .seal span {
        font-size: 1.4rem;
    }

    .tap-text {
        font-size: 0.8rem;
        margin-top: 2.5rem;
    }

    .main-content {
        padding: 2rem 0.5rem;
        max-width: 100%;
    }

    .card-tier {
        gap: 0.8rem;
        margin: 1.2rem 0;
    }

    .card-tier:first-child {
        margin-bottom: 1.2rem;
    }

    .expandable-tier {
        margin: 1.2rem 0;
    }

    .card-image {
        max-width: 160px;
        width: 100%;
    }

    .countdown-container {
        top: 8px;
        right: 8px;
        max-width: 200px;
        padding: 0.5rem 0.6rem;
    }

    .countdown-title {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }

    .countdown-display {
        gap: 0.4rem;
    }

    .countdown-item {
        min-width: 26px;
    }

    .countdown-item span:first-child {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.48rem;
    }

    .details-modal {
        padding: 70px 15px 30px 15px;
    }

    .details-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .details-close {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .birthday-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .birthday-date {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .envelope-image {
        width: 220px;
    }

    .seal {
        width: 48px;
        height: 48px;
    }

    .seal span {
        font-size: 1.2rem;
    }

    .tap-text {
        font-size: 0.7rem;
    }

    .main-content {
        padding: 1.5rem 0.3rem;
    }

    .card-tier {
        gap: 0.6rem;
        margin: 1rem 0;
    }

    .card-image {
        max-width: 145px;
    }

    .decoration-image {
        width: 80px;
        opacity: 0.3;
    }

    .decoration-tier1-left {
        left: 40px;
    }

    .decoration-tier1-right {
        right: 40px;
    }

    .decoration-tier2-left {
        left: -18px;
        top: 25%;
    }

    .decoration-tier2-right {
        right: -18px;
        top: 75%;
    }

    .decoration-tier3-left {
        left: -15px;
        top: 35%;
    }

    .decoration-tier3-right {
        right: -15px;
        top: 65%;
    }

    .countdown-container {
        padding: 0.4rem 0.5rem;
        max-width: 170px;
        top: 3px;
        right: 3px;
        position: fixed;
    }

    .countdown-title {
        font-size: 0.55rem;
        margin-bottom: 0.2rem;
    }

    .countdown-display {
        gap: 0.3rem;
    }

    .countdown-item {
        min-width: 22px;
    }

    .countdown-item span:first-child {
        font-size: 0.85rem;
    }

    .countdown-label {
        font-size: 0.4rem;
    }

    .drive-button {
        padding: 6px 12px;
        font-size: 0.65rem;
        bottom: 12px;
        gap: 4px;
    }

    .button-icon {
        font-size: 0.9rem;
    }

    .button-text {
        font-size: 0.65rem;
    }
}

/* ========================================
   MODAL PODGLĄDU KARTY - PEŁNY EKRAN (tylko mobile)
   ======================================== */

.card-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-preview-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.card-preview-modal img {
    max-width: 95%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
    animation: cardZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardZoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.card-preview-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    z-index: 3001;
    line-height: 1;
    padding: 0;
}

.card-preview-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(244, 208, 63, 1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
}

.card-preview-close:active {
    transform: scale(0.95);
}

/* Tylko na desktop - bez modalu */
@media (min-width: 769px) {
    .card-preview-modal {
        display: none !important;
    }
}

/* ========================================
   MODAL WRZUCANIA ZDJĘĆ
   ======================================== */

.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.upload-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #d4af37;
    border-radius: 18px;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.8),
        0 0 45px rgba(212, 175, 55, 0.25);
    animation: cardZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.upload-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: #d4af37;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 2;
}

.upload-close:hover {
    background: #d4af37;
    color: #000000;
    transform: rotate(90deg);
}

.upload-header {
    padding: 2rem 2rem 1.2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.upload-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    color: #d4af37;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.upload-subtitle {
    margin-top: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.75);
    text-transform: uppercase;
}

.upload-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.upload-body::-webkit-scrollbar {
    width: 6px;
}

.upload-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.upload-field {
    display: block;
    margin-bottom: 1.2rem;
}

.upload-field-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.8);
    margin-bottom: 0.5rem;
}

.upload-field-label em {
    font-style: normal;
    opacity: 0.55;
    text-transform: none;
    letter-spacing: 0.5px;
}

.upload-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.upload-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.upload-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.upload-dropzone {
    border: 2px dashed rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    background: rgba(212, 175, 55, 0.03);
    transition: all 0.3s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.dragover {
    outline: none;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2) inset;
}

.upload-dropzone-icon {
    width: 42px;
    height: 42px;
    color: #d4af37;
    margin-bottom: 0.8rem;
}

.upload-dropzone-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #d4af37;
    letter-spacing: 1px;
}

.upload-dropzone-hint {
    margin-top: 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

.upload-list {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    animation: modalFadeIn 0.3s ease;
}

.upload-item.done {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.08);
}

.upload-item.error {
    border-color: rgba(220, 80, 80, 0.6);
    background: rgba(220, 80, 80, 0.08);
}

.upload-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.upload-item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.upload-item-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-item-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(212, 175, 55, 0.8);
    margin-top: 0.2rem;
}

.upload-item.error .upload-item-meta {
    color: #e08585;
}

.upload-progress {
    margin-top: 0.4rem;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    transition: width 0.25s ease;
}

.upload-item-remove {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    color: rgba(212, 175, 55, 0.9);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.upload-item-remove:hover {
    background: #d4af37;
    color: #000000;
}

.upload-status {
    margin-top: 1rem;
    min-height: 1.2rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(212, 175, 55, 0.9);
}

.upload-status.error {
    color: #e08585;
}

.upload-status.success {
    color: #d4af37;
    font-weight: 500;
}

/* ---- GALERIA WRZUCONYCH ZDJĘĆ ---- */

.upload-gallery {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.upload-gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.upload-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #d4af37;
    letter-spacing: 1px;
}

.upload-gallery-count {
    min-width: 26px;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
}

.upload-gallery-empty {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.8rem 0;
}

.upload-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.5rem;
}

.upload-gallery-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    animation: cardZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-gallery-tile:hover {
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.3);
}

.upload-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-gallery-tile.is-video {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.upload-gallery-tile.is-video svg {
    width: 26px;
    height: 26px;
    color: #d4af37;
}

.upload-gallery-author {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.35rem 0.25rem 0.35rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    color: #d4af37;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- POWIĘKSZENIE ZDJĘCIA Z GALERII ---- */

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.gallery-lightbox.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.gallery-lightbox img {
    max-width: 92%;
    max-height: 85vh;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(212, 175, 55, 0.25);
    animation: cardZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background: rgba(212, 175, 55, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.9rem;
    line-height: 1;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    z-index: 5001;
    padding: 0;
}

.gallery-lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #f4d03f;
}

.upload-footer {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    padding: 1.2rem 2rem 1.6rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.upload-btn {
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn-ghost {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
}

.upload-btn-ghost:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: #d4af37;
}

.upload-btn-gold {
    background: #d4af37;
    border: none;
    color: #000000;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.upload-btn-gold:hover:not(:disabled) {
    background: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.55);
}

.upload-btn-gold:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .upload-modal {
        padding: 12px;
    }

    .upload-panel {
        max-height: 92vh;
    }

    .upload-header {
        padding: 1.5rem 1.2rem 1rem 1.2rem;
    }

    .upload-title {
        font-size: 1.5rem;
    }

    .upload-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .upload-body {
        padding: 1.2rem;
    }

    .upload-dropzone {
        padding: 1.5rem 0.8rem;
    }

    .upload-footer {
        padding: 1rem 1.2rem 1.3rem 1.2rem;
    }

    .upload-btn {
        flex: 1 1 auto;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .upload-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
        gap: 0.4rem;
    }

    .upload-gallery-title {
        font-size: 1rem;
    }

    .gallery-lightbox {
        padding: 15px;
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}

/* Mobile - dostosowania */
@media (max-width: 768px) {
    .card-preview-modal {
        padding: 15px;
    }

    .card-preview-modal img {
        max-height: 80vh;
        max-width: 92%;
    }

    .card-preview-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .card-preview-modal img {
        max-width: 90%;
    }

    .card-preview-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}
