/* ═══════════════════════════════════════════════════════════════════
   UNIFIED ISLAMIC DESIGN SYSTEM — Single source of truth
   Deep forest green + warm gold + cream — premium & Islamic
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --primary:        #1c3a2e;   /* Deep Islamic forest green         */
    --primary-light:  #2d5a42;   /* Mid-green (gradients, hover)      */
    --primary-pale:   #3d7055;   /* Lighter green accent              */
    --accent:         #c9a84c;   /* Warm Islamic gold                 */
    --accent-hover:   #b89038;   /* Darker gold on hover              */
    --accent-pale:    rgba(201,168,76,.10); /* Soft gold tint          */
    --bg:             #f7f3ec;   /* Warm manuscript cream             */
    --surface:        #ffffff;
    --text:           #1a2820;   /* Dark green-black                  */
    --text-muted:     #6b7565;   /* Muted green-gray                  */
    --border:         #e0d8cc;   /* Warm border                       */
    --glass:          rgba(255,255,255,0.92);
    --shadow:         0 4px 20px rgba(28,58,46,.08);
    --shadow-hover:   0 12px 28px rgba(28,58,46,.14);
    --radius:         16px;
    --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
}

body {
    background-image: radial-gradient(#E8E0D5 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Header Improvements */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 224, 213, 0.6);
}

.nav-links {
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.2rem;
}

/* Card Improvements */
.card {
    border: 1px solid rgba(232, 224, 213, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Table Improvements */
.table {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table th {
    background: #F4F1ED;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tr:hover td {
    background: #FDFBF9;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    animation: fadeInUp 0.2s ease-out;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #F8F5F2;
    color: var(--primary);
}

.dropdown-content a::after {
    display: none;
    /* No underline for dropdown items */
}

/* Mobile Nav Enhancement */
@media (max-width: 768px) {
    .nav-links {
        background: var(--surface);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        padding: 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        z-index: 2000;
        gap: 0;
    }

    .logo {
        margin-bottom: 0;
    }

    .nav-wrapper {
        justify-content: center;
    }

    main {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    /* Hide desktop-only elements in mobile nav if needed */
    .nav-links a.desktop-only {
        display: none;
    }
}


[data-theme="dark"] {
    --primary: #1abc9c;
    --primary-light: #16a085;
    --accent: #f1c40f;
    --accent-hover: #f39c12;
    --bg: #1e272e;
    --surface: #2f3640;
    --text: #dcdde1;
    --text-muted: #a4b0be;
    --border: #353b48;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.islamic-font {
    font-family: 'Amiri', serif;
}

/* Layout & Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Components */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Form Elements */
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: var(--bg);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--bg);
    transform: rotate(15deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }
}

/* --- Ramadan 2026 Hero --- */
.hero-ramadan {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #fff;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-ramadan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.ramadan-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    min-width: 120px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #ffd700;
    /* Gold */
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(to right, #fbbf24, #d97706);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    color: #fff;
}

/* --- Featured Cities Grid --- */
.featured-section {
    padding: 4rem 1rem;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.city-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #fbbf24;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #059669, #fbbf24);
    opacity: 0;
    transition: opacity 0.3s;
}

.city-card:hover::before {
    opacity: 1;
}

.city-name {
    font-weight: 800;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.city-action {
    color: #059669;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: #f0fdf4;
    border-radius: 20px;
    transition: background 0.2s;
}

.city-card:hover .city-action {
    background: #dcfce7;
}


/* --- Spirituality Block Refinement --- */
.spirituality-block {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    border: 1px solid #f1f5f9;
    max-width: 1000px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
}

.spirituality-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, #fef3c7 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.content-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f8fafc;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s;
    font-size: 1rem;
}

.tab-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.tab-btn.active {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2);
}

.daily-card-content {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: #064e3b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.translation-text {
    font-size: 1.25rem;
    color: #334155;
    line-height: 1.7;
    font-family: 'Merriweather', serif;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.source-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-item {
        padding: 1rem;
        min-width: 70px;
        flex: 1 1 40%;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .city-card {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }

    .city-name {
        font-size: 1.25rem;
    }

    .spirituality-block {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }
}

/* --- Ramadan Intent Cards --- */
.ramadan-intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.intent-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
}

.intent-card:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    border-color: #ffd700;
}

/* --- Islamic Status Strip --- */
.islamic-status-strip {
    background: #047857;
    /* Matches bottom of hero gradient */
    color: #d1fae5;
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    font-weight: 500;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item i,
.status-item span {
    color: #fbbf24;
}

/* --- FAQ & Snippet Blocks --- */
.ramadan-faq-block {
    background: #fff;
    padding: 4rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.faq-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: #064e3b;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.faq-item p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* --- Internal Link Cluster --- */
.city-query-links {
    padding: 3rem 1rem;
    background: #f1f5f9;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.query-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.query-tag {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.query-tag:hover {
    border-color: #059669;
    color: #059669;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- Mobile Sticky Bar --- */
.sticky-iftar-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #064e3b;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-iftar-bar.visible {
    transform: translateY(0);
}

.sticky-countdown {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #ffd700;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .sticky-iftar-bar {
        display: none !important;
    }
}

/* --- SEO Patch: Daily Question Cards --- */
.daily-question-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-snap-type: x mandatory;
    margin-top: 2rem;
    padding-bottom: 2rem;
    /* Space for scrollbar if any */
}

.daily-question-cards::-webkit-scrollbar {
    height: 6px;
}

.daily-question-cards::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.question-card {
    min-width: 250px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #fbbf24;
}

.q-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.q-card-subtitle {
    font-size: 1.1rem;
    color: #059669;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .daily-question-cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow-x: visible;
    }

    .question-card {
        min-width: 0;
    }
}

/* --- Hero Query Intent Text --- */
.hero-query-intent-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Mini Next Holy Event Card --- */
.mini-event-card {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border: none;
}

.mini-event-card .q-card-title {
    color: #e9d5ff;
}

.mini-event-card .q-card-subtitle {
    color: #fff;
}

/* --- Intro Block --- */
.intro-block {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.intro-block h2 {
    font-family: 'Playfair Display', serif;
    color: #0f172a;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.intro-block p {
    color: #475569;
    /* --- Phase 49: Structural Overhaul --- */

    /* Split Hero */
    .hero-split-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-left-status {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    .hero-date-primary {
        font-size: 1.1rem;
        font-weight: 700;
        color: #ffd700;
    }

    .hero-date-secondary {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-bottom: 0.5rem;
    }

    .hero-fasting-status {
        display: inline-block;
        background: rgba(16, 185, 129, 0.2);
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        font-size: 0.85rem;
        border: 1px solid rgba(16, 185, 129, 0.4);
    }

    .hero-right-answer {
        text-align: center;
    }

    @media (min-width: 992px) {
        .hero-split-container {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            text-align: left;
        }

        .hero-left-status {
            text-align: left;
            min-width: 250px;
        }

        .hero-right-answer {
            text-align: right;
            flex: 1;
        }
    }

    /* Secondary Countdown Card */
    .countdown-secondary-section {
        position: relative;
        margin-top: -2rem;
        /* Overlap hero slightly */
        z-index: 20;
        margin-bottom: 2rem;
    }

    .iftar-countdown-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        text-align: center;
        border: 1px solid #e2e8f0;
    }

    .countdown-secondary-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        justify-items: center;
    }

    .cd-sec-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cd-sec-num {
        font-size: 2rem;
        font-weight: 800;
        color: #4f46e5;
        line-height: 1;
    }

    .cd-sec-label {
        font-size: 0.75rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 0.25rem;
    }

    /* Today Answer Cards */
    .today-answer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    @media (min-width: 768px) {
        .today-answer-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .today-answer-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .today-answer-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.2s;
    }

    .today-answer-card:hover {
        border-color: #fbbf24;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .ans-card-title {
        font-size: 1rem;
        color: #64748b;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .ans-card-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1e293b;
    }

    .ans-card-cta {
        margin-top: 1rem;
        font-size: 0.9rem;
        color: #059669;
        font-weight: 600;
        text-decoration: none;
    }

    /* City Card Badge */
    .city-time-badge {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: #d97706;
        background: #fef3c7;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-weight: 600;
    }

    /* Quick Search Horizontal Scroll */
    .query-tags {
        justify-content: flex-start;
        /* For scroll */
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .query-tag {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    @media (min-width: 768px) {
        .query-tags {
            justify-content: center;
            flex-wrap: wrap;
            overflow-x: visible;
            padding-bottom: 0;
        }
    }
}

/* --- Phase 50: Utility Transformation --- */

.utility-hero {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.util-city-name {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.util-time-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.util-time-item {
    font-size: 1.1rem;
}

.util-time-item strong {
    font-size: 1.4rem;
    color: #ffd700;
    display: block;
}

.util-countdown-container {
    margin-bottom: 2rem;
}

.util-countdown {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: #fff;
    line-height: 1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.util-countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.util-ramadan-status {
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Summary Cards (Small) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: -2rem;
    /* Overlap Hero */
    margin-bottom: 3rem;
    z-index: 20;
    position: relative;
}

@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.summary-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sum-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sum-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Simple City Grid */
.simple-city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .simple-city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .simple-city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.simple-city-link {
    display: block;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.simple-city-link:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Internal Links List */
.internal-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.internal-link-btn {
    padding: 0.5rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.internal-link-btn:hover {
    border-color: #059669;
    color: #059669;

    /* PREVIEW CARD (PHASE 51) */
    .preview-section {
        max-width: 600px;
        margin: 2rem auto 0;
        text-align: left;
    }

    .preview-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 1.5rem;
        color: #fff;
        animation: slideUp 0.5s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .prev-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .prev-city {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .prev-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .prev-item {
        background: rgba(0, 0, 0, 0.2);
        padding: 0.75rem;
        border-radius: 8px;
        text-align: center;
    }

    .prev-label {
        font-size: 0.8rem;
        opacity: 0.8;
        margin-bottom: 0.25rem;
    }

    .prev-val {
        font-size: 1.25rem;
        font-weight: 700;
        color: #ffd700;
    }

    .btn-pdf {
        display: block;
        width: 100%;
        text-align: center;
        background: #fff;
        color: #064e3b;
        font-weight: 700;
        padding: 0.75rem;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .btn-pdf:hover {
        background: #f0fdf4;
    }

    .global-hero-cta {
        display: inline-block;
        background: #f59e0b;
        color: #fff;
        padding: 0.75rem 2rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        margin-top: 2rem;
        transition: all 0.2s;
    }

    .global-hero-cta:hover {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        transform: translateY(-2px);
    }

    .city-select-wrapper {
        margin-top: 1.5rem;
        position: relative;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .city-select-input {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
        border: none;
        font-size: 1rem;
    }
}

/* --- DASHBOARD V3 UTILITIES (Restored) --- */
.utility-hero {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #fff;
    padding: 3rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.utility-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'1\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.util-city-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.util-time-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.util-time-item {
    font-size: 1.1rem;
    opacity: 0.9;
}

.util-time-item strong {
    display: block;
    font-size: 1.8rem;
    color: #ffd700;
}

.util-countdown-container {
    margin: 2rem 0;
}

.util-countdown {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.util-countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.util-ramadan-status {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.summary-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.sum-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.sum-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* Simple City Grid */
.simple-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.simple-city-link {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.2s;
}

.simple-city-link:hover {
    border-color: #ffd700;
    color: #064e3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Query Tags */
.query-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.query-tag {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.query-tag:hover {
    border-color: #cbd5e1;
    color: #334155;
    background: #f8fafc;
}

/* Mobile Adjustments */
@media(max-width: 768px) {
    .util-countdown {
        font-size: 2.5rem;
    }

    .util-time-row {
        gap: 1rem;
    }

    .util-time-item strong {
        font-size: 1.4rem;
    }
}

/* --- NEW HERO & 5-CARD DASHBOARD (User Request) --- */
.hero-v4 {
    background-color: #115e59;
    /* Teal-800 equivalent */
    color: #fff;
    padding: 4rem 1rem 6rem;
    text-align: center;
    position: relative;
    border-bottom: 10px solid #f8fafc;
    /* visual separation */
}

.hero-v4 h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-countdown {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
}

.hero-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-info-pill span {
    display: inline-block;
}

.hero-info-pill .divider {
    color: rgba(255, 255, 255, 0.4);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-white {
    background: #fff;
    color: #115e59;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.btn-hero-white:hover {
    transform: translateY(-2px);
    background: #f0fdfa;
}

.btn-hero-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* 5-Card Grid */
.dashboard-cards-container {
    max-width: 1200px;
    margin: -3rem auto 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.dash-icon-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dash-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #115e59;
}

.dash-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
    /* Amber-400 */
}

.dash-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hero-countdown {
        font-size: 3.5rem;
    }

    .hero-info-pill {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: 16px;
        font-size: 0.9rem;
    }

    .hero-info-pill .divider {
        display: none;
    }

    .dashboard-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 2rem;
    }

    .btn-hero-white,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
}


/* Hero Popular Cities Grid */
.hero-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-city-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-city-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Relocated Popular Cities Grid (Premium Transparent) */
.hero-city-grid {
    display: grid;
    /* Force 5 columns on desktop to ensure 2 rows of 5 for 10 items */
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    /* Increased gap */
    padding: 0;
    background: transparent;
    border: none;
    margin-top: 1rem;
    max-width: 1200px;
    /* Ensure strictly centered and constrained */
    margin-left: auto;
    margin-right: auto;
}

.hero-city-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem 1.2rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    gap: 0.75rem;
}

.hero-city-link i {
    color: #cbd5e1;
    font-size: 1rem;
}

.hero-city-link:hover {
    background: #fff;
    border-color: #115e59;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(17, 94, 89, 0.1), 0 4px 6px -2px rgba(17, 94, 89, 0.05);
    color: #0f766e;
}

.hero-city-link:hover i {
    color: #0f766e;
}

@media (max-width: 768px) {
    .hero-city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero-city-link {
        padding: 0.75rem;
        font-size: 0.85rem;
        justify-content: center;
    }
}
@media (max-width: 1024px) {
    .hero-city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .hero-city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}


/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item:last-child {
    border-bottom: none !important;
}

.faq-btn:hover {
    color: #115e59 !important;
}

.faq-btn:hover i {
    color: #115e59 !important;
}


/* Quick Links Hover */
.quick-link-item:hover {
    border-color: #115e59 !important;
    color: #115e59 !important;
    background: #f0fdf4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(17, 94, 89, 0.1);
}


/* Spiritual Card Hover */
.spirit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spirit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #fff !important;
}



/* ===========================================================================
   PREMIUM IMPROVEMENTS � added for level-up
   =========================================================================== */

/* Smooth scrolling (respects prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Selection color */
::selection { background: rgba(197,160,89,.25); color: var(--text); }

/* Better focus rings for accessibility */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* �� Page Read Progress Bar ������������������������������������������������ */
#read-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    z-index: 9999;
    transition: width .1s linear;
    pointer-events: none;
}

/* �� Card polish ����������������������������������������������������������� */
.card, .info-card {
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
}

/* �� Prayer grid highlight pulse animation ��������������������������������� */
@keyframes prayerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
    70%  { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.prayer-cell-active {
    animation: prayerPulse 2s ease-in-out 3;
}

/* �� Skeleton loading shimmer ���������������������������������������������� */
@keyframes shimmer {
    0%   { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}
.skeleton {
    background: linear-gradient(to right, #f0f0f0 8%, #e8e8e8 18%, #f0f0f0 33%);
    background-size: 936px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

/* �� Tooltip ��������������������������������������������������������������� */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: .35rem .7rem;
    border-radius: 6px;
    font-size: .78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* �� Smooth image loading �������������������������������������������������� */
img {
    transition: opacity .3s ease;
}
img.lazy-load { opacity: 0; }
img.lazy-load.loaded { opacity: 1; }

/* �� Guide view step card hover �������������������������������������������� */
.step-card:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateX(4px);
    transition: all .2s ease;
}

/* �� Blog card hover enhancement ������������������������������������������ */
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.1) !important;
}
.blog-card .img-wrapper img {
    transition: transform .4s ease;
}
.blog-card:hover .img-wrapper img {
    transform: scale(1.04);
}

/* �� CTA section ����������������������������������������������������������� */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4a3a 100%);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: #fff;
}

/* �� Mobile bottom padding (for sticky prayer bar) ������������������������� */
@media (max-width: 900px) {
    body {
        padding-bottom: 60px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   UNIFIED ISLAMIC THEME OVERRIDES
   All legacy hardcoded hex values replaced with CSS variable references.
   This section must stay at the END of the file to take precedence.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Body Background ─────────────────────────────────────────────────────────── */
body {
    background-color: var(--bg) !important;
    background-image: radial-gradient(var(--border) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    color: var(--text);
}

/* ── Hero Sections ───────────────────────────────────────────────────────────── */
.utility-hero,
section.utility-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}
.hero-v4,
section.hero-v4 {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2019 100%) !important;
    border-bottom: none !important;
}
.hero-ramadan,
.ramadan-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}
.util-time-item strong,
.countdown-number   { color: var(--accent) !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn             { background: var(--primary); }
.btn:hover       { background: var(--primary-light); }
.btn-hero-white  { color: var(--primary) !important; }
.btn-hero-white:hover { background: var(--accent-pale) !important; }
.btn-gold        { background: linear-gradient(to right, var(--accent), var(--accent-hover)) !important; }
.btn-gold:hover  { box-shadow: 0 6px 20px rgba(201,168,76,.35) !important; }
.tab-btn.active  { background: var(--primary) !important;
                   box-shadow: 0 4px 12px rgba(28,58,46,.25) !important; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card { border-color: var(--border); }
.card:hover,
.summary-card:hover    { border-color: var(--accent) !important; }
.dash-icon-card        { border-color: var(--border) !important;
                         background: var(--surface) !important; }
.dash-icon-card:hover  { border-color: var(--accent) !important;
                         box-shadow: 0 10px 20px rgba(201,168,76,.12) !important; }
.dash-icon             { color: var(--accent) !important; }
.dash-title            { color: var(--text) !important; }
.city-card:hover       { border-color: var(--accent) !important; }
.city-card::before     { background: linear-gradient(to right, var(--primary-light), var(--accent)) !important; }
.city-action           { color: var(--primary) !important;
                         background: var(--accent-pale) !important; }
.city-card:hover .city-action { background: rgba(201,168,76,.18) !important; }
.summary-card          { background: var(--surface) !important;
                         border-color: var(--border) !important;
                         box-shadow: var(--shadow) !important; }
.sum-label             { color: var(--text-muted) !important; }
.sum-value             { color: var(--text) !important; }

/* ── Chips / Quick Links ─────────────────────────────────────────────────────── */
.chip,
.query-tag,
.simple-city-link      { background: var(--surface) !important;
                         border-color: var(--border) !important;
                         color: var(--text-muted) !important; }
.chip:hover,
.query-tag:hover,
.simple-city-link:hover { border-color: var(--accent) !important;
                          color: var(--primary) !important;
                          background: var(--accent-pale) !important; }
.quick-link-item:hover  { border-color: var(--accent) !important;
                          color: var(--primary) !important;
                          background: var(--accent-pale) !important;
                          box-shadow: 0 4px 12px rgba(201,168,76,.12) !important; }

/* ── Spiritual Content Cards ─────────────────────────────────────────────────── */
.spirit-card.spirit-ayah,
.spirit-grid > div:nth-child(1).spirit-card {
    background: rgba(45,90,66,.05) !important;
    border-color: rgba(45,90,66,.15) !important;
}
.spirit-card.spirit-hadith,
.spirit-grid > div:nth-child(2).spirit-card {
    background: rgba(201,168,76,.07) !important;
    border-color: rgba(201,168,76,.2) !important;
}
/* Dua card — was cold blue, now warm cream */
.spirit-card.spirit-dua,
.spirit-grid > div:nth-child(3).spirit-card {
    background: rgba(247,243,236,.95) !important;
    border-color: var(--border) !important;
}
.spirit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
    background: var(--surface) !important;
}

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table th,
thead tr { background: var(--bg) !important; color: var(--text-muted) !important; }
.table tr:hover td { background: rgba(247,243,236,.8) !important; }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq-item { background: var(--surface) !important;
            border-color: var(--border) !important; }
.faq-item h3 { color: var(--primary) !important; }
.faq-item p  { color: var(--text-muted) !important; }
.faq-btn:hover,
.faq-btn:hover i { color: var(--accent) !important; }

/* ── Navigation City Links ────────────────────────────────────────────────────── */
.hero-city-link:hover  { border-color: var(--accent) !important;
                          color: var(--primary) !important;
                          box-shadow: 0 8px 16px rgba(201,168,76,.12) !important; }
.hero-city-link:hover i { color: var(--accent) !important; }
.hero-city-link i       { color: var(--border) !important; }

/* ── Source badges, Arabic text ──────────────────────────────────────────────── */
.source-badge { background: var(--accent-pale) !important;
                color: var(--primary) !important; }
.arabic-text  { color: var(--primary) !important; }

/* ── Status strip, CTA, Sections ────────────────────────────────────────────── */
.islamic-status-strip          { background: var(--primary-light) !important; }
.status-item i, .status-item span { color: var(--accent) !important; }
.cta-section                   { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important; }
.featured-section,
.ramadan-faq-block             { background: var(--bg) !important; }

/* ── Misc ─────────────────────────────────────────────────────────────────────── */
#read-progress     { background: linear-gradient(90deg, var(--accent), var(--accent-hover)) !important; }
:focus-visible     { outline-color: var(--accent) !important; }
[data-tooltip]::after { background: var(--primary) !important; }
.intent-card:hover { background: rgba(201,168,76,.18) !important;
                     border-color: var(--accent) !important; }
.ramadan-badge     { color: var(--accent) !important;
                     border-color: rgba(201,168,76,.4) !important; }
