﻿:root {
    --bg-dark: #0d0e13;
    --gold-primary: #d4af6e;
    --gold-light: #f5e4c3;
    --gold-dark: #8c6830;
    --text-main: #f5f5f7;
    --text-muted: #9e9ea7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 10%, #1a1c26 0%, #08090d 100%);
    position: relative;
}

/* --- لودر سراسری کل صفحه --- */
.site-preloader {
    position: fixed;
    inset: 0;
    background: #0d0e13;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .site-preloader.fade-out {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.preloader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(212, 175, 110, 0.15);
    border-top-color: var(--gold-primary, #d4af6e);
    border-radius: 50%;
    animation: spinLoader 0.85s linear infinite;
}

.preloader-text {
    color: var(--gold-light, #f5e4c3);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.map-frame-box {
    position: relative;
    width: 100%;
    height: 280px; /* یا مقدار متناسب با طراحی اسلاید شما */
    min-height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #151720;
}

.map-skeleton {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #151720;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9e9ea7;
    font-size: 0.85rem;
    z-index: 10;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .map-skeleton.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

.map-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(212, 175, 110, 0.2);
    border-top-color: #d4af6e;
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
}

@keyframes mapSpin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

#ambientCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.snap-container {
    width: 100%;
    max-width: 440px;
    height: 100%;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    z-index: 5;
    background: #12131a;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .snap-container::-webkit-scrollbar {
        display: none;
    }

@media (min-width: 768px) {
    .snap-container {
        height: 94vh;
        height: 94dvh;
        border-radius: 36px;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
}

.snap-page {
    width: 100%;
    height: 100%;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .snap-page {
        height: 94vh;
        height: 94dvh;
    }
}

.music-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s;
}

    .music-modal-backdrop.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.music-modal-box {
    width: 100%;
    max-width: 320px;
    background: rgba(28, 30, 39, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

    .music-modal-box h3 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .music-modal-box p {
        font-size: 0.88rem;
        color: #a5a5b0;
        line-height: 1.6;
        margin-bottom: 20px;
    }

.modal-btn-row {
    display: flex;
    gap: 12px;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

    .btn-modal.yes {
        background: linear-gradient(135deg, #d8b479 0%, #b88e4c 100%);
        color: #1a1610;
        font-weight: 700;
    }

    .btn-modal.no {
        background: rgba(255, 255, 255, 0.08);
        color: #d1d1d8;
    }

.music-floating-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: rgba(24, 25, 33, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
}

    .music-floating-btn.playing svg {
        animation: spinDisc 5s linear infinite;
    }

@keyframes spinDisc {
    100% {
        transform: rotate(360deg);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.65) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 40%, rgba(12,13,18,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 35px 20px 45px;
    text-align: center;
    z-index: 6;
}

.hero-lead-en {
    font-size: 0.82rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #e5cb9b;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-names-en {
    font-family: 'Great Vibes', cursive;
    font-size: 3.6rem;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

.scroll-hint {
    position: absolute;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    animation: bounce 2s infinite;
    z-index: 7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.lace-card-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 34px 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: #2b2520;
    overflow: hidden;
}

.lace-border-pattern {
    position: absolute;
    inset: 6px;
    border: 18px solid transparent;
    border-image-source: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><circle cx="18" cy="18" r="7" fill="none" stroke="%23dfd2c4" stroke-width="1.8"/><circle cx="18" cy="4" r="3.5" fill="none" stroke="%23dfd2c4" stroke-width="1.2"/><circle cx="18" cy="32" r="3.5" fill="none" stroke="%23dfd2c4" stroke-width="1.2"/><circle cx="4" cy="18" r="3.5" fill="none" stroke="%23dfd2c4" stroke-width="1.2"/><circle cx="32" cy="18" r="3.5" fill="none" stroke="%23dfd2c4" stroke-width="1.2"/><circle cx="8" cy="8" r="2" fill="%23dfd2c4"/><circle cx="28" cy="8" r="2" fill="%23dfd2c4"/><circle cx="8" cy="28" r="2" fill="%23dfd2c4"/><circle cx="28" cy="28" r="2" fill="%23dfd2c4"/></svg>');
    border-image-slice: 18;
    border-image-repeat: round;
    pointer-events: none;
    opacity: 0.85;
}

.lace-top-heading {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #7a6e63;
    margin-bottom: 10px;
}

.lace-couple-title {
    font-family: 'Amiri', serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #1a1612;
    margin-bottom: 6px;
}

.lace-family-names {
    font-size: 0.9rem;
    color: #8c7e72;
    margin-bottom: 16px;
    font-weight: 500;
}

.lace-poem-line {
    position: relative;
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: #241d18;
    margin: 12px 0 16px 0;
    display: inline-block;
    padding: 0 30px;
}

    .lace-poem-line::before, .lace-poem-line::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 22px;
        height: 1px;
        background: #caa166;
    }

    .lace-poem-line::before {
        right: 0;
    }

    .lace-poem-line::after {
        left: 0;
    }

.lace-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Amiri', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #201a15;
    margin-bottom: 12px;
    direction: ltr;
}

    .lace-date-row span.pipe {
        color: #c5a065;
        font-weight: 300;
        font-size: 1.3rem;
    }

.lace-time-info {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    color: #4a4037;
    margin-bottom: 10px;
}

.lace-venue-title {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1612;
}

.wavy-calligraphy-card {
    position: relative;
    width: 100%;
    background: #181a24;
    border-radius: 30px;
    overflow: hidden;
    padding: 42px 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.wave-cut-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,90 350,-40 500,45 C650,130 900,10 1200,50 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.06)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.wave-cut-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,70 C200,20 450,100 700,40 C950,-20 1050,80 1200,30 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.06)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.calligraphy-quote-large {
    font-family: 'Amiri', serif;
    font-size: 1.9rem;
    line-height: 1.7;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(255, 255, 255, 0.35), 0 0 30px rgba(212, 175, 110, 0.25);
    margin-bottom: 20px;
    position: relative;
    z-index: 6;
}

.scratch-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    min-height: 180px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #111218;
    border: 1px solid rgba(212, 175, 110, 0.25);
    box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.6);
    z-index: 6;
}

.scratch-under-box {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 10px;
    gap: 12px;
}

.revealed-date-text {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 110, 0.4);
}

.mechanical-timer-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.days-unit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-flap {
    position: relative;
    background: #20222f;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-flap.large {
        padding: 4px 20px;
        min-width: 88px;
        height: 44px;
    }

    .card-flap.small {
        padding: 3px 8px;
        min-width: 58px;
        height: 38px;
    }

.digit-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

.card-flap.small .digit-val {
    font-size: 1.3rem;
}

.sub-units-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.sub-unit-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.unit-lbl {
    font-size: 0.72rem;
    color: #9e9ea7;
    margin-top: 3px;
}

.roll-down {
    animation: wheelRollDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wheelRollDown {
    0% {
        transform: translateY(-80%) scale(0.85);
        opacity: 0.3;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 10;
    touch-action: none;
}

.wavy-map-card {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 30px;
    padding: 32px 18px 20px 18px;
    color: #222;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: center;
}

    .wavy-map-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 28px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C200,80 400,-20 600,60 C800,120 1000,20 1200,70 L1200,0 L0,0 Z" fill="%2312131a"/></svg>');
        background-size: cover;
        z-index: 3;
    }

.map-frame-box {
    width: 100%;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    touch-action: auto !important;
}

    .map-frame-box iframe {
        width: 100%;
        height: 100%;
        border: 0;
        touch-action: auto !important;
        pointer-events: auto !important;
    }

.map-hint-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(18, 19, 26, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    color: #fff;
    pointer-events: none;
    z-index: 4;
}

.map-address-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    color: #4a4a52;
    margin-bottom: 14px;
}

.nav-btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .nav-btn.neshan {
        background: #0084ff;
    }

    .nav-btn.waze {
        background: #33ccff;
        color: #003344;
    }

    .nav-btn.google {
        background: #ea4335;
    }

    .nav-btn svg {
        width: 18px;
        height: 18px;
    }

.rsvp-section-card {
    width: 100%;
    background: #181a24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 24px 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.rsvp-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 16px;
}

.rsvp-radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.radio-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    border-radius: 12px;
    color: #d1d1d8;
    font-size: 0.85rem;
    cursor: pointer;
}

    .radio-pill.active {
        border-color: var(--gold-primary);
        background: rgba(212, 175, 110, 0.15);
        color: #fff;
    }

    .radio-pill input[type="radio"] {
        display: none;
    }

.field-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.btn-submit-rsvp {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #d8b479 0%, #b88e4c 100%);
    color: #15130d;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 175, 110, 0.25);
}
