/* ============================================
   QURON TAJVID - PREMIUM DESIGN v4
   Wow Effect Design System
   ============================================ */

/* --- CSS Variables - Modern Islamic Theme --- */
:root {
    /* Primary Colors */
    --primary-deep: #0a4d3c;
    --primary-mid: #0d7a68;
    --primary-light: #14a885;
    --primary-fade: rgba(10, 77, 60, 0.1);

    /* Accent Gold */
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --accent-gold-dark: #b8960c;
    --accent-gold-glow: rgba(212, 175, 55, 0.3);

    /* Backgrounds */
    --bg-cream: #faf9f5;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-dark: rgba(10, 77, 60, 0.9);

    /* Text Colors */
    --text-primary: #1a2e29;
    --text-secondary: #4a635c;
    --text-muted: #7a8a85;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(10, 77, 60, 0.1);
    --shadow-lg: 0 20px 50px rgba(10, 77, 60, 0.15);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.2);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold) 50%, var(--accent-gold-light) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Typography */
    --arabic-font: 'Amiri', serif;
    --title-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Header Scroll */
    --header-scrolled-bg: rgba(255, 255, 255, 0.95);
    --header-scrolled-border: rgba(212, 175, 55, 0.15);
}

/* --- Dark Theme Variables --- */
body.dark-theme {
    /* Primary Colors */
    --primary-deep: #0d2818;
    --primary-mid: #0f3a24;
    --primary-light: #155a3d;
    --primary-fade: rgba(10, 77, 60, 0.2);

    /* Accent Gold */
    --accent-gold: #f4d03f;
    --accent-gold-light: #fde968;
    --accent-gold-dark: #c9a227;

    /* Backgrounds */
    --bg-cream: #0f1419;
    --bg-white: #1a1f26;
    --bg-glass: rgba(26, 31, 38, 0.9);
    --bg-glass-dark: rgba(15, 20, 25, 0.95);

    /* Header Scroll */
    --header-scrolled-bg: rgba(15, 20, 25, 0.95);
    --header-scrolled-border: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-primary: #e8f0ed;
    --text-secondary: #b0bfb9;
    --text-muted: #7a8a85;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.2);

    /* Gradients */
    --gradient-glass: linear-gradient(135deg, rgba(26, 31, 38, 0.95) 0%, rgba(26, 31, 38, 0.85) 100%);
}

/* --- Base Styles --- */
body.islamic-theme {
    background: var(--bg-cream);
    color: var(--text-primary);
    font-family: var(--body-font);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Islamic Pattern Background */
body.islamic-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(10, 77, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.03) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.5s ease;
}

/* Dark Theme Background Pattern */
body.dark-theme::before {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(21, 90, 61, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.02) 0%, transparent 30%);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered Animation Delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* --- Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

.loader-content i {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    color: var(--accent-gold);
    animation: float 2s ease-in-out infinite;
}

.loader-content .spinner-border {
    width: 50px;
    height: 50px;
    border-width: 3px;
}

.text-gold {
    color: var(--accent-gold) !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* --- Header & Navbar --- */
.main-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: var(--shadow-sm);
}

.main-header.scrolled {
    background: var(--header-scrolled-bg);
    border-bottom-color: var(--header-scrolled-border);
    box-shadow: var(--shadow-md);
}

.dark-theme .brand-text {
    color: var(--text-primary);
}

.navbar-brand .logo-box {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.4rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-normal);
}

.navbar-brand:hover .logo-box {
    transform: rotate(360deg);
}

.brand-text {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--primary-deep);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.btn-gold-outline {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: var(--transition-normal);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-gold-outline::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-gold-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-gold-outline:hover::before {
    left: 0;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(15deg);
}

.theme-toggle i {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle i.fa-star-and-crescent {
    opacity: 1;
    transform: scale(1);
}

.dark-theme .theme-toggle i.fa-star-and-crescent {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.theme-toggle i.fa-moon {
    position: absolute;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-theme .theme-toggle i.fa-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* --- Hero Section --- */
.premium-hero {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    color: white;
    position: relative;
    padding: 100px 0 120px;
    margin-bottom: 50px;
    overflow: hidden;
    border-radius: 0 0 80px 80px;
    box-shadow: var(--shadow-lg);
}

.premium-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.premium-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-cream), transparent);
    pointer-events: none;
}

.ornament-top,
.ornament-bottom {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.1;
    pointer-events: none;
}

.ornament-top {
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.ornament-bottom {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.fw-black {
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 3.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.lead-text {
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.95;
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Search Box --- */
.premium-search-box {
    background: var(--bg-white);
    height: 75px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px 0 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.premium-search-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition-normal);
}

.premium-search-box:focus-within {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-gold);
}

.premium-search-box:focus-within::before {
    opacity: 1;
}

.premium-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    padding: 0 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.premium-search-box input::placeholder {
    color: var(--text-muted);
}

.premium-search-box input:focus {
    outline: none;
}

.search-icon {
    color: var(--primary-deep);
    font-size: 1.3rem;
    transition: var(--transition-normal);
}

.premium-search-box:focus-within .search-icon {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.search-btn {
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-gold);
    font-size: 1.2rem;
}

.search-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

/* --- Section Titles --- */
.section-title {
    position: relative;
    margin-bottom: 60px;
}

.section-title i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: block;
    animation: float 4s ease-in-out infinite;
}

.section-title h2 {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--primary-deep);
    font-size: 2.5rem;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
}

.title-divider::before,
.title-divider::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    top: -2px;
}

.title-divider::before {
    left: -12px;
}

.title-divider::after {
    right: -12px;
}

/* --- Surah Cards --- */
.surah-card-v2 {
    background: var(--bg-white);
    border-radius: 28px;
    padding: 30px;
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.surah-card-v2:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.surah-card-v2::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 120px;
    height: 120px;
    background: var(--gradient-gold);
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: var(--transition-normal);
    transform: scale(0);
}

.surah-card-v2:hover::before {
    opacity: 0.1;
    transform: scale(3);
}

.surah-card-v2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.surah-card-v2:hover::after {
    transform: scaleX(1);
}

.surah-card-v2>* {
    position: relative;
    z-index: 1;
}

.s-num-badge {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition-normal);
}

.surah-card-v2:hover .s-num-badge {
    background: var(--accent-gold);
    color: white;
}

.s-name-arabic {
    font-family: var(--arabic-font);
    font-size: 2rem;
    color: var(--primary-deep);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.surah-card-v2:hover .s-name-arabic {
    color: var(--primary-mid);
}

/* --- Tabs Switcher --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.view-tab {
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--bg-white);
    border: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.view-tab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-mid);
}

.view-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.dark-theme .view-tab {
    background: var(--bg-white);
    color: var(--text-secondary);
}

.dark-theme .view-tab.active {
    color: white;
}

/* --- Juz Cards --- */
.juz-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.juz-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.juz-card .juz-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: var(--title-font);
    margin-bottom: 5px;
    opacity: 0.8;
}

.juz-card .juz-title {
    font-weight: 700;
    color: var(--primary-deep);
    font-size: 1.1rem;
}

.dark-theme .juz-card .juz-title {
    color: var(--text-primary);
}

.juz-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.juz-card:hover::after {
    transform: scaleX(1);
}

/* Surah label for ayahs in Juz view */
.surah-label-divider {
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
}

.surah-label-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.2;
    z-index: 0;
}

.surah-label-text {
    position: relative;
    background: var(--bg-cream);
    padding: 0 20px;
    color: var(--accent-gold);
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1;
}

/* --- Reader View --- */
.reader-header {
    background: var(--gradient-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: var(--shadow-md);
}

.btn-circle-grey {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    border: 2px solid rgba(0, 0, 0, 0.05);
    color: var(--primary-deep);
}

.btn-circle-grey:hover {
    background: var(--primary-deep);
    color: var(--accent-gold);
    transform: scale(1.1) rotate(-5deg);
    border-color: var(--accent-gold);
}

.arabic-font-header {
    font-family: var(--arabic-font);
    color: var(--primary-deep);
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ayah-box-v2 {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 45px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.ayah-box-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.ayah-box-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ayah-box-v2.active {
    border-color: var(--accent-gold);
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
}

.ayah-badge-gold {
    background: rgba(212, 175, 55, 0.15);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition-normal);
}

.ayah-badge-gold .text-gold {
    color: var(--primary-deep) !important;
}

.ayah-box-v2.active .ayah-badge-gold {
    background: var(--accent-gold);
    color: white;
}

.ayah-text-v2 {
    font-family: var(--arabic-font);
    font-size: 3.5rem;
    line-height: 2.3;
    text-align: right;
    direction: rtl;
    color: var(--text-primary);
    letter-spacing: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- Tajweed Colors v4 - Enhanced --- */
.tajweed-h {
    color: #9e9e9e !important;
    opacity: 0.6;
}

.tajweed-l {
    color: #9e9e9e !important;
    opacity: 0.6;
}

.tajweed-n {
    color: #e91e63 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

.tajweed-p {
    color: #f44336 !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

.tajweed-m {
    color: #d32f2f !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

.tajweed-q {
    color: #ff9800 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.tajweed-i {
    color: #2196f3 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.tajweed-g {
    color: #4caf50 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.tajweed-s {
    color: #9e9e9e !important;
    display: none !important;
}

/* --- Reciter Selection --- */
.reciter-item {
    transition: var(--transition-normal);
    background: var(--bg-white);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 20px;
}

.reciter-item:hover {
    background: var(--bg-cream);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.active-reciter {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: var(--accent-gold) !important;
    box-shadow: var(--shadow-gold);
}

.active-reciter .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.reciter-avatar {
    width: 55px;
    height: 55px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.reciter-item:hover .reciter-avatar {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.1);
}

.active-reciter .reciter-avatar {
    background: rgba(255, 255, 255, 0.2);
}

.cursor-pointer {
    cursor: pointer;
}

.transliteration-text {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-style: italic;
    opacity: 0.9;
    line-height: 1.6;
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--accent-gold);
}

/* --- Search Reciter Box --- */
.search-reciter-box input {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.search-reciter-box input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* --- Mini Player Bar --- */
.mini-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ayah-circle {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.3rem;
    box-shadow: var(--shadow-gold);
    animation: pulse-gold 2s ease infinite;
}

.main-play-circle {
    width: 65px;
    height: 65px;
    background: var(--gradient-primary);
    color: var(--accent-gold);
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-normal);
}

.main-play-circle:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.main-play-circle:active {
    transform: scale(0.95);
}

/* --- Footer --- */
.premium-footer {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.premium-footer i {
    animation: float 4s ease-in-out infinite;
}

.premium-footer .text-muted {
    color: #ffffff !important;
}

/* --- Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-deep);
}

/* Dark Theme Scrollbar */
body.dark-theme::-webkit-scrollbar-track {
    background: #1a1f26;
}

body.dark-theme::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0d2818 0%, #0f3a24 50%, #155a3d 100%);
}

body.dark-theme::-webkit-scrollbar-thumb:hover {
    background: #0d2818;
}

/* --- Selection Color --- */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

/* Dark Theme Selection */
body.dark-theme::selection {
    background: rgba(244, 208, 63, 0.3);
    color: var(--text-primary);
}

/* Dark Theme Modal --- */
body.dark-theme .modal-content {
    background: var(--bg-white);
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
}

body.dark-theme .modal-header {
    border-color: rgba(212, 175, 55, 0.1);
}

body.dark-theme .modal-body {
    color: var(--text-primary);
}

body.dark-theme .btn-close {
    filter: invert(1);
}

body.dark-theme .form-control {
    background: #252d34;
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
}

body.dark-theme .form-control:focus {
    background: #252d34;
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(244, 208, 63, 0.15);
}

body.dark-theme .form-control::placeholder {
    color: #7a8a85;
}

/* Dark Theme Input Field */
body.dark-theme input {
    background: #252d34 !important;
    color: var(--text-primary) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

body.dark-theme input:focus {
    border-color: var(--accent-gold) !important;
}

/* Dark Theme Spinner */
body.dark-theme .spinner-border {
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- Dark Theme Text Colors --- */
body.dark-theme .s-name-arabic {
    color: #ffffff !important;
}

body.dark-theme .fw-bold {
    color: #ffffff !important;
}

body.dark-theme .premium-footer p {
    color: #e8f0ed !important;
}

body.dark-theme .premium-footer .text-muted {
    color: #ffffff !important;
}

body.dark-theme .text-muted {
    color: #b0bfb9 !important;
}

body.dark-theme .small {
    color: #b0bfb9 !important;
}

body.dark-theme .surah-card-v2 {
    background: #1a1f26 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

body.dark-theme .surah-card-v2 .s-num-badge {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #f4d03f !important;
}

body.dark-theme .surah-card-v2 h5 {
    color: #ffffff !important;
}

body.dark-theme .surah-card-v2 p {
    color: #b0bfb9 !important;
}

body.dark-theme .premium-search-box {
    background: #252d34 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

body.dark-theme .premium-search-box input {
    background: #252d34 !important;
    color: #e8f0ed !important;
}

body.dark-theme .premium-search-box input::placeholder {
    color: #7a8a85 !important;
}

body.dark-theme .premium-search-box .search-icon {
    color: #f4d03f !important;
}

body.dark-theme .brand-text {
    color: #ffffff !important;
}

body.dark-theme .arabic-font-header {
    color: #ffffff !important;
}

body.dark-theme .btn-circle-grey {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

body.dark-theme .btn-circle-grey:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

body.dark-theme .btn-circle-grey i {
    color: #ffffff !important;
}

/* --- Basmalah Text Dark Theme --- */
body.dark-theme .basmalah-text {
    color: #ffffff !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .fw-black {
        font-size: 2.8rem;
    }

    .premium-hero {
        padding: 80px 0 100px;
        border-radius: 0 0 60px 60px;
    }

    .s-name-arabic {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .fw-black {
        font-size: 2.2rem;
    }

    .premium-hero {
        padding: 60px 0 80px;
        border-radius: 0 0 40px 40px;
    }

    .ayah-text-v2 {
        font-size: 2.2rem;
        line-height: 2;
    }

    .premium-search-box {
        height: 65px;
        padding: 0 12px 0 20px;
    }

    .search-btn {
        width: 48px;
        height: 48px;
    }

    .surah-card-v2 {
        padding: 25px;
    }

    .s-name-arabic {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .arabic-font-header {
        font-size: 2rem;
    }

    .mini-player-bar {
        height: 85px;
    }

    .main-play-circle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .fw-black {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .premium-search-box {
        height: 60px;
    }

    .surah-card-v2 {
        padding: 20px;
    }

    .ayah-box-v2 {
        padding: 30px;
    }

    .ayah-text-v2 {
        font-size: 1.8rem;
    }
}

/* --- Basmalah Decoration --- */
.basmalah-decoration {
    position: relative;
    padding: 30px;
    margin: 20px 0;
}

.basmalah-text {
    font-family: var(--arabic-font);
    font-size: 2.5rem;
    color: var(--primary-deep);
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding: 0 40px;
}

.basmalah-text::before,
.basmalah-text::after {
    content: "۞";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1.8rem;
}

.basmalah-text::before {
    left: 0;
}

.basmalah-text::after {
    right: 0;
}

/* --- Print Styles --- */
@media print {

    .main-header,
    .mini-player-bar,
    .premium-footer,
    .loader-wrapper {
        display: none !important;
    }

    .surah-card-v2,
    .ayah-box-v2 {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}