/**
 * ==============================================================================
 * مظهر المكونات التفصيلية - Dreamy Bright Pink Luxury Component Styling
 * ==============================================================================
 */

/* ==========================================================================
   1. بوابة كلمة المرور الفاخرة (Password Gate)
   ========================================================================== */
#passwordGate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #ffe4ee 0%, #fff0f5 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.gate-ambient-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.gate-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 120, 160, 0.35);
    border-radius: var(--radius-lg);
    padding: 3rem 2.2rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(220, 50, 100, 0.15), 0 0 35px rgba(255, 168, 195, 0.4);
    backdrop-filter: blur(20px);
}

.gate-lock-icon {
    width: 98px;
    height: 98px;
    margin: 0 auto 1.5rem;
    background: #fff0f5;
    border: 2px solid #ffa8c3;
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1.55rem;
    line-height: 1;
    gap: 3px;
    color: #ff3366;
    box-shadow: 0 6px 22px rgba(255, 105, 150, 0.28);
    animation: gentleGlowPulse 3s infinite alternate;
}

.gate-lock-icon span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gate-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    line-height: 1.45;
    text-wrap: balance;
    color: #38081f;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.gate-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    text-wrap: balance;
    max-width: 420px;
    margin-inline: auto;
    color: #7a1e4c;
    margin-bottom: 2rem;
}

/* تلميح تاريخ الميلاد والسهم المتحرك */
.gate-hint-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 1.2rem;
    background: #fff2f6;
    border: 1.5px dashed #ff99b8;
    border-radius: var(--radius-pill);
}

.gate-hint-text {
    font-size: 0.95rem;
    color: #d81b60;
    font-weight: 700;
}

.gate-animated-arrow {
    display: inline-block;
    color: #ff1493;
    font-size: 1.25rem;
    animation: pointingArrowBounce 1.4s infinite ease-in-out;
}

.gate-input-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.gate-password-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #fff8fa;
    border: 2px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #38081f;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    transition: var(--transition-smooth);
}

.gate-password-input:focus {
    border-color: #ff3366;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
    background: #ffffff;
}

.gate-password-input::placeholder {
    font-size: 0.95rem;
    letter-spacing: 0;
    color: #cca0b0;
}

.gate-error-message {
    display: none;
    font-size: 0.9rem;
    color: #d8004b;
    margin-top: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.gate-btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* حركة فتح البوابة */
.gate-opening {
    animation: gateDissolve 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes gateDissolve {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
        filter: blur(15px);
        visibility: hidden;
    }
}

/* ==========================================================================
   2. الرسالة العائمة للصوت (Floating Audio Notice)
   ========================================================================== */
.audio-floating-notice {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    z-index: 99999;
    max-width: 90%;
    width: 460px;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid #ff5789;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 40px rgba(220, 50, 100, 0.2), 0 0 20px rgba(255, 105, 150, 0.3);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-bounce);
}

.audio-floating-notice.show {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.audio-floating-notice.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: var(--transition-smooth);
}

.audio-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.audio-notice-icon {
    font-size: 1.8rem;
    animation: gentlePulse 2s infinite ease;
}

.audio-notice-text {
    font-size: 0.95rem;
    color: #38081f;
    line-height: 1.6;
}

.audio-notice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.audio-notice-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   3. شريط التنقل العلوي (Navbar & Reading Progress)
   ========================================================================== */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1.5px solid rgba(255, 168, 195, 0.4);
    transition: var(--transition-smooth);
}

.main-navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(220, 50, 100, 0.1);
    border-bottom-color: #ffa8c3;
}

.reading-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gold-gradient);
    transition: width 0.1s linear;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #38081f;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-brand-heart {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav-brand-heart:hover {
    transform: scale(1.2);
}

.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-menu-links a {
    color: #5e1538;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 4px;
}

.nav-menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-smooth);
}

.nav-menu-links a:hover {
    color: #ff3366;
}

.nav-menu-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-ambient-sound {
    background: #ffffff;
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #d81b60;
    padding: 4px 11px 4px 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.08);
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ambient-action-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3366, #ff5e83);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 51, 102, 0.35);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ambient-action-circle svg {
    display: block;
}

.ambient-action-circle .icon-play {
    transform: translateX(1px); /* optical centering */
}

.btn-ambient-sound:hover {
    background: #fff0f5;
    border-color: #ff3366;
}

.btn-ambient-sound:hover .ambient-action-circle {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(255, 51, 102, 0.5);
}

.btn-ambient-sound.playing {
    background: #fff0f5;
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.btn-ambient-sound.playing .ambient-action-circle {
    background: linear-gradient(135deg, #e91e63, #ff3366);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.25), 0 2px 8px rgba(255, 51, 102, 0.4);
}

.ambient-label-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38081f;
}

.sound-wave-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.sound-wave-bars span {
    width: 2.5px;
    background: #ff3366;
    border-radius: 1px;
    height: 4px;
    transition: height 0.2s ease;
}

.btn-ambient-sound.playing .sound-wave-bars {
    opacity: 1;
}

.btn-ambient-sound.playing .sound-wave-bars span:nth-child(1) { animation: wavePulse 0.9s infinite ease-in-out 0.1s; }
.btn-ambient-sound.playing .sound-wave-bars span:nth-child(2) { animation: wavePulse 0.9s infinite ease-in-out 0.3s; }
.btn-ambient-sound.playing .sound-wave-bars span:nth-child(3) { animation: wavePulse 0.9s infinite ease-in-out 0.5s; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #38081f;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   4. قسم الهيرو والعداد الزمني (Hero Section & Live Timer)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 9rem;
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-glow-aura {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 180, 0.45) 0%, rgba(255, 190, 215, 0.25) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
}

.hero-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #38081f;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: #6b173e;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.9;
    text-wrap: balance;
}

/* بطاقات العداد الحي */
.timer-container-card {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #ffd4e2;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(220, 50, 100, 0.1);
    backdrop-filter: blur(14px);
}

.timer-total-days-badge {
    display: inline-block;
    padding: 0.45rem 1.3rem;
    background: #fff0f5;
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #d81b60;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.timer-units-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.timer-unit-box {
    background: #ffffff;
    border: 1.5px solid #ffd4e2;
    border-radius: var(--radius-md);
    padding: 1.2rem 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 105, 150, 0.08);
    transition: var(--transition-smooth);
}

.timer-unit-box:hover {
    border-color: #ff3366;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2);
}

.timer-digit {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ff3366;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.timer-label {
    font-size: 0.85rem;
    color: #8c2557;
    font-weight: 700;
}

.hero-quote-box {
    margin-top: 2.2rem;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    line-height: 1.9;
    letter-spacing: 0.3px;
    color: #c2185b;
    text-shadow: 0 2px 10px rgba(255, 105, 150, 0.15);
}

/* ==========================================================================
   5. الخط الزمني لحكايتنا (Story Timeline)
   ========================================================================== */
.story-section {
    padding: 6rem 0;
    position: relative;
}

.timeline-vertical-wrapper {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-vertical-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 3px;
    background: linear-gradient(180deg, transparent, #ff5789 15%, #ff5789 85%, transparent);
    box-shadow: 0 0 12px rgba(255, 87, 137, 0.4);
}

.timeline-milestone-node {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-milestone-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-milestone-node.node-even {
    justify-content: flex-start;
}

.timeline-milestone-node.node-odd {
    justify-content: flex-end;
}

.timeline-dot-center {
    position: absolute;
    right: 50%;
    top: 1.5rem;
    transform: translateX(50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 3px solid #ff3366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.35);
}

.timeline-card-content {
    width: calc(50% - 40px);
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid #ffd4e2;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(220, 50, 100, 0.08);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.timeline-card-content:hover {
    border-color: #ff5789;
    box-shadow: 0 15px 35px rgba(255, 87, 137, 0.2);
    transform: translateY(-3px);
}

.timeline-badge-date {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background: #fff0f5;
    border-radius: var(--radius-pill);
    color: #d81b60;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: #38081f;
    margin-bottom: 0.6rem;
}

.timeline-desc {
    color: #5e1538;
    font-size: 0.95rem;
    line-height: 1.7;
}

.timeline-media-frame {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #ffd4e2;
}

.timeline-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.timeline-img:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   6. صندوق الذكريات (Memories Gallery & Videos)
   ========================================================================== */
.memories-section {
    padding: 6rem 0;
    position: relative;
}

/* ==========================================================================
   5. صندوق كتب الذكريات ثلاثية الأبعاد (3D Romantic Memory Bookshelf)
   ========================================================================== */
.memory-books-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem 2rem;
    margin-top: 3.5rem;
    perspective: 1200px;
}

.memory-book-card {
    position: relative;
    cursor: pointer;
    outline: none;
    transition: var(--transition-bounce);
}

.book-card-3d-wrapper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.memory-book-card:hover .book-card-3d-wrapper,
.memory-book-card:focus-visible .book-card-3d-wrapper {
    transform: perspective(1000px) rotateY(-8deg) translateY(-12px);
}

/* سطح الغلاف الأمامي */
.book-cover-surface {
    position: relative;
    background: #ffffff;
    border-radius: 16px 22px 22px 16px;
    border: 1.5px solid #ffa8c3;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 15px 35px rgba(220, 50, 100, 0.12), -6px 0 15px rgba(0, 0, 0, 0.04);
    overflow: visible;
    transition: var(--transition-smooth);
}

.memory-book-card:hover .book-cover-surface {
    border-color: #ff3366;
    box-shadow: 0 22px 45px rgba(255, 51, 102, 0.22), -8px 0 20px rgba(0, 0, 0, 0.08);
}

/* الزوايا الذهبية المزخرفة */
.book-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #f6c453;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
}

.corner-tr { top: 10px; right: 10px; border-bottom: none; border-left: none; border-radius: 0 8px 0 0; }
.corner-tl { top: 10px; left: 10px; border-bottom: none; border-right: none; border-radius: 8px 0 0 0; }
.corner-br { bottom: 10px; right: 10px; border-top: none; border-left: none; border-radius: 0 0 8px 0; }
.corner-bl { bottom: 10px; left: 10px; border-top: none; border-right: none; border-radius: 0 0 0 8px; }

/* عمود الكتاب ثلاثي الأبعاد (Spine) */
.book-spine-side {
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: -10px;
    width: 14px;
    background: linear-gradient(to right, #ff4d79, #991443);
    border-radius: 4px;
    box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.3);
    display: none; /* يظهر كظلال مجسم */
}

/* شريط علامة الصفحة المعلق (Hanging Ribbon Bookmark) */
.book-hanging-ribbon {
    position: absolute;
    bottom: -18px;
    left: 36px;
    width: 22px;
    height: 28px;
    background: linear-gradient(135deg, #ff3366, #ff6584);
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.35);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
    z-index: 5;
    transition: transform 0.3s ease;
}

.memory-book-card:hover .book-hanging-ribbon {
    transform: translateY(4px);
}

/* محتوى الغلاف الداخلي */
.book-cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-volume-badge {
    background: linear-gradient(135deg, #ffeef3, #ffd9e5);
    color: #ff3366;
    border: 1px solid #ffa8c3;
    padding: 0.25rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(255, 51, 102, 0.1);
}

.book-cover-illustration {
    width: 100%;
    max-width: 220px;
    height: 190px;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.memory-book-card:hover .book-cover-illustration {
    transform: scale(1.03);
}

.book-cover-vector-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-cover-text-group {
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.book-mini-badge {
    font-size: 0.82rem;
    color: #9c2755;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.book-cover-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #38081f;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.book-cover-desc {
    font-size: 0.84rem;
    color: #6d1b3e;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* شريط التذييل على الغلاف */
.book-cover-bottom-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(255, 168, 195, 0.6);
}

.book-pages-counter {
    font-size: 0.82rem;
    color: #8c2557;
    font-weight: 600;
}

.book-action-pill {
    background: #fff0f5;
    border: 1px solid #ffa8c3;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.8rem;
    color: #ff3366;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}

.memory-book-card:hover .book-action-pill {
    background: #ff3366;
    color: #ffffff;
    border-color: #ff3366;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.35);
}

/* ثيمات ألوان مختلفة لأغلفة الكتب الأربعة */
.memory-book-card.theme-rose .book-volume-badge { color: #d81b60; border-color: #ff80ab; }
.memory-book-card.theme-wine .book-volume-badge { color: #880e4f; border-color: #f48fb1; }
.memory-book-card.theme-blush .book-volume-badge { color: #e91e63; border-color: #ff4081; }
.memory-book-card.theme-gold .book-volume-badge { color: #b71c1c; border-color: #ffd54f; }

/* ==========================================================================
   نافذة مستعرض كتاب الذكريات (Interactive Romantic Book Modal)
   ========================================================================== */
.romantic-book-modal {
    position: fixed;
    inset: 0;
    z-index: 100005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.romantic-book-modal.active {
    display: flex;
}

.book-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 6, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.book-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #ffa8c3;
    box-shadow: 0 25px 60px rgba(220, 50, 100, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    animation: bookModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bookModalPop {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* هيدر مستعرض الكتاب */
.book-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, #fff5f8, #ffffff);
    border-bottom: 1.5px solid rgba(255, 168, 195, 0.4);
}

.book-modal-title-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.book-volume-pill {
    background: #ff3366;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-pill);
}

.book-modal-heading {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #38081f;
    margin: 0;
}

.book-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.book-page-count-badge {
    font-size: 0.88rem;
    font-weight: 700;
    color: #d81b60;
    background: #fff0f5;
    border: 1px solid #ffa8c3;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
}

.book-modal-close-btn {
    background: rgba(255, 51, 102, 0.08);
    border: 1px solid #ffa8c3;
    color: #ff3366;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.book-modal-close-btn:hover {
    background: #ff3366;
    color: #ffffff;
    transform: rotate(90deg);
}

/* صفحة الكتاب المفتوح (Album Spread) */
.open-book-spread {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    background: #ffffff;
}

.open-book-spread.page-turn-anim {
    animation: pageFlipSubtle 0.4s ease-out;
}

@keyframes pageFlipSubtle {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* خط انثناء منتصف الكتاب (Spine crease) */
.book-center-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% * (1.15 / 2.15));
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 168, 195, 0.6), transparent);
    box-shadow: 0 0 12px rgba(220, 50, 100, 0.15);
    z-index: 3;
}

/* جانب الوسائط (Media Col) */
.book-spread-media-col {
    padding: 1.8rem;
    background: #fffdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-media-container {
    width: 100%;
    max-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f5;
    border-radius: 16px;
    border: 1.5px solid #ffd4e2;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(220, 50, 100, 0.08);
}

.book-img-zoom-wrap {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.book-media-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.book-img-zoom-wrap:hover .book-media-img {
    transform: scale(1.03);
}

.book-zoom-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ffa8c3;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff3366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-img-zoom-wrap:hover .book-zoom-indicator {
    opacity: 1;
}

/* مشغل الفيديو داخل الكتاب */
.book-video-element {
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    outline: none;
    display: block;
}

.book-video-placeholder-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #fff0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.book-video-overlay-btn {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid #ff3366;
    border-radius: 16px;
    padding: 1rem 1.4rem;
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
    transition: transform 0.3s ease;
}

.book-video-placeholder-frame:hover .book-video-overlay-btn {
    transform: scale(1.06);
}

.video-play-symbol {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff3366, #ff6584);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(255, 51, 102, 0.4);
}

.video-hint-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38081f;
}

/* جانب التعليق والنص الرومانسي */
.book-spread-text-col {
    padding: 2.2rem 2rem;
    background: linear-gradient(135deg, #fffafb, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.book-page-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.book-page-date {
    background: #fff0f5;
    color: #d81b60;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid #ffa8c3;
}

.book-page-type-tag {
    font-size: 0.82rem;
    color: #8c2557;
    font-weight: 600;
}

.book-page-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: #38081f;
    line-height: 1.35;
    margin: 0;
}

/* صندوق التعليق الرومانسي */
.book-page-comment-wrapper {
    position: relative;
    background: rgba(255, 240, 245, 0.55);
    border-right: 3px solid #ff3366;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin: 0.5rem 0;
}

.book-quote-sym {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #ff80a5;
    line-height: 1;
    user-select: none;
}

.book-page-comment {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.75;
    color: #5e1538;
    margin: 0.3rem 0;
}

.book-page-footer-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #8c2557;
    font-weight: 700;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 168, 195, 0.6);
}

.note-couple {
    margin-right: auto;
    color: #ff3366;
}

/* شريط التنقل السفلي */
.book-bottom-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.8rem;
    background: #ffffff;
    border-top: 1.5px solid rgba(255, 168, 195, 0.4);
}

.book-nav-arrow-btn {
    background: #fff0f5;
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #d81b60;
    padding: 0.45rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.book-nav-arrow-btn:hover:not(:disabled) {
    background: #ff3366;
    color: #ffffff;
    border-color: #ff3366;
    box-shadow: 0 4px 14px rgba(255, 51, 102, 0.3);
}

.book-nav-arrow-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.book-pages-pips-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-page-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd4e2;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.book-page-pip.active {
    width: 24px;
    border-radius: 5px;
    background: #ff3366;
    box-shadow: 0 2px 6px rgba(255, 51, 102, 0.4);
}

.memory-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-placeholder-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-mock-btn {
    position: absolute;
    width: 64px;
    height: 64px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(255, 71, 126, 0.5);
    transition: transform 0.3s ease;
}

.video-placeholder-frame:hover .video-play-mock-btn {
    transform: scale(1.15);
}

.video-placeholder-hint {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #d81b60;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-info-bar {
    padding: 1.25rem;
}

.video-badge-date {
    display: inline-block;
    font-size: 0.8rem;
    color: #ff3366;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.video-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #38081f;
    margin-bottom: 0.4rem;
}

.video-card-caption {
    font-size: 0.85rem;
    color: #6b173e;
    line-height: 1.5;
}

/* نافذة العرض المكبرة (Lightbox) */
.memory-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.memory-lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(56, 8, 31, 0.85);
    backdrop-filter: blur(16px);
}

.lightbox-dialog {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #ffa8c3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-img-box {
    position: relative;
    max-height: 65vh;
    background: #fff2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

.lightbox-footer-info {
    padding: 1.5rem;
    background: #ffffff;
}

.lightbox-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.lightbox-date-badge {
    color: #ff3366;
    font-size: 0.85rem;
    font-weight: 700;
}

.lightbox-counter {
    color: #8c2557;
    font-size: 0.85rem;
}

.lightbox-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #38081f;
    margin-bottom: 0.4rem;
}

.lightbox-caption {
    color: #5e1538;
    font-size: 0.95rem;
}

.lightbox-ctrl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #ffa8c3;
    border-radius: 50%;
    color: #38081f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    z-index: 15;
}

.lightbox-ctrl-btn:hover {
    background: var(--gold-gradient);
    color: #ffffff;
}

.lightbox-prev-btn { right: 1rem; }
.lightbox-next-btn { left: 1rem; }

.lightbox-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #ffa8c3;
    border-radius: 50%;
    color: #38081f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
}

.lightbox-close-btn:hover {
    background: #ff3366;
    color: #ffffff;
    border-color: #ff3366;
}

/* ==========================================================================
   7. أظرف رسائل الحب ثلاثية الأبعاد (Love Letters & Envelopes)
   ========================================================================== */
.letters-section {
    padding: 6rem 0;
    position: relative;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.envelope-container {
    perspective: 1200px;
    cursor: pointer;
}

.envelope-card {
    position: relative;
    width: 100%;
    height: 220px;
    background: #ffa8c3;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 35px rgba(220, 50, 100, 0.15);
    transition: transform 0.4s ease;
}

.envelope-container:hover .envelope-card {
    transform: translateY(-8px) scale(1.02);
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: #ff91b2;
    border-radius: var(--radius-sm);
}

.envelope-paper-preview {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 150px;
    background: #ffffff;
    border-radius: 4px;
    padding: 1rem;
    color: #38081f;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.envelope-card.envelope-opened .envelope-paper-preview {
    transform: translateY(-50px);
}

.envelope-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 110px 0 110px 140px;
    border-color: transparent transparent transparent #ff82a7;
    z-index: 3;
}

.envelope-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 110px 140px 110px 0;
    border-color: transparent #ff82a7 transparent transparent;
    z-index: 3;
}

.envelope-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 140px 120px 140px;
    border-color: transparent transparent #ff739c transparent;
    z-index: 4;
}

.envelope-top-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 120px 140px 0 140px;
    border-color: #ff6391 transparent transparent transparent;
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.envelope-card.envelope-opened .envelope-top-flap {
    transform: rotateX(180deg);
    z-index: 2;
}

.envelope-wax-seal {
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, #ff2a6d 0%, #d8004b 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(216, 0, 75, 0.4);
    z-index: 6;
    transition: transform 0.4s ease;
}

.envelope-wax-seal .seal-icon {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.envelope-label {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
}

.envelope-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #38081f;
    font-weight: 700;
}

.envelope-tap-hint {
    display: block;
    font-size: 0.8rem;
    color: #d81b60;
    font-weight: 600;
}

/* نافذة عرض الرسالة الورقية الفاخرة */
.letter-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.letter-detail-modal.active {
    opacity: 1;
    pointer-events: all;
}

.letter-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(56, 8, 31, 0.85);
    backdrop-filter: blur(14px);
}

.parchment-letter-paper {
    position: relative;
    z-index: 10;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    background: #ffffff;
    background-image: radial-gradient(#ffe4ec 15%, transparent 16%);
    background-size: 16px 16px;
    border: 8px solid #ffd4e2;
    border-radius: var(--radius-sm);
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    color: #38081f;
    overflow-y: auto;
    animation: unfoldParchment 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes unfoldParchment {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.letter-modal-header {
    text-align: center;
    border-bottom: 1.5px dashed #ffa8c3;
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
}

.letter-modal-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: #38081f;
    margin-bottom: 0.3rem;
}

.letter-modal-date {
    font-size: 0.85rem;
    color: #d81b60;
    font-weight: 700;
}

.letter-modal-body {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 2;
    color: #38081f;
    margin-bottom: 2rem;
}

.letter-paragraph {
    margin-bottom: 1rem;
    text-indent: 1.5rem;
}

.letter-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px dashed #ffa8c3;
    padding-top: 1.2rem;
}

.letter-signature-box {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #ff3366;
    font-style: italic;
    font-weight: 700;
}

.letter-nav-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-letter-nav {
    padding: 0.4rem 0.9rem;
    background: #fff0f5;
    border: 1px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #38081f;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.btn-letter-nav:hover {
    background: #ff3366;
    color: #FFFFFF;
    border-color: #ff3366;
}

/* ==========================================================================
   8. مشغل الموسيقى الرومانسي المصغر (Romantic Mini Player)
   تم إخفاؤه لإتاحة تجربة تصفح هادئة وناعمة والاعتماد على زر التحكم العلوي الواضح
   ========================================================================== */
.romantic-mini-player {
    display: none !important;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 99990;
    width: 340px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
    box-shadow: 0 15px 40px rgba(220, 50, 100, 0.15);
    backdrop-filter: blur(20px);
    transition: var(--transition-bounce);
}

.romantic-mini-player.minimized {
    transform: translateY(calc(100% - 48px));
}

.player-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.player-badge-title {
    font-size: 0.85rem;
    color: #ff3366;
    font-weight: 700;
}

.player-minimize-btn {
    background: transparent;
    border: none;
    color: #8c2557;
    font-size: 1rem;
    cursor: pointer;
}

.player-main-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.player-disc-container {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #ff3366;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.25);
}

.player-disc-container.spinning img {
    animation: spinDisc 8s linear infinite;
}

.player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-track-info {
    flex-grow: 1;
    overflow: hidden;
}

.player-track-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: #38081f;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-artist {
    font-size: 0.8rem;
    color: #8c2557;
}

/* شريط التقدم */
.player-progress-container {
    width: 100%;
    height: 6px;
    background: #ffd4e2;
    border-radius: var(--radius-pill);
    cursor: pointer;
    margin-bottom: 0.4rem;
    position: relative;
}

.player-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 8px rgba(255, 71, 126, 0.4);
}

.player-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #8c2557;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.player-ctrl-btn {
    background: transparent;
    border: none;
    color: #5e1538;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.player-ctrl-btn:hover {
    color: #ff3366;
    transform: scale(1.15);
}

.player-play-btn {
    width: 42px;
    height: 42px;
    background: var(--gold-gradient);
    border-radius: 50%;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 71, 126, 0.45);
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   9. الألعاب التفاعلية (Interactive Romantic Games)
   ========================================================================== */
.games-section {
    padding: 6rem 0;
    position: relative;
}

.games-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.game-tab-btn {
    padding: 0.8rem 1.8rem;
    background: #ffffff;
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #5e1538;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 150, 0.08);
    transition: var(--transition-smooth);
}

.game-tab-btn.active {
    background: var(--gold-gradient);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.4);
    border-color: transparent;
}

.game-panel {
    display: none;
    max-width: 760px;
    margin: 0 auto;
}

.game-panel.active {
    display: block;
    animation: fadeInContent 0.5s ease;
}

/* لعبة الاختبار */
.quiz-question-card, .choice-question-card, .quest-stage-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid #ffd4e2;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(220, 50, 100, 0.1);
    backdrop-filter: blur(16px);
    text-align: center;
}

.quiz-step-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #fff0f5;
    border-radius: var(--radius-pill);
    color: #d81b60;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.quiz-question-title, .choice-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: #38081f;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.quiz-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid #ffd4e2;
    border-radius: var(--radius-md);
    color: #38081f;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}

.quiz-option-btn:hover {
    border-color: #ff3366;
    background: #fff5f8;
    transform: translateX(-4px);
}

.quiz-option-btn.correct-choice {
    background: rgba(46, 196, 182, 0.15) !important;
    border-color: #2ec4b6 !important;
    color: #0b6953 !important;
}

.quiz-option-btn.wrong-choice {
    background: rgba(230, 57, 70, 0.15) !important;
    border-color: #e63946 !important;
    color: #b70916 !important;
}

.option-num {
    width: 32px;
    height: 32px;
    background: #fff0f5;
    border: 1px solid #ffa8c3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ff3366;
    font-weight: 700;
    flex-shrink: 0;
}

.feedback-msg {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    animation: fadeInContent 0.3s ease;
}

.feedback-correct {
    background: #e6faf5;
    border: 1.5px solid #2ec4b6;
    color: #0b6953;
}

.feedback-wrong {
    background: #fde8ea;
    border: 1.5px solid #e63946;
    color: #b70916;
}

/* لعبة اختاري الإجابة */
.choice-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choice-item-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: #ffffff;
    border: 1.5px solid #ffd4e2;
    border-radius: var(--radius-md);
    color: #38081f;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}

.choice-item-btn:hover {
    border-color: #ff3366;
    background: #fff5f8;
    transform: translateY(-2px);
}

.choice-reply-modal {
    display: none;
    margin-top: 2rem;
    animation: fadeInContent 0.4s ease;
}

.choice-reply-modal.visible {
    display: block;
}

.choice-reply-bubble {
    background: #fff2f6;
    border: 2px solid #ff5789;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: flex;
    gap: 1.25rem;
    text-align: right;
}

.reply-avatar {
    font-size: 2.2rem;
}

.reply-header {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #ff3366;
    margin-bottom: 0.5rem;
}

.reply-text {
    font-size: 1.05rem;
    color: #38081f;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.btn-next-choice {
    padding: 0.55rem 1.5rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
}

/* مهمة المفاجأة والكوبون الذهبي */
.quest-steps-tracker {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quest-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ffa8c3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #8c2557;
    background: #ffffff;
}

.quest-step-dot.completed {
    background: #ff3366;
    color: #ffffff;
    border-color: #ff3366;
}

.quest-step-dot.current {
    border-color: #ff3366;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
    color: #ff3366;
}

.quest-lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: gentleGlowPulse 2s infinite alternate;
}

.quest-riddle-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: #38081f;
    margin-bottom: 0.75rem;
}

.quest-hint-text {
    font-size: 0.9rem;
    color: #d81b60;
    font-weight: 600;
    margin-bottom: 2rem;
}

.quest-input-row {
    display: flex;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}

.quest-text-input {
    flex-grow: 1;
    padding: 0.85rem 1.2rem;
    background: #ffffff;
    border: 2px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #38081f;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}

.quest-text-input:focus {
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.25);
}

/* الكوبون الذهبي الوردي الفاخر (Golden Ticket) */
.golden-ticket-voucher {
    position: relative;
    background: linear-gradient(135deg, #fff7fa 0%, #ffe4ec 50%, #fff7fa 100%);
    border: 2.5px solid #ff5789;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(220, 50, 100, 0.15);
    text-align: center;
    overflow: hidden;
    animation: unfoldParchment 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.golden-ticket-voucher::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(255, 87, 137, 0.5);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}

.ticket-stamp {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--gold-gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.ticket-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #38081f;
    margin-bottom: 0.5rem;
}

.ticket-subtitle {
    color: #ff3366;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.ticket-items-list {
    list-style: none;
    text-align: right;
    max-width: 500px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ticket-items-list li {
    font-size: 1.05rem;
    color: #5e1538;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-star {
    color: #ff3366;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #8c2557;
    font-weight: 700;
    border-top: 1.5px dashed rgba(255, 87, 137, 0.4);
    padding-top: 1.25rem;
}

/* ==========================================================================
   10. المفاجآت السرية والقسم المخفي (Secret Vault & Surprises)
   ========================================================================== */
.secret-vault-section {
    padding: 6rem 0;
    position: relative;
}

.vault-lock-box {
    background: rgba(255, 255, 255, 0.92);
    border: 2px dashed #ffa8c3;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.vault-lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vault-lock-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #38081f;
    margin-bottom: 0.5rem;
}

.vault-lock-desc {
    color: #7a1e4c;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.vault-unlocked-card {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    border: 2.5px solid #ff3366;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(220, 50, 100, 0.2);
    animation: fadeInContent 1s ease;
}

.vault-unlocked-card.visible {
    display: block;
}

.vault-unlocked-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.vault-unlocked-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #38081f;
    margin-bottom: 1rem;
}

.vault-unlocked-msg {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #5e1538;
    line-height: 2;
    margin-bottom: 2rem;
}

/* النافذة المنبثقة للأسرار (Secret Popup) */
.secret-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.secret-popup-modal.active {
    opacity: 1;
    pointer-events: all;
}

.secret-popup-card {
    position: relative;
    z-index: 10;
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #ff5789;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(220, 50, 100, 0.2);
    backdrop-filter: blur(16px);
}

.secret-popup-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.secret-popup-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: #38081f;
    margin-bottom: 0.75rem;
}

.secret-popup-text {
    font-size: 1.05rem;
    color: #5e1538;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

/* ==========================================================================
   11. القسم الختامي (Final Section)
   ========================================================================== */
.final-section {
    padding: 7rem 0 5rem;
    position: relative;
    text-align: center;
}

.final-letter-card {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid #ffd4e2;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    box-shadow: 0 15px 45px rgba(220, 50, 100, 0.1);
    backdrop-filter: blur(16px);
}

.final-card-badge {
    color: #ff3366;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-card-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #38081f;
    margin-bottom: 2.5rem;
}

.final-letter-content {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 2.1;
    color: #38081f;
    margin-bottom: 2.5rem;
}

.final-paragraph {
    margin-bottom: 1.25rem;
}

.final-author-signature {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #d81b60;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.final-anniversary-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #fff0f5;
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-pill);
    color: #c2185b;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* التذييل العام (Footer) */
.main-footer {
    padding: 3rem 0;
    border-top: 1.5px solid rgba(255, 168, 195, 0.4);
    text-align: center;
    color: #8c2557;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-love-sub {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ff3366;
    margin-top: 0.6rem;
    text-shadow: 0 2px 10px rgba(255, 51, 102, 0.2);
}

.footer-forever-badge {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #ffa8c3;
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.8rem;
    color: #38081f;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 51, 102, 0.12);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.footer-forever-badge:hover {
    transform: scale(1.04);
    border-color: #ff3366;
    box-shadow: 0 6px 22px rgba(255, 51, 102, 0.25);
}

/* زر العودة للأعلى */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1.5px solid #ffa8c3;
    border-radius: 50%;
    color: #ff3366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(220, 50, 100, 0.15);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top-btn:hover {
    background: var(--gold-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* قائمة الموبايل المنزلقة الشفافة الزجاجية (Transparent Glassmorphic Mobile Drawer) */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 295px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(255, 240, 245, 0.45);
    border-left: 1.5px solid rgba(255, 168, 195, 0.55);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: -10px 0 40px rgba(255, 51, 102, 0.15);
    z-index: 100001;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed rgba(255, 168, 195, 0.5);
}

.mobile-drawer-emojis {
    font-size: 1.5rem;
    letter-spacing: 2px;
    user-select: none;
    display: flex;
    align-items: center;
}

.mobile-drawer-close-btn {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 168, 195, 0.5);
    color: #ff3366;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-drawer-close-btn:hover {
    background: #ff3366;
    color: #ffffff;
    transform: rotate(90deg);
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-drawer-links a {
    color: #38081f;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 700;
    display: block;
    padding: 0.35rem 0;
    transition: var(--transition-smooth);
}

.mobile-drawer-links a:hover {
    color: #ff3366;
    transform: translateX(-6px);
}

.mobile-drawer-footer {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(255, 168, 195, 0.5);
}

.drawer-footer-text {
    color: #ff3366;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(255, 51, 102, 0.15);
}

/* استجابة الشاشات الصغيرة (Responsive Adjustments) */
@media (max-width: 992px) {
    .nav-menu-links { display: none; }
    .mobile-menu-btn { display: block; }
    .photos-masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .timeline-vertical-wrapper::before { right: 20px; }
    .timeline-dot-center { right: 20px; }
    .timeline-card-content {
        width: calc(100% - 50px);
        margin-right: 50px;
    }
    .timeline-milestone-node.node-even,
    .timeline-milestone-node.node-odd {
        justify-content: flex-start;
    }

    .timer-units-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .memory-books-shelf {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        max-width: 340px;
        margin-inline: auto;
    }

    .book-modal-dialog {
        max-height: 94vh;
        border-radius: 18px;
    }

    .open-book-spread {
        grid-template-columns: 1fr;
    }

    .book-center-spine {
        display: none;
    }

    .book-spread-media-col {
        padding: 1.2rem;
    }

    .book-media-container {
        max-height: 260px;
    }

    .book-media-img, .book-video-element {
        max-height: 250px;
    }

    .book-spread-text-col {
        padding: 1.2rem 1.4rem;
    }

    .book-page-title {
        font-size: 1.3rem;
    }

    .book-page-comment {
        font-size: 1rem;
        line-height: 1.6;
    }

    .book-bottom-nav-bar {
        padding: 0.6rem 1rem;
    }

    .book-nav-arrow-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding-inline: 0.85rem;
    }
    .nav-brand {
        font-size: 1.15rem;
        gap: 0.4rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .btn-ambient-sound {
        padding: 3px 8px 3px 4px;
        gap: 0.35rem;
        font-size: 0.8rem;
    }
    .ambient-action-circle {
        width: 26px;
        height: 26px;
    }
    .ambient-action-circle svg {
        width: 11px;
        height: 11px;
    }
    .ambient-label-text {
        font-size: 0.8rem;
    }
    .mobile-menu-btn {
        font-size: 1.35rem;
    }
}
