/* ==========================================
   DESIGN SYSTEM & GLOBAL VARIABLES (PINK PALETTE)
   ========================================== */
:root {
    --bg-dark: #fff0f3; /* Gentle princess pink background */
    --bg-card: rgba(255, 255, 255, 0.8); /* Frosted glass white cards */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(255, 117, 143, 0.25);
    --border-hover: rgba(255, 71, 126, 0.6);
    --pink: #ff758f;
    --pink-dark: #470014; /* Burgundy dark text for readability on pink background */
    --gold: #FFD700;
    --gold-dark: #d4af37;
    --rose-gold: #ffccd5;
    --rose-accent: #ff4d6d;
    --text-light: #590d22; /* Primary dark rose text */
    --text-muted: #8a4f5e; /* Secondary rose text */
    --shadow-glow: 0 8px 32px 0 rgba(255, 117, 143, 0.12);
    --shadow-active: 0 0 25px rgba(255, 71, 126, 0.22);
    --font-heading: 'Sofia', cursive;
    --font-body: 'Quicksand', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset & Scroll Behavior */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: #fdfcfc;
    font-family: var(--font-body);
    color: var(--text-light);
    overflow-x: hidden;
    height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #fdfcfc 0%, #fff0f3 100%);
}

/* ==========================================
   CONFETTI & BACKGROUND EFFECTS
   ========================================== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: starPulse 4s infinite ease-in-out;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--rose-gold) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

/* ==========================================
   APP CONTAINER
   ========================================== */
.app-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1;
    position: relative;
    padding-bottom: 80px; /* Safe space for sticky nav bar */
}

/* ==========================================
   BOT ASSISTANT GRAPHICS
   ========================================== */
.assistant-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
    padding: 0 10px;
    animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bot-bubble-wrapper {
    flex-grow: 1;
    position: relative;
}

.bot-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 117, 143, 0.4);
    border-radius: 20px;
    padding: 15px 18px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--pink-dark);
    box-shadow: 0 4px 20px rgba(255, 117, 143, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    font-weight: 600;
}

/* Speech bubble caret */
.bot-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.9);
}

.bot-bubble::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 9px solid rgba(255, 117, 143, 0.4);
    z-index: -1;
}

.bot-mascot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sparkleBot {
    animation: botFloat 3.5s ease-in-out infinite;
}

/* Waving keyframe for Sparkle's arm */
.waving-arm {
    transform-origin: 28px 47px;
    animation: handWave 2.5s ease-in-out infinite;
}

@keyframes handWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-28deg); }
}

@keyframes botFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================
   WIZARD SLIDES MECHANICS
   ========================================== */
.slides-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none; /* Controlled by JS */
    width: 100%;
}

.slide.active {
    display: block;
    animation: slideInLeft 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Slide Cards Styles */
.hero-card, .step-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 117, 143, 0.15);
    padding: 30px 22px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02), 0 4px 15px rgba(255, 117, 143, 0.03);
}

.hero-card {
    text-align: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff758f, #ffccd5);
    color: #470014;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.25);
}

.invitation-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff0a54 0%, var(--rose-accent) 60%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.invitation-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.cta-start-btn {
    background: linear-gradient(135deg, var(--rose-accent) 0%, #ff85a2 50%, var(--gold-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(255, 71, 126, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-start-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 126, 0.55);
}

/* ==========================================
   WIZARD STEPS CONTENT
   ========================================== */
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 117, 143, 0.12);
    padding-bottom: 12px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rose-accent);
}

.step-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pink-dark);
}

/* Choice Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.choice-card {
    background: #ffffff;
    border: 1px solid rgba(255, 117, 143, 0.15);
    border-radius: 18px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.choice-card:hover {
    background: #ffffff;
    border-color: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 117, 143, 0.08);
}

.choice-card.active {
    background: rgba(255, 117, 143, 0.03);
    border-color: var(--pink);
    box-shadow: 0 6px 18px rgba(255, 117, 143, 0.12);
}

.card-icon {
    flex-shrink: 0;
    transition: transform var(--transition-speed) ease;
}

.choice-card:hover .card-icon {
    transform: scale(1.1) rotate(4deg);
}

.choice-card-details {
    flex-grow: 1;
    padding-right: 15px;
}

.choice-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--pink-dark);
}

.choice-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-weight: 500;
}

/* Checkmark indicator for selection */
.select-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: transparent;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-card.active .select-indicator {
    background: var(--pink);
    border-color: var(--pink);
}

.choice-card.active .select-indicator::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* ==========================================
   DESKTOP GRID OVERRIDES FOR CHOICES
   ========================================== */
@media (min-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .choice-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 14px;
    }

    .choice-card-details {
        padding-right: 0;
    }

    .choice-card h3 {
        margin-top: 10px;
    }

    .select-indicator {
        position: absolute;
        top: 12px;
        right: 12px;
    }
}

/* ==========================================
   CALENDAR SPECIFIC STYLING
   ========================================== */
.calendar-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 117, 143, 0.15);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.05);
}

.calendar-header {
    margin-bottom: 15px;
    text-align: center;
}

.calendar-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
}

.calendar-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--rose-accent);
    margin-bottom: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.calendar-day.selectable {
    cursor: pointer;
    color: var(--text-light);
    border: 1px solid rgba(255, 117, 143, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.calendar-day.selectable:hover {
    background: rgba(255, 117, 143, 0.1);
    border-color: var(--pink);
    color: var(--pink-dark);
}

.calendar-day.selectable.active {
    background: linear-gradient(135deg, var(--rose-accent) 0%, var(--pink) 100%);
    color: #ffffff;
    font-weight: 700;
    border-color: var(--rose-accent);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.45);
    transform: scale(1.1);
}

.calendar-day.disabled {
    opacity: 0.35;
    color: rgba(9, 2, 20, 0.28) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    cursor: not-allowed;
    border: none !important;
}

.calendar-day.padding-day {
    opacity: 0.1;
    font-size: 0.75rem;
}

/* ==========================================
   SUMMARY SLIDE STYLING
   ========================================== */
.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(255, 117, 143, 0.2);
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.05);
}

.summary-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 117, 143, 0.18);
}

.summary-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pink-dark);
}

.rsvp-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 117, 143, 0.25);
    border-radius: 22px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.05);
}

.rsvp-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rose-accent);
    margin-bottom: 8px;
}

.rsvp-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.45;
    font-weight: 500;
}

.share-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    width: 68px; /* Circular button */
    height: 68px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    display: block;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

/* ==========================================
   STICKY BOTTOM WIZARD NAVIGATION BAR
   ========================================== */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(255, 117, 143, 0.25);
    padding: 12px 18px;
    border-radius: 40px;
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 25px rgba(255, 117, 143, 0.12);
    width: calc(100% - 20px);
    max-width: 560px;
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--pink-dark);
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-btn svg {
    transition: transform 0.25s ease;
}

.prev-btn:hover svg {
    transform: translateX(-2px);
}

.next-btn:hover svg {
    transform: translateX(2px);
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--pink);
    background: rgba(255, 117, 143, 0.05);
}

.next-btn:not(:disabled) {
    background: linear-gradient(135deg, var(--rose-accent) 0%, var(--pink) 100%);
    color: #ffffff;
    border-color: var(--rose-accent);
    animation: gentlePulse 2s infinite ease-in-out;
}

.next-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.5);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.step-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 117, 143, 0.25);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--rose-accent);
    width: 16px;
    border-radius: 3px;
}

/* ==========================================
   DECORATIVE FOOTER
   ========================================== */
.app-footer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes gentlePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 77, 109, 0.25); }
    50% { box-shadow: 0 4px 18px rgba(255, 77, 109, 0.5); }
}

@keyframes mascotHop {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-16px) scaleY(1.15) scaleX(0.85); }
    50% { transform: translateY(-20px) rotate(10deg) scale(1.05); }
    75% { transform: translateY(-6px) rotate(-6deg) scale(1.02); }
    90% { transform: translateY(0) scaleY(0.95) scaleX(1.05); }
}

@keyframes mascotSpin {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes mascotGlide {
    0%, 100% { transform: translateX(0) skewX(0); }
    25% { transform: translateX(-16px) skewX(-6deg); }
    75% { transform: translateX(16px) skewX(6deg); }
}

@keyframes mascotGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 117, 143, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(255, 117, 143, 0.45)); }
}

.bot-mascot {
    position: relative;
}

.mascot-hop-reaction {
    animation: mascotHop 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.mascot-spin-reaction {
    animation: mascotSpin 0.65s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.mascot-glide-reaction {
    animation: mascotGlide 0.75s ease-in-out !important;
}

.mascot-glow-reaction {
    animation: mascotGlow 0.75s ease-in-out !important;
}

.floating-emoji {
    position: absolute;
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 10;
    animation: floatUpAndFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatUpAndFade {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translate(var(--x-offset), -15px) scale(1.2);
    }
    100% {
        transform: translate(var(--x-offset-end), -75px) scale(0.7);
        opacity: 0;
    }
}

/* ==========================================
   QR CODE STYLING
   ========================================== */
.qr-wrapper {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.25s;
}

.qr-frame {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 12px 24px 12px;
    box-shadow: 0 10px 25px rgba(255, 117, 143, 0.15);
    display: inline-block;
    margin-bottom: 10px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-frame:hover {
    transform: rotate(-3deg) scale(1.04);
}

#qrCodeCanvas {
    display: block;
    width: 130px;
    height: 130px;
    border-radius: 8px;
    background-color: #ffffff;
}

.qr-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================
   MOBILE VIEWPORT HEIGHT OPTIMIZATIONS
   ========================================== */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .app-container {
        gap: 10px;
        padding-bottom: 75px;
    }
    
    .assistant-container {
        position: relative;
        display: block;
        margin-top: 5px;
        padding: 0 10px;
    }
    
    .bot-bubble-wrapper {
        width: 100%;
        display: block;
    }
    
    #sparkleBot {
        width: 75px;
        height: 75px;
    }
    
    .bot-mascot {
        position: absolute;
        bottom: -22px;
        right: 22px;
        z-index: 10;
    }
    
    body[dir="rtl"] .bot-mascot {
        right: auto;
        left: 22px;
    }
    
    .bot-bubble {
        font-size: 0.95rem;
        padding: 14px 18px;
        border-radius: 20px;
        border-width: 2px;
        border-color: rgba(255, 117, 143, 0.55);
        box-shadow: 0 8px 24px rgba(255, 117, 143, 0.22);
        margin-bottom: 24px;
    }
    
    /* Speech bubble caret pointing down to the mascot */
    .bot-bubble::after {
        top: auto;
        bottom: -8px;
        right: 32px;
        left: auto;
        transform: none;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid rgba(255, 255, 255, 0.9) !important;
        border-bottom: none !important;
        border-left-color: transparent !important;
        border-right-color: transparent !important;
    }
    
    .bot-bubble::before {
        top: auto;
        bottom: -10px;
        right: 31px;
        left: auto;
        transform: none;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 9px solid rgba(255, 117, 143, 0.5) !important;
        border-bottom: none !important;
        border-left-color: transparent !important;
        border-right-color: transparent !important;
    }
    
    body[dir="rtl"] .bot-bubble::after {
        top: auto;
        bottom: -8px;
        left: 32px;
        right: auto;
        transform: none;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid rgba(255, 255, 255, 0.95) !important;
        border-bottom: none !important;
        border-left-color: transparent !important;
        border-right-color: transparent !important;
    }
    
    body[dir="rtl"] .bot-bubble::before {
        top: auto;
        bottom: -10px;
        left: 31px;
        right: auto;
        transform: none;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 9px solid rgba(255, 117, 143, 0.55) !important;
        border-bottom: none !important;
        border-left-color: transparent !important;
        border-right-color: transparent !important;
    }
    
    .hero-card, .step-card {
        padding: 20px 16px;
        border-radius: 20px;
    }
    
    .invitation-title {
        font-size: 2.1rem;
        margin-bottom: 10px;
    }
    
    .invitation-subtitle {
        margin-bottom: 20px;
        font-size: 0.92rem;
    }
    
    .choice-card {
        padding: 12px 16px;
        border-radius: 16px;
        gap: 12px;
    }
    
    .choice-card h3 {
        font-size: 0.95rem;
    }
    
    .choice-card p {
        font-size: 0.76rem;
    }
    
    .calendar-card {
        padding: 10px;
        border-radius: 16px;
    }
    
    .calendar-title {
        font-size: 1.3rem;
    }
    
    .calendar-days {
        gap: 4px;
    }
    
    .calendar-day {
        font-size: 0.82rem;
    }
    
    .summary-card {
        padding: 12px 16px;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .summary-line {
        padding-bottom: 8px;
    }
    
    .summary-value {
        font-size: 0.9rem;
    }
    
    .rsvp-content {
        padding: 18px 12px;
        border-radius: 18px;
    }
    
    .rsvp-title {
        font-size: 1.4rem;
    }
    

}

/* ==========================================
   LANGUAGE TOGGLE STYLING
   ========================================== */
.lang-toggle-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 10px 22px 0 22px;
    margin-bottom: -5px;
}

.lang-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
    color: var(--pink);
}

.lang-btn.active {
    background: var(--pink);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 117, 143, 0.25);
}

.lang-separator {
    color: rgba(255, 117, 143, 0.25);
    font-size: 0.85rem;
    font-weight: 500;
    user-select: none;
}

/* ==========================================
   RTL LAYOUT OVERRIDES (HEBREW SUPPORT)
   ========================================== */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .lang-toggle-container {
    justify-content: flex-start;
}

body[dir="rtl"] .choice-card {
    text-align: right;
}

body[dir="rtl"] .bot-bubble::after {
    right: auto;
    left: -8px;
    border-left: none;
    border-right: 8px solid rgba(255, 255, 255, 0.9);
}

body[dir="rtl"] .bot-bubble::before {
    right: auto;
    left: -10px;
    border-left: none;
    border-right: 9px solid rgba(255, 117, 143, 0.4);
}

body[dir="rtl"] .nav-btn svg {
    transform: scaleX(-1);
}

body[dir="rtl"] .prev-btn:hover svg {
    transform: scaleX(-1) translateX(-2px);
}

body[dir="rtl"] .next-btn:hover svg {
    transform: scaleX(-1) translateX(2px);
}

@media (min-width: 480px) {
    body[dir="rtl"] .select-indicator {
        right: auto;
        left: 12px;
    }
}

/* ==========================================
   ADMIN MODE EDITOR STYLING
   ========================================== */
body.admin-mode {
    padding-top: 55px; /* Add spacer at top when admin bar is fixed */
}

/* Fix header layout in admin mode so the toggle does not get hidden */
body.admin-mode .lang-toggle-container {
    padding-top: 5px;
}

.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1.5px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.4s ease-out;
}

.admin-bar-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bar-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--pink-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-bar-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.admin-bar .save-btn {
    background: linear-gradient(135deg, var(--rose-accent) 0%, var(--pink) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 77, 109, 0.25);
}

.admin-bar .save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.45);
}

.admin-bar .export-btn {
    background: transparent;
    border-color: var(--border-color);
    color: var(--pink-dark);
}

.admin-bar .export-btn:hover {
    background: rgba(255, 117, 143, 0.05);
    border-color: var(--pink);
}

.admin-bar .close-btn {
    background: #f1f1f1;
    color: #555;
}

.admin-bar .close-btn:hover {
    background: #e5e5e5;
}

/* Inline Edit Highlights */
[contenteditable="true"] {
    outline: none !important;
    border-bottom: 1.5px dashed var(--pink) !important;
    border-radius: 4px;
    background: rgba(255, 117, 143, 0.03);
    padding: 2px 4px;
    cursor: text;
    transition: background 0.25s ease;
}

[contenteditable="true"]:hover {
    background: rgba(255, 117, 143, 0.08);
}

[contenteditable="true"]:focus {
    background: rgba(255, 117, 143, 0.12);
    border-bottom-style: solid !important;
    box-shadow: 0 2px 8px rgba(255, 117, 143, 0.08);
}

/* Admin Export Code Modal Overlay */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(71, 0, 20, 0.45);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.admin-modal-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    padding: 26px;
    box-shadow: 0 15px 45px rgba(71, 0, 20, 0.15);
    animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--pink-dark);
    margin-bottom: 8px;
}

.admin-modal-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.admin-textarea {
    width: 100%;
    height: 250px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: #fdfcfc;
    resize: none;
    color: #444;
    outline: none;
    margin-bottom: 20px;
}

.admin-textarea:focus {
    border-color: var(--pink);
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.admin-modal .copy-btn {
    background: linear-gradient(135deg, var(--rose-accent) 0%, var(--pink) 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 77, 109, 0.3);
}

.admin-modal .copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.45);
}

.admin-modal .cancel-btn {
    background: #f1f1f1;
    color: #555;
}

.admin-modal .cancel-btn:hover {
    background: #e5e5e5;
}

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

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


