/* ==========================================================================
   TO'Y TAKLIFNOMASI PORTALI - PREMIUM STYLE SHEET (VANILLA CSS)
   ========================================================================== */

/* 1. DESIGN VARIABLES & THEMES */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Great Vibes', cursive;
    
    /* General Colors */
    --color-dark: #120005; /* Deep dark burgundy-black */
    --color-light: #fdfafb;
    --color-gold: #ffd700; /* Brilliant Luxury Gold */
    --color-gold-light: #fff3cc;
    --color-gold-dark: #b8860b;
    
    /* Theme Wedding (Burgundy + Gold) */
    --wedding-primary: #800020; /* Rich luxury burgundy / bordo */
    --wedding-secondary: #fffefb;
    --wedding-glow: rgba(128, 0, 32, 0.45);
    
    /* Theme Sunnat */
    --sunnat-primary: #1e3c72; /* Royal blue */
    --sunnat-accent: #d4af37;  /* Royal Gold */
    --sunnat-bg: #0f2027;
    
    /* Theme Qiz Bazmi */
    --qiz-primary: #c94b7c; /* Deep pink/rose */
    --qiz-secondary: #fce4ec; /* Lavender pink */
    --qiz-bg: #4a148c; /* Purple glow */
    
    /* Utility */
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.35);
    --glass-bg: rgba(45, 0, 12, 0.38); /* Luxurious dark burgundy glass background */
    --glass-border: rgba(212, 175, 55, 0.25); /* Subtle gold border */
    --glass-blur: blur(18px);
}

/* 2. BASE RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: radial-gradient(circle at center, #2e0813 0%, #0d0006 100%) !important;
    color: var(--color-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 3. LAYOUT & VIEW CONTROLLER */
#app {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.app-view {
    display: none;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 2rem 1rem;
}

.app-view.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInView 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 20, 0.95) 0%, rgba(30, 30, 35, 0.85) 100%);
    z-index: 1;
}

/* 4. HOME / LANDING VIEW */
#homeView {
    background: url('assets/dashboard_dark_bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
#homeView .overlay {
    background: linear-gradient(135deg, rgba(18, 18, 20, 0.45) 0%, rgba(30, 30, 35, 0.3) 100%);
}

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
}

.main-header {
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-gold-light) 70%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-gold);
    margin: 0.8rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-gold);
}

.main-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}


/* SaaS Quick Creation Panel */
.creation-panel {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.panel-section-title {
    font-size: 1.4rem;
    color: var(--color-gold-light);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.panel-section-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.4rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.creation-layout-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.creation-hero-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.creation-hero-btn {
    width: 100%;
    max-width: 460px;
    min-height: 52px;
    font-size: 1.08rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    border: 2px solid var(--color-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 215, 0, 0.08) 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.creation-hero-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #121214;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.creation-hero-btn:hover i {
    color: #121214 !important;
}

.creation-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}

.creation-sub-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    cursor: pointer;
}

.creation-sub-btn:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--color-gold);
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

@media (max-width: 768px) {
    .creation-panel {
        padding: 1.5rem 1rem !important;
        border-radius: 18px !important;
        margin-bottom: 1rem !important;
    }
    .creation-layout-wrapper {
        gap: 10px;
    }
    .creation-hero-btn {
        max-width: 100% !important;
        min-height: 48px !important;
        font-size: 1.02rem !important;
    }
    .creation-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .creation-sub-btn {
        min-height: 50px !important;
        font-size: 0.85rem !important;
        padding: 8px 10px !important;
    }
    /* 5-tugma (Nahor oshi) 2 ustun bo'yicha markazda to'liq yoyiladi */
    .creation-sub-btn-wide {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        min-height: 46px !important;
    }
}


/* Dashboard list header */
.dashboard-section-wrapper {
    width: 100%;
    max-width: 1100px;
    margin-top: 1rem;
}

.dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
}

.dashboard-list-title {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
}


/* Grid layout for landing cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.event-hub-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 480px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-premium);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-hub-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(212, 175, 55, 0.15);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.event-hub-card:hover .card-bg {
    transform: scale(1.1);
}

.event-hub-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.4) 50%, rgba(10, 10, 12, 0.1) 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    width: 100%;
}

.event-badge {
    background: var(--color-gold);
    color: var(--color-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.event-badge.royal {
    background: var(--sunnat-primary);
    color: #fff;
}

.event-badge.pink {
    background: var(--qiz-primary);
    color: #fff;
}

/* Paid/Unpaid Status Badges inside Dashboard Cards */
.card-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-status-badge.paid {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #81c784;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.25);
}

.card-status-badge.unpaid {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #e57373;
}

.card-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Dashboard Actions grid */
.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.dashboard-actions-grid .btn {
    font-size: 0.75rem;
    padding: 0.6rem 0.3rem;
    border-radius: 8px;
    font-weight: 600;
    justify-content: center;
}

.dashboard-actions-grid .btn-danger {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
}

.dashboard-actions-grid .btn-danger:hover {
    background: #f44336;
    color: #fff;
    border-color: #f44336;
}

.btn-locked {
    background: rgba(212, 175, 55, 0.15) !important;
    border: 1px dashed var(--color-gold) !important;
    color: var(--color-gold-light) !important;
}

.btn-locked:hover {
    background: var(--color-gold) !important;
    color: var(--color-dark) !important;
}

.home-footer {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}


/* 5. INVITATION VIEW */
#invitationView {
    padding: 5rem 1rem 3rem;
}

.invitation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    display: block !important;
    transition: background-image 0.5s ease-in-out;
}

.invitation-overlay {
    display: none !important;
}

.invitation-container {
    max-width: 650px;
    z-index: 2;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 32px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.inv-decorative-border {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    pointer-events: none;
    border-radius: 20px;
}

/* Back Button */
.back-to-hub-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-hub-btn:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Invitation Header */
.inv-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.inv-icon-holder {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold-light) 0%, var(--color-gold) 100%);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow);
    animation: pulseGlow 3s infinite ease-in-out;
}

.inv-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    color: var(--color-gold-light);
    margin-bottom: 0.8rem;
}

.inv-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.8rem auto 1.5rem;
    max-width: 300px;
}

.inv-divider .line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.inv-divider .star {
    color: var(--color-gold);
    font-size: 0.8rem;
    animation: rotateStar 10s infinite linear;
}

.inv-names {
    font-family: var(--font-accent);
    font-size: 4rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.inv-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
    font-style: italic;
}


/* 6. COUNTDOWN TIMER */
.countdown-section {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 1.8rem 1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-light);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 75px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 0.4rem;
    position: relative;
    overflow: hidden;
}

.timer-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

.ms-unit {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.05);
    min-width: 85px;
}

.ms-unit .timer-val {
    color: var(--color-gold-light);
}

.timer-finished-msg {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-gold-light);
    animation: bounceSlow 2s infinite ease-in-out;
    padding: 0.5rem 0;
}


/* 7. DETAILS SECTION */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.08);
}

.detail-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-text h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold-light);
    margin-bottom: 0.2rem;
}

.detail-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.text-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
    margin-top: 0.2rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.detail-actions .btn {
    flex: 1;
    justify-content: center;
}


/* 8. GLASS SUBPANELS (GIFT & RSVP) */
.glass-subpanel {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.glass-subpanel h4 {
    font-size: 1.1rem;
    color: var(--color-gold-light);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gift-desc, .rsvp-desc, .fortune-desc, .sky-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.card-copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.card-holder {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.copy-success-msg {
    display: none;
    font-size: 0.8rem;
    color: #4caf50;
    margin-top: 0.6rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}


/* RSVP Form Styles */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="url"], input[type="datetime-local"], select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #fff;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

select option {
    background-color: var(--color-dark);
    color: #fff;
}

textarea {
    resize: vertical;
}

.success-alert {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* 9. GUESTBOOK / TABRIKNOMALAR */
.guestbook-section {
    margin-top: 3rem;
}

.guestbook-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.guestbook-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--color-gold);
    margin: 0.5rem auto 0;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comments-container::-webkit-scrollbar {
    width: 6px;
}
.comments-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.comments-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.comments-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

.comment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    animation: slideUp 0.4s ease;
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gold-light);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-rsvp {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    text-transform: uppercase;
}

.badge-rsvp.yes {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
}

.badge-rsvp.no {
    background: rgba(244, 67, 54, 0.15);
    color: #e57373;
}

.comment-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    word-break: break-word;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}


/* 10. BUTTONS SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    text-align: center;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
}

.btn-success {
    background: #4caf50 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}


/* 11. AMBIENT MUSIC WIDGET (WITH ACTIVE EQ VISUALIZER & DJ EXPAND) */
.music-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#musicToggleBtn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(18, 18, 20, 0.8);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    cursor: pointer;
    box-shadow: var(--shadow-premium), 0 0 15px rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

#musicToggleBtn:hover {
    transform: scale(1.1);
}

#musicToggleBtn.playing {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}

.eq-visualizer {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

#musicToggleBtn i {
    display: block;
}

#musicToggleBtn.playing i {
    display: none;
}

#musicToggleBtn.playing .eq-visualizer {
    display: flex;
}

.eq-bar {
    width: 3px;
    height: 4px;
    background-color: var(--color-dark);
    border-radius: 2px;
}

#musicToggleBtn.playing .eq-bar:nth-child(1) { animation: eqBounce 0.8s ease infinite alternate; }
#musicToggleBtn.playing .eq-bar:nth-child(2) { animation: eqBounce 0.5s ease infinite alternate; animation-delay: 0.2s; }
#musicToggleBtn.playing .eq-bar:nth-child(3) { animation: eqBounce 0.7s ease infinite alternate; animation-delay: 0.4s; }
#musicToggleBtn.playing .eq-bar:nth-child(4) { animation: eqBounce 0.6s ease infinite alternate; animation-delay: 0.1s; }

@keyframes eqBounce {
    0% { height: 4px; }
    100% { height: 16px; }
}

.dj-board {
    background: rgba(18, 18, 20, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.8rem;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: slideUp 0.3s ease;
    width: 180px;
}

.dj-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dj-pads {
    display: flex;
    gap: 0.4rem;
    width: 100%;
}

.dj-pad {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.2s ease;
}

.dj-pad:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}

.dj-pad:active {
    transform: scale(0.9);
}

.dj-pad i {
    font-size: 1rem;
}

.dj-pad span {
    font-size: 0.55rem;
    font-weight: 500;
}


/* ==========================================================================
   INTERACTIVE REVOLUTIONS (ENVELOPE, PARTICLES, POLLS, FORTUNES, SKY)
   ========================================================================== */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 12, 0.45);
    background-blend-mode: overlay;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    perspective: 1500px;
    transition: opacity 1.1s ease, visibility 1.1s;
}

.envelope-overlay.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-card {
    width: 100%;
    max-width: 480px;
    padding: 3.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    position: relative;
    overflow: visible; /* allows top flap to fold open upwards */
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.1s ease;
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3D Folding Top Flap of Envelope */
.envelope-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform-origin: top;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}

.envelope-overlay.opened .envelope-card::after {
    transform: rotateX(180deg);
}

.envelope-overlay.opened .envelope-card {
    transform: translateY(-100px) rotateX(15deg) scale(0.9);
    opacity: 0;
}

.envelope-decor {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    pointer-events: none;
}

.env-inv-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8c6d1f !important;
    -webkit-text-fill-color: #8c6d1f !important;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.env-names {
    font-family: var(--font-accent);
    font-size: 3.2rem;
    color: #4A0E17 !important; /* Shohona to'q burgundiy — 100% tiniq o'qiladi */
    -webkit-text-fill-color: #4A0E17 !important;
    background: none !important;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 1px 3px rgba(74, 14, 23, 0.2)) !important;
    line-height: 1.2;
    font-weight: 700;
}

.env-invite-sub {
    font-size: 0.9rem;
    color: #4A0E17 !important;
    opacity: 0.85 !important;
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.wax-seal-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #f7d070 0%, #d4af37 50%, #aa7c11 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(170, 124, 17, 0.5), inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: waxPulse 2.5s infinite ease-in-out;
}

.wax-seal-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(170, 124, 17, 0.7);
}

.wax-seal-btn:active {
    transform: scale(0.95);
}

.envelope-overlay.opened .wax-seal-btn {
    transform: scale(0) rotate(270deg) !important;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.seal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #4a3607;
    font-weight: 700;
}

.seal-inner i {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.seal-inner span {
    font-size: 0.65rem;
    letter-spacing: 1px;
}

@keyframes waxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(170, 124, 17, 0.6), 0 0 20px rgba(212, 175, 55, 0.2); }
}


/* 12. INTERACTIVE POLL DESIGNS */
.poll-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.poll-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

.poll-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.poll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(212, 175, 55, 0.12);
    z-index: 0;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.poll-option-btn.voted .poll-progress {
    background: rgba(212, 175, 55, 0.2);
}

.poll-option-text {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.poll-percentage {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gold-light);
    display: none;
}

.poll-option-btn.voted .poll-percentage {
    display: inline-block;
}


/* 13. TO'Y BASHORATI (MAGIC CHEST GAMIFICATION) */
.fortune-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.magic-chest-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    outline: none;
}

.chest-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.magic-chest-btn:hover .chest-icon-wrapper {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
    transform: scale(1.08);
}

.chest-icon-wrapper i {
    font-size: 2.2rem;
    color: var(--color-gold-light);
    transition: transform 0.3s ease;
}

.chest-shake i {
    animation: shakeChest 0.5s ease 2;
}

.chest-btn-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-gold-light);
    text-transform: uppercase;
}

.magic-stars span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.chest-shake .magic-stars span:nth-child(1) { animation: flyStar1 1s ease forwards; }
.chest-shake .magic-stars span:nth-child(2) { animation: flyStar2 1s ease forwards; }
.chest-shake .magic-stars span:nth-child(3) { animation: flyStar3 1s ease forwards; }

.fortune-result {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    text-align: center;
    animation: zoomIn 0.4s ease forwards;
}

.fortune-quote {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.fortune-quote i {
    color: var(--color-gold-dark);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.fortune-quote p {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
}

@keyframes shakeChest {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-10deg); }
    40%, 80% { transform: rotate(10deg); }
}

@keyframes flyStar1 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(-30px, -40px) scale(0); opacity: 0; }
}
@keyframes flyStar2 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(30px, -45px) scale(0); opacity: 0; }
}
@keyframes flyStar3 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(0, -50px) scale(0); opacity: 0; }
}


/* 14. SEHRLI TILAKLAR OSMONI (FLOATING HELIUM BALLOONS) */
.sky-container {
    height: 260px;
    background: radial-gradient(ellipse at bottom, #111b27 0%, #06070a 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.sky-balloon-heart {
    position: absolute;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatBalloon 15s infinite linear;
    transition: transform 0.3s ease;
}

.sky-balloon-heart .heart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sky-balloon-heart .heart-text {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    padding-bottom: 8px; /* Slightly offset up for heart shape */
    text-transform: capitalize;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sky-balloon-heart::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 0;
}

.sky-balloon-heart:hover {
    transform: scale(1.2) !important;
    z-index: 10;
}

@keyframes floatBalloon {
    0% {
        bottom: -90px;
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(20px) rotate(5deg);
    }
    100% {
        bottom: 300px;
        transform: translateX(-20px) rotate(-5deg);
    }
}


/* 15. FLOATING BALLOON EXPANSION MODAL SPECIFICS */
.balloon-msg-header {
    margin-bottom: 1.5rem;
}

.balloon-msg-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: floatBalloonSmall 3s ease-in-out infinite alternate;
}

@keyframes floatBalloonSmall {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.balloon-msg-body {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.8rem;
}

.balloon-msg-body i {
    color: var(--color-gold-dark);
    font-size: 0.9rem;
}

.balloon-msg-body p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-style: italic;
}


/* ==========================================================================
   NEW ADVANCED CUSTOM ADDITIONS (DRESS CODE, LOVE QUIZ, WISHLIST)
   ========================================================================== */

/* 16. DRESS CODE PALETTE & TIP */
.dresscode-palette {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.dresscode-color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 2.5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
}

.dresscode-color:hover, .dresscode-color.active {
    transform: scale(1.18);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.25), 0 0 15px rgba(212, 175, 55, 0.4);
}

.dresscode-tip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    color: var(--color-gold-light);
    animation: fadeIn 0.4s ease;
}

.dresscode-tip i {
    font-size: 1.1rem;
    color: var(--color-gold);
}


/* 17. LOVE QUIZ BOX & OPTIONS */
.quiz-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.quiz-question-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.8rem;
}

.quiz-counter {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-opt-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    font-weight: 500;
}

.quiz-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.quiz-opt-btn.correct {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4caf50 !important;
    color: #81c784 !important;
}

.quiz-opt-btn.incorrect {
    background: rgba(244, 67, 54, 0.2) !important;
    border-color: #f44336 !important;
    color: #e57373 !important;
}

.quiz-feedback {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0;
    animation: slideUp 0.3s ease;
}

.quiz-feedback.correct-text { color: #81c784; }
.quiz-feedback.incorrect-text { color: #e57373; }

.quiz-score-board {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 2.2rem;
    animation: zoomIn 0.4s ease forwards;
}

.score-icon-wrap {
    font-size: 3rem;
    color: var(--color-gold);
    animation: pulseGlowSmall 2s infinite ease-in-out;
    margin-bottom: 0.8rem;
}

@keyframes pulseGlowSmall {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212,175,55,0.4)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(212,175,55,0.7)); }
}

.quiz-score-board h5 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.quiz-score-board p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}


/* 18. INTERACTIVE GIFT WISHLIST ITEMS */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.wishlist-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.wishlist-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.wishlist-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.2rem;
}

.wishlist-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 30px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.wishlist-badge.free {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
}

.wishlist-badge.taken {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold-light);
}

.wishlist-item.reserved {
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.2);
}
.wishlist-item.reserved .wishlist-icon {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
    color: #81c784;
}


/* 19. PREMIUM BANNER & STATUS */
.premium-status-banner {
    margin: -3rem -2rem 2.5rem;
    padding: 1rem 2rem;
    background: rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.premium-status-banner.activated {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-gold-light);
}

.status-badge.active-mode {
    color: #81c784;
}

.text-gold {
    color: var(--color-gold) !important;
}


/* 20. LOVE STORY MEDIA SECTIONS */
.media-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 0;
}

.media-block h4 {
    font-size: 1.15rem;
    color: var(--color-gold-light);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Gallery Slider Styles (3D Coverflow) */
.gallery-wrapper {
    position: relative;
    height: 410px;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    overflow: visible; /* Let side 3D slides show outside */
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Premium dynamic 3D carousel styles */
.slide-container {
    width: 270px;
    height: 370px;
    position: absolute;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #120005;
    border: 3px solid rgba(212, 175, 55, 0.7);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.15);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, z-index 0.6s step-end;
    transform-style: preserve-3d;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.45);
    z-index: 1;
    transform: scale(1.2); /* prevents white/blurred edges */
}

.slide-img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* crop to fill the rounded card nicely */
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: transform 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.gallery-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dots span.active {
    background: var(--color-gold);
    transform: scale(1.3);
}

/* Video Frame Style */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-premium);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* 21. MODAL BACKDROP SYSTEM */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 7, 9, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    width: 100%;
    max-width: 520px;
    position: relative;
    padding: 2.5rem 2rem;
    animation: zoomIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
}


/* 22. BILLING & PRICING DESIGNS */
.billing-header {
    margin-bottom: 2rem;
}

.billing-icon {
    font-size: 3rem;
    color: var(--color-gold);
    animation: bounceSlow 2s infinite ease;
    margin-bottom: 0.5rem;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.05);
}

.price-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

.price-val {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin: 0.5rem 0 1rem;
}

.price-val span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-gold-light);
}

.price-features {
    text-align: left;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
}

.price-features li i {
    color: #4caf50;
}

.payment-methods-box h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.pay-method-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.4rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.pay-method-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.pay-logo {
    font-weight: 700;
    font-size: 1rem;
}

.click-logo { color: #00a5ff; }
.payme-logo { color: #12c8c4; }
.bot-logo { color: #229ed9; }

.pay-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}


/* 23. MOCK CHECKOUT FLOW */
.mock-checkout-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 20;
    border-radius: 32px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideUp 0.4s ease forwards;
}

.checkout-divider {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0 auto 2rem;
}

.mock-checkout-screen h4 {
    font-size: 1.4rem;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}

.checkout-status-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.sms-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.success-icon-bounce {
    font-size: 4rem;
    color: #4caf50;
    animation: popBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.font-lg {
    font-size: 1.6rem !important;
    letter-spacing: 5px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes popBounce {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}


/* 24. EDIT VIEW GALLERY & PREVIEWS */
.premium-edit-section {
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.premium-edit-section h4 {
    font-size: 1rem;
    color: var(--color-gold-light);
    margin-bottom: 0.4rem;
}

.section-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
}

.gallery-url-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.file-input {
    padding: 0.6rem !important;
}

.file-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -0.2rem;
    display: block;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.preview-img-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.preview-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.delete-img-btn {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #ff4757 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4) !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}

.delete-img-btn:hover {
    background: #ff6b81 !important;
    transform: scale(1.15);
}


/* 25. SHARE MODAL DETAILS */
.share-icon {
    font-size: 3rem;
    color: var(--color-gold-light);
    margin-bottom: 0.8rem;
}

.share-copy-box {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.4rem;
    margin: 1.8rem 0 0.8rem;
}

.share-copy-box input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    flex-grow: 1;
}

.share-copy-box input:focus {
    outline: none;
    box-shadow: none;
}


/* 26. EDIT MODAL VIEW */
#editView {
    background: radial-gradient(circle at center, #1b1e22 0%, #0c0e10 100%);
    padding: 3rem 1rem;
}

.edit-container {
    max-width: 700px;
    padding: 2.5rem;
}

.edit-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.edit-header h2 {
    font-size: 1.8rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.edit-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.2rem;
}

.edit-actions-panel {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}


/* 27. DYNAMIC THEME OVERRIDES (APPLIED VIA JS) */

/* Nikoh (Wedding) Theme Custom overrides (Burgundy & Gold) */
.theme-nikoh {
    background: transparent !important;
}
.theme-nikoh .inv-icon-holder {
    background: radial-gradient(circle, #ffd700 0%, #b8860b 100%);
    color: #120005;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}
.theme-nikoh .inv-title {
    color: #4A0E17 !important;
    text-shadow: 0 1px 3px rgba(74, 14, 23, 0.15);
}
.theme-nikoh .detail-icon {
    background: rgba(128, 0, 32, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #ffd700;
}
.theme-nikoh .btn-primary {
    background: linear-gradient(135deg, #4A0E17 0%, #6d1523 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #d4af37 !important;
    box-shadow: 0 4px 15px rgba(74, 14, 23, 0.35) !important;
}
.theme-nikoh .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(74, 14, 23, 0.5) !important;
}
.theme-nikoh .ms-unit {
    border-color: rgba(212, 175, 55, 0.3) !important;
    background: rgba(74, 14, 23, 0.08) !important;
}
.theme-nikoh .ms-unit .timer-val {
    color: #4A0E17 !important;
}
.theme-nikoh .glass-panel {
    background: rgba(253, 252, 248, 0.94) !important;
    border: 2px solid #d4af37 !important;
    color: #2c1d02 !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.55) !important;
}

/* Sunnat Theme Custom overrides */
.theme-sunnat {
    --color-gold: var(--sunnat-accent);
    --color-gold-light: #fff2a3;
    --color-gold-dark: #b89225;
}
.theme-sunnat .inv-icon-holder {
    background: radial-gradient(circle, #2a5298 0%, #1e3c72 100%);
    color: #fff;
    box-shadow: 0 0 25px rgba(30, 60, 114, 0.5);
}
.theme-sunnat .inv-title {
    color: #90caf9;
}
.theme-sunnat .detail-icon {
    background: rgba(30, 60, 114, 0.15);
    border-color: rgba(30, 60, 114, 0.3);
    color: #90caf9;
}
.theme-sunnat .btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.35);
}
.theme-sunnat .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
}
.theme-sunnat .ms-unit {
    border-color: rgba(30, 60, 114, 0.3);
    background: rgba(30, 60, 114, 0.1);
}
.theme-sunnat .ms-unit .timer-val {
    color: #90caf9;
}

/* Qiz Bazmi / Qiz Uzatish Theme Custom overrides */
.theme-qiz_bazmi, .theme-qiz_uzotish {
    --color-gold: var(--qiz-primary);
    --color-gold-light: #ff80ab;
    --color-gold-dark: #c51162;
}
.theme-qiz_bazmi .inv-icon-holder, .theme-qiz_uzotish .inv-icon-holder {
    background: radial-gradient(circle, #f48fb1 0%, #c94b7c 100%);
    color: #fff;
    box-shadow: 0 0 25px rgba(201, 75, 124, 0.5);
}
.theme-qiz_bazmi .inv-title, .theme-qiz_uzotish .inv-title {
    color: #ff80ab;
}
.theme-qiz_bazmi .detail-icon, .theme-qiz_uzotish .detail-icon {
    background: rgba(201, 75, 124, 0.15);
    border-color: rgba(201, 75, 124, 0.3);
    color: #ff80ab;
}
.theme-qiz_bazmi .btn-primary, .theme-qiz_uzotish .btn-primary {
    background: linear-gradient(135deg, #c94b7c 0%, #880e4f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 75, 124, 0.35);
}
.theme-qiz_bazmi .btn-primary:hover, .theme-qiz_uzotish .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(201, 75, 124, 0.5);
}
.theme-qiz_bazmi .ms-unit, .theme-qiz_uzotish .ms-unit {
    border-color: rgba(201, 75, 124, 0.3);
    background: rgba(201, 75, 124, 0.1);
}
.theme-qiz_bazmi .ms-unit .timer-val, .theme-qiz_uzotish .ms-unit .timer-val {
    color: #f48fb1;
}

/* Beshik Toy Theme overrides (Soft Green) */
.theme-beshik_toy {
    --color-gold: #2ec4b6;
    --color-gold-light: #cbf3f0;
    --color-gold-dark: #011627;
}
.theme-beshik_toy .inv-icon-holder {
    background: radial-gradient(circle, #2ec4b6 0%, #0f9f90 100%);
    color: #fff;
    box-shadow: 0 0 25px rgba(46, 196, 182, 0.5);
}
.theme-beshik_toy .inv-title {
    color: #2ec4b6;
}
.theme-beshik_toy .detail-icon {
    background: rgba(46, 196, 182, 0.15);
    border-color: rgba(46, 196, 182, 0.3);
    color: #2ec4b6;
}
.theme-beshik_toy .btn-primary {
    background: linear-gradient(135deg, #2ec4b6 0%, #208f82 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.35);
}
.theme-beshik_toy .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.5);
}
.theme-beshik_toy .ms-unit {
    border-color: rgba(46, 196, 182, 0.3);
    background: rgba(46, 196, 182, 0.1);
}
.theme-beshik_toy .ms-unit .timer-val {
    color: #2ec4b6;
}

/* Yubiley Theme overrides (Royal Purple) */
.theme-yubiley {
    --color-gold: #9b5de5;
    --color-gold-light: #dec9e9;
    --color-gold-dark: #5a189a;
}
.theme-yubiley .inv-icon-holder {
    background: radial-gradient(circle, #9b5de5 0%, #7209b7 100%);
    color: #fff;
    box-shadow: 0 0 25px rgba(155, 93, 229, 0.5);
}
.theme-yubiley .inv-title {
    color: #dec9e9;
}
.theme-yubiley .detail-icon {
    background: rgba(155, 93, 229, 0.15);
    border-color: rgba(155, 93, 229, 0.3);
    color: #dec9e9;
}
.theme-yubiley .btn-primary {
    background: linear-gradient(135deg, #9b5de5 0%, #5a189a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.35);
}
.theme-yubiley .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.5);
}
.theme-yubiley .ms-unit {
    border-color: rgba(155, 93, 229, 0.3);
    background: rgba(155, 93, 229, 0.1);
}
.theme-yubiley .ms-unit .timer-val {
    color: #dec9e9;
}

/* Nahor Oshi Theme overrides (Rich Orange / Traditional Gold) */
.theme-nahor_oshi {
    --color-gold: #f77f00;
    --color-gold-light: #fcbf49;
    --color-gold-dark: #d62828;
}
.theme-nahor_oshi .inv-icon-holder {
    background: radial-gradient(circle, #fcbf49 0%, #f77f00 100%);
    color: #fff;
    box-shadow: 0 0 25px rgba(247, 127, 0, 0.5);
}
.theme-nahor_oshi .inv-title {
    color: #fcbf49;
}
.theme-nahor_oshi .detail-icon {
    background: rgba(247, 127, 0, 0.15);
    border-color: rgba(247, 127, 0, 0.3);
    color: #fcbf49;
}
.theme-nahor_oshi .btn-primary {
    background: linear-gradient(135deg, #f77f00 0%, #d62828 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(247, 127, 0, 0.35);
}
.theme-nahor_oshi .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(247, 127, 0, 0.5);
}
.theme-nahor_oshi .ms-unit {
    border-color: rgba(247, 127, 0, 0.3);
    background: rgba(247, 127, 0, 0.1);
}
.theme-nahor_oshi .ms-unit .timer-val {
    color: #fcbf49;
}

/* Card event badge color definitions */
.event-badge.gold { background: rgba(212, 175, 55, 0.2) !important; border-color: rgba(212, 175, 55, 0.4) !important; color: #ffd700 !important; }
.event-badge.pink { background: rgba(201, 75, 124, 0.2) !important; border-color: rgba(201, 75, 124, 0.4) !important; color: #ff80ab !important; }
.event-badge.royal { background: rgba(30, 60, 114, 0.2) !important; border-color: rgba(30, 60, 114, 0.4) !important; color: #90caf9 !important; }
.event-badge.green { background: rgba(46, 196, 182, 0.2) !important; border-color: rgba(46, 196, 182, 0.4) !important; color: #2ec4b6 !important; }
.event-badge.purple { background: rgba(155, 93, 229, 0.2) !important; border-color: rgba(155, 93, 229, 0.4) !important; color: #dec9e9 !important; }
.event-badge.orange { background: rgba(247, 127, 0, 0.2) !important; border-color: rgba(247, 127, 0, 0.4) !important; color: #fcbf49 !important; }


/* 28. ANIMATIONS & TRANSITIONS */
@keyframes fadeInView {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

@keyframes rotateStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes waveJump {
    0% { height: 3px; }
    100% { height: 100%; }
}

.animate-fade-in {
    animation: slideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hidden {
    display: none !important;
}


/* 29. RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    .event-hub-card {
        height: 400px;
    }
    .glass-panel {
        padding: 2.2rem 1.2rem;
        border-radius: 24px;
    }
    .inv-names {
        font-size: 3rem;
    }
    .timer-unit {
        min-width: 60px;
        padding: 0.5rem 0.2rem;
    }
    .timer-val {
        font-size: 1.4rem;
    }
    .ms-unit {
        min-width: 70px;
    }
    .form-row {
        flex-direction: column;
        gap: 1.2rem;
    }
    .detail-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .card-number {
        font-size: 1rem;
    }
    .gallery-wrapper {
        height: 280px;
    }
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .envelope-card {
        padding: 2.5rem 1.2rem;
    }
    .env-names {
        font-size: 2.8rem;
    }
    .music-widget {
        bottom: 15px;
        right: 15px;
    }
    .dj-board {
        width: 140px;
    }
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    .inv-names {
        font-size: 2.4rem;
    }
    .glass-panel {
        padding: 1.8rem 1rem;
    }
    .timer-container {
        gap: 0.4rem;
    }
    .timer-unit {
        min-width: 52px;
    }
    .ms-unit {
        min-width: 62px;
    }
    .timer-val {
        font-size: 1.15rem;
    }
    .timer-label {
        font-size: 0.6rem;
    }
}

/* 30. NEW INTEGRATED FEATURES (AI & TELEGRAM & OSH & SEATING & TIMELINE) */

.settings-panel {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: border-color 0.3s;
    text-align: left;
}

.settings-panel:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

/* AI Reels Sound Waves */
.sound-wave-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 20px;
}
.sw-bar {
    display: inline-block;
    width: 3px;
    height: 15px;
    background: var(--color-gold);
    border-radius: 2px;
}
.sw-bar.animating {
    animation: soundWaveGlow 1s ease-in-out infinite alternate;
}
.sw-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 22px;
}
.sw-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 12px;
}

@keyframes soundWaveGlow {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.4); }
}

.ai-reels-badge {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-reels-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 215, 0, 0.7);
    border-radius: 50%;
    pointer-events: none;
    animation: reelsFloatUp 3s linear infinite;
}

@keyframes reelsFloatUp {
    0% { transform: translateY(500px) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-50px) scale(1.5); opacity: 0; }
}

/* Timeline nodes */
.timeline-node {
    position: relative;
    padding-bottom: 1rem;
}
.timeline-node::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #ffd700;
    border: 3px solid var(--color-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700;
}
.timeline-node-year {
    font-weight: 700;
    color: #ffd700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.timeline-node-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 4px;
}
.timeline-node-desc {
    font-size: 0.75rem;
    color: #b0b0b0;
    line-height: 1.4;
}

/* General Input Padding in Settings */
.settings-panel input[type="password"],
.settings-panel input[type="text"] {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
}
.settings-panel input:focus {
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 10px rgba(212,175,55,0.25);
}

/* ----------------------------------------------------
   NAHORGI OSH TRADITIONAL DESIGN STYLING
---------------------------------------------------- */
.osh-card-wrapper {
    background: radial-gradient(circle at center, rgba(30, 24, 15, 0.96) 0%, rgba(15, 10, 5, 0.98) 100%) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25), inset 0 0 20px rgba(212, 175, 55, 0.15) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.osh-card-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

.osh-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffd700;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.osh-card-pattern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
    color: #ffd700;
    opacity: 0.8;
}

.osh-card-pattern .pattern-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
}

.osh-card-pattern i {
    font-size: 1.2rem;
}

.osh-card-desc {
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #f0e6d2;
    margin-bottom: 1.8rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.osh-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media (min-width: 480px) {
    .osh-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.osh-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.osh-detail-icon {
    font-size: 1.2rem;
    color: #ffd700;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.25);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.osh-detail-text h5 {
    margin: 0 0 4px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    font-weight: 600;
}

.osh-detail-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
}

.osh-actions-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.osh-actions-wrapper .btn {
    border-radius: 30px !important;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.osh-actions-wrapper .btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border: none;
    color: #121214;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.osh-actions-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.osh-actions-wrapper .btn-outline {
    border: 1px solid #ffd700;
    color: #ffd700;
    background: transparent;
}

.osh-actions-wrapper .btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* --- PRINT PAPER CARD STYLES --- */
.paper-card-border {
    background: #fffcf7; /* Premium off-white/cream */
    color: #2b2b2b;
    border: 12px double #c5a059; /* Elegant gold border */
    border-radius: 4px;
    padding: 2.2rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    border-style: double;
}

.paper-card-inner {
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 1.5rem;
    height: 100%;
}

.paper-ornament-top, .paper-ornament-bottom {
    font-size: 1.6rem;
    color: #c5a059;
    margin: 0.5rem 0;
}

.paper-title {
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: #8b6e34;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.paper-divider {
    color: #c5a059;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

.paper-intro {
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.paper-names {
    font-size: 2.1rem;
    font-weight: 700;
    color: #800020; /* Burgundy dark red */
    margin: 1.2rem 0;
}

.paper-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.8rem;
    padding: 0 0.8rem;
}

.paper-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    border-top: 1px dashed rgba(197, 160, 89, 0.4);
    padding-top: 1.2rem;
    text-align: left;
}

.paper-detail-item {
    font-size: 0.85rem;
    color: #333;
}

.paper-detail-item strong {
    color: #8b6e34;
    display: block;
    margin-bottom: 3px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.paper-subtext {
    display: block;
    font-size: 0.78rem;
    color: #666;
    margin-top: 2px;
}

/* PRINT MEDIA INSTRUCTION */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    /* Hide everything on the page */
    #homeView, #musicWidget, .modal-backdrop, 
    .nav-btn, .dashboard-actions-grid, .print-section > h4, 
    .print-section > p, .print-section > button, 
    #executePrintBtn, #editExecutePrintBtn, .nav-header, footer {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide editor-specific elements except for the printable block */
    #editView .edit-header,
    #editView form > div:not(#editPaperPrintBlock),
    #editView form > input,
    #editView form > .form-group,
    #editView form > .form-row,
    #editView form > .premium-edit-section,
    #editView form > .edit-actions-panel {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure only the paper card and its contents are printed */
    .print-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .paper-card-border {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: none !important;
        border-color: #c5a059 !important;
        background: #fffcf7 !important;
        width: 100% !important;
        max-width: 550px !important;
        visibility: visible !important;
        display: block !important;
    }

    .paper-card-border * {
        visibility: visible !important;
    }

    .paper-card-border.ratio-16-9 {
        max-width: 780px !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
    }
}

/* --- FLATPICKR DARK GLASSMORPHISM STYLES --- */
.flatpickr-calendar {
    background: rgba(20, 20, 22, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    color: #fff !important;
}
.flatpickr-day {
    color: #eee !important;
}
.flatpickr-day.today {
    border-color: var(--color-gold) !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: var(--color-gold) !important;
    color: #000 !important;
    border-color: var(--color-gold) !important;
}
.flatpickr-day:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: #fff !important;
}
.flatpickr-months .flatpickr-month, .flatpickr-weekday {
    color: #fff !important;
    fill: #fff !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #fff !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #fff !important;
}
.flatpickr-time input {
    color: #fff !important;
    background: rgba(0,0,0,0.3) !important;
}
.flatpickr-time .flatpickr-time-separator {
    color: #fff !important;
}
/* Flatpickr confirm plugin button (OK / Tasdiqlash) */
.flatpickr-confirm {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%) !important;
    color: #121214 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    padding: 10px !important;
    cursor: pointer !important;
    text-align: center !important;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    transition: all 0.3s ease !important;
}
.flatpickr-confirm:hover {
    background: #ffd700 !important;
    opacity: 0.9;
}



/* Calendar dropdown buttons hover */
#calendarOptionsDropdown button:hover {
    background: rgba(212, 175, 55, 0.15) !important;
}

/* Custom font overrides */
.font-playfair .inv-title, 
.font-playfair .inv-names,
.font-playfair .env-names {
    font-family: 'Playfair Display', serif !important;
}

.font-greatvibes .inv-title {
    font-family: 'Great Vibes', cursive !important;
    font-size: 1.8rem !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
}
.font-greatvibes .inv-names,
.font-greatvibes .env-names {
    font-family: 'Great Vibes', cursive !important;
    font-size: 4.5rem !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

.font-montserrat .inv-title,
.font-montserrat .inv-names,
.font-montserrat .env-names {
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 2px !important;
}

.font-cinzel .inv-title,
.font-cinzel .inv-names,
.font-cinzel .env-names {
    font-family: 'Cinzel', serif !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* --- LANDSCAPE PRINT RATIO (16:9) --- */
.paper-card-border.ratio-16-9 {
    width: 100%;
    max-width: 760px;
    min-height: auto;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
}

.paper-card-border.ratio-16-9 .paper-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 0.4rem 1rem;
    align-items: center;
    padding: 0.5rem 0.8rem;
}

.paper-card-border.ratio-16-9 .paper-ornament-top {
    grid-column: 1;
    grid-row: 1;
    margin: 2px 0;
    font-size: 1.1rem;
}

.paper-card-border.ratio-16-9 .paper-couple-frame {
    grid-column: 1;
    grid-row: 2;
    margin: 3px auto !important;
}

.paper-card-border.ratio-16-9 .paper-couple-frame img {
    width: 75px !important;
    height: 95px !important;
}

.paper-card-border.ratio-16-9 .paper-title {
    grid-column: 1;
    grid-row: 3;
    font-size: 1.15rem;
    margin-bottom: 1px;
}

.paper-card-border.ratio-16-9 .paper-divider {
    grid-column: 1;
    grid-row: 4;
    margin-bottom: 1px;
}

.paper-card-border.ratio-16-9 .paper-names {
    grid-column: 1;
    grid-row: 5;
    font-size: 1.35rem;
    margin: 3px 0;
}

.paper-card-border.ratio-16-9 .paper-intro {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.75rem;
    margin-bottom: 1px;
    text-align: center;
}

.paper-card-border.ratio-16-9 .paper-description {
    grid-column: 2;
    grid-row: 2 / 4;
    font-size: 0.75rem;
    margin-bottom: 2px;
    text-align: center;
    padding: 0 3px;
    line-height: 1.3;
}

.paper-card-border.ratio-16-9 .paper-details-grid {
    grid-column: 2;
    grid-row: 4;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 5px;
    border-top: 1px dashed rgba(197, 160, 89, 0.3);
}

.paper-card-border.ratio-16-9 .paper-detail-item {
    font-size: 0.7rem;
}

.paper-card-border.ratio-16-9 .paper-detail-item strong {
    font-size: 0.65rem;
}

.paper-card-border.ratio-16-9 .paper-qr-code {
    grid-column: 2;
    grid-row: 5;
    margin-top: 2px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.paper-card-border.ratio-16-9 .paper-qr-code #printCardQrImgHolder,
.paper-card-border.ratio-16-9 #printCardQrImgHolder,
.paper-card-border.ratio-16-9 .paper-qr-code #editPrintCardQrImgHolder,
.paper-card-border.ratio-16-9 #editPrintCardQrImgHolder {
    width: 60px !important;
    height: 60px !important;
    padding: 2px !important;
    border-width: 1px !important;
    border-radius: 4px !important;
}

.paper-card-border.ratio-16-9 .paper-qr-code #printCardQrImgHolder img,
.paper-card-border.ratio-16-9 #printCardQrImgHolder img,
.paper-card-border.ratio-16-9 .paper-qr-code #editPrintCardQrImgHolder img,
.paper-card-border.ratio-16-9 #editPrintCardQrImgHolder img {
    width: 56px !important;
    height: 56px !important;
}

.paper-card-border.ratio-16-9 .paper-qr-code span {
    font-size: 0.62rem !important;
    max-width: 190px;
    text-align: left;
    line-height: 1.2;
}

.paper-card-border.ratio-16-9 .paper-ornament-bottom {
    display: none !important;
}

/* --- PREMIUM CUSTOM FILE UPLOAD BOX --- */
.custom-file-upload-box {
    border: 2px dashed rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}
.custom-file-upload-box:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.07);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}
.upload-box-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}
.custom-file-upload-box:hover .upload-box-icon {
    transform: scale(1.1);
}
.upload-box-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}
.upload-box-sub {
    font-size: 0.8rem;
    color: #aaa;
}

/* --- PREMIUM CARD TOGGLE FOR NEED PAPER --- */
.premium-card-toggle-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.premium-card-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.premium-card-toggle:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.08);
}
.premium-card-toggle.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.card-toggle-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-toggle-details {
    flex: 1;
    text-align: left;
}
.card-toggle-title {
    font-weight: 650;
    font-size: 0.98rem;
    color: #fff;
    margin-bottom: 3px;
}
.card-toggle-desc {
    font-size: 0.78rem;
    color: #ccc;
    line-height: 1.3;
}
.card-toggle-switch {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}
.premium-card-toggle.active .card-toggle-switch {
    background: var(--color-gold);
}
.switch-handle {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-card-toggle.active .switch-handle {
    left: 27px;
}

/* --- PAYMENT MODAL SPECIFIC STYLE --- */
.payment-icon-wrap {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #fcbf49 0%, #f77f00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 1.2rem auto;
    box-shadow: 0 0 20px rgba(247, 127, 0, 0.3);
}

/* General/Default (9:16 Vertical) Paper Sizing Styles */
.paper-card-border:not(.ratio-16-9) .paper-couple-frame {
    text-align: center;
    margin: 12px auto 15px auto;
}
.paper-card-border:not(.ratio-16-9) .paper-couple-img {
    width: 120px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 60px 60px 0 0;
    border: 3px double #c5a059;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f0e6d2;
}
.paper-card-border:not(.ratio-16-9) .paper-qr-code {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.paper-card-border:not(.ratio-16-9) .paper-qr-holder {
    width: 110px !important;
    height: 110px !important;
    border: 2px solid #c5a059;
    padding: 4px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.paper-card-border:not(.ratio-16-9) .paper-qr-holder img {
    width: 100px !important;
    height: 100px !important;
    display: block !important;
    margin: 0 auto;
}

/* 16:9 Landscape Overrides */
.paper-card-border.ratio-16-9 .paper-couple-img {
    width: 75px !important;
    height: 95px !important;
    object-fit: cover;
    border-radius: 40px 40px 0 0;
    border: 2px solid #c5a059;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    background: #f0e6d2;
}
.paper-card-border.ratio-16-9 .paper-qr-holder {
    width: 60px !important;
    height: 60px !important;
    padding: 2px !important;
    border: 1px solid #c5a059 !important;
    background: #fff !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.paper-card-border.ratio-16-9 .paper-qr-holder img {
    width: 56px !important;
    height: 56px !important;
    display: block !important;
    margin: 0 auto;
}

/* Romantic Heartbeat animation for Names field */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}
.animate-heartbeat {
    display: inline-block;
    animation: heartbeat 1.5s infinite ease-in-out;
}

/* Responsive adjustment for Mobile screens 3D carousel */
@media (max-width: 576px) {
    .gallery-wrapper {
        height: 310px;
    }
    .slide-container {
        width: 190px !important;
        height: 270px !important;
    }
}

/* --- LIGHT BACKGROUND THEME OVERRIDES --- */
.light-bg-mode {
    color: #2c1d02 !important;
}

.light-bg-mode .glass-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(170, 124, 17, 0.35) !important;
    box-shadow: 0 15px 35px rgba(170, 124, 17, 0.08), 0 0 25px rgba(212, 175, 55, 0.05) !important;
    color: #2c1d02 !important;
}

.light-bg-mode .glass-subpanel {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(170, 124, 17, 0.22) !important;
    color: #2c1d02 !important;
}

.light-bg-mode h1,
.light-bg-mode h2,
.light-bg-mode h3,
.light-bg-mode h4,
.light-bg-mode h5,
.light-bg-mode .inv-title,
.light-bg-mode .env-inv-title,
.light-bg-mode .detail-label,
.light-bg-mode .wishlist-title {
    color: #4A0E17 !important;
    text-shadow: none !important;
}

.light-bg-mode .detail-text h5 {
    color: #4A0E17 !important;
    font-weight: 700 !important;
}

.light-bg-mode .inv-names,
.inv-names {
    color: #4A0E17 !important;
    -webkit-text-fill-color: #4A0E17 !important;
    background: none !important;
    text-shadow: 0 1px 2px rgba(74, 14, 23, 0.15) !important;
    filter: none !important;
}

.light-bg-mode p,
.light-bg-mode span,
.light-bg-mode div,
.light-bg-mode label,
.inv-text {
    color: #2c1d02 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

/* Make countdown text readable */
.light-bg-mode #invDateTime,
.light-bg-mode #invVenue,
.light-bg-mode #invAddress {
    color: #1a0f00 !important;
    font-weight: 600 !important;
}

/* Calendar & Navigation Buttons in Light Mode */
.light-bg-mode #addToCalendarBtn {
    border: 1.5px dashed #aa7c11 !important;
    background: rgba(170, 124, 17, 0.08) !important;
    color: #8a6d1c !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 5px rgba(170, 124, 17, 0.1) !important;
}

.light-bg-mode #addToCalendarBtn i {
    color: #8a6d1c !important;
}

.light-bg-mode .btn-outline {
    border: 1.5px solid #8a6d1c !important;
    color: #8a6d1c !important;
    background: rgba(138, 109, 28, 0.04) !important;
    font-weight: 700 !important;
}

.light-bg-mode .btn-outline i {
    color: #8a6d1c !important;
}

.light-bg-mode .btn-outline:hover {
    background: #8a6d1c !important;
    color: #fff !important;
}

.light-bg-mode .btn-outline:hover i {
    color: #fff !important;
}

.light-bg-mode .detail-icon {
    background: rgba(170, 124, 17, 0.08) !important;
    border-color: rgba(170, 124, 17, 0.25) !important;
    color: #aa7c11 !important;
}

.light-bg-mode .ms-unit {
    background: rgba(170, 124, 17, 0.08) !important;
    border-color: rgba(170, 124, 17, 0.25) !important;
}

.light-bg-mode .ms-unit .timer-val {
    color: #aa7c11 !important;
}

.light-bg-mode .ms-unit .timer-label {
    color: #615133 !important;
}

.light-bg-mode .rsvp-form input,
.light-bg-mode .rsvp-form select {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(170, 124, 17, 0.3) !important;
    color: #2c1d02 !important;
}

.light-bg-mode .rsvp-form input::placeholder {
    color: #a0927a !important;
}

.light-bg-mode .sky-container {
    background: radial-gradient(ellipse at bottom, rgba(225, 240, 255, 0.7) 0%, rgba(195, 215, 240, 0.45) 100%) !important;
    border: 1px solid rgba(170, 124, 17, 0.3) !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* Ensure balloon names stay bold white and highly readable on red/pink hearts */
.sky-balloon-heart .heart-text {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
    font-size: 0.78rem !important;
}

/* Wedding Template Selection Modal */
.design-option-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.design-option-card:hover {
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Polaroid Envelope & Card Animations */
.polaroid-envelope-wrapper {
    position: relative;
    width: 290px;
    height: 310px;
    margin: 2rem auto 2.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}
.polaroid-envelope-pocket-img {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.4));
    pointer-events: none;
}
.polaroid-card {
    position: absolute;
    width: 195px;
    height: 235px;
    background: #FAF9F6;
    padding: 10px 10px 35px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.38);
    border: 1px solid #e2d2c2;
    z-index: 15; /* Display in front of the pocket image */
    bottom: 12px;
    transform: rotate(0deg);
    transition: all 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.polaroid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.06);
}
.envelope-opened .polaroid-card {
    bottom: 120px;
    transform: rotate(-7deg);
    z-index: 15;
}

/* theme-nikoh_2 (Burgundy Retro Polaroid overrides) */
.theme-nikoh_2 {
    background: transparent !important;
    color: #2c1d02 !important;
}
.theme-nikoh_2 .inv-card-wrapper {
    position: relative;
    background: #FAF9F6 !important;
    color: #2c1d02 !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 12px 45px rgba(74, 14, 23, 0.2) !important;
    z-index: 1;
    overflow: hidden;
}
.theme-nikoh_2 .inv-card-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-frame-url, url('assets/wedding_frame_1_gold_crown.jpg')) no-repeat center center;
    background-size: 100% 100%;
    opacity: 0.65; /* Aniq, yorqin va tiniq ko'rinadigan hashamatli ramka */
    z-index: -1;
    pointer-events: none;
}
.theme-nikoh_2 .inv-title {
    color: #4A0E17 !important;
    text-shadow: 0 1px 3px rgba(74,14,23,0.1);
}
.theme-nikoh_2 .inv-names {
    color: #4A0E17 !important;
    font-family: 'Playfair Display', serif !important;
}
.theme-nikoh_2 .glass-subpanel {
    background: rgba(74, 14, 23, 0.05) !important;
    border: 1px solid rgba(74, 14, 23, 0.15) !important;
    color: #2c1d02 !important;
}
.theme-nikoh_2 .osh-card-wrapper {
    background: rgba(74, 14, 23, 0.04) !important;
    border: 1px solid rgba(74, 14, 23, 0.15) !important;
}
.theme-nikoh_2 h4, .theme-nikoh_2 h5, .theme-nikoh_2 .section-heading {
    color: #4A0E17 !important;
}
.theme-nikoh_2 .timer-val {
    color: #4A0E17 !important;
}
.theme-nikoh_2 .timer-label {
    color: #5c4d32 !important;
}
.theme-nikoh_2 .btn-primary {
    background: #4A0E17 !important;
    border-color: #d4af37 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(74,14,23,0.3) !important;
}
.theme-nikoh_2 .btn-primary:hover {
    background: #5c121d !important;
}
.theme-nikoh_2 .btn-outline {
    border-color: #4A0E17 !important;
    color: #4A0E17 !important;
}
.theme-nikoh_2 .btn-outline:hover {
    background: #4A0E17 !important;
    color: #fff !important;
}
.theme-nikoh_2 .detail-icon {
    background: rgba(74, 14, 23, 0.08) !important;
    border-color: rgba(74, 14, 23, 0.2) !important;
    color: #4A0E17 !important;
}
.theme-nikoh_2 .sky-container {
    background: radial-gradient(ellipse at bottom, rgba(250, 249, 246, 0.8) 0%, rgba(74, 14, 23, 0.1) 100%) !important;
    border-color: #4A0E17 !important;
}
.theme-nikoh_2 .music-toggle-btn {
    background: #4A0E17 !important;
    color: #fff !important;
    border-color: #d4af37 !important;
}

/* Gallery Grid Mode styling specifically for nikoh_2 */
.gallery-grid-mode .gallery-container {
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: auto !important;
}
.gallery-grid-mode #gallerySlides {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 12px !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
}
.gallery-grid-mode .slide-container {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    transform: none !important;
    opacity: 1 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(74, 14, 23, 0.15) !important;
    transition: transform 0.3s ease !important;
    overflow: hidden !important;
}
.gallery-grid-mode .slide-container:hover {
    transform: scale(1.03) !important;
}
.gallery-grid-mode .slide-bg {
    display: none !important; /* Hide the blurred background img */
}
.gallery-grid-mode .slide-img {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.gallery-grid-mode #galleryPrev,
.gallery-grid-mode #galleryNext,
.gallery-grid-mode #galleryDots {
    display: none !important; /* Hide carousel nav controls */
}

/* Gallery Classic Slider styling specifically for nikoh_2 */
.gallery-classic-mode .gallery-container {
    background: #FAF9F6 !important;
    box-shadow: 0 8px 30px rgba(74, 14, 23, 0.1) !important;
    overflow: hidden !important;
    height: 380px !important; /* Fixed height for flat presentation */
    border: 1px solid rgba(74, 14, 23, 0.15) !important;
    border-radius: 12px !important;
    position: relative !important;
}
.gallery-classic-mode #gallerySlides {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    height: 100% !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.gallery-classic-mode .slide-container {
    position: relative !important;
    flex: 0 0 100% !important; /* Take full width of container */
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
.gallery-classic-mode .slide-bg {
    display: block !important; /* Show blurred bg */
    opacity: 0.15 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: blur(10px) !important;
}
.gallery-classic-mode .slide-img {
    position: absolute !important;
    top: 5% !important;
    left: 5% !important;
    width: 90% !important;
    height: 90% !important;
    object-fit: contain !important;
    transform: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}
.gallery-classic-mode #galleryPrev,
.gallery-classic-mode #galleryNext {
    display: flex !important; /* Show controls */
    background: rgba(74, 14, 23, 0.7) !important;
    color: #fff !important;
    border-color: #d4af37 !important;
}
.gallery-classic-mode #galleryDots {
    display: flex !important; /* Show dots */
}

/* Gallery Scattered Polaroid stack styling for nikoh_2 */
.gallery-scattered-mode .gallery-container {
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: 380px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.gallery-scattered-mode #gallerySlides {
    position: relative !important;
    width: 220px !important;
    height: 260px !important;
    display: block !important;
    transform: none !important;
}
.gallery-scattered-mode .slide-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #FAF9F6 !important;
    padding: 10px 10px 32px 10px !important; /* Polaroid white frame style! */
    box-shadow: 0 8px 25px rgba(0,0,0,0.22) !important;
    border: 1px solid #e2d2c2 !important;
    border-radius: 4px !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
}
.gallery-scattered-mode .slide-bg {
    display: none !important; /* Hide blurred background */
}
.gallery-scattered-mode .slide-img {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.gallery-scattered-mode #galleryPrev,
.gallery-scattered-mode #galleryNext {
    display: flex !important;
    background: rgba(74, 14, 23, 0.7) !important;
    color: #fff !important;
    border-color: #d4af37 !important;
    z-index: 100 !important;
}
.gallery-scattered-mode #galleryDots {
    display: none !important; /* Hide dots for scattered presentation */
}

/* --- FAQAT TILAK YOZISH FORMASI UCHUN MAXSUS USLUB --- */
#wishForm input,
#wishForm textarea,
#wishGuestName,
#wishComment,
.wish-writing-section input,
.wish-writing-section textarea {
    background: #ffffff !important;
    border: 1.5px solid #d4af37 !important;
    color: #1a0f07 !important; /* To'q qora / qalin va 100% tiniq yozuv */
    -webkit-text-fill-color: #1a0f07 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 0.9rem 1.1rem !important;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(212, 175, 55, 0.12) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

#wishForm input::placeholder,
#wishForm textarea::placeholder,
#wishGuestName::placeholder,
#wishComment::placeholder,
.wish-writing-section input::placeholder,
.wish-writing-section textarea::placeholder {
    color: #9c8a7c !important;
    -webkit-text-fill-color: #9c8a7c !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

#wishForm input:focus,
#wishForm textarea:focus,
#wishGuestName:focus,
#wishComment:focus,
.wish-writing-section input:focus,
.wish-writing-section textarea:focus {
    background: #ffffff !important;
    border-color: #c99b2c !important;
    color: #1a0f07 !important;
    -webkit-text-fill-color: #1a0f07 !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.45), inset 0 1px 4px rgba(0,0,0,0.04) !important;
    outline: none !important;
}

#wishGuestName:-webkit-autofill,
#wishGuestName:-webkit-autofill:hover,
#wishGuestName:-webkit-autofill:focus,
#wishComment:-webkit-autofill,
#wishComment:-webkit-autofill:hover,
#wishComment:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a0f07 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Share Modal clean high-contrast styling */
.share-copy-box input,
#shareLinkInput {
    background: #ffffff !important;
    border: 1.5px solid #d4af37 !important;
    color: #2c1d02 !important;
    -webkit-text-fill-color: #2c1d02 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* ==============================================
   GLOBAL LANGUAGE SWITCHER DROPDOWN (6 LANGUAGES)
   ============================================== */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-dropdown-btn:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: #ffd700;
    transform: translateY(-1px);
}

.lang-dropdown-btn .dropdown-arrow {
    font-size: 0.7rem;
    color: #ffd700;
    transition: transform 0.25s ease;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    background: #181416;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
    display: none;
    flex-direction: column;
    gap: 3px;
    z-index: 100000;
    backdrop-filter: blur(12px);
    animation: dropdownFade 0.2s ease-out;
}

.lang-dropdown-menu.show {
    display: flex;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.lang-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #ffd700;
}

.lang-dropdown-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(184, 134, 11, 0.2) 100%);
    color: #ffd700;
    font-weight: 700;
}

.lang-dropdown-item .lang-flag {
    font-size: 1.1rem;
}

.lang-dropdown-item .lang-text {
    flex: 1;
}

.lang-dropdown-item .check-icon {
    font-size: 0.75rem;
    color: #ffd700;
    opacity: 0;
}

.lang-dropdown-item.active .check-icon {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .lang-dropdown-btn .lang-btn-text {
        display: none;
    }
    .lang-dropdown-btn {
        padding: 6px 10px;
    }
}

/* MOBIL: til menyusi tugma chap chetdа bo'lgani uchun o'ngga (ekran ichiga)
   ochilsin — aks holda chapga chiqib, til nomlari kesilib qolardi. */
@media (max-width: 768px) {
    .lang-dropdown-menu {
        right: auto;
        left: 0;
        max-width: calc(100vw - 24px);
    }
}

/* --- FAMILY BOOKS RECOMMENDATION PROMO CARD --- */
.family-books-promo-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.family-books-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
}
.family-books-promo-card:active {
    transform: scale(0.98);
}
.family-books-promo-card .book-thumb-wrap img {
    transition: transform 0.3s ease;
}
.family-books-promo-card:hover .book-thumb-wrap img {
    transform: scale(1.08);
}

/* ==========================================================================
   PREMIUM LIGHTBOX MODAL (Full-screen Image Viewer)
   ========================================================================== */
.lightbox-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lightbox-modal.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomInLight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes zoomInLight {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightboxImage {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.25);
    background: #000;
}

.lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 0.92rem;
    text-align: center;
    padding: 8px 18px;
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    max-width: 90vw;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    color: #ffd700;
    font-size: 2rem;
    font-weight: 300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.25s ease;
    user-select: none;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1) rotate(90deg);
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: #ffd700;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all 0.25s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

@media (max-width: 600px) {
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    .lightbox-prev {
        left: 8px;
        width: 40px;
        height: 40px;
    }
    .lightbox-next {
        right: 8px;
        width: 40px;
        height: 40px;
    }
    #lightboxImage {
        max-width: 95vw;
        max-height: 74vh;
    }
}

/* ==========================================================================
   FLOATING SUPPORT WIDGET (Telegram Bot & Live Help)
   ========================================================================== */
.floating-support-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
}

.floating-support-btn {
    background: linear-gradient(135deg, #24A1DE 0%, #0088cc 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.5), 0 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-support-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 28px rgba(36, 161, 222, 0.65), 0 0 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #2bb2f5 0%, #0099e6 100%);
}

.floating-support-btn:active {
    transform: scale(0.96);
}

.floating-support-btn .support-icon {
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.support-badge-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.support-channel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6) !important;
}

@media (max-width: 600px) {
    .floating-support-widget {
        bottom: 16px;
        left: 14px;
        z-index: 99999;
    }
    .floating-support-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
        border-radius: 25px;
    }
}

/* --- LUXURY ADMIN PANEL & DASHBOARD STYLES --- */
.admin-tabs-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ccc;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.4);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(180, 83, 9, 0.35));
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.admin-tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.admin-tab-pane.active {
    display: block;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.admin-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.admin-stat-card .stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.admin-stat-card .stat-lbl {
    font-size: 0.8rem;
    color: #aaa;
}

.admin-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.2rem;
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-gold-light);
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ddd;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-badge.paid {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.admin-badge.free {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-badge.admin-role {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.4);
}

/* ===================================================
   24. LUXURY AUTH MODAL & PASSWORD FIELD REDESIGN
   =================================================== */
.auth-modal-card {
    max-width: 440px !important;
    width: 92% !important;
    padding: 2.2rem 2rem !important;
    background: linear-gradient(150deg, rgba(26, 20, 32, 0.96) 0%, rgba(14, 11, 18, 0.98) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.2) !important;
    backdrop-filter: blur(25px) !important;
    position: relative !important;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.auth-icon-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.auth-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #aa8214 100%);
    color: #0b0704;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    text-align: left;
}

.auth-input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-wrap .input-icon-left {
    position: absolute;
    left: 14px;
    color: var(--color-gold);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s;
}

.auth-input-wrap input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: 12px !important;
    padding: 0.85rem 2.8rem 0.85rem 2.6rem !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.auth-input-wrap input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
}

.auth-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 400 !important;
}

.auth-input-wrap .toggle-password-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.auth-input-wrap .toggle-password-btn:hover {
    color: var(--color-gold);
    transform: scale(1.15);
}

.auth-submit-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa8214 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.6) !important;
    color: #0b0704 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 0.6rem !important;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #fff176 0%, #ffd700 50%, #b8860b 100%) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55) !important;
    transform: translateY(-2px) !important;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
    gap: 12px;
}

.auth-divider span.line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-divider span.text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.social-auth-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-social-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
    padding: 11px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3) !important;
    width: 100% !important;
}

.btn-social-telegram:hover {
    background: linear-gradient(135deg, #32b5f9 0%, #25a7e6 100%) !important;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45) !important;
    transform: translateY(-1px) !important;
}

.btn-social-google {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #3c4043 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
}

.btn-social-google:hover {
    background: #f8f9fa !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-1px) !important;
}

.auth-notice-box {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.auth-notice-box.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ff8a80;
}

.auth-notice-box.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
}

/* --- ADMIN MODERN CHARTS & KPI STYLES --- */
.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
}

.admin-chart-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 1.2rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.admin-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-chart-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Cinzel', 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-chart-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.admin-kpi-subtext {
    font-size: 0.72rem;
    margin-top: 2px;
    color: #a0aec0;
}

/* --- MAP LOCATION PICKER MODERN STYLES --- */
.map-quick-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    max-height: 72px;
    overflow-y: auto;
    padding: 2px;
}

.map-chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f7fafc;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.map-chip-btn:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--color-gold);
    color: #fff;
    transform: translateY(-1px);
}

.map-chip-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #aa8214 100%);
    color: #000;
    font-weight: 700;
}

.map-search-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a151b;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    list-style: none;
    padding: 4px 0;
}

.map-search-item {
    padding: 8px 14px;
    font-size: 0.84rem;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    text-align: left;
}

.map-search-item:last-child {
    border-bottom: none;
}

.map-search-item:hover {
    background: rgba(212, 175, 55, 0.18);
    color: #fff;
}

/* ===================================================
   VISUAL BACKGROUND TEMPLATES GALLERY & SELECTOR
   =================================================== */
.bg-category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.bg-category-filters::-webkit-scrollbar {
    display: none;
}
.bg-filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ccc;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.bg-filter-pill:hover,
.bg-filter-pill.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.bg-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding: 8px 6px 12px 6px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
@media (max-width: 576px) {
    .bg-templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 320px;
    }
}
.bg-template-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #14050a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
}
.bg-template-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.bg-template-card.active-template {
    border-color: #ffd700;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.6), inset 0 0 0 1px #ffd700;
}
.bg-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 110%; /* 1:1.1 aspect ratio */
    background: #000;
    overflow: hidden;
}
.bg-card-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.bg-template-card:hover .bg-card-thumb-wrap img {
    transform: scale(1.05);
}
.bg-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ffd700;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    z-index: 2;
}
.bg-card-check-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffd700;
    color: #120005;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 3;
}
.bg-template-card.active-template .bg-card-check-icon {
    display: flex;
    animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bg-card-info {
    padding: 7px 8px;
    background: rgba(20, 10, 15, 0.85);
}
.bg-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.bg-template-card.active-template .bg-card-title {
    color: #ffd700;
}
.bg-card-subtitle {
    font-size: 0.65rem;
    color: #999;
    display: block;
    margin-top: 1px;
}

/* --- FLOATING TOAST NOTIFICATIONS --- */
.app-toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100099;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
@media (max-width: 576px) {
    .app-toast-container {
        left: 15px;
        right: 15px;
        bottom: 20px;
    }
}
.app-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(18, 5, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(212,175,55,0.25);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}
.app-toast.toast-success {
    border-color: #4ade80;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(74, 222, 128, 0.3);
}
.app-toast.toast-error {
    border-color: #f87171;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(248, 113, 113, 0.3);
}
.app-toast-icon {
    font-size: 1.25rem;
    color: #ffd700;
    flex-shrink: 0;
}
.app-toast.toast-success .app-toast-icon {
    color: #4ade80;
}
.app-toast.toast-error .app-toast-icon {
    color: #f87171;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   19. LUXURY GUEST LIST MODAL & ANTI-OVERFLOW GLOBAL SYSTEM
   ========================================================================== */

/* Universal Anti-Overflow & Word-Wrap */
*, *::before, *::after {
    box-sizing: border-box;
}

body,
.invitation-card,
.inv-main-card,
.luxury-card-container,
.glass-panel,
.glass-subpanel,
.countdown-wrapper,
.seating-panel,
.rsvp-section,
.gift-section,
.sky-guestbook-section,
.wish-writing-section,
.modal-content,
.dashboard-card,
.admin-card,
.admin-table-container,
.card-copy-box,
.dresscode-section,
.wishlist-section,
.location-panel {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

/* Rounded Luxury Global Defaults (No Sharp Edges) */
.btn {
    border-radius: 14px;
}
.btn-sm {
    border-radius: 10px;
}
.glass-panel {
    border-radius: 20px;
}
.glass-subpanel {
    border-radius: 18px;
}
.dashboard-card {
    border-radius: 20px;
}
.modal-content {
    border-radius: 24px;
}
.auth-modal-card {
    border-radius: 24px;
}
.card-copy-box {
    border-radius: 14px;
}
.admin-table-container {
    border-radius: 16px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    border-radius: 12px;
}
.step-tab-btn {
    border-radius: 12px;
}
.event-type-card,
.type-card {
    border-radius: 18px;
}

/* Luxury Guests Modal Custom Styles */
.luxury-guest-modal {
    background: radial-gradient(circle at top right, rgba(35, 10, 20, 0.98), rgba(12, 4, 8, 0.98)) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15) !important;
    backdrop-filter: blur(20px);
}

.guest-modal-icon-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe082 0%, #d4af37 60%, #8b6b15 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #2a0812;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.guest-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guest-stat-card:hover {
    transform: translateY(-2px);
}

.guest-filter-btn {
    transition: all 0.2s ease;
}
.guest-filter-btn:hover {
    filter: brightness(1.15);
}

.luxury-guest-item {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.luxury-guest-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 215, 0, 0.35) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Scrollbar for guests list */
.luxury-guests-scroll-container::-webkit-scrollbar,
#guestsListContainer::-webkit-scrollbar {
    width: 6px;
}
.luxury-guests-scroll-container::-webkit-scrollbar-track,
#guestsListContainer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
.luxury-guests-scroll-container::-webkit-scrollbar-thumb,
#guestsListContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 6px;
}
.luxury-guests-scroll-container::-webkit-scrollbar-thumb:hover,
#guestsListContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

/* =================================================================
   MOBIL YAXSHILANISHLAR (2026-09 qo'shildi)
   Standart, xavfsiz mobil tuzatishlar. Inline uslublarni yengish
   uchun ba'zi joyda !important ishlatilgan. Bu blok faylning
   OXIRIDA — shuning uchun ustunlik eng yuqori.
   ================================================================= */
@media (max-width: 768px) {
    /* iOS'da input bosilganda avtomatik kattalashuvni (zoom) oldini olish
       + qulay tegish maydonlari */
    input[type="text"], input[type="password"], input[type="email"],
    input[type="tel"], input[type="url"], input[type="datetime-local"],
    input[type="number"], input[type="search"], select, textarea, .form-control {
        font-size: 16px !important;
    }
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { min-height: 38px; }

    /* Gorizontal siljishni (yon tomonga suriladigan bo'sh joy) butunlay yo'q qilish */
    html, body { max-width: 100%; overflow-x: hidden; }
    .container, .landing-container, .edit-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .landing-container {
        padding-bottom: 110px !important;
    }

    /* Bosh sahifa sarlavhasi — tugmalar pastga tushib to'liq kenglikda joylashadi */
    .main-header { gap: 12px !important; }
    .main-header > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }
    .main-title { font-size: 2rem !important; line-height: 1.15; }
    .main-subtitle { font-size: 0.8rem !important; }

    /* Uzun matn / karta raqami / havola — ekrandan chiqib ketmasin */
    .card-number, .share-copy-box input {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Modal — mobilda ixchamroq padding */
    .modal-content { padding: 2rem 1.2rem !important; }
    .auth-modal-card { padding: 1.8rem 1.2rem !important; }
    .modal-close { top: 10px; right: 10px; }
}

@media (max-width: 480px) {
    /* 6-qadamli konstruktor stepperi — mobilda ixcham va o'qiladigan */
    .stepper-wrapper { padding: 12px 8px !important; }
    .step-num {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.78rem !important;
    }
    .step-label {
        font-size: 0.55rem !important;
        line-height: 1.1;
    }

    /* Header tugmalari — ixcham; til tanlashda faqat bayroq qoladi */
    .main-header .btn-sm { padding: 7px 11px; font-size: 0.78rem; }
    .lang-btn-text { display: none; }

    /* Yaratish tugmalari — 2 ustun (juda tor bo'lib ketmasin) */
    .creation-buttons { grid-template-columns: 1fr 1fr !important; }

    /* Amal tugmalari ustma-ust joylashsin */
    .detail-actions, .dashboard-actions-grid { flex-direction: column; }
    .detail-actions .btn, .dashboard-actions-grid .btn { width: 100%; }
}

@media (max-width: 360px) {
    /* Juda tor ekranlarda stepperda faqat raqamlar qoladi (yorliqsiz) */
    .step-label { display: none !important; }
    .creation-buttons { grid-template-columns: 1fr !important; }
}


/* ============================================================
   6-QADAM NAVIGATSIYA TUGMALARI — MOBIL TUZATISH
   (Muammo: "Orqaga" / "Saqlash" matni tor ekranda vertikal
   harflarga bo'linib ketardi. Yechim: mobilda ustma-ust joylash,
   matnni hech qachon o'ramaslik.)
   ============================================================ */
.edit-actions-panel .btn {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

@media (max-width: 768px) {
    .edit-actions-panel {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .edit-actions-panel .btn {
        flex: none !important;
        width: 100% !important;
        min-height: 48px;
        justify-content: center;
        white-space: nowrap !important;
        font-size: 1rem;
    }
    /* Asosiy amal (Keyingi / Saqlash) doim eng tepada bo'lsin */
    .edit-actions-panel #nextStepBtn,
    .edit-actions-panel #saveStepBtn { order: -1; }
}

/* ============================================================
   SEO & SUPPORT FAQ ACCORDION STYLES
   ============================================================ */
.seo-faq-item,
.support-faq-item {
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.seo-faq-item:hover,
.support-faq-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}
.seo-faq-item[open],
.support-faq-item[open] {
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.seo-faq-item summary::-webkit-details-marker,
.seo-faq-item summary::marker,
.support-faq-item summary::-webkit-details-marker,
.support-faq-item summary::marker {
    display: none;
}
.seo-faq-item[open] summary .faq-chevron,
.support-faq-item[open] summary .faq-chevron {
    transform: rotate(180deg);
}
