:root {
    --primary: #00a651;
    --primary-dark: #006837;
    --primary-light: #22c55e;
    --primary-gradient: linear-gradient(135deg, #00a651, #22c55e);
    --secondary: #3399ff;
    --accent: #ffd700;
    --accent-dark: #ccab00;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --background: #000000;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --background-card: #1e1e1e;
    --background-elevated: #2a2a2a;
    --text: #ffffff;
    --text-muted: #cccccc;
    --text-light: #e5e5e5;
    --text-secondary: #b3b3b3;
    --border: #333333;
    --border-light: #404040;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 25px rgba(0, 166, 81, 0.3);
    --glass-bg: rgba(26, 26, 26, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-backdrop: blur(20px);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: 0.3s ease;
    --gold: #d4a017;
    --gold-light: #f5d061;
    --gold-gradient: linear-gradient(135deg, #d4a017, #f5d061);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 50%, var(--background) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: block;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 160, 23, 0.06) 0%, transparent 50%);
    z-index: -1;
}

#app {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.ramadan-header {
    background: linear-gradient(180deg, rgba(0, 40, 20, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(212, 160, 23, 0.3);
}

.ramadan-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 166, 81, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lantern {
    position: absolute;
    top: 1rem;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    animation: lanternSway 4s ease-in-out infinite;
}

.lantern-right { right: 2rem; animation-delay: 0s; }
.lantern-left { left: 2rem; animation-delay: 2s; }

@keyframes lanternSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.header-inner {
    position: relative;
    z-index: 1;
}

.crescent-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.crescent-icon .fa-moon {
    font-size: 4rem;
    color: var(--gold);
    filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.5));
    animation: crescentGlow 3s ease-in-out infinite;
}

.crescent-icon .fa-star {
    position: absolute;
    color: var(--gold-light);
    animation: starTwinkle 2s ease-in-out infinite;
}

.star-1 { top: 0; right: -15px; font-size: 0.8rem; animation-delay: 0s; }
.star-2 { top: -10px; right: 10px; font-size: 0.6rem; animation-delay: 0.7s; }
.star-3 { top: 5px; right: -25px; font-size: 0.5rem; animation-delay: 1.4s; }

@keyframes crescentGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.5)); }
    50% { filter: drop-shadow(0 0 35px rgba(212, 160, 23, 0.8)); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.ramadan-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ramadan-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 2rem;
}

.ramadan-verse {
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.verse-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--gold-light);
    line-height: 2;
    margin-bottom: 0.5rem;
}

.verse-ref {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.main-content {
    padding: 2rem 0;
}

.main-content .container {
    margin-top: 0;
}

.countdown-section {
    margin-bottom: 2rem;
}

.countdown-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-icon {
    font-size: 2.5rem;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.countdown-info h3 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    min-width: 70px;
}

.time-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.time-separator {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.countdown-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--gold);
}

.niyyah-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.niyyah-section.hidden {
    display: none;
}

.niyyah-card {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(0, 166, 81, 0.05));
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.niyyah-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
}

.niyyah-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.niyyah-icon {
    font-size: 1.8rem;
    color: var(--gold);
}

.niyyah-header h2 {
    flex: 1;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin: 0;
}

.niyyah-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.9rem;
    padding: 0;
}

.niyyah-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.niyyah-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dua-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.dua-label {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.dua-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text);
    line-height: 2.2;
    margin-bottom: 0;
}

.dua-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 1rem auto;
    border-radius: 1px;
}

.dua-meaning {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.niyyah-dismiss {
    width: 100%;
    background: var(--gold-gradient);
    color: #000;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.niyyah-dismiss:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.3);
}

.progress-section {
    margin-bottom: 2rem;
}

.progress-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-header h2 {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--primary);
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    height: 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    z-index: 1;
}

.progress-message {
    font-size: 0.9rem;
    color: var(--gold);
    text-align: center;
    min-height: 1.5rem;
}

.reset-progress-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.8rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}

.reset-progress-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.schedule-section {
    margin-bottom: 3rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.day-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: right;
}

.day-card:hover::before {
    transform: scaleX(1);
}

.day-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 166, 81, 0.3);
    box-shadow: var(--shadow-primary);
}

.day-card.completed {
    border-color: rgba(0, 166, 81, 0.4);
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.08), rgba(0, 0, 0, 0.9));
}

.day-card.completed::before {
    transform: scaleX(1);
    background: var(--primary-gradient);
}

.day-card.today {
    border-color: rgba(212, 160, 23, 0.5);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.15);
}

.day-card.today::before {
    transform: scaleX(1);
    background: var(--gold-gradient);
}

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

.day-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(0, 166, 81, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 166, 81, 0.2);
}

.day-card.today .day-number {
    color: var(--gold);
    background: rgba(212, 160, 23, 0.1);
    border-color: rgba(212, 160, 23, 0.3);
}

.today-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    background: var(--gold-gradient);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.day-ayah-range {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.day-ayah-range i {
    color: var(--primary);
    font-size: 0.8rem;
}

.day-card-actions {
    display: flex;
    gap: 0.5rem;
}

.read-btn {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.6rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.85rem;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.complete-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
    padding: 0;
    flex-shrink: 0;
}

.complete-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 166, 81, 0.1);
}

.complete-btn.done {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
}

.tips-section {
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.tip-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 166, 81, 0.3);
}

.tip-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.tip-card h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.duas-section {
    margin-bottom: 3rem;
}

.duas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.dua-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.dua-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
}

.dua-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 23, 0.3);
}

.dua-card-title {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.dua-card-text {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 2;
    margin-bottom: 0.75rem;
}

.dua-card-source {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.share-section {
    margin-bottom: 3rem;
}

.share-card {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.08), rgba(212, 160, 23, 0.05));
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
}

.share-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.share-card h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.share-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.whatsapp-share {
    background: #25D366;
}

.whatsapp-share:hover {
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.telegram-share {
    background: #0088cc;
}

.telegram-share:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.copy-share {
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
}

.copy-share:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.ramadan-footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(212, 160, 23, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-dua {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin: 0;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--primary-gradient);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 50;
    padding: 0;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-msg {
    background: var(--primary);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-msg.warning {
    background: var(--warning);
    color: #000;
}

.toast-msg.error {
    background: var(--danger);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

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

@media (max-width: 768px) {
    .ramadan-header {
        padding: 3rem 0 2rem;
    }

    .crescent-icon .fa-moon {
        font-size: 3rem;
    }

    .ramadan-verse {
        padding: 1rem 1.25rem;
    }

    .countdown-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .time-unit {
        min-width: 55px;
        padding: 0.5rem 0.75rem;
    }

    .time-value {
        font-size: 1.4rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .niyyah-header h2 {
        font-size: 1.1rem;
    }

    .progress-header {
        flex-direction: column;
        text-align: center;
    }

    .progress-stats {
        justify-content: center;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .duas-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lantern {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .ramadan-header {
        padding: 2.5rem 0 1.5rem;
    }

    .niyyah-card,
    .progress-card,
    .day-card,
    .share-card {
        padding: 1.25rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        gap: 0.3rem;
    }

    .time-unit {
        min-width: 50px;
        padding: 0.4rem 0.5rem;
    }

    .time-value {
        font-size: 1.2rem;
    }

    .time-separator {
        font-size: 1.1rem;
    }

    .scroll-top-btn {
        bottom: 1rem;
        left: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
