/* Hero Section */
.hero { position: relative; min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 1rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1564769625905-50e93615e769?q=80&w=2000&auto=format&fit=crop') center/cover; opacity: 0.15; mix-blend-mode: screen; }
.hero-blob1 { position: absolute; top: 25%; left: 25%; width: 400px; height: 400px; background: rgba(217,119,6,0.2); border-radius: 50%; filter: blur(100px); }
.hero-blob2 { position: absolute; bottom: 25%; right: 25%; width: 500px; height: 500px; background: rgba(16,185,129,0.2); border-radius: 50%; filter: blur(120px); animation-delay: 2s; }
.hero-content { position: relative; z-index: 10; width: 100%; max-width: 64rem; margin: 0 auto; text-align: center; }
.portrait-wrap { position: relative; display: inline-block; margin-bottom: 2.5rem; }
.portrait-glow { position: absolute; inset: -0.5rem; background: linear-gradient(to top right, var(--gold-400), var(--emerald-600)); border-radius: 50%; filter: blur(12px); opacity: 0.7; }
.portrait { position: relative; width: 14rem; height: 14rem; border-radius: 50%; border: 4px solid var(--gold-400); object-fit: cover; object-position: center 30%; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
@media (min-width: 768px) { .portrait { width: 18rem; height: 18rem; object-position: center 35%; } }
.hero-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; }
@media (min-width: 768px) { .hero-title { font-size: 5rem; } }
.hero-subtitle { font-size: 1.25rem; color: var(--emerald-100); margin-bottom: 3rem; font-weight: 300; letter-spacing: 0.1em; font-family: 'IranNastaliq', serif; }
@media (min-width: 768px) { .hero-subtitle { font-size: 2.25rem; } }

/* Timer */
.timer-panel { padding: 1.5rem; border-radius: 2rem; display: inline-block; width: 100%; max-width: 56rem; }
@media (min-width: 768px) { .timer-panel { padding: 3rem; border-radius: 2.5rem; } }
.timer-title { font-size: 1rem; color: var(--gold-300); margin-bottom: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .timer-title { font-size: 1.5rem; margin-bottom: 2rem; } }
.timer-grid { display: flex; flex-direction: column; gap: 1rem; direction: ltr; }
.timer-row { display: flex; gap: 0.5rem; justify-content: center; direction: ltr; }
@media (min-width: 768px) { .timer-row { gap: 1rem; } }
.timer-card { flex: 1; padding: 0.75rem; border-radius: 1rem; text-align: center; min-width: 0; }
@media (min-width: 768px) { .timer-card { padding: 1rem; } }
.timer-num { display: block; font-size: 1.5rem; font-weight: 900; }
@media (min-width: 768px) { .timer-num { font-size: 2.5rem; } }
.timer-num.gold { color: var(--gold-400); filter: drop-shadow(0 0 20px rgba(251,191,36,0.8)); }
.timer-num.white { color: white; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.timer-label { display: block; color: var(--emerald-200); margin-top: 0.25rem; font-size: 0.625rem; }
@media (min-width: 768px) { .timer-label { font-size: 0.875rem; } }

/* Bio Section */
.bio-section { padding: 4rem 1rem; background: linear-gradient(135deg, rgba(6,78,59,0.5), rgba(2,44,34,0.8)); }
.bio-box { max-width: 56rem; margin: 0 auto; background: rgba(255,255,255,0.03); border: 1px solid rgba(251,191,36,0.2); border-radius: 2rem; padding: 2rem; backdrop-filter: blur(10px); }
@media (min-width: 768px) { .bio-box { padding: 3rem; border-radius: 3rem; } }
.bio-title { font-size: 1.5rem; color: var(--gold-400); margin-bottom: 1.5rem; text-align: center; font-family: 'IranNastaliq', serif; }
@media (min-width: 768px) { .bio-title { font-size: 2.25rem; margin-bottom: 2rem; } }
.bio-subtitle { text-align: center; font-size: 1.2rem; color: var(--gold-300); margin-bottom: 2rem; font-style: italic; font-family: 'IranNastaliq', serif; opacity: 0.9; }
@media (min-width: 768px) { .bio-subtitle { font-size: 1.5rem; } }
@media (max-width: 640px) { .bio-subtitle { font-size: 1rem; margin-bottom: 1.5rem; } }
.bio-text { font-size: 1rem; line-height: 2.2; text-align: justify; color: var(--emerald-100); }
@media (min-width: 768px) { .bio-text { font-size: 1.125rem; line-height: 2.5; } }
.bio-text p { margin-bottom: 1rem; }
.bio-poem { text-align: center; font-family: 'IranNastaliq', serif; margin-top: 2.5rem; padding: 2rem; border-radius: 1.5rem; background-color: rgba(251, 191, 36, 0.05); border: 1px solid rgba(251, 191, 36, 0.15); }
@media (min-width: 768px) { .bio-poem { padding: 2.5rem; } }
@media (max-width: 640px) { .bio-poem { padding: 1.25rem 1rem; margin-top: 2rem; } }
.bio-poem .bio-title { margin-bottom: 1.5rem; }
@media (min-width: 768px) { .bio-poem .bio-title { margin-bottom: 2rem; } }

/* Poetry Verse */
.poem-verse { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; margin-top: 1.5rem; }
.poem-couple { display: flex; gap: 3rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.poem-line { font-family: 'IranNastaliq', serif; font-size: 1.5rem; margin: 0; line-height: 2.5; white-space: nowrap; text-shadow: 0 2px 15px rgba(0,0,0,0.6); background: linear-gradient(to left, #fcd34d, #d97706); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 700; }
.poet-name { margin-top: 1.5rem; font-size: 1rem; color: var(--emerald-200); font-style: italic; font-family: 'Vazirmatn', sans-serif; opacity: 0.7; }
@media (min-width: 768px) { .poem-line { font-size: 1.75rem; } .poem-verse { gap: 2rem; } .poem-couple { gap: 4rem; } }
@media (max-width: 640px) { .poem-couple { flex-direction: column; gap: 0.5rem; } .poem-line { font-size: 1.25rem; white-space: normal; text-align: center; line-height: 2.2; } .poem-verse { gap: 1.25rem; } .poet-name { font-size: 0.9rem; margin-top: 1rem; } }

/* Memorial Closing */
.memorial-closing { margin-top: 2.5rem; padding: 2rem; text-align: center; background: rgba(251, 191, 36, 0.03); border-radius: 1.5rem; border: 1px solid rgba(251, 191, 36, 0.15); }
.memorial-message { font-family: 'IranNastaliq', serif; font-size: 1.4rem; color: var(--gold-400); font-weight: bold; margin-bottom: 1.5rem; line-height: 2.5; text-shadow: 0 2px 15px rgba(0,0,0,0.6); }
.memorial-closing p { font-size: 1.05rem; line-height: 2.2; margin: 1rem 0; color: var(--emerald-100); text-align: justify; }
.memorial-closing p:first-of-type { text-align: center; }
.memorial-closing p:last-of-type { text-align: center; font-family: 'IranNastaliq', serif; color: var(--gold-300); font-weight: 600; margin-top: 1.5rem; }
@media (min-width: 768px) { .memorial-message { font-size: 1.75rem; } .memorial-closing p { font-size: 1.15rem; line-height: 2.5; } }
@media (max-width: 640px) { .memorial-closing { padding: 1.5rem 1rem; margin-top: 2rem; } .memorial-message { font-size: 1.2rem; line-height: 2.2; } .memorial-closing p { font-size: 0.95rem; line-height: 2; } }

/* Carousel Shared */
.carousel-container { 
    position: relative; 
    max-width: 400px; 
    margin: 0 auto; 
    overflow: hidden;
    border-radius: 1.5rem; 
    background: #000; 
    border: 2px solid rgba(251, 191, 36, 0.2); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.05);
    touch-action: pan-y;
}
@media (min-width: 768px) { 
    .carousel-container { max-width: 600px; } 
}

.carousel-track { 
    display: flex; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide { 
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative; 
    cursor: pointer; 
    background: #000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.carousel-slide.video-slide { 
    aspect-ratio: 16 / 9; 
    max-height: 400px; 
}
@media (min-width: 768px) { 
    .carousel-slide.video-slide { max-height: 500px; } 
}

.carousel-slide.photo-slide { 
    aspect-ratio: 3 / 4; 
    max-height: 600px; 
}
@media (min-width: 768px) { 
    .carousel-slide.photo-slide { max-height: 700px; } 
}

.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    transition: transform 0.5s ease; 
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.carousel-slide:hover img { 
    transform: scale(1.03); 
}

.carousel-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 3rem; 
    height: 3rem; 
    background: rgba(2,44,34,0.9); 
    backdrop-filter: blur(10px); 
    border: 2px solid var(--gold-500); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--gold-400); 
    z-index: 10; 
    transition: all 0.3s; 
}
@media (min-width: 768px) { 
    .carousel-btn { width: 3.5rem; height: 3.5rem; } 
}
.carousel-btn:hover { 
    background: var(--gold-500); 
    color: var(--emerald-950); 
    transform: translateY(-50%) scale(1.1); 
}
.carousel-btn.prev { right: 1rem; }
.carousel-btn.next { left: 1rem; }
.carousel-btn svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { 
    .carousel-btn svg { width: 2rem; height: 2rem; } 
}

.carousel-dots { 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
    margin-top: 1.5rem; 
}
.carousel-dot { 
    width: 0.75rem; 
    height: 0.75rem; 
    border-radius: 50%; 
    background: rgba(251,191,36,0.3); 
    transition: all 0.3s; 
    cursor: pointer; 
}
.carousel-dot.active { 
    background: var(--gold-400); 
    width: 2rem; 
    border-radius: 0.5rem; 
}

/* Video Overlay */
.video-play-overlay { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease; 
    z-index: 5; 
    pointer-events: none; 
}
.carousel-slide.video-slide:hover .video-play-overlay { 
    background: rgba(0, 0, 0, 0.5); 
}
.video-play-btn { 
    width: 5rem; 
    height: 5rem; 
    background: rgba(251, 191, 36, 0.9); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(251, 191, 36, 0.3); 
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px); 
}
.video-play-btn svg { 
    width: 2.5rem; 
    height: 2.5rem; 
    color: var(--emerald-950); 
    margin-right: -4px; 
}
.carousel-slide.video-slide:hover .video-play-btn { 
    transform: scale(1.15); 
    background: rgba(251, 191, 36, 1); 
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(251, 191, 36, 0.5), 0 0 30px rgba(251, 191, 36, 0.4); 
}
.video-play-label { 
    position: absolute; 
    bottom: 1rem; 
    left: 50%; 
    transform: translateX(-50%); 
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(10px); 
    color: var(--gold-400); 
    padding: 0.375rem 1rem; 
    border-radius: 9999px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    border: 1px solid rgba(251, 191, 36, 0.3); 
    display: flex; 
    align-items: center; 
    gap: 0.375rem; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    white-space: nowrap; 
}
.video-play-label svg { 
    width: 0.875rem; 
    height: 0.875rem; 
}
.carousel-slide.video-slide:hover .video-play-label { 
    opacity: 1; 
}
@media (max-width: 640px) { 
    .video-play-btn { width: 4rem; height: 4rem; } 
    .video-play-btn svg { width: 2rem; height: 2rem; } 
    .video-play-label { font-size: 0.7rem; padding: 0.3rem 0.75rem; bottom: 0.75rem; } 
}

/* Video Modal */
.video-player-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0); 
    z-index: 200; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
    backdrop-filter: blur(0px); 
    transition: background 0.3s ease, backdrop-filter 0.3s ease; 
}
.video-player-modal.active { 
    display: flex; 
    animation: modalFadeIn 0.3s ease forwards; 
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px); 
}
.video-player-modal.closing { 
    animation: modalFadeOut 0.3s ease forwards; 
}
.video-player-container { 
    position: relative; 
    width: 100%; 
    max-width: 1100px; 
    background: #000; 
    border-radius: 1.5rem; 
    overflow: hidden; 
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(251, 191, 36, 0.4); 
    animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}
@media (min-width: 768px) { 
    .video-player-container { max-width: 1200px; } 
}
.video-player-modal.closing .video-player-container { 
    animation: modalScaleOut 0.3s ease forwards; 
}
.video-player-container iframe { 
    width: 100%; 
    aspect-ratio: 16/9; 
    border: none; 
    display: block; 
    background: #000; 
}
.video-top-bar { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    padding: 1rem 1.25rem; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    z-index: 15; 
    pointer-events: none; 
}
.video-top-bar > * { 
    pointer-events: auto; 
}
.video-title-badge { 
    display: flex; 
    align-items: center; 
    gap: 0.625rem; 
    color: var(--gold-400); 
    font-size: 0.95rem; 
    font-weight: 700; 
    padding: 0.5rem 1.125rem; 
    background: rgba(2, 44, 34, 0.85); 
    backdrop-filter: blur(12px); 
    border: 2px solid rgba(251, 191, 36, 0.4); 
    border-radius: 9999px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); 
}
.video-title-badge svg { 
    width: 1.125rem; 
    height: 1.125rem; 
}
.video-close-btn { 
    width: 3.25rem; 
    height: 3.25rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9)); 
    backdrop-filter: blur(12px); 
    border: 2px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50%; 
    color: white; 
    font-size: 1.75rem; 
    font-weight: bold; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5), 0 0 0 4px rgba(239, 68, 68, 0.2); 
    line-height: 1; 
}
.video-close-btn:hover { 
    background: linear-gradient(135deg, rgba(220, 38, 38, 1), rgba(185, 28, 28, 1)); 
    transform: rotate(90deg) scale(1.15); 
    box-shadow: 0 8px 35px rgba(239, 68, 68, 0.7), 0 0 0 6px rgba(239, 68, 68, 0.3); 
    border-color: rgba(255, 255, 255, 0.5); 
}
.video-close-btn:active { 
    transform: rotate(90deg) scale(1.05); 
}
@media (max-width: 640px) { 
    .video-player-modal { padding: 0.5rem; } 
    .video-player-container { border-radius: 1rem; } 
    .video-close-btn { width: 2.75rem; height: 2.75rem; font-size: 1.5rem; } 
    .video-title-badge { font-size: 0.8rem; padding: 0.375rem 0.875rem; } 
}

/* Memorial & Map */
.memorial-section { 
    padding: 5rem 1rem; 
    position: relative; 
    background: radial-gradient(circle at 20% 50%, rgba(217,119,6,0.1) 0%, transparent 50%), 
                radial-gradient(circle at 80% 80%, rgba(16,185,129,0.1) 0%, transparent 50%), 
                linear-gradient(135deg, #022c22 0%, #064e3b 100%); 
}
@media (min-width: 768px) { 
    .memorial-section { padding: 8rem 1rem; } 
}
.memorial-box { 
    max-width: 56rem; 
    margin: 0 auto; 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    padding: 2rem; 
    border-radius: 2rem; 
}
@media (min-width: 768px) { 
    .memorial-box { padding: 4rem; border-radius: 3rem; } 
}
.memorial-icon { 
    width: 3rem; 
    height: 3rem; 
    color: var(--gold-500); 
    margin: 0 auto 1.5rem; 
    opacity: 0.5; 
}
@media (min-width: 768px) { 
    .memorial-icon { width: 4rem; height: 4rem; margin-bottom: 2rem; } 
}
.memorial-title { 
    font-size: 1.75rem; 
    font-family: 'IranNastaliq', serif; 
    color: var(--gold-400); 
    margin-bottom: 2rem; 
    line-height: 2.5rem; 
}
@media (min-width: 768px) { 
    .memorial-title { font-size: 3rem; line-height: 3.5rem; margin-bottom: 2.5rem; } 
}
.memorial-text { 
    font-size: 1rem; 
    color: var(--emerald-50); 
    line-height: 2; 
    text-align: justify; 
    font-weight: 300; 
    opacity: 0.9; 
}
@media (min-width: 768px) { 
    .memorial-text { font-size: 1.25rem; line-height: 2.5; } 
}
.map-section { 
    padding: 4rem 1rem; 
    background: linear-gradient(to bottom, #064e3b, #022c22); 
}
.map-wrapper { 
    max-width: 80rem; 
    margin: 0 auto; 
}
.map-container { 
    position: relative; 
    border-radius: 2rem; 
    overflow: hidden; 
    border: 3px solid rgba(251,191,36,0.3); 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(251,191,36,0.1); 
    background: linear-gradient(135deg, rgba(6,78,59,0.5), rgba(2,44,34,0.8)); 
}
.map-header { 
    padding: 1.5rem 2rem; 
    background: linear-gradient(to right, rgba(217,119,6,0.2), transparent); 
    border-bottom: 1px solid rgba(251,191,36,0.2); 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}
.map-header-icon { 
    width: 3rem; 
    height: 3rem; 
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--emerald-950); 
    flex-shrink: 0; 
}
.map-header-icon svg { 
    width: 1.5rem; 
    height: 1.5rem; 
}
.map-header-text h3 { 
    color: var(--gold-400); 
    font-size: 1.25rem; 
    font-weight: 700; 
    margin-bottom: 0.25rem; 
}
.map-header-text p { 
    color: var(--emerald-200); 
    font-size: 0.875rem; 
}
.map-frame { 
    width: 100%; 
    height: 400px; 
    border: none; 
    display: block; 
}
@media (min-width: 768px) { 
    .map-frame { height: 500px; } 
}
.map-footer { 
    padding: 1rem 2rem; 
    background: rgba(2,44,34,0.8); 
    border-top: 1px solid rgba(251,191,36,0.1); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    color: var(--emerald-300); 
    font-size: 0.875rem; 
}
.map-footer svg { 
    width: 1rem; 
    height: 1rem; 
    color: var(--gold-400); 
}

/* Lightbox */
.lightbox { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.95); 
    z-index: 100; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s; 
}
.lightbox.show { 
    display: flex; 
    opacity: 1; 
}
.lightbox-close { 
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
    color: white; 
    font-size: 2.5rem; 
    z-index: 10; 
    transition: color 0.3s; 
    width: 3rem; 
    height: 3rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
@media (min-width: 768px) { 
    .lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 3rem; } 
}
.lightbox-close:hover { 
    color: var(--gold-500); 
}
.lightbox-content { 
    width: 100%; 
    max-width: 80rem; 
    padding: 0 1rem; 
    display: flex; 
    justify-content: center; 
}
.lightbox-content img { 
    max-height: 85vh; 
    border-radius: 1rem; 
    box-shadow: 0 0 50px rgba(251,191,36,0.3); 
    border: 2px solid var(--gold-500); 
    object-fit: contain; 
    max-width: 100%; 
}

/* Toast */
.toast-container { 
    position: fixed; 
    top: 6rem; 
    right: 1rem; 
    z-index: 10000; 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    pointer-events: none; 
    max-width: 90vw; 
}
@media (min-width: 768px) { 
    .toast-container { top: 6rem; right: 2rem; } 
}
.toast { 
    background: rgba(2, 44, 34, 0.95); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border: 1px solid rgba(251, 191, 36, 0.3); 
    border-radius: 1rem; 
    padding: 1rem 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(251,191,36,0.1); 
    min-width: 280px; 
    max-width: 400px; 
    pointer-events: auto; 
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
    position: relative; 
    overflow: hidden; 
}
.toast.hiding { 
    animation: toastSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
}
.toast-icon { 
    width: 2.5rem; 
    height: 2.5rem; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}
.toast.error .toast-icon { 
    background: rgba(239, 68, 68, 0.2); 
    color: #fca5a5; 
    border: 1px solid rgba(239, 68, 68, 0.3); 
}
.toast.warning .toast-icon { 
    background: rgba(251, 191, 36, 0.2); 
    color: var(--gold-400); 
    border: 1px solid rgba(251, 191, 36, 0.3); 
}
.toast.success .toast-icon { 
    background: rgba(16, 185, 129, 0.2); 
    color: var(--emerald-400); 
    border: 1px solid rgba(16, 185, 129, 0.3); 
}
.toast.info .toast-icon { 
    background: rgba(59, 130, 246, 0.2); 
    color: #93c5fd; 
    border: 1px solid rgba(59, 130, 246, 0.3); 
}
.toast-content { 
    flex: 1; 
    min-width: 0; 
}
.toast-title { 
    color: white; 
    font-weight: 700; 
    font-size: 0.95rem; 
    margin-bottom: 0.25rem; 
}
.toast-message { 
    color: var(--emerald-200); 
    font-size: 0.85rem; 
    line-height: 1.5; 
}
.toast-close { 
    color: var(--emerald-300); 
    width: 1.5rem; 
    height: 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: all 0.2s; 
    flex-shrink: 0; 
    font-size: 1.25rem; 
}
.toast-close:hover { 
    background: rgba(255,255,255,0.1); 
    color: white; 
}
.toast-progress { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    height: 3px; 
    background: linear-gradient(to right, var(--gold-500), var(--gold-400)); 
}
@media (max-width: 640px) { 
    .toast-container { top: 5rem; right: 0.5rem; left: 0.5rem; } 
    .toast { min-width: auto; max-width: 100%; } 
}

/* Carousel Touch Improvements */
.carousel-track * {
    -webkit-tap-highlight-color: transparent;
}