/* ==========================================================================
   AGATA & MATEUSZ - PREMIUM WEDDING STYLE SYSTEM
   ========================================================================== */

:root {
    --gold-primary: #C5A880;
    --gold-dark: #A6865A;
    --gold-light: #E7DBCC;
    --gold-subtle: rgba(197, 168, 128, 0.15);
    --gold-glow: rgba(197, 168, 128, 0.3);
    
    --blush-primary: #E8D4D6;
    --blush-light: #F9F4F5;
    
    --bg-creme-start: #FCFAF7;
    --bg-creme-end: #F4EFEB;
    
    --text-dark: #3A3532;
    --text-muted: #7E7570;
    --text-light: #A89F9A;
    
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(197, 168, 128, 0.25);
    
    --shadow-soft: 0 10px 30px rgba(166, 134, 90, 0.06);
    --shadow-medium: 0 20px 45px rgba(166, 134, 90, 0.1);
    --shadow-glow: 0 0 25px rgba(197, 168, 128, 0.25);
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-creme-start) 0%, var(--bg-creme-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

/* Background Soft Blur Circles for High-End Depth */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    width: 350px;
    height: 350px;
    background-color: rgba(232, 212, 214, 0.4);
    top: -50px;
    left: -50px;
}

body::after {
    width: 400px;
    height: 400px;
    background-color: rgba(197, 168, 128, 0.25);
    bottom: -100px;
    right: -100px;
}

/* ==========================================================================
   FLOATING PETALS / HEARTS DECORATIONS
   ========================================================================== */

.decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9) 0%, var(--blush-primary) 70%, rgba(210,180,177,0.8) 100%);
    border-radius: 70% 30% 70% 30% / 50% 60% 40% 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: floatPetal 15s linear infinite;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.03));
}

@keyframes floatPetal {
    0% {
        transform: translateY(-10%) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(110%) rotate(360deg) translateX(80px);
        opacity: 0;
    }
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.app-container {
    width: 100%;
    max-width: 580px; /* Perfectly optimized for single-column mobile & elegant card view */
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    z-index: 1;
}

/* ==========================================================================
   WEDDING HEADER (Sophisticated & Clean)
   ========================================================================== */

.wedding-header {
    text-align: center;
    margin-bottom: 28px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.monogram-outer {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 3px;
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.6);
}

.monogram-outer::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.5;
}

.monogram {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--gold-dark);
    line-height: 1;
    margin-top: 2px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.wedding-names {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.wedding-names .ampersand {
    font-family: var(--font-script);
    text-transform: lowercase;
    font-size: 2.4rem;
    color: var(--gold-primary);
    margin: 0 6px;
    font-weight: normal;
    display: inline-block;
    transform: translateY(2px);
}

/* Divider with Gold Lines and Blush/Gold Heart */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px auto;
    width: 60%;
}

.divider .line {
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 168, 128, 0) 0%, var(--gold-primary) 50%, rgba(197, 168, 128, 0) 100%);
    flex-grow: 1;
}

.divider .heart {
    color: var(--gold-dark);
    font-size: 0.95rem;
    animation: heartPulseSimple 2s ease-in-out infinite;
}

@keyframes heartPulseSimple {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.wedding-tagline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 4px;
}

.wedding-date {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ==========================================================================
   ELEGANT UPLOAD CARD (Frosted Glass Finish)
   ========================================================================== */

.upload-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.upload-card:hover {
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    border-color: rgba(197, 168, 128, 0.4);
}

.section-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 300;
    line-height: 1.6;
}

/* Sender input box styling */
.sender-input-container {
    margin-bottom: 20px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sender-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    padding-left: 4px;
}

.sender-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--gold-light);
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.sender-input-wrapper:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.15), var(--shadow-soft);
    transform: translateY(-1px);
}

.sender-icon {
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
    position: absolute;
    left: 16px;
    pointer-events: none;
    transition: var(--transition-quick);
}

.sender-input-wrapper:focus-within .sender-icon {
    transform: scale(1.05);
    color: var(--gold-primary);
}

.sender-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 16px 14px 44px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--text-dark);
    font-weight: 500;
    background-color: transparent;
}

.sender-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Description input styling */
.description-input-container {
    margin-bottom: 20px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.description-input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    border: 1px solid var(--gold-light);
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.description-input-wrapper:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.15), var(--shadow-soft);
    transform: translateY(-1px);
}

.description-icon {
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
    position: absolute;
    left: 16px;
    top: 15px;
    pointer-events: none;
    transition: var(--transition-quick);
}

.description-input-wrapper:focus-within .description-icon {
    transform: scale(1.05);
    color: var(--gold-primary);
}

.description-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 13px 16px 13px 44px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--text-dark);
    font-weight: 500;
    background-color: transparent;
    resize: none;
    line-height: 1.5;
}

.description-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}


/* ==========================================================================
   DRAG & DROP ZONE
   ========================================================================== */

.drop-zone {
    border: 1.5px dashed var(--gold-primary);
    border-radius: 20px;
    background-color: var(--blush-light);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 212, 214, 0.15) 0%, rgba(197, 168, 128, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--gold-dark);
    background-color: rgba(232, 212, 214, 0.25);
    transform: scale(0.99);
}

.drop-zone:hover::before, .drop-zone.dragover::before {
    opacity: 1;
}

.drop-zone-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden-input {
    display: none;
}

/* Camera SVG Icon Styling */
.upload-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--gold-light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.drop-zone:hover .upload-icon-wrapper,
.drop-zone.dragover .upload-icon-wrapper {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--gold-primary);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.2);
}

.upload-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-dark);
}

.plus-sign {
    color: var(--gold-primary);
}

.drop-zone h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.drop-zone-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   DYNAMIC FILE PREVIEW SECTION
   ========================================================================== */

.preview-section {
    margin-top: 28px;
    animation: fadeIn 0.4s ease forwards;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 10px;
}

.files-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-text-clear {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition-quick);
}

.btn-text-clear:hover {
    color: #c94f57;
    background-color: rgba(201, 79, 87, 0.05);
}

/* 3-Column Preview Grid (Perfect on Mobile + Desktop) */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Customize scrollbar for grid */
.preview-grid::-webkit-scrollbar {
    width: 4px;
}
.preview-grid::-webkit-scrollbar-track {
    background: rgba(197, 168, 128, 0.05);
    border-radius: 10px;
}
.preview-grid::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 10px;
}

/* Thumbnail Card Styles */
.preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background-color: #EFEFEF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preview-item img, .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Indicator Badge */
.video-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
}

.video-badge svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    margin-left: 1px;
}

/* Remove button hover effect */
.btn-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    color: var(--text-dark);
    transition: var(--transition-quick);
}

.btn-remove:hover {
    transform: scale(1.1);
    background-color: #c94f57;
    color: #ffffff;
}

.btn-remove svg {
    width: 12px;
    height: 12px;
}

/* Size indicator at bottom of previews */
.preview-size-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
    padding: 12px 6px 4px;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   BUTTONS & INTERACTIONS
   ========================================================================== */

.actions-wrapper {
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 15px 36px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s ease;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.45);
}

.btn-primary:hover::after {
    left: 125%;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.3);
}

.btn-icon {
    width: 14px;
    height: 14px;
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-icon {
    transform: translate(3px, -2px);
}

/* Secondary Button Style */
.btn-secondary {
    background-color: transparent;
    border: 1.2px solid var(--gold-primary);
    border-radius: 50px;
    color: var(--gold-dark);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    margin-top: 8px;
}

.btn-secondary:hover {
    background-color: var(--gold-subtle);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(1px);
}

/* ==========================================================================
   PROGRESS LOADING VIEW
   ========================================================================== */

.progress-view {
    padding: 30px 10px;
    text-align: center;
    animation: fadeIn 0.4s ease forwards;
}

.progress-spinner-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

/* Elegant Rotating Wedding Spinner */
.gold-spinner {
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    border: 2.5px solid var(--blush-primary);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.spinner-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold-dark);
    font-size: 1.4rem;
    animation: heartPulseSimple 1.2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.progress-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 300;
}

.progress-bar-container {
    height: 6px;
    background-color: var(--blush-light);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* Dynamic fill via script */
    background: linear-gradient(90deg, var(--blush-primary) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(197, 168, 128, 0.35);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shiny moving highlight on progress bar */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-light);
    font-weight: 500;
}

#progress-percent {
    color: var(--gold-dark);
    font-weight: 600;
}

/* ==========================================================================
   SUCCESS SCREEN VIEW
   ========================================================================== */

.success-view {
    text-align: center;
    padding: 30px 10px 10px;
    animation: scaleUpIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-heart-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background-color: var(--blush-light);
    border: 1px solid var(--gold-light);
    margin: 0 auto 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.success-heart-ring::after {
    content: '';
    position: absolute;
    width: 106px;
    height: 106px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringExpand 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes ringExpand {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

.heart-pulse {
    color: #d86d75;
    font-size: 2.5rem;
    line-height: 1;
    animation: heartPulseComplex 1.8s infinite;
}

@keyframes heartPulseComplex {
    0% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1.05); }
    42% { transform: scale(1.25); }
    70% { transform: scale(1); }
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 400;
}

.success-message {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.wedding-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 32px;
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.05em;
    animation: fadeIn 1.2s ease forwards 0.4s;
    opacity: 0;
}

.wedding-footer p {
    margin-bottom: 4px;
}

.wedding-footer .copyright {
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ==========================================================================
   ANIMATION KEYFRAMES & UTILITIES
   ========================================================================== */

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUpIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Prioritized Mobile)
   ========================================================================== */

@media (max-width: 480px) {
    .app-container {
        padding: 16px 12px;
    }
    
    .wedding-header {
        margin-bottom: 20px;
    }
    
    .monogram-outer {
        width: 68px;
        height: 68px;
        margin-bottom: 12px;
    }
    
    .monogram {
        font-size: 1.9rem;
    }
    
    .wedding-names {
        font-size: 1.7rem;
    }
    
    .wedding-names .ampersand {
        font-size: 2rem;
    }
    
    .wedding-tagline {
        font-size: 1.1rem;
    }
    
    .upload-card {
        padding: 22px 16px;
        border-radius: 24px;
    }
    
    .drop-zone {
        padding: 28px 12px;
    }
    
    .upload-icon-wrapper {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
    }
    
    .upload-icon {
        width: 24px;
        height: 24px;
    }
    
    .drop-zone h3 {
        font-size: 1.25rem;
    }
    
    .preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .preview-item {
        border-radius: 10px;
    }
    
    .btn-primary {
        padding: 13px 24px;
        font-size: 0.8rem;
    }
    
    .success-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   TOASTS & CELEBRATORY SUCCESS POP ELEMENTS
   ========================================================================== */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(44, 42, 41, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    text-align: center;
    max-width: 90%;
    width: max-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toast.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-error {
    background-color: #c94f57;
}

.success-pop {
    user-select: none;
    pointer-events: none;
    z-index: 5;
}

