@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bs-primary: #4B6B99;
    --bs-primary-rgb: 75, 107, 153;
    --bs-primary-dark: #354f73;
    --bs-primary-light: #f0f4f9;
    --bs-primary-subtle: #dbe4f0;
    --invitation-bg: #ffffff;
    --body-bg: #edf2f7;
    --text-dark: #2c3e50;
    --text-muted: #64748b;
    --border-color: rgba(75, 107, 153, 0.18);
    --gold-accent: #d4af37;
    --gold-soft: #fbf7ec;
    
    --font-script: 'Great Vibes', cursive;
    --font-heading: 'Philosopher', sans-serif;
    --font-body: 'Philosopher', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    font-family: var(--font-body) !important;
    background-color: var(--body-bg);
    /* Rich seamless floral damask / botanical background texture */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(244, 247, 251, 0.85), rgba(232, 238, 245, 0.95)),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234b6b99' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M30 30c0-8.284 6.716-15 15-15 8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15zm15-10c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10zM0 70c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm70 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm60 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3Cpath d='M45 40c4 0 8 4 8 8s-4 8-8 8-8-4-8-8 4-8 8-8zm-25-5c2 0 4 2 4 4s-2 4-4 4-4-2-4-4 2-4 4-4zm50 0c2 0 4 2 4 4s-2 4-4 4-4-2-4-4 2-4 4-4z'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background watercolor accents on desktop/tablet */
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 360px;
    background: url('/themes/mildness/img/watercolor-4.png') no-repeat top right;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 360px;
    height: 360px;
    background: url('/themes/mildness/img/watercolor-3.png') no-repeat bottom left;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.font-title {
    font-family: var(--font-script) !important;
}

.font-heading {
    font-family: var(--font-heading) !important;
}

.font-sans {
    font-family: var(--font-sans) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-primary-light {
    background-color: var(--bs-primary-light) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(75, 107, 153, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-primary-dark) !important;
    border-color: var(--bs-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 107, 153, 0.35);
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 107, 153, 0.25);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #fbfcfe;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Main Container / Mobile Frame */
.invitation-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-bottom: 90px;
}

.bg-invitation {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Elegant subtle floral watermark across the invitation card */
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(238, 244, 251, 0.5) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 0% 100%, rgba(238, 244, 251, 0.5) 0%, rgba(255, 255, 255, 0) 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 20c-5 0-9 4-9 9 0 7 9 16 9 16s9-9 9-16c0-5-4-9-9-9zm-20 30c-5 0-9 4-9 9 0 7 9 16 9 16s9-9 9-16c0-5-4-9-9-9zm40 0c-5 0-9 4-9 9 0 7 9 16 9 16s9-9 9-16c0-5-4-9-9-9z' fill='%234b6b99' fill-opacity='0.03'/%3E%3C/svg%3E");
    min-height: 100vh;
    box-shadow: 0 15px 45px rgba(75, 107, 153, 0.15);
    position: relative;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .bg-invitation {
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-left: none;
        border-right: none;
    }
}

/* Corner Ornaments on Container */
.corner-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    max-width: 45%;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.04));
}

.corner-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    max-width: 45%;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.04));
}

/* Fullscreen Modal Cover (Buka Undangan) */
#modalInvitation .modal-content {
    background: #fbfcfe;
    background-image: 
        radial-gradient(circle at center, rgba(240, 245, 252, 0.8) 0%, rgba(255, 255, 255, 0.95) 75%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234b6b99' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Ccircle cx='30' cy='18' r='3'/%3E%3Ccircle cx='30' cy='42' r='3'/%3E%3Ccircle cx='18' cy='30' r='3'/%3E%3Ccircle cx='42' cy='30' r='3'/%3E%3C/g%3E%3C/svg%3E");
    border: none;
    overflow: hidden;
}

.cover-bg-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.cover-card-inner {
    position: relative;
    z-index: 5;
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 2.2rem 1.5rem;
    box-shadow: 0 15px 40px rgba(75, 107, 153, 0.15);
}

/* Couple Hero Photo Wrap */
.couple-hero-wrap {
    position: relative;
    max-width: 330px;
    margin: 1.25rem auto;
    border-radius: 22px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(75, 107, 153, 0.16);
}

.couple-hero-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
}

.couple-hero-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.couple-hero-wrap:hover .couple-hero-img {
    transform: scale(1.02);
}

.cover-date-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.cover-day-number {
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
    padding: 0.25rem 1.25rem;
    margin: 0 0.75rem;
}

.guest-badge {
    background: linear-gradient(135deg, rgba(238, 244, 251, 0.9), rgba(255, 255, 255, 0.9));
    border: 1px dashed var(--bs-primary);
    border-radius: 16px;
    padding: 0.85rem 1.5rem;
    margin: 1.25rem 0;
    display: inline-block;
    min-width: 240px;
    box-shadow: 0 4px 15px rgba(75, 107, 153, 0.08);
}

/* Floral Decorative Divider */
.floral-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem auto;
    color: var(--bs-primary);
    opacity: 0.8;
}

.floral-divider::before,
.floral-divider::after {
    content: "";
    height: 1px;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--bs-primary), transparent);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.countdown-box {
    background: linear-gradient(135deg, var(--bs-primary), #3a567c);
    color: #fff;
    border-radius: 14px;
    padding: 0.75rem 0.5rem;
    min-width: 68px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(75, 107, 153, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-sans);
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Quote Section */
.quote-card {
    background: linear-gradient(135deg, rgba(240, 244, 250, 0.95), rgba(255, 255, 255, 0.95));
    border-left: 4px solid var(--bs-primary);
    border-right: 1px solid rgba(75, 107, 153, 0.15);
    border-top: 1px solid rgba(75, 107, 153, 0.15);
    border-bottom: 1px solid rgba(75, 107, 153, 0.15);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(75, 107, 153, 0.08);
}

.arabic-text {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.35rem;
    line-height: 2.2;
    direction: rtl;
    color: var(--bs-primary-dark);
}

/* Bride & Groom Profile with Floral Wreath */
.floral-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.avatar-frame {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    margin: 0 auto;
    padding: 6px;
    background: linear-gradient(135deg, #8aa4c5, var(--bs-primary), #6386b5);
    box-shadow: 0 10px 28px rgba(75, 107, 153, 0.25);
    position: relative;
    z-index: 2;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

.ampersand-divider {
    font-family: var(--font-script);
    font-size: 3.8rem;
    color: var(--bs-primary);
    line-height: 1;
    margin: 1.25rem 0;
    text-shadow: 0 2px 10px rgba(75, 107, 153, 0.15);
}

/* Schedule Card */
.schedule-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 25px rgba(75, 107, 153, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(75, 107, 153, 0.14);
}

/* Love Story Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: linear-gradient(to bottom, var(--bs-primary), #8aa4c5, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), #3a567c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 0 5px var(--bs-primary-light), 0 4px 10px rgba(0,0,0,0.1);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(75, 107, 153, 0.08);
}

.timeline-card-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

/* Gallery Slider & Grid */
.gallery-main-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(75, 107, 153, 0.14);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.gallery-thumb-img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.gallery-thumb-img.active {
    border-color: var(--bs-primary);
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(75, 107, 153, 0.3);
}

/* Bank Account & Digital Gift */
.bank-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 1.75rem 1.25rem;
    box-shadow: 0 6px 20px rgba(75, 107, 153, 0.08);
    margin-bottom: 1.5rem;
    position: relative;
}

.bank-logo {
    height: 30px;
    object-fit: contain;
    margin-bottom: 0.85rem;
}

.copy-btn {
    background: linear-gradient(135deg, var(--bs-primary-light), #e4ecf7);
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary-subtle);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.copy-btn:hover {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(75, 107, 153, 0.3);
}

/* Wishes / Comments Box */
.wishes-box {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.wishes-box::-webkit-scrollbar {
    width: 5px;
}

.wishes-box::-webkit-scrollbar-thumb {
    background: var(--bs-primary-subtle);
    border-radius: 10px;
}

.wish-item {
    background: linear-gradient(135deg, rgba(240, 244, 250, 0.95), rgba(255, 255, 255, 0.95));
    border-radius: 14px;
    padding: 1.1rem;
    margin-bottom: 0.9rem;
    border-left: 4px solid var(--bs-primary);
    box-shadow: 0 4px 12px rgba(75, 107, 153, 0.06);
    text-align: left;
}

/* Falling Flower Petals Animation */
.falling-petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.petal {
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C9 7 5 11 5 16C5 19.866 8.13401 23 12 23C15.866 23 19 19.866 19 16C19 11 15 7 12 2Z' fill='%238aa4c5' fill-opacity='0.45'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    will-change: transform, opacity;
    animation: fallDown linear infinite;
}

@keyframes fallDown {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        top: 105%;
        transform: translateX(80px) rotate(360deg) scale(1.1);
        opacity: 0;
    }
}

/* Floating Bottom Navigation Bar */
#navbar {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 1050;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-floating-pill {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(75, 107, 153, 0.25);
    border-radius: 50px;
    padding: 6px 14px;
    box-shadow: 0 12px 36px rgba(75, 107, 153, 0.2);
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-floating-pill .nav-link {
    position: relative;
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    text-decoration: none;
}

/* Tooltip on hover / active */
.nav-floating-pill .nav-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--bs-primary-dark);
    color: #ffffff;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.nav-floating-pill .nav-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--bs-primary-dark) transparent transparent transparent;
}

.nav-floating-pill .nav-link:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-floating-pill .nav-link:hover {
    color: var(--bs-primary);
    background: var(--bs-primary-light);
    transform: translateY(-3px) scale(1.08);
}

.nav-floating-pill .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark)) !important;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 18px rgba(75, 107, 153, 0.45);
}

/* Floating Music Player Button */
.floating-music-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1060;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    box-shadow: 0 8px 24px rgba(75, 107, 153, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-music-btn:hover {
    transform: scale(1.1);
}

.spin-music {
    animation: spinRotate 4s linear infinite;
}

@keyframes spinRotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Floating QR Button */
.floating-qr-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1040;
    background: #ffffff;
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary-subtle);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    letter-spacing: 1px;
}

.floating-qr-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Toast Customization */
.custom-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--bs-primary), #3a567c);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 100000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Hidden Template for Instagram Story Generation */
.story-template-wrapper {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 450px;
    height: 800px;
    z-index: -100;
}

.story-template-card {
    width: 450px;
    height: 800px;
    background-color: #f7f9fc;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

.story-template-photo {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
