/* ==========================================
   INTERACTIVE WEDDING CARD - PREMIUM STYLE
   ========================================== */

/* 1. CSS VARIABLES & BASE RESET */
:root {
    --gold-primary: #c5a059;
    --gold-dark: #8c6d31;
    --gold-light: #ebdcb9;
    --gold-ultra-light: #faf5eb;
    
    --bg-overlay: rgba(255, 255, 255, 0.72);
    --border-color: rgba(255, 255, 255, 0.6);
    
    --text-main: #3d3422;
    --text-muted: #73674f;
    --text-light: #a38652;
    
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en-serif: 'Playfair Display', serif;
    --font-en-cursive: 'Pinyon Script', cursive;
    --font-en-signature: 'Great Vibes', cursive;
}

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

body {
    font-family: var(--font-fa);
    background: radial-gradient(circle, #f8f5f0 0%, #e2dad0 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* 2. APP CONTAINER (Centering Mobile View) */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(140, 109, 49, 0.2);
    display: flex;
    flex-direction: column;
}

/* ==========================================
   3. ENVELOPE COVER (GATEFOLD)
   ========================================== */
.envelope-cover {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    overflow: hidden;
    background: #faf7f2;
    transition: opacity 1.8s ease;
    perspective: 1500px; /* Enable 3D depth */
}

.envelope-cover.open {
    pointer-events: none;
    opacity: 0;
}

.flap {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%; /* overlapping slightly to prevent seams */
    height: 100%;
    background-image: url('Images/First .png');
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.3, 1), opacity 1.8s ease, box-shadow 1.8s ease;
    box-shadow: 0 0 25px rgba(0,0,0,0.18);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.flap-left {
    left: 0;
    background-position: left center;
    transform-origin: left center;
}

.flap-right {
    right: 0;
    background-position: right center;
    transform-origin: right center;
}

/* Envelope Flaps Opening Motion - Realistic 3D swings and slides */
.envelope-cover.open .flap-left {
    transform: rotateY(-110deg) translateX(-15%);
    box-shadow: 25px 0 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
}

.envelope-cover.open .flap-right {
    transform: rotateY(110deg) translateX(15%);
    box-shadow: -25px 0 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
}

/* Clasp / Wax Seal */
.clasp-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope-cover.open .clasp-container {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(360deg) scale(0.2);
}

.clasp-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Golden pulse rings over the pearl shell clasp */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2.5px solid var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold-primary);
    animation: claspPulse 2s infinite ease-in-out;
}

.clasp-label {
    font-family: var(--font-fa);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
    text-shadow: 0 0 6px #fff, 0 1px 2px rgba(255,255,255,0.9);
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--gold-light);
    animation: labelFloat 2.5s infinite alternate ease-in-out;
}

@keyframes claspPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

@keyframes labelFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   4. INSIDE CARD LAYOUT
   ========================================== */
.inside-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background-image: url('Images/Secound .png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.3, 1), transform 1.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.inside-card.visible {
    opacity: 1;
    transform: scale(1);
}

#petals-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.card-content {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 18px;
    scroll-behavior: smooth;
    direction: rtl; /* Force right-to-left layout for Persian script */
}

/* Scrollbar Customization */
.card-content::-webkit-scrollbar {
    width: 5px;
}

.card-content::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.35);
    border-radius: 10px;
}

/* Glassmorphism Section Layout */
.card-section {
    background: var(--bg-overlay);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 35px rgba(140, 109, 49, 0.08);
    border-radius: 24px;
    width: 100%;
    margin-bottom: 26px;
    padding: 30px 22px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title */
.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 12px;
}

.section-icon {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
}

/* ==========================================
   5. FLOATING MUSIC BUTTON
   ========================================== */
.music-btn {
    position: absolute;
    bottom: 24px;
    right: 20px;
    z-index: 999;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(140, 109, 49, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease, transform 0.1s active;
}

.music-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--gold-primary);
}

.music-btn.hidden {
    display: none !important;
}

.music-label {
    font-family: var(--font-fa);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    width: 18px;
    height: 16px;
}

.music-visualizer .bar {
    width: 3px;
    height: 100%;
    background-color: var(--gold-primary);
    border-radius: 1px;
    transform-origin: bottom;
    animation: bounceVisualizer 1.2s ease infinite alternate;
    animation-play-state: paused;
}

.music-visualizer .bar:nth-child(1) { animation-duration: 0.8s; }
.music-visualizer .bar:nth-child(2) { animation-duration: 1.1s; }
.music-visualizer .bar:nth-child(3) { animation-duration: 0.9s; }
.music-visualizer .bar:nth-child(4) { animation-duration: 1.3s; }

.music-btn.playing .music-visualizer .bar {
    animation-play-state: running;
}

.music-icon-fallback {
    display: none;
    width: 16px;
    height: 16px;
    color: var(--gold-dark);
}

@keyframes bounceVisualizer {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

/* ==========================================
   6. HEADER SECTION
   ========================================== */
.header-section {
    padding: 40px 20px;
    margin-top: 15px;
}

.english-title {
    font-family: var(--font-en-cursive);
    font-size: 52px;
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 2px;
    direction: ltr; /* Render English names LTR */
}

.english-subtitle {
    font-family: var(--font-en-serif);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 22px;
    direction: ltr;
}

.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 22px;
}

.title-separator .line {
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.4) 50%, rgba(197, 160, 89, 0) 100%);
    flex-grow: 1;
}

.sep-icon {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
}

.sep-image {
    width: 38px;
    height: 38px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Make white background transparent and blend beautifully */
}

.persian-names {
    font-family: var(--font-fa);
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 18px;
}

.welcome-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ==========================================
   7. SCRATCH DATE CARD
   ========================================== */
.scratch-instruction {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.scratch-cards-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    width: 100%;
}

.scratch-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scratch-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.scratch-card-box {
    position: relative;
    width: 90px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--gold-ultra-light);
    border: 2px solid var(--gold-light);
    box-shadow: inset 0 0 10px rgba(140, 109, 49, 0.05);
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    cursor: grab;
    touch-action: none; /* Prevents scrolling when scratching */
}

.scratch-canvas:active {
    cursor: grabbing;
}

.scratch-revealed-value {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en-serif);
    font-size: 21px;
    font-weight: 800;
    color: var(--gold-dark);
    line-height: 1.2;
    text-align: center;
}

.scratch-revealed-value .p-val {
    font-family: var(--font-fa);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================
   8. PHOTO & POETRY CARD
   ========================================== */
.couple-photo-frame {
    position: relative;
    width: 210px;
    height: 270px;
    margin: 0 auto 24px;
    border-radius: 105px / 135px; /* Perfect oval shape */
    overflow: hidden;
    border: 4px solid var(--gold-light);
    box-shadow: 0 10px 25px rgba(140, 109, 49, 0.15);
}

.couple-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.couple-photo-frame:hover .couple-image {
    transform: scale(1.06);
}

.poetry-card {
    padding: 10px 10px 5px;
}

.poetry-line {
    font-size: 14px;
    line-height: 2;
    color: var(--text-main);
    margin-bottom: 8px;
    font-style: italic;
}

.poetry-signature {
    margin-top: 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-dark);
}

/* ==========================================
   9. COUNTDOWN TIMER
   ========================================== */
.countdown-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-circle-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(197, 160, 89, 0.12);
    stroke-width: 3.5px;
}

.progress-ring-indicator {
    fill: none;
    stroke: var(--gold-primary);
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-dasharray: 188.4; /* 2 * PI * R (R=30) */
    stroke-dashoffset: 188.4;
    transition: stroke-dashoffset 0.5s ease-out;
}

.timer-value {
    position: absolute;
    font-family: var(--font-en-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--gold-dark);
}

.timer-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================
   10. WEDDING TIMELINE
   ========================================== */
.timeline-container {
    position: relative;
    padding-right: 32px;
    border-right: 1.5px dashed rgba(197, 160, 89, 0.4);
    text-align: right;
    margin: 15px 10px 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    right: -42px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

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

.timeline-panel {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 16px;
    border-radius: 16px;
    transition: background 0.3s ease;
}

.timeline-panel:hover {
    background: rgba(255, 255, 255, 0.85);
}

.timeline-time {
    font-family: var(--font-en-serif);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

.timeline-heading {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   11. LOCATION & MAP
   ========================================== */
.venue-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.map-card-wrapper {
    width: 100%;
}

/* Simulated stylized map block */
.map-placeholder {
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6dec9 0%, #ecdcb4 100%), 
                radial-gradient(circle, transparent 20%, #ecdcb4 20%, #ecdcb4 80%, transparent 80%, transparent);
    background-size: 100% 100%, 20px 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* Map Grid Lines Overlay */
.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
    background-size: 25px 25px;
}

.map-pin-icon {
    width: 32px;
    height: 32px;
    color: #e04a4a;
    z-index: 5;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.map-ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(224, 74, 74, 0.25);
    z-index: 4;
    animation: radarPulse 1.8s infinite ease-out;
}

.map-hint {
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #7b6235;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 12px;
    border-radius: 20px;
    z-index: 5;
    border: 1px solid var(--gold-light);
}

@keyframes radarPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.address-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nav-btn-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--gold-light);
    color: var(--gold-dark);
    padding: 10px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-btn-pill:hover {
    background: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 10px rgba(140, 109, 49, 0.08);
}

.nav-btn-pill i {
    width: 15px;
    height: 15px;
}

/* ==========================================
   12. RSVP FORM
   ========================================== */
.rsvp-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.rsvp-form {
    text-align: right;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
    pointer-events: none;
}

.textarea-icon {
    top: 20px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 40px 11px 16px; /* Right padded to accommodate icons in RTL */
    border-radius: 14px;
    border: 1.5px solid var(--gold-light);
    background: rgba(255, 255, 255, 0.85);
    font-family: var(--font-fa);
    font-size: 13.5px;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--gold-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /* Arrow down icon custom overlay in RTL */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c6d31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 14px;
}

.form-textarea {
    resize: none;
}

/* Attendance toggle cards button layout */
.attendance-toggle-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.toggle-card {
    flex: 1;
    cursor: pointer;
}

.radio-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1.5px solid var(--gold-light);
    background: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-align: center;
}

.status-icon {
    width: 22px;
    height: 22px;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.radio-hidden:checked + .toggle-card-content {
    background: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.12);
    color: var(--gold-dark);
}

.radio-hidden:checked + .toggle-card-content .status-icon {
    transform: scale(1.15);
    color: var(--gold-dark);
}

/* Form Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    padding: 13px;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-fa);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(140, 109, 49, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(140, 109, 49, 0.35);
}

/* Spinner Loader */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* RSVP Success Card */
.rsvp-success-card {
    text-align: center;
    padding: 15px 5px;
    animation: fadeInScale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.success-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-icon {
    width: 24px;
    height: 24px;
    color: var(--gold-dark);
    fill: var(--gold-primary);
}

.rsvp-success-card h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.success-msg {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.edit-btn {
    background: transparent;
    border: 1px solid var(--gold-light);
    color: var(--gold-dark);
    padding: 7px 18px;
    border-radius: 20px;
    font-family: var(--font-fa);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(197, 160, 89, 0.05);
    border-color: var(--gold-primary);
}

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

/* ==========================================
   13. FOOTER
   ========================================== */
.main-footer {
    text-align: center;
    margin-top: 10px;
    padding: 15px 0 25px;
}

.designer-credit {
    font-size: 11.5px;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.year-footer {
    font-family: var(--font-en-serif);
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================
   14. GENERAL UTILITIES & ANIMATIONS
   ========================================== */
/* Fade in elements on scroll */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* ==========================================
   15. BILINGUAL MULTI-LANGUAGE SYSTEM
   ========================================== */
/* Language Toggle Button styling */
.lang-btn {
    position: absolute;
    top: 24px;
    left: 20px;
    z-index: 999;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(140, 109, 49, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--gold-primary);
}

.lang-btn.hidden {
    display: none !important;
}

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

.lang-btn-text {
    font-family: var(--font-en-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Clasp Label Stack styling */
.clasp-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.clasp-label .en-lbl {
    font-size: 10px;
    font-family: var(--font-en-serif);
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.clasp-label .fa-lbl {
    font-size: 11px;
    font-family: var(--font-fa);
    font-weight: 700;
}

/* Visibility toggles based on body language class */
body.lang-en .lang-fa,
body.lang-en .lang-input-fa,
body.lang-en .lang-select-fa,
body.lang-en .lang-textarea-fa {
    display: none !important;
}

body.lang-fa .lang-en,
body.lang-fa .lang-input-en,
body.lang-fa .lang-select-en,
body.lang-fa .lang-textarea-en {
    display: none !important;
}

/* LTR / LTR layout adaptations for English mode */
body.lang-en {
    direction: ltr;
}

body.lang-en .card-content {
    direction: ltr;
}

/* Mirror timeline layout in LTR */
body.lang-en .timeline-container {
    text-align: left;
    padding-right: 0;
    padding-left: 32px;
    border-right: none;
    border-left: 1.5px dashed rgba(197, 160, 89, 0.4);
}

body.lang-en .timeline-badge {
    right: auto;
    left: -42px;
}

/* Mirror RSVP layout in LTR */
body.lang-en .rsvp-form {
    text-align: left;
}

body.lang-en .form-input, 
body.lang-en .form-select, 
body.lang-en .form-textarea {
    padding: 11px 16px 11px 40px; /* Shift padding to left for LTR icons */
}

body.lang-en .input-icon {
    right: auto;
    left: 12px;
}

body.lang-en .form-select {
    background-position: right 12px center;
}
