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

:root {
    --primary-color: #1e6f4e;
    --secondary-color: #134d37;
    --accent-color: #d4af37;
    --accent-light: #f4e4b8;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-gray: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #fafbfc;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #134d37 75%, #1e6f4e 100%);
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.16);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Cairo', 'Amiri', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.7;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 111, 78, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 48px 40px 44px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>'),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    opacity: 0.6;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-color) 20%,
        var(--accent-color) 80%,
        transparent 100%);
    opacity: 0.7;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    opacity: 0.98;
}

.main-title {
    font-family: 'Amiri', serif;
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
    font-weight: 700;
}

.nav-link.active:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 100px 32px;
    color: var(--text-dark);
}

.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-soft);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}

/* Main Content */
.main-content {
    padding: 48px 40px 52px;
}

/* Selectors */
.surah-selector-container,
.reciter-selector-container {
    margin-bottom: 28px;
}

.selector-label {
    display: block;
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    position: relative;
    padding-right: 4px;
}

.selector-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    border-radius: 2px;
}

.surah-select,
.reciter-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.025rem;
    font-family: 'Cairo', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 44px;
    font-weight: 500;
}

.surah-select:hover,
.reciter-select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.surah-select:focus,
.reciter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 111, 78, 0.1), var(--shadow-md);
    outline: none;
    transform: translateY(-1px);
}

/* Surah Info */
.surah-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-light);
    padding: 40px 36px;
    border-radius: 20px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.surah-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 30%,
        var(--accent-color) 50%,
        var(--primary-color) 70%,
        transparent 100%);
}

.surah-info::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 111, 78, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.surah-name {
    font-family: 'Amiri', serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.surah-details {
    font-size: 1.05rem;
    color: var(--text-gray);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Audio Player */
.audio-player-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.audio-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(30, 111, 78, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.player-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.audio-controls {
    flex-shrink: 0;
}

.control-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(30, 111, 78, 0.25), var(--shadow-md);
    position: relative;
}

.control-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(30, 111, 78, 0.35), var(--shadow-lg);
}

.control-btn:hover::before {
    opacity: 1;
}

.control-btn:active {
    transform: scale(1.02);
}

.play-pause-btn {
    width: 80px;
    height: 80px;
}

.progress-section {
    flex: 1;
    min-width: 0;
}

.progress-container {
    margin-bottom: 12px;
    padding: 0 4px;
}

.progress-bar {
    width: 100%;
    height: 7px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--border-light) 0%, var(--border-color) 100%);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar:hover {
    height: 9px;
}

.progress-bar::-webkit-slider-runnable-track {
    height: 7px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--border-light) 0%, var(--border-color) 100%);
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 111, 78, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -5.5px;
    border: 3px solid var(--bg-card);
}

.progress-bar::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(30, 111, 78, 0.5), 0 0 0 4px rgba(30, 111, 78, 0.1);
}

.progress-bar::-moz-range-track {
    height: 7px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--border-light) 0%, var(--border-color) 100%);
}

.progress-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    cursor: pointer;
    border: 3px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(30, 111, 78, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar::-moz-range-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(30, 111, 78, 0.5), 0 0 0 4px rgba(30, 111, 78, 0.1);
}

.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

.playback-info {
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.current-ayah-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

.current-ayah-info svg {
    color: var(--accent-color);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

/* Visitor Counter */
.visitor-counter {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visitor-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.stat-icon {
    color: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-value {
    font-family: 'Cairo', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-light);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.stat-item.online .stat-value {
    color: var(--accent-color);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 28px 24px 20px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-color) 20%,
        var(--accent-color) 80%,
        transparent 100%);
    opacity: 0.6;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)" /></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.footer p {
    margin-bottom: 6px;
    font-size: 0.925rem;
    opacity: 0.96;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.api-credit {
    font-size: 0.875rem;
    opacity: 0.88;
}

.api-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.api-credit a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.api-credit a:hover {
    color: var(--accent-light);
}

.api-credit a:hover::after {
    transform: scaleX(1);
}

/* Developer Info */
.developer-info {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
}

.developer-title {
    font-size: 0.975rem;
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.96;
    letter-spacing: 0.3px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-light);
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.92;
    letter-spacing: 0.2px;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    color: var(--accent-light);
    text-decoration: none;
    transform: translateY(-1px);
}

.social-link:hover::before {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .container {
        border-radius: 24px;
    }

    .header {
        padding: 36px 24px 32px;
    }

    .bismillah {
        font-size: 1.4rem;
        margin-bottom: 14px;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }

    .nav-menu {
        gap: 6px;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 8px 16px;
    }

    .main-content {
        padding: 36px 24px 40px;
    }

    .surah-name {
        font-size: 2.25rem;
    }

    .surah-info {
        padding: 32px 28px;
    }

    .audio-player-container {
        padding: 28px 24px;
    }

    .player-wrapper {
        gap: 20px;
    }

    .play-pause-btn {
        width: 72px;
        height: 72px;
    }

    .play-pause-btn svg {
        width: 36px;
        height: 36px;
    }

    .surah-select,
    .reciter-select {
        font-size: 0.975rem;
        padding: 14px 18px 14px 42px;
    }

    .footer {
        padding: 24px 24px 16px;
    }

    .developer-title {
        font-size: 0.925rem;
        margin-bottom: 10px;
    }

    .social-links {
        gap: 16px;
    }

    .social-link {
        font-size: 0.9rem;
    }

    .prayer-times-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }

    .prayer-card {
        padding: 24px 16px;
    }

    .prayer-time {
        font-size: 1.3rem;
    }

    .next-prayer-info {
        padding: 24px 28px;
    }

    .names-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .name-card {
        padding: 20px 16px;
    }

    .hadith-quote {
        padding: 28px 24px;
    }

    .hadith-text {
        font-size: 1.2rem;
    }

    .counter-circle {
        width: 200px;
        height: 200px;
    }

    .counter-number {
        font-size: 3.5rem;
    }

    .current-dhikr {
        font-size: 2.2rem;
    }

    .count-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
    }

    .presets-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .preset-btn {
        font-size: 1.2rem;
        padding: 14px 18px;
    }

    .calendar-date-display {
        padding: 40px 28px;
    }

    .hijri-day {
        font-size: 4rem;
    }

    .hijri-month {
        font-size: 2.2rem;
    }

    .hijri-year {
        font-size: 1.3rem;
    }

    .months-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 14px;
    }

    .month-card {
        padding: 20px 16px;
    }

    .date-item {
        flex-direction: row;
        gap: 16px;
    }

    .date-badge {
        min-width: 90px;
        font-size: 0.875rem;
        padding: 8px 14px;
    }

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

    .category-filter {
        padding: 16px;
        gap: 8px;
    }

    .category-btn {
        font-size: 0.875rem;
        padding: 8px 16px;
    }

    .video-info {
        padding: 24px 28px;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .share-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .container {
        border-radius: 20px;
    }

    .header {
        padding: 28px 20px 24px;
    }

    .bismillah {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }

    .nav-menu {
        gap: 6px;
        margin-top: 16px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .main-content {
        padding: 32px 20px 36px;
    }

    .surah-name {
        font-size: 2rem;
    }

    .surah-info {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .audio-player-container {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .player-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .play-pause-btn {
        width: 68px;
        height: 68px;
    }

    .play-pause-btn svg {
        width: 34px;
        height: 34px;
    }

    .progress-bar {
        height: 6px;
    }

    .progress-bar:hover {
        height: 8px;
    }

    .time {
        font-size: 0.85rem;
    }

    .surah-select,
    .reciter-select {
        font-size: 0.95rem;
        padding: 13px 16px 13px 40px;
        border-radius: 14px;
    }

    .footer {
        padding: 20px 20px 14px;
    }

    .footer p {
        margin-bottom: 5px;
        font-size: 0.875rem;
    }

    .api-credit {
        font-size: 0.825rem;
    }

    .developer-info {
        margin-top: 14px;
        padding-top: 14px;
    }

    .developer-title {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }

    .social-links {
        gap: 14px;
        flex-direction: row;
        justify-content: center;
    }

    .social-link {
        font-size: 0.825rem;
    }

    .visitor-stats {
        gap: 20px;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .prayer-card {
        padding: 20px 14px;
    }

    .prayer-name {
        font-size: 1.1rem;
    }

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

    .current-date {
        font-size: 1.2rem;
    }

    .hijri-date {
        font-size: 1rem;
    }

    .next-prayer-info {
        padding: 20px 24px;
    }

    .next-prayer-name {
        font-size: 1.6rem;
    }

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

    .names-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .name-card {
        padding: 18px 14px;
    }

    .name-arabic {
        font-size: 1.5rem;
    }

    .name-transliteration {
        font-size: 0.9rem;
    }

    .name-meaning {
        font-size: 0.825rem;
    }

    .hadith-quote {
        padding: 24px 20px;
    }

    .hadith-text {
        font-size: 1.1rem;
    }

    .counter-circle {
        width: 180px;
        height: 180px;
    }

    .counter-number {
        font-size: 3rem;
    }

    .current-dhikr {
        font-size: 1.9rem;
    }

    .dhikr-transliteration {
        font-size: 1rem;
    }

    .count-btn {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .presets-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .preset-btn {
        font-size: 1.15rem;
        padding: 14px 16px;
    }

    .progress-section {
        padding: 20px;
    }

    .calendar-date-display {
        padding: 32px 24px;
    }

    .hijri-day {
        font-size: 3.5rem;
    }

    .hijri-month {
        font-size: 1.9rem;
    }

    .hijri-year {
        font-size: 1.2rem;
    }

    .gregorian-date {
        font-size: 1rem;
    }

    .months-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .month-card {
        padding: 18px 14px;
    }

    .month-name {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .date-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .date-badge {
        width: 100%;
        min-width: auto;
    }

    .date-title {
        font-size: 1.05rem;
    }

    .date-desc {
        font-size: 0.85rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-filter {
        padding: 14px;
        gap: 6px;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
    }

    .video-card-info {
        padding: 16px;
    }

    .video-card-title {
        font-size: 1.1rem;
    }

    .video-card-description {
        font-size: 0.875rem;
    }

    .video-info {
        padding: 20px 24px;
    }

    .video-title {
        font-size: 1.3rem;
    }

    .video-description {
        font-size: 0.95rem;
    }

    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .share-btn {
        min-width: 100%;
    }

    .modal-content {
        margin: 0;
        border-radius: 16px;
    }

    .modal-video-container {
        border-radius: 16px 16px 0 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.main-content {
    animation: fadeIn 0.5s ease-out;
}

.surah-info,
.audio-player-container {
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.surah-selector-container,
.reciter-selector-container {
    animation: slideUp 0.4s ease-out;
}

.surah-selector-container {
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.reciter-selector-container {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Subtitle */
.subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.9;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Tasbih Counter Page Styles */
.dhikr-display {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.dhikr-display:active {
    transform: scale(0.98);
}

.current-dhikr {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.6;
}

.dhikr-transliteration {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
    font-style: italic;
}

.counter-display {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    cursor: pointer;
    user-select: none;
}

.counter-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(30, 111, 78, 0.3), var(--shadow-xl);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 50%, var(--accent-color) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.counter-circle:active {
    transform: scale(0.95);
}

.counter-circle.celebrate {
    animation: celebrate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.counter-number {
    font-family: 'Cairo', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.counter-label {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-top: 8px;
    opacity: 0.9;
}

.counter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.count-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c19b2f 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 20px;
    padding: 20px 48px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5);
}

.count-btn:active {
    transform: translateY(0);
}

.count-btn.counting {
    animation: pulse-btn 0.2s ease-out;
}

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

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 24px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn svg {
    color: var(--primary-color);
}

.dhikr-presets {
    margin-bottom: 32px;
}

.presets-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.preset-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 14px;
    padding: 16px 20px;
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.progress-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.progress-percentage {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

/* Asma ul Husna Page Styles */
.hadith-quote {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hadith-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-color) 50%,
        transparent 100%);
}

.quote-icon {
    color: var(--accent-color);
    margin-bottom: 16px;
    opacity: 0.6;
}

.hadith-text {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 12px;
}

.hadith-source {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.name-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.name-card:hover::before {
    opacity: 1;
}

.name-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.name-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    margin-top: 8px;
}

.name-transliteration {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.name-meaning {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
}

/* Hijri Calendar Page Styles */
.calendar-hero {
    margin-bottom: 40px;
}

.calendar-date-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.calendar-date-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="calpattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23calpattern)" /></svg>');
    opacity: 0.4;
}

.hijri-large {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.hijri-day {
    font-family: 'Cairo', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hijri-month {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hijri-year {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-light);
    opacity: 0.95;
}

.gregorian-small {
    position: relative;
    z-index: 1;
}

.gregorian-date {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.85;
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    border-radius: 2px;
}

.months-section {
    margin-bottom: 40px;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.month-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.month-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.month-card:hover::before {
    opacity: 1;
}

.month-card.current-month {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.month-card.current-month .month-number,
.month-card.current-month .month-name,
.month-card.current-month .month-trans {
    color: var(--text-light);
}

.month-card.sacred {
    border-color: var(--accent-color);
}

.month-card.special {
    background: linear-gradient(135deg, #fff5e6 0%, #fafbfc 100%);
}

.month-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.month-name {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.month-trans {
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    font-style: italic;
}

.sacred-badge,
.special-badge {
    display: inline-block;
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 8px;
}

.sacred-badge {
    background: var(--accent-color);
    color: var(--text-dark);
}

.special-badge {
    background: var(--primary-color);
    color: var(--text-light);
}

.important-dates {
    margin-bottom: 32px;
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.date-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.date-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.date-item.special-event {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff5e6 0%, #fafbfc 100%);
}

.date-badge {
    flex-shrink: 0;
    min-width: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
}

.date-item.special-event .date-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c19b2f 100%);
    color: var(--text-dark);
}

.date-info {
    flex: 1;
}

.date-title {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.date-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
}

/* Islamic Videos Page Styles */
.category-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.category-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--border-light);
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(30, 111, 78, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-card:hover .play-overlay {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-info {
    padding: 20px;
}

.video-card-title {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-card-description {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.video-card-actions {
    display: flex;
    gap: 10px;
}

.watch-btn,
.share-quick-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
}

.watch-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-quick-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.share-quick-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.no-videos {
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

.modal-video-container {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 28px 32px;
}

.video-title {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-description {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.share-section {
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
}

.share-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.share-btn.whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0C63D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0C8BD9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.share-btn.telegram {
    background: #0088CC;
}

.share-btn.telegram:hover {
    background: #0077B5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, var(--text-gray) 0%, var(--text-muted) 100%);
}

.share-btn.copy-link:hover {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-gray) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Prayer Times Page Styles */
.prayer-header {
    margin-bottom: 32px;
}

.date-info {
    text-align: center;
    margin-bottom: 20px;
}

.current-date {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.hijri-date {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    color: var(--text-gray);
    font-weight: 600;
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 600;
}

.location-info svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.prayer-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--border-light);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.prayer-card:hover::before {
    opacity: 1;
}

.prayer-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(30, 111, 78, 0.2));
}

.prayer-name {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.prayer-time {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-prayer-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 18px;
    padding: 28px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.next-prayer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="stars" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)" /></svg>');
    opacity: 0.4;
}

.next-prayer-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.next-prayer-content {
    position: relative;
    z-index: 1;
}

.next-prayer-name {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.time-remaining {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.95;
}

/* Accessibility & Polish */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

::selection {
    background-color: var(--accent-light);
    color: var(--text-dark);
}

::-moz-selection {
    background-color: var(--accent-light);
    color: var(--text-dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover states */
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Loading state enhancements */
.loading p {
    animation: pulse 2s ease-in-out infinite;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    body::before {
        display: none;
    }

    .container {
        box-shadow: none;
        border: none;
    }

    .audio-player-container,
    .surah-selector-container,
    .reciter-selector-container,
    .footer {
        display: none;
    }

    .header::before,
    .header::after,
    .surah-info::before,
    .surah-info::after {
        display: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
