:root {
    --primary-color: #dfba78; 
    --bg-color-1: #2a2118;
    --bg-color-2: #17110d;
    --text-color: #fff;
    --verse-color: #fdfaf0;
    --accent-color: #cda258;
}

body.theme-2 {
    --primary-color: #d2691e; 
    --bg-color-1: #4a2810;
    --bg-color-2: #2b1408;
    --text-color: #fff;
    --verse-color: #fdfaf0;
    --accent-color: #a0522d;
}

body.theme-3 {
    --primary-color: #715644; 
    --bg-color-1: #3d3329;
    --bg-color-2: #211c16;
    --text-color: #715644;
    --verse-color: #715644;
    --accent-color: #715644;
}

body.theme-4 {
    --primary-color: #800020; 
    --bg-color-1: #400010;
    --bg-color-2: #1a0006;
    --text-color: #fff;
    --verse-color: #fdfaf0;
    --accent-color: #600018;
}

body.theme-5 {
    --primary-color: #9c7b41; 
    --bg-color-1: #fdfdfd; 
    --bg-color-2: #eaeaea;
    --text-color: #2a2a2a; 
    --verse-color: #111111;
    --accent-color: #9c7b41;
}

body.theme-6 {
    --primary-color: #d1b075; 
    --bg-color-1: #1a1c20;
    --bg-color-2: #0d0f12;
    --text-color: #fff;
    --verse-color: #fdfaf0;
    --accent-color: #a88c5d;
}

body.theme-7 {
    --primary-color: #d9778c; 
    --bg-color-1: #fff8f9; 
    --bg-color-2: #fcedf0;
    --text-color: #4a2e33; 
    --verse-color: #2b171a;
    --accent-color: #d9778c;
}

body.theme-8 {
    --primary-color: #7da1b5; 
    --bg-color-1: #151b22;
    --bg-color-2: #0a0d11;
    --text-color: #fff;
    --verse-color: #fdfaf0;
    --accent-color: #5c798a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    width: 100%; min-height: 100vh; background: linear-gradient(135deg, var(--bg-color-1) 0%, var(--bg-color-2) 100%); 
    display: flex; justify-content: center; align-items: center; font-family: 'Amiri', serif; overflow: hidden; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.mobile-container { position: relative; width: 100%; max-width: 450px; height: 100vh; height: 100dvh; background-color: #000; overflow: hidden; box-shadow: 0 0 50px rgba(0, 0, 0, 0.9); }
@media screen and (max-width: 768px) {
    body { display: block; background: #000; }
    .mobile-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; max-width: 100%; width: 100%; height: 100%; box-shadow: none; border-radius: 0; }
}
#opener-section, #main-section { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#opener-section { z-index: 10; transition: opacity 2.5s ease-in-out; cursor: pointer; }
#opener-video, #bg-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hidden { opacity: 0; visibility: hidden; transition: opacity 2.5s ease-in-out, visibility 2.5s ease-in-out; }
#main-section { transition: opacity 2.5s ease-in-out; z-index: 5; }
.content-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%); z-index: 1; pointer-events: none; }
.content-overlay.no-overlay { background: none; }

.scroll-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow-y: auto; scroll-behavior: smooth; scroll-snap-type: y mandatory; z-index: 5; }
.scroll-container::-webkit-scrollbar { display: none; }
.full-screen-section { width: 100%; height: 100vh; height: 100dvh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px 35px; text-align: center; position: relative; }
.lang-switch-elegant { position: fixed; top: 35px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; align-items: center; z-index: 20; padding: 10px; }

.lang-option { font-family: 'Aref Ruqaa', serif; color: rgba(255, 255, 255, 0.6); font-size: 20px; cursor: pointer; transition: all 0.5s ease; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
body.theme-5 .lang-option, body.theme-3 .lang-option, body.theme-7 .lang-option { color: rgba(0, 0, 0, 0.6); text-shadow: none; } 
body.theme-3 .lang-option { color: rgba(113, 86, 68, 0.6); }

.lang-option:hover { color: var(--text-color); }
.lang-option.active { color: var(--primary-color); font-size: 24px; font-weight: bold; text-shadow: 0 0 15px var(--primary-color), 2px 2px 5px rgba(0,0,0,0.9); }
body.theme-5 .lang-option.active, body.theme-3 .lang-option.active, body.theme-7 .lang-option.active { text-shadow: none; }

.lang-divider { color: rgba(255, 255, 255, 0.4); font-size: 16px; text-shadow: 1px 1px 3px #000; }
body.theme-5 .lang-divider, body.theme-3 .lang-divider, body.theme-7 .lang-divider { color: rgba(0, 0, 0, 0.4); text-shadow: none; }
body.theme-3 .lang-divider { color: rgba(113, 86, 68, 0.4); }

.wedding-day-eng { font-family: 'Great Vibes', cursive; font-size: 55px; color: var(--primary-color); text-shadow: 2px 2px 10px rgba(0,0,0,0.8); margin-bottom: 0px; line-height: 1; }
.wedding-date-eng { font-family: 'Amiri', serif; font-size: 20px; color: var(--primary-color); letter-spacing: 5px; margin-bottom: 40px; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); }
body.theme-5 .wedding-day-eng, body.theme-5 .wedding-date-eng, body.theme-3 .wedding-day-eng, body.theme-3 .wedding-date-eng, body.theme-7 .wedding-day-eng, body.theme-7 .wedding-date-eng { text-shadow: none; }

.hero-names-eng { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.hero-names-eng .name { font-family: 'Great Vibes', cursive; font-size: 75px; color: var(--primary-color); line-height: 0.8; text-shadow: 2px 2px 15px rgba(0,0,0,0.9); }
.hero-names-eng .and-symbol { font-family: 'Great Vibes', cursive; font-size: 45px; color: var(--text-color); text-shadow: 2px 2px 10px rgba(0,0,0,0.9); }
body.theme-5 .hero-names-eng .name, body.theme-5 .hero-names-eng .and-symbol, body.theme-3 .hero-names-eng .name, body.theme-3 .hero-names-eng .and-symbol, body.theme-7 .hero-names-eng .name, body.theme-7 .hero-names-eng .and-symbol { text-shadow: none; }

.bismillah { 
    font-family: 'Scheherazade New', serif; 
    font-size: 30px; 
    color: var(--primary-color);
    margin-bottom: 15px; 
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.9)); 
    line-height: 1.5; 
    font-weight: 700; 
}
body.theme-5 .bismillah, body.theme-3 .bismillah, body.theme-7 .bismillah { filter: none; }
body.theme-1 .bismillah {
    background: linear-gradient(to right, #cda258, #fdf5d3, #cda258);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quran-verse { 
    font-family: 'Scheherazade New', serif; 
    font-size: 25px; 
    line-height: 2.3; 
    color: var(--verse-color); 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 25px rgba(223, 186, 120, 0.6); 
    padding: 0 10px; 
    font-weight: 700; 
    text-align: center;
}

body.theme-5 .quran-verse, body.theme-3 .quran-verse, body.theme-7 .quran-verse { text-shadow: none; }

.invitation-transparent { color: var(--text-color); }
.wedding-title { font-family: 'Aref Ruqaa', serif; font-size: 32px; color: var(--primary-color); margin-bottom: 10px; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.separator-line { width: 50px; height: 1.5px; background-color: var(--primary-color); margin: 0 auto 20px auto; box-shadow: 0 0 5px var(--primary-color); }
body.theme-5 .wedding-title, body.theme-5 .separator-line, body.theme-3 .wedding-title, body.theme-3 .separator-line, body.theme-7 .wedding-title, body.theme-7 .separator-line { text-shadow: none; box-shadow: none;}

.couple-names { font-family: 'Aref Ruqaa', serif; font-size: 50px; color: var(--text-color); font-weight: 700; margin-bottom: 25px; text-shadow: 2px 2px 15px rgba(0,0,0,0.8); line-height: 1.2; }

/* تأثير النص الخاص بالدعوة الشخصية VIP */
.vip-highlight {
    color: var(--primary-color);
    font-family: 'Aref Ruqaa', serif;
    font-size: 30px;
    font-weight: bold;
    display: inline-block;
    margin: 0 6px;
    padding: 0 5px;
    border-bottom: 2px dashed var(--primary-color);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    line-height: 1;
}
body.theme-5 .vip-highlight, body.theme-3 .vip-highlight, body.theme-7 .vip-highlight {
    text-shadow: none;
}

.invite-msg { font-size: 20px; line-height: 1.9; color: var(--text-color); margin-bottom: 30px; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); opacity: 0.9;}
.details { margin-bottom: 30px; width: 100%; display: flex; flex-direction: column; align-items: center; }
body.theme-5 .couple-names, body.theme-5 .invite-msg, body.theme-3 .couple-names, body.theme-3 .invite-msg, body.theme-7 .couple-names, body.theme-7 .invite-msg { text-shadow: none; }

.wedding-dayname { 
    font-family: 'Aref Ruqaa', serif; 
    font-size: 38px; 
    color: var(--primary-color); 
    margin-bottom: 10px; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
}
body.theme-5 .wedding-dayname, body.theme-3 .wedding-dayname, body.theme-7 .wedding-dayname { text-shadow: none; }

.heart-divider { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}
.heart-divider .line { 
    width: 60px; 
    height: 1.5px; 
    background-color: var(--primary-color); 
    box-shadow: 0 0 5px var(--primary-color); 
}
body.theme-5 .heart-divider .line, body.theme-3 .heart-divider .line, body.theme-7 .heart-divider .line { box-shadow: none; }
.heart-divider .heart { 
    font-size: 24px; 
    color: #ff3b3b; 
    animation: heartPulse 1.2s infinite ease-in-out; 
    filter: drop-shadow(0 0 5px rgba(255, 59, 59, 0.5)); 
}
@keyframes heartPulse { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.3); } 
}

.wedding-formatted-date { 
    font-family: 'Amiri', serif; 
    font-size: 28px; 
    color: var(--text-color); 
    margin-bottom: 20px; 
    letter-spacing: 2px; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); 
    font-weight: bold; 
}
body.theme-5 .wedding-formatted-date, body.theme-3 .wedding-formatted-date, body.theme-7 .wedding-formatted-date { text-shadow: none; }

.time-badge { 
    display: inline-block; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 8px 30px; 
    border-radius: 50px; 
    font-size: 22px; 
    color: var(--primary-color); 
    font-family: 'Amiri', serif; 
    font-weight: bold; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    margin-bottom: 20px; 
}
body.theme-5 .time-badge, body.theme-3 .time-badge, body.theme-7 .time-badge { 
    background: rgba(255, 255, 255, 0.6); 
    border-color: rgba(0,0,0,0.1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.address-text { 
    font-size: 20px; 
    color: var(--text-color); 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); 
    margin-bottom: 0; 
}
body.theme-5 .address-text, body.theme-3 .address-text, body.theme-7 .address-text { text-shadow: none; }
.address-text strong { 
    color: var(--primary-color); 
    font-weight: normal; 
    font-family: 'Aref Ruqaa', serif; 
    font-size: 24px;
}

.circle-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}
.circle-date-wrapper.fade-element { opacity: 1; transform: none; transition: none; }

.full-date-top {
    font-family: 'Amiri', serif;
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-weight: bold;
}
body.theme-5 .full-date-top, body.theme-3 .full-date-top, body.theme-7 .full-date-top { text-shadow: none; }

body.theme-3 .full-date-top {
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 30px;
    border-radius: 30px;
    display: inline-block;
}

.fade-element.in-view .full-date-top {
    animation: slideDownDate 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 2.6s; 
}
@keyframes slideDownDate {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.circle-middle-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.side-text {
    flex: 1; 
    display: flex;
    flex-direction: row;
    align-items: baseline;
    white-space: nowrap; 
    z-index: 1; 
}

.day-name {
    justify-content: flex-end;
    padding-left: 15px;
}

.time-text {
    justify-content: flex-start;
    padding-right: 15px;
}

.fade-element.in-view .day-name {
    animation: slideOutFlexRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 3.4s; 
}
.fade-element.in-view .time-text {
    animation: slideOutFlexLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 3.4s; 
}
@keyframes slideOutFlexRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutFlexLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.text-lbl {
    font-family: 'Aref Ruqaa', serif;
    font-size: 18px; 
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin-bottom: -3px; 
}
.text-val {
    font-family: 'Amiri', serif;
    font-size: 20px; 
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin: 0 4px;
}
body.theme-5 .text-lbl, body.theme-5 .text-val, body.theme-3 .text-lbl, body.theme-3 .text-val, body.theme-7 .text-lbl, body.theme-7 .text-val { text-shadow: none; }

.circle-center-wrapper {
    position: relative;
    flex: 0 0 110px; 
    width: 110px;
    height: 110px;
    z-index: 10; 
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
body.theme-5 .circle-center-wrapper, body.theme-3 .circle-center-wrapper, body.theme-7 .circle-center-wrapper {
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.fade-element.in-view .circle-center-wrapper {
    animation: circleZoomIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.2s;
}
@keyframes circleZoomIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.circle-border-svg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    transform: rotate(-90deg); 
    z-index: 11;
}
.circle-border-svg circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-dasharray: 330; 
    stroke-dashoffset: 330;
}
.fade-element.in-view .circle-border-svg circle {
    animation: drawCircleBorder 1s ease-in-out both;
    animation-delay: 0.8s;
}
@keyframes drawCircleBorder {
    from { stroke-dashoffset: 330; }
    to { stroke-dashoffset: 0; }
}

.circle-number-inner {
    font-size: 45px;
    font-family: sans-serif;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 12;
}
.fade-element.in-view .circle-number-inner {
    animation: spinNumberIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 1.8s;
}
@keyframes spinNumberIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

.design2-delay.address-text { transition-delay: 4.4s !important; } 
.design2-delay.countdown-container { transition-delay: 4.8s !important; } 
.design2-delay.map-btn { transition-delay: 5.2s !important; } 
.design2-delay.rsvp-btn { transition-delay: 5.4s !important; } 

@media screen and (max-width: 380px) {
    .text-lbl { font-size: 15px; }
    .text-val { font-size: 17px; margin: 0 3px;}
    .circle-center-wrapper { width: 95px; height: 95px; flex: 0 0 95px; }
    .circle-number-inner { font-size: 38px; }
    .day-name { padding-left: 8px; }
    .time-text { padding-right: 8px; }
}

.countdown-container { display: flex; gap: 12px; justify-content: center; margin-bottom: 30px; width: 100%; }
.time-box { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px; border-radius: 12px; min-width: 65px; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
body.theme-5 .time-box, body.theme-3 .time-box, body.theme-7 .time-box { background: rgba(255, 255, 255, 0.6); border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.1);}

.time-box span { font-size: 24px; font-weight: bold; color: var(--primary-color); font-family: sans-serif; display: block; text-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
body.theme-5 .time-box span, body.theme-3 .time-box span, body.theme-7 .time-box span { text-shadow: none; }
.time-box p { font-size: 13px; margin-top: 5px; color: var(--text-color); font-family: 'Amiri', serif; }

.rsvp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 25px; background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); color: #111; text-decoration: none; border-radius: 50px; font-size: 16px; font-weight: bold; transition: all 0.5s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.5); margin-bottom: 15px; font-family: inherit; width: auto; max-width: 250px; }
.rsvp-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px var(--primary-color); color: #000; }
.rsvp-btn svg { width: 18px; height: 18px; }

.map-btn { display: inline-block; padding: 10px 40px; border: 1px solid var(--primary-color); background: rgba(0, 0, 0, 0.3); color: var(--primary-color); text-decoration: none; border-radius: 50px; font-size: 18px; transition: all 0.5s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); width: 80%; max-width: 300px; margin-bottom: 20px; }
body.theme-5 .map-btn, body.theme-3 .map-btn, body.theme-7 .map-btn { background: rgba(255, 255, 255, 0.5); }
.map-btn:hover { background: var(--primary-color); color: #111; box-shadow: 0 0 20px var(--primary-color); }
body.theme-5 .map-btn:hover, body.theme-3 .map-btn:hover, body.theme-7 .map-btn:hover { color: #fff; background: var(--primary-color); }

.scroll-down-btn { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: none; color: var(--primary-color); font-family: 'Aref Ruqaa', serif; font-size: 22px; cursor: pointer; z-index: 20; transition: opacity 0.5s ease; animation: floatingArrow 2s infinite ease-in-out; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); }
body.theme-5 .scroll-down-btn, body.theme-3 .scroll-down-btn, body.theme-7 .scroll-down-btn { text-shadow: none; animation: floatingArrowLight 2s infinite ease-in-out; }

@keyframes floatingArrow { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; } 50% { transform: translateX(-50%) translateY(8px); opacity: 1; text-shadow: 0 0 15px var(--primary-color); } }
@keyframes floatingArrowLight { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; } 50% { transform: translateX(-50%) translateY(8px); opacity: 1; text-shadow: none; } }

.credit-footer { 
    position: fixed; 
    bottom: 25px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-family: sans-serif; 
    font-size: 10px; 
    color: #bbb; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); 
    z-index: 20;
    width: max-content;
    transition: opacity 0.5s ease;
}
.credit-footer a { color: var(--primary-color); text-decoration: none; font-weight: bold; transition: 0.3s; letter-spacing: 1px; }
.credit-footer a:hover { color: var(--text-color); text-shadow: 0 0 10px var(--primary-color); }
body.theme-5 .credit-footer a:hover { text-shadow: none; }

body.theme-3 .credit-footer { color: #bbb; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
body.theme-3 .credit-footer a { color: #ffffff; text-shadow: none; }
body.theme-3 .credit-footer a:hover { color: #dddddd; text-shadow: 0 0 10px #ffffff; }
body.theme-7 .credit-footer a:hover { text-shadow: none; }

.music-toggle { position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: all 0.3s ease; box-shadow: 0 0 15px rgba(0,0,0, 0.2); color: var(--primary-color);}
body.theme-5 .music-toggle, body.theme-3 .music-toggle, body.theme-7 .music-toggle { background: rgba(255, 255, 255, 0.5); }
.music-toggle svg { fill: var(--primary-color) !important; } 
.music-toggle.playing svg { animation: spinMusic 3s linear infinite; }
@keyframes spinMusic { 100% { transform: rotate(360deg); } }

.fade-element { opacity: 0; transform: translateY(40px); transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wedding-day-eng.fade-element { transition-delay: 0.1s; }
.wedding-date-eng.fade-element { transition-delay: 0.3s; }
.hero-names-eng.fade-element { transition-delay: 0.5s; }
.bismillah.fade-element { transition-delay: 0.1s; }
.quran-verse.fade-element { transition-delay: 0.4s; }
.wedding-title.fade-element { transition-delay: 0.1s; }
.separator-line.fade-element { transition-delay: 0.3s; transform: scaleX(0); }
.separator-line.in-view { transform: scaleX(1); opacity: 1; }
.couple-names.fade-element { transition-delay: 0.5s; }
.invite-msg.fade-element { transition-delay: 0.7s; }

.wedding-dayname.fade-element { transition-delay: 0.2s; }
.heart-divider.fade-element { transition-delay: 0.3s; }
.wedding-formatted-date.fade-element { transition-delay: 0.4s; }
.time-badge.fade-element { transition-delay: 0.5s; }
.details p.fade-element { transition-delay: 0.6s; }
.countdown-container.fade-element { transition-delay: 0.8s; }
.rsvp-btn.fade-element { transition-delay: 0.9s; }
.map-btn.fade-element { transition-delay: 1.0s; }

.in-view { opacity: 1; transform: translateY(0); }
.lang-wrapper { display: none; }
.lang-wrapper.active { display: block; }

#particles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: hidden; }
.particle { position: absolute; top: -20px; background-color: var(--primary-color); border-radius: 50%; opacity: 0; animation: fall linear forwards; }
@keyframes fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translateY(105vh) rotate(360deg); opacity: 0; } }

/* ---------------- النوافذ المنبثقة (Modals) الأساسية ---------------- */
.rsvp-modal-overlay { 
    position: fixed; top: 0; left: 0; 
    width: 100vw; height: 100vh; height: 100dvh; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 
    z-index: 9999; 
    display: flex; justify-content: center; align-items: center; 
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease; 
}
.rsvp-modal-overlay.show { 
    visibility: visible; opacity: 1; pointer-events: auto; 
}

/* نافذة تأكيد الحضور متمركزة تماماً وتفتح بسلايد ارتدادي أنيق */
.rsvp-modal-content { 
    background: rgba(20, 20, 20, 0.95); width: 90%; max-width: 450px; 
    border-radius: 30px; padding: 65px 25px 35px 25px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
    border: 1px solid rgba(223, 186, 120, 0.3); 
    position: relative; max-height: 85vh; overflow-y: auto; 
    transform: translateY(100vh); 
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease; 
    margin: auto;
}
.rsvp-modal-overlay.show .rsvp-modal-content { 
    transform: translateY(0); 
    opacity: 1;
}
body.theme-5 .rsvp-modal-content, body.theme-3 .rsvp-modal-content, body.theme-7 .rsvp-modal-content { background: rgba(255, 255, 255, 0.95); }

/* نافذة عرض الرسالة (VIP Modal Slide-Up Centered) */
#read-msg-modal {
    align-items: center; 
    padding: 20px; 
    box-sizing: border-box;
}
#read-msg-modal .msg-modal-content { 
    background: rgba(20, 20, 20, 0.95); 
    width: 100%; max-width: 500px; 
    border-radius: 30px; 
    padding: 50px 30px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8); 
    transform: translateY(100vh) scale(0.9); 
    opacity: 0; 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1px solid var(--primary-color); 
    position: relative; 
    text-align: center; 
    margin: 0 auto;
    max-height: 85vh;
    overflow-y: auto;
}
#read-msg-modal.show .msg-modal-content { 
    transform: translateY(0) scale(1); 
    opacity: 1; 
}
body.theme-5 #read-msg-modal .msg-modal-content, body.theme-3 #read-msg-modal .msg-modal-content, body.theme-7 #read-msg-modal .msg-modal-content { background: rgba(255,255,255,0.95); }

.lang-switch-target .text-ar:not(.active), 
.lang-switch-target .text-ku:not(.active),
.rsvp-modal-content .text-ar:not(.active), 
.rsvp-modal-content .text-ku:not(.active),
.msg-modal-content .text-ar:not(.active),
.msg-modal-content .text-ku:not(.active),
.couple-dashboard-wrapper .text-ar:not(.active),
.couple-dashboard-wrapper .text-ku:not(.active) { 
    display: none !important; 
}

.close-modal-btn { 
    position: absolute; top: 15px; right: 20px; 
    background: none; border: none; font-size: 35px; color: var(--text-color); 
    opacity: 0.7; cursor: pointer; transition: 0.3s; line-height: 1; z-index: 10;
}
.close-modal-btn:hover { opacity: 1; color: var(--primary-color); transform: scale(1.1); }

.rsvp-group { margin-bottom: 20px; text-align: right; }
.rsvp-group label { display: block; color: var(--text-color); margin-bottom: 8px; font-size: 17px; }
.rsvp-group input[type="text"], .rsvp-group textarea { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid rgba(223, 186, 120, 0.4); background: rgba(0,0,0,0.3); color: var(--text-color); font-family: inherit; font-size: 16px; outline: none; transition: 0.3s; }
body.theme-5 .rsvp-group input, body.theme-3 .rsvp-group input, body.theme-7 .rsvp-group input, body.theme-5 .rsvp-group textarea, body.theme-3 .rsvp-group textarea, body.theme-7 .rsvp-group textarea { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.2); color: #000; }
.rsvp-group input:focus, .rsvp-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 10px rgba(223, 186, 120, 0.2); }

.radio-group { display: flex; gap: 15px; }
.radio-label { flex: 1; cursor: pointer; }
.radio-label input { display: none; }
.radio-custom { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid rgba(223, 186, 120, 0.4); color: var(--text-color); transition: 0.3s; background: rgba(0,0,0,0.2); }
body.theme-5 .radio-custom, body.theme-3 .radio-custom, body.theme-7 .radio-custom { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.2); color: #000; }
.radio-label input:checked + .radio-custom { background: var(--primary-color); color: #000; font-weight: bold; border-color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.counter-ui { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 15px; }
.counter-btn { background: rgba(223, 186, 120, 0.1); border: 1px solid var(--primary-color); color: var(--text-color); width: 45px; height: 45px; border-radius: 50%; font-size: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; padding: 0; line-height: 0; backdrop-filter: blur(5px); }
body.theme-5 .counter-btn, body.theme-3 .counter-btn, body.theme-7 .counter-btn { color: #000; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.05); }
.counter-btn:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(223, 186, 120, 0.4); }
.counter-circle { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); color: #111; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.4); font-family: sans-serif; }

.rsvp-submit-btn { width: 100%; padding: 15px; background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); border: none; border-radius: 12px; color: #111; font-family: inherit; font-size: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.rsvp-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-color); }

/* ---------------- لوحة تحكم العرسان (VIP Dashboard) ---------------- */
.couple-dashboard-wrapper { 
    position: relative; 
    padding: 40px 20px 80px 20px; 
    background: linear-gradient(135deg, rgba(15,15,15,0.85) 0%, rgba(30,30,30,0.9) 100%); 
    width: 100%; 
    min-height: 100vh;
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    z-index: 1; 
}
body.theme-5 .couple-dashboard-wrapper, body.theme-3 .couple-dashboard-wrapper, body.theme-7 .couple-dashboard-wrapper { 
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(240,240,240,0.9) 100%); 
}

.couple-dashboard-wrapper::before,
.couple-dashboard-wrapper::after {
    content: ''; position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.5; animation: floatBlob 15s infinite alternate ease-in-out;
}
.couple-dashboard-wrapper::before {
    width: 50vw; height: 50vw; max-width: 400px; max-height: 400px; background: var(--primary-color); top: 5%; left: 5%;
}
.couple-dashboard-wrapper::after {
    width: 60vw; height: 60vw; max-width: 500px; max-height: 500px; background: var(--accent-color); bottom: 5%; right: 5%; animation-delay: -5s;
}

.dash-title { text-align: center; color: var(--primary-color); font-family: 'Aref Ruqaa', serif; font-size: 38px; margin-bottom: 35px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
body.theme-5 .dash-title, body.theme-3 .dash-title, body.theme-7 .dash-title { text-shadow: none; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.stat-card { background: rgba(30, 30, 30, 0.6); border: 1px solid rgba(223, 186, 120, 0.4); padding: 25px 15px; border-radius: 20px; text-align: center; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.3s ease; cursor: default; }
body.theme-5 .stat-card, body.theme-3 .stat-card, body.theme-7 .stat-card { background: rgba(255,255,255,0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.stat-card:hover { transform: translateY(-5px); }
.stat-card h3 { color: var(--text-color); font-size: 18px; margin-bottom: 15px; }
.stat-num { font-size: 38px; font-weight: bold; font-family: sans-serif; display: inline-block; transition: 0.3s; }
.stat-card:hover .stat-num { transform: scale(1.1); }
.stat-icon { margin-bottom: 15px; }
.stat-icon svg { width: 40px; height: 40px; }
.text-success { color: #4ade80; text-shadow: 0 0 10px rgba(74,222,128,0.4); }
.text-primary { color: var(--primary-color); text-shadow: 0 0 10px rgba(223,186,120,0.4); }
.text-danger { color: #f87171; text-shadow: 0 0 10px rgba(248,113,113,0.4); }

.guest-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; max-width: 1000px; margin: 0 auto; padding: 10px; }
.guest-card { 
    background: rgba(25, 25, 25, 0.55); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px; 
    padding: 30px 20px; 
    display: flex; flex-direction: column; align-items: center; 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    opacity: 0; transform: translateY(40px); 
    animation: fadeInUpCard 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    position: relative; overflow: hidden; z-index: 1;
}
.guest-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(223, 186, 120, 0.1) 0%, transparent 70%);
    z-index: -1; transition: all 0.6s ease;
}
.guest-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
body.theme-5 .guest-card, body.theme-3 .guest-card, body.theme-7 .guest-card { 
    background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
}
.guest-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.5); border-color: var(--primary-color); }
.guest-card:hover::before { transform: scale(1.2); background: radial-gradient(circle, rgba(223, 186, 120, 0.2) 0%, transparent 70%); }
.guest-card:hover::after { left: 150%; }
body.theme-5 .guest-card:hover, body.theme-3 .guest-card:hover, body.theme-7 .guest-card:hover { 
    box-shadow: 0 20px 50px rgba(0,0,0,0.12); border-color: var(--primary-color);
}

.guest-name { font-size: 26px; color: var(--primary-color); margin-bottom: 20px; font-weight: bold; text-align: center; font-family: 'Amiri', serif; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
body.theme-5 .guest-name, body.theme-3 .guest-name, body.theme-7 .guest-name { text-shadow: none; }

.status-badge { padding: 8px 20px; border-radius: 50px; font-size: 16px; font-weight: bold; margin-bottom: 20px; display: inline-block; }
.status-badge.yes { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid #4ade80; }
.status-badge.no { background: rgba(248, 113, 113, 0.15); color: #f87171; border: 1px solid #f87171; }

.view-msg-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--primary-color); color: var(--text-color); padding: 10px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-family: inherit; font-size: 15px; }
body.theme-5 .view-msg-btn, body.theme-3 .view-msg-btn, body.theme-7 .view-msg-btn { color: #000; border-color: #000; }
.view-msg-btn:hover:not(.disabled) { background: var(--primary-color); color: #000; box-shadow: 0 0 10px var(--primary-color); }
.view-msg-btn.disabled { opacity: 0.4; cursor: not-allowed; border-color: transparent; }

@keyframes fadeInUpCard { to { opacity: 1; transform: translateY(0); } }

@media screen and (max-width: 600px) {
    .couple-dashboard-wrapper { padding: 25px 15px 50px 15px; }
    .dash-title { font-size: 32px; margin-bottom: 25px; }
    .stat-cards { grid-template-columns: 1fr; gap: 15px; margin-bottom: 25px; max-width: 100%; }
    .guest-cards-grid { grid-template-columns: 1fr; gap: 15px; padding: 0; max-width: 100%; }
    .guest-card { padding: 25px 15px; border-radius: 20px; width: 100%; }
    .guest-name { font-size: 24px; }
    #read-msg-modal { padding: 15px; }
    #read-msg-modal .msg-modal-content { padding: 35px 20px; border-radius: 20px; width: 100%; margin: 0 auto; }
    .rsvp-modal-content { padding: 60px 15px 25px 15px; border-radius: 25px 25px 0 0; }
}