/* Tailwind directives removed - Pure Vanilla CSS Architecture */

/* ===================================
   ⚡ PERFORMANCE OPTIMIZATIONS
   =================================== */

/* Optimize scroll performance */
* {
    -webkit-overflow-scrolling: touch;
}

/* Base Performance Utilities */
.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Content Visibility & Isolation for Repetitive Elements */
section,
.dashboard-card,
.feature-card,
.info-grid,
.shortcut-grid,
.ayah-card-premium,
.asmaul-card,
.hadith-card-premium {
    content-visibility: auto;
    contain: layout style paint;
    contain-intrinsic-size: auto 400px;
}

.ayah-card-premium {
    contain-intrinsic-size: auto 250px;
}

.asmaul-card {
    contain-intrinsic-size: auto 150px;
}

.info-grid {
    contain-intrinsic-size: auto 120px;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimize images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce repaints on scroll */
/* Premium Smooth Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity, filter;
    contain: layout style;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s ease-out;
}

/* Smart Navbar - Hidden State with Premium Animation */
.navbar.navbar-hidden {
    transform: translateY(-100%) scale(0.95) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    filter: blur(4px);
}

/* Optimize slow connections */
body.slow-connection * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}

body.slow-connection .blob {
    display: none !important;
}

/* ===================================
   ⚡ SKELETON LOADING & LAYOUT STABILITY
   =================================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: transparent !important;
    pointer-events: none;
}

/* Higher specificity for skeleton shimmer to ensure it's not overridden by specific card pseudo-elements */
body .skeleton::after {
    content: "" !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent) !important;
    animation: skeleton-shimmer 2s infinite linear !important;
    z-index: 100 !important;
}

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

    100% {
        transform: translateX(100%);
    }
}

@keyframes move-glow {
    0% {
        transform: translate(-5%, -5%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
        opacity: 0.8;
    }
}

/* Consolidated layout stability min-heights */

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #3b82f6;
    --secondary-dark: #2563eb;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);

    /* Typography */
    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Scheherazade New', 'Noto Naskh Arabic', 'Traditional Arabic', 'Arabic Typesetting', 'Geeza Pro', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Background Blobs */
.glass-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    transition: background 2s ease-in-out;
    /* Smooth background transition */
}

/* ===================================
   SINGLE DARK THEME (Simplified)
   =================================== */

/* Aplikasi menggunakan 1 tema gelap yang konsisten untuk memastikan
   kontras optimal dan pengalaman pengguna yang stabil */


.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 25s infinite alternate ease-in-out;
    will-change: transform, opacity;
    contain: strict;
    transform: translateZ(0);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #10b981;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #3b82f6;
    bottom: -150px;
    left: -150px;
    animation-duration: 35s;
    opacity: 0.3;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    top: 30%;
    left: 10%;
    animation-duration: 30s;
    opacity: 0.2;
}

.blob-4 {
    width: 300px;
    height: 300px;
    background: #f59e0b;
    bottom: 20%;
    right: 20%;
    animation-duration: 40s;
    opacity: 0.15;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1) rotate(120deg);
    }

    66% {
        transform: translate(-50px, 150px) scale(0.9) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* ===================================
   NAVIGATION
   =================================== */
/* Premium Smooth Navigation */
/* Navbar styles consolidated */


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-normal);
    position: relative;
    font-family: var(--font-primary);
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-journal {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.nav-link-journal::after {
    display: none;
}

.nav-link-journal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* ===================================
   DROPDOWN & SUB-MENU
   =================================== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    min-width: 240px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    list-style: none;
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-light);
    padding-left: 1.75rem;
}

.arrow-icon {
    font-size: 0.7rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 10001;
    /* Very high to stay above side drawer */
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ===================================
   PRAYER REMINDER BANNER
   =================================== */
.prayer-reminder-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    z-index: 2000;
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: slideDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.reminder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    padding: 0 var(--spacing-xl);
}

.reminder-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.reminder-text {
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    line-height: 1.4;
}

.reminder-close {
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.reminder-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Adjust navbar when banner is visible */
body.has-reminder .navbar {
    top: 48px;
    /* Height of the banner */
}

/* Adjust dashboard padding when banner is visible */
body.has-reminder .dashboard {
    padding-top: 148px;
    /* 100px base + 48px banner height */
}

@media (max-width: 768px) {
    .prayer-reminder-banner {
        padding: 0.5rem 0;
    }

    .reminder-text {
        font-size: 0.8125rem;
    }

    body.has-reminder .navbar {
        top: 64px;
        /* Slightly taller on mobile due to wrapping possibly */
    }

    body.has-reminder .dashboard {
        padding-top: 194px;
        /* 130px base + 64px banner height */
    }

    body.has-reminder .feature-page {
        padding-top: 164px;
        /* 100px base + 64px banner */
    }

    body.has-reminder .feature-nav-header {
        top: 134px;
        /* 70px navbar + 64px banner */
    }
}

/* Feature Page specific adjustments for Banner (Desktop) */
body.has-reminder .feature-page {
    padding-top: 148px;
    /* 100px base + 48px banner */
}

body.has-reminder .feature-nav-header {
    top: 118px;
    /* 70px navbar + 48px banner */
}

/* ===================================
   DASHBOARD SECTION (NATIVE APP FEEL)
   =================================== */
.dashboard {
    padding-top: 100px;
    padding-bottom: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 80px;
    /* Layout stability */
}

.greeting-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.current-date {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.user-avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: pulse-avatar 3s infinite;
}

@keyframes pulse-avatar {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Dashhboard Verse Card - Consolidated Premium Styles */
.verse-card {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem 2.5rem;
    border-radius: 2rem;
    cursor: default;
    background: radial-gradient(circle at top left, #2c3e50, #000000);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.verse-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    animation: move-glow 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.verse-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.03), transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.verse-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(217, 119, 6, 0.4));
    line-height: 1.8;
}

.translation-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    letter-spacing: 0.02em;
}

.verse-ref {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-family: 'Anton', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* --- Unified Premium Verse Buttons (ZERO TOLERANCE UNIFORMITY) --- */
.verse-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.verse-btn-premium {
    width: 64px !important;
    height: 64px !important;
    border-radius: 20px !important;
    /* Premium Squircle */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.verse-btn-premium i {
    font-size: 1.75rem !important;
    transition: all 0.3s ease !important;
}

/* Modifier Logic */
.verse-btn-premium.btn-share:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2) !important;
}

.verse-btn-premium.btn-audio:hover,
.verse-btn-premium.btn-audio.playing {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2) !important;
}

.verse-btn-premium.btn-audio.playing {
    animation: world-class-pulse 2s infinite !important;
    background: rgba(59, 130, 246, 0.25) !important;
    color: #fff !important;
}

.verse-btn-premium.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-5px) rotate(180deg) scale(1.05) !important;
}

@keyframes world-class-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Consolidated with Verse Card section above */

/* Premium Journal Card */
.journal-premium-card {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 180px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.journal-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.5);
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    color: white;
}

.journal-card-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.journal-icon-large {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.journal-text-content {
    flex: 1;
}

.journal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    padding-right: 4.5rem;
    /* Only pad the title to avoid badge, allow desc to be full width */
}

.journal-desc {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    max-width: 450px;
    color: #e9d5ff;
}

.journal-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fcd34d;
}

.journal-action span {
    text-decoration: none;
}


/* Dashboard Widgets Distribution */
.dashboard-widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Info Cards Grid Update */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    min-height: 100px;
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

@media (min-width: 1024px) {
    .dashboard-widgets-grid {
        grid-template-columns: 380px 1fr;
        align-items: stretch;
        /* Stretches left and right columns to match */
    }

    .dashboard-widgets-grid .info-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        /* Ensures both cards share the height equally */
        height: 100%;
        margin-bottom: 0;
    }

    .dashboard-widgets-grid .info-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #quran-goal-container {
        height: 100%;
        display: flex;
    }

    /* Ensure the actual card inside the container fills the height */
    #quran-goal-container .quran-goal-premium-wrap {
        height: 100%;
        width: 100%;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #quran-goal-container .quran-goal-content {
        flex: 1;
        display: flex;
        align-items: center;
    }
}


.info-card-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* Dashboard Card Baseline */
.main-card-wrapper {
    margin-bottom: 2rem;
}

.dashboard-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Responsive adjustment for Arabic text */
@media (max-width: 640px) {
    .arabic-text {
        font-size: 2rem;
    }
}

.info-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.ramadan-card {
    border-left: 4px solid #fbbf24;
}

.ramadan-card .info-card-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.next-prayer-mini-card {
    border-left: 4px solid #10b981;
}

.next-prayer-mini-card .info-card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.info-card-icon {
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-card-content {
    display: flex;
    flex-direction: column;
}

.info-card-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
}

.info-card-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

/* Animations for more premium feel */
@keyframes widgetPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.next-prayer-mini-card .info-card-icon {
    position: relative;
}

.next-prayer-mini-card .info-card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: widgetPulse 2s infinite;
}

@keyframes ramadanPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.ramadan-card .info-card-icon {
    position: relative;
}

.ramadan-card .info-card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
    animation: ramadanPulse 2s infinite;
}

/* [CLEANUP] Old Friday Banner styles removed to prevent conflicts */

/* -------------------------------------------------------------------------- */
/* GAMIFICATION & STREAK STYLING                                              */
/* -------------------------------------------------------------------------- */

.streak-mini-card {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.streak-mini-card:hover {
    transform: translateY(-2px);
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.streak-info {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.streak-fire {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: firePulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.streak-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.streak-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Fire Pulse Animation */
@keyframes firePulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.7));
    }
}

/* Streak Background Glow */
.streak-mini-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 640px) {
    .streak-mini-card {
        padding: 10px 16px;
        margin-bottom: 20px;
    }

    .streak-fire {
        font-size: 1.5rem;
    }

    .streak-count {
        font-size: 1.25rem;
    }

    .streak-label {
        font-size: 0.8125rem;
    }
}


/* Responsive Friday Banner */
/* [CLEANUP] Old Friday Responsive styles removed */

/* Quick Access Grid */
.quick-access {
    margin-top: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    padding: 1.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shortcut-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.shortcut-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.shortcut-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: 0.3s;
    letter-spacing: 0.3px;
}

.shortcut-item:hover span {
    color: white;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-item:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
}

/* Feature Specific Hover Colors & Glows */
.shortcut-item.prayer-tile:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.shortcut-item.quran-tile:hover {
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

.shortcut-item.qibla-tile:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.shortcut-item.dhikr-tile:hover {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.shortcut-item.duas-tile:hover {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.shortcut-item.calendar-tile:hover {
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
}

.shortcut-item.zakat-tile:hover {
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.4);
}

.shortcut-item.hadith-tile:hover {
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.shortcut-item.asmaul-tile:hover {
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
}

.shortcut-item.quiz-tile:hover {
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
}

.shortcut-item.live-tile:hover {
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}


/* Icon specific colors for variety if needed */
.prayer-icon {
    color: #10b981;
}

.quran-icon {
    color: #06b6d4;
}

.qibla-icon {
    color: #3b82f6;
}

.dhikr-icon {
    color: #8b5cf6;
}

.duas-icon {
    color: #f59e0b;
}

.calendar-icon {
    color: #ec4899;
}

.zakat-icon {
    color: #14b8a6;
}

.hadith-icon {
    color: #3b82f6;
}

.asmaul-icon {
    color: #a855f7;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

/* Live Icon - Special Pulsing Animation */
.live-icon {
    animation: livePulse 2s ease-in-out infinite;
    position: relative;
}

.live-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    opacity: 0.3;
    animation: livePulseRing 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.4);
    }
}

@keyframes livePulseRing {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Enhanced hover effect for live icon */
.shortcut-item:hover .live-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.5);
    animation: livePulse 1s ease-in-out infinite;
}

@media (max-width: 640px) {
    .dashboard {
        padding-top: 130px;
    }

    .dash-countdown {
        font-size: 2.75rem;
    }

    .shortcut-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem 0.75rem;
    }

    .icon-circle {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

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

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.3);
}

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

.feature-icon {
    margin-bottom: var(--spacing-md);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.feature-btn {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
}

.feature-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: var(--spacing-2xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-description strong {
    color: var(--primary-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.about-visual {
    display: grid;
    gap: var(--spacing-md);
}

.about-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
}

.about-card:hover {
    transform: translateX(10px);
    border-color: rgba(16, 185, 129, 0.3);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-tagline {
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--spacing-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* ===================================
   FEATURE PAGE (Full Page View)
   =================================== */
.feature-page {
    min-height: 100vh;
    background: transparent;
    padding-top: 100px;
    padding-bottom: 80px;
    animation: fadeIn 0.5s ease;
    width: 100%;
    display: block;
    overflow: visible !important;
    contain: none !important;
}

/* Universal Premium Glassmorphism Overrides */
.feature-modal,
.ayah-card-premium,
.asmaul-card,
.dhikr-item,
.dhikr-suggestions,
.hadith-card-premium,
.hadith-glass-controls,
.hadith-initial-state,
.duas-category,
.doa-card,
.stat-card,
.quiz-card,
.zakat-card,
.about-card,
.journal-entry-card,
.premium-quote-card,
.premium-stat-card,
.ai-result-card,
.ai-input-container,
.search-result-card,
.prayer-card-premium,
.adhan-card,
.preset-btn,
.dhikr-btn-secondary,
.premium-select,
.surah-card-mini,
.quick-access-box {
    background: rgba(255, 255, 255, 0.03) !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.quran-controls-panel {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    transform: none !important;
    will-change: auto !important;
}

.feature-modal {
    padding: 3rem 4rem !important;
    width: 100% !important;
    border-radius: 2.5rem !important;
}

@media (max-width: 600px) {

    .feature-modal,
    .hadith-premium-modal,
    .journal-modal,
    .ai-search-modal,
    .asmaul-premium-modal,
    .prayer-premium-modal,
    .quran-premium-modal {
        padding: 0.75rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) and (min-width: 601px) {
    .feature-modal {
        padding: 1.5rem 1.25rem !important;
    }
}

.quick-access-box {
    padding: 2.5rem !important;
    border-radius: 1.5rem;
}

@media (max-width: 768px) {
    .quick-access-box {
        padding: 1.5rem !important;
    }
}

.feature-modal:hover,
.quran-controls-panel:hover,
.ayah-card-premium:hover,
.asmaul-card:hover,
.dhikr-item:hover,
.hadith-card:hover,
.doa-card:hover,
.stat-card:hover,
.quiz-card:hover,
.zakat-card:hover,
.preset-btn:hover,
.dhikr-btn-secondary:hover,
.surah-card-mini:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.feature-page .container {
    max-width: 1200px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0 var(--spacing-md);
    display: block !important;
    box-sizing: border-box;
    overflow: visible !important;
    contain: none !important;
}

#featurePageBody {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible !important;
}

.feature-nav-header {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    /* Position below the fixed navbar */
    z-index: 1001;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-nav-header .container {
    display: flex;
    justify-content: flex-start;
    padding: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Update Modal Content styles for Page context if needed */
.feature-modal {
    padding: 0;
}

.modal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 10;
        margin-left: 0.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        background: #0f172a;
        flex-direction: column;
        padding: 80px 0 80px;
        gap: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 1.25rem 1.5rem !important;
        display: flex;
        align-items: center;
        width: 100%;
        color: white !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: transparent;
        margin-bottom: 0;
    }

    .nav-link.active {
        background: rgba(16, 185, 129, 0.1);
        color: var(--primary-light);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link-journal {
        margin-top: 1rem;
        text-align: center;
        padding: 1.5rem !important;
    }

    /* Premium Mobile Adjustments */
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding-top: var(--spacing-md);
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-ramadan-badge {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .timer-num {
        font-size: 1.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    /* Mobile Dropdown Refinements */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #1e293b;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        width: 100%;
        display: block;
    }

    .nav-item-dropdown.active .dropdown-menu {
        max-height: 2000px;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .dropdown-menu li a {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
        border: none;
        margin-bottom: 0;
        border-radius: 0;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .dropdown-menu li a:hover {
        padding-left: 1.75rem;
        border-left-color: var(--primary);
        background: rgba(16, 185, 129, 0.08);
        color: var(--primary-light);
    }

    .nav-item-dropdown.active .arrow-icon {
        transform: rotate(180deg);
    }

    .feature-card {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }

    .feature-icon {
        margin: 0;
        margin-bottom: 0.5rem;
    }

    .feature-info {
        width: 100%;
    }

    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .feature-btn {
        width: 100%;
        margin: 0;
        padding: 1rem;
    }

    .shortcut-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .shortcut-item {
        padding: 1rem 0.5rem;
        border-radius: 1.25rem;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .shortcut-item span {
        font-size: 0.75rem;
    }

    /* Modal Bottom Sheet on Mobile */
    .modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        max-height: 90vh;
        border-radius: 2rem 2rem 0 0;
        padding: 2rem 1.5rem 3rem;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
    }

    .modal.active .modal-content {
        transform: translateY(0);
    }

    .modal-close {
        top: 1rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
    }

    .modal-title {
        font-size: 2rem;
    }

    .feature-page {
        padding-top: 120px;
        padding-bottom: 100px;
        /* Space for bottom nav */
    }

    .feature-nav-header {
        margin-bottom: 1rem;
        padding: 0.75rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .about-card:hover {
        transform: none;
    }

    .footer {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Interactive refinements */
    .feature-card:active {
        transform: scale(0.96);
        background: rgba(16, 185, 129, 0.1);
    }

    /* Interactive refinements */
    .feature-card:active {
        transform: scale(0.96);
        background: rgba(16, 185, 129, 0.1);
    }

    .btn-premium-save:active,
    .btn-premium-history:active,
    .btn-premium-nav-p:active {
        transform: scale(0.95);
    }

    /* Better Hero for Mobile */
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1.15rem;
    }

    /* Grid refinements */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Feature Specific Overrides for Mobile */
    .zakat-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .zakat-tab {
        flex: 0 0 auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .hadith-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .surah-selector select {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .quran-container {
        padding: 0;
    }

    .ramadan-prep-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ramadan-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .ramadan-tab {
        flex: 0 0 auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .journal-stats-premium {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .journal-actions-premium {
        flex-direction: column;
        gap: 0.75rem;
    }

    .journal-tab-p {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Modal spacing */
    .modal-content {
        padding-top: 3.5rem;
    }

    /* Global Cut-off Protection */
    .feature-modal,
    .journal-container-premium,
    .ramadan-container,
    .zakat-container,
    .hadith-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .premium-check,
    .check-item,
    .history-card-premium {
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .premium-check span,
    .check-item span {
        flex: 1;
        min-width: 0;
    }

    /* Ramadan Specific Mobile Fix */
    .countdown-grid {
        gap: 0.75rem !important;
        flex-wrap: wrap;
    }

    .countdown-num {
        font-size: 1.75rem !important;
    }

    .countdown-label {
        font-size: 0.7rem !important;
    }

    .countdown-item {
        min-width: 60px;
    }

    /* Journal Specific Mobile Fix */
    .journal-tabs-premium {
        flex-wrap: wrap;
        gap: 0.25rem !important;
    }

    .journal-tab-p {
        flex: 1 1 auto;
        min-width: 80px;
        padding: 0.6rem 0.4rem !important;
        font-size: 0.75rem !important;
    }

    .premium-stat-card {
        padding: 1rem 0.5rem !important;
    }

    .premium-stat-card .stat-value {
        font-size: 1.5rem !important;
    }

    .premium-stat-card .stat-label {
        font-size: 0.65rem !important;
    }

    .premium-quote-card {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .premium-quote-card p {
        font-size: 0.95rem !important;
    }

    .journal-stats-premium {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }

    /* History Refinements */
    .history-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .history-nav-bottom-p {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .btn-premium-nav-p {
        width: 100% !important;
        justify-content: center;
    }

    .tag-container-p {
        flex-wrap: wrap !important;
    }

    /* Hide hero floating cards on mobile to prevent overflow */
    .floating-card {
        display: none !important;
    }

    .hero-visual {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Prevent wide text in reflection */
    .ref-text {
        word-break: break-word;
        white-space: pre-wrap !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .floating-card {
        padding: var(--spacing-sm);
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-value {
        font-size: 1rem;
    }
}

/* ===================================
   PREMIUM STICKY BOTTOM NAVIGATION
   =================================== */
.premium-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 320px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);

    /* Transition for Hiding */
    /* Premium Smooth Transition - Dramatic & Cinematic */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s ease-out;
    will-change: transform, opacity, filter;
}

/* Hidden Class with Premium Animation */
.premium-bottom-nav.nav-hidden {
    transform: translateX(-50%) translateY(150%) scale(0.95) !important;
    opacity: 0;
    pointer-events: none;
    filter: blur(4px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    min-width: 80px;
    position: relative;
    border-radius: 1rem;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item:hover {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
}

.bottom-nav-item:hover i {
    transform: translateY(-5px);
}

.bottom-nav-item.active {
    color: var(--primary-light);
}

.bottom-nav-item.active i {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

/* Active Indicator Dot */
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 5px;
    height: 5px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light);
}

/* Adjustments for different screens */
@media (max-width: 768px) {
    .premium-bottom-nav {
        bottom: 1rem;
        min-width: calc(100% - 2rem);
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .bottom-nav-item {
        min-width: 70px;
        font-size: 0.65rem;
    }

    .bottom-nav-item i {
        font-size: 1.35rem;
    }
}

/* Body shift to accommodate nav */
body {
    padding-bottom: 0;
}

#main-content {
    padding-bottom: 0;
}

.footer {
    margin-bottom: 0;
    padding: 2rem 0 5rem 0;
}

.feature-page {
    padding-bottom: 110px !important;
}

/* ===================================
   QUIZ GAMIFICATION
   =================================== */
.banner-rank {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-icon-p {
    font-size: 1.2rem;
    display: flex;
}

/* ===================================
   QURAN TOAST NOTIFICATIONS
   =================================== */
.quran-toast-premium {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.quran-toast-premium.showing {
    bottom: 2rem;
    opacity: 1;
}

.quran-toast-premium.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.quran-toast-premium.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border-color: rgba(252, 165, 165, 0.3);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
}

@media (max-width: 640px) {
    .quran-toast-premium {
        min-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   PAGE TRANSITION & ANTI-FLICKER
   =================================== */
.is-feature-route #main-content,
.is-feature-route .footer {
    display: none !important;
}

.is-feature-route #featurePage {
    display: block !important;
}

/* Quran Last Read Card */
.last-read-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.last-read-card:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.last-read-surah {
    display: block;
    font-weight: 800;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.last-read-info {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* Header Search Button */
.header-search-btn-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.header-search-btn-premium:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    border-color: transparent;
}

@media (max-width: 768px) {
    .header-search-btn-premium {
        margin-left: auto;
        margin-right: 0.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* GAMIFICATION TOAST NOTIFICATION                                            */
/* -------------------------------------------------------------------------- */

.gamification-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.gamification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    color: #10b981;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.toast-message {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .gamification-toast {
        bottom: 90px;
        padding: 12px 18px;
    }

    .toast-icon {
        font-size: 1.5rem;
    }

    .toast-message {
        font-size: 0.875rem;
    }
}

/* Streak Info Button & Layout */
.streak-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-info-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
    font-size: 0.9rem;
}

.streak-info-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Streak Explanation Modal Overlay */
.streak-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.streak-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.streak-modal {
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.streak-overlay.show .streak-modal {
    transform: translateY(0);
}

.streak-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.streak-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.streak-modal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.streak-explanation-list {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.streak-expl-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.streak-expl-icon {
    color: #10b981;
    font-size: 1.25rem;
    margin-top: 2px;
}

.streak-expl-content {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.streak-btn-close {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.streak-btn-close:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Enhanced Friday Banner Styles */
/* 
============================================================
PREMIUM FRIDAY MODE - REDESIGNED 2026
============================================================ 
*/

.friday-special-banner {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 28px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.friday-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.friday-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    /* Important for preventing overlap */
}

.friday-top-info {
    flex: 1;
    min-width: 280px;
}

.friday-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.friday-badge-main {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.kahf-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.kahf-status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.kahf-status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.friday-banner-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.friday-actions-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.btn-friday-main {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border: none;
    padding: 14px 28px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-friday-main:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(16, 185, 129, 0.5);
}

.friday-sub-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.btn-friday-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white !important;
    padding: 0 20px;
    height: 52px;
    min-width: 52px;
    width: auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-friday-secondary:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: translateY(-3px) rotate(5deg);
}

/* Modal Content Styling (Consistent and Premium) */
.friday-modal-view {
    padding: 5px;
}

.f-modal-header {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.f-modal-header i {
    color: #10b981;
}

.f-hadith-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 24px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.f-hadith-text {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.f-hadith-source {
    color: #10b981;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f-deed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 2.5rem;
}

.f-deed-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.f-deed-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: scale(1.02) translateX(5px);
}

.f-deed-item i {
    font-size: 1.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.f-deed-item span {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.f-sholawat-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sholawat-title {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.sholawat-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    color: white;
    line-height: 1.6;
    direction: rtl;
}

@media (max-width: 900px) {
    .friday-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .friday-top-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .friday-badge-row {
        justify-content: center;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .friday-banner-title {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 640px) {

    .friday-special-banner {
        padding: 1.5rem;
    }

    .friday-banner-title {
        font-size: 1.25rem;
    }

    .friday-actions-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn-friday-main {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        order: 1;
    }

    .friday-sub-actions {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
        order: 2;
    }

    .btn-friday-secondary {
        flex: 1;
        width: auto;
    }
}

/* Kahf Finish Button in Quran View */
.kahf-special-completion {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-kahf-finish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-kahf-finish:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.5);
}

/* Global Islamic Search Overlay Styles */
.islamic-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    /* Controlled via JS */
    flex-direction: column;
    align-items: center;
    padding: 10vh 2rem 2rem;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-wrapper {
    width: 100%;
    max-width: 800px;
    position: relative;
    margin-bottom: 3rem;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-icon-overlay {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.75rem;
    color: var(--primary);
}

#globalSearchInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 1.5rem 4rem;
    color: white;
    font-size: 1.5rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#globalSearchInput:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
}

.search-results-container {
    width: 100%;
    max-width: 800px;
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom Scrollbar for search results */
.search-results-container::-webkit-scrollbar {
    width: 6px;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: var(--primary);
}

.search-result-type {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: 1px;
}

.search-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.search-result-snippet {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .islamic-search-overlay {
        padding-top: 5vh;
    }

    #globalSearchInput {
        font-size: 1.1rem;
        padding: 1.25rem 3.5rem;
    }
}

.btn-kahf-finish.completed {
    background: #10b981;
    opacity: 0.9;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Header Search Button */
.header-search-btn-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 1.5rem;
    /* Gap from menu */
    flex-shrink: 0;
}

.header-search-btn-premium:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.header-search-btn-premium i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .header-search-btn-premium {
        width: 38px;
        height: 38px;
        margin-left: auto;
        order: 2;
        /* Ensure it stays right of logo but maybe left/right of toggle */
    }
}

/* Premium Share Button Style */
.share-btn-p {
    background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.share-btn-p:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 94, 98, 0.4);
}

.share-btn-p::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
    opacity: 0;
}

.share-btn-p:hover::after {
    left: 120%;
    opacity: 1;
}

/* Spiritual Mood Tracker Styles */
.mood-tracker-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mood-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-align: center;
}

.mood-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.mood-pill-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.6rem 1rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.mood-pill-item:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.mood-pill-item:active {
    transform: scale(0.95);
}

.mood-emoji {
    font-size: 1.1rem;
}

/* Mood Icon (Phosphor Icons) */
.mood-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.mood-pill-item:hover .mood-icon {
    transform: scale(1.1);
}

/* Mood Result Modal */
.mood-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    /* Change to start for better scrolling */
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    /* Allow overlay to scroll */
}

.mood-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mood-result-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    border-radius: 2.5rem;
    padding: 2.5rem;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: auto;
    /* Center when content is short */
}

/* Custom premium scrollbar for the modal */
.mood-overlay::-webkit-scrollbar {
    width: 6px;
}

.mood-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.mood-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.mood-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.3);
}

.mood-result-card.active {
    transform: translateY(0) scale(1);
}

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

.mood-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin: 0 auto 1.5rem;
}

.mood-result-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.mood-result-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mood-content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mood-verse-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.75rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mood-box-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.mood-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 2rem;
    line-height: 1.8;
    color: white;
    text-align: right;
    margin-bottom: 1.25rem;
}

.mood-translation {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.mood-ref {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
}

.mood-action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mood-action-box:hover {
    background: rgba(16, 185, 129, 0.18);
    transform: translateX(8px);
    border-color: rgba(16, 185, 129, 0.4);
}

.mood-dua-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-top: 0.25rem;
}

.mood-close-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.mood-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Hifdz Mode (Memorization Assistant) Styles */
.hifdz-mode-panel {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-top: 1rem;
}

.hifdz-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.repetition-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
}

.hifdz-sub-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mini-select {
    width: auto !important;
    padding: 0.4rem 2rem 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.hifdz-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hifdz-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hifdz-btn.active {
    background: #4f46e5;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Dynamic Widget Styles */
.dynamic-widget-wrapper {
    margin-bottom: 2rem;
}

.dynamic-widget-card {
    position: relative;
    border-radius: 2rem;
    padding: 2rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dynamic-widget-card:hover {
    transform: translateY(-5px);
}

.widget-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-43c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm20-7c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-8-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-20-11c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm30 50c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-38-12c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm18-6c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm11 44c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.widget-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.widget-text {
    flex: 1;
}

.widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.widget-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 400px;
}

.widget-action-btn {
    background: white;
    color: black;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.widget-action-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.widget-action-btn i {
    transition: transform 0.3s;
}

.widget-action-btn:hover i {
    transform: translateX(5px);
}

.widget-visual {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.widget-large-icon {
    font-size: 6rem;
    color: white;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    animation: floating-icon 3s ease-in-out infinite;
}

@keyframes floating-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@media (max-width: 640px) {
    .widget-content {
        flex-direction: column-reverse;
        align-items: flex-start;
        text-align: left;
    }

    .widget-visual {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

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

    .widget-large-icon {
        font-size: 4rem;
    }
}

/* Hide Text Logic */
.hide-arabic .arabic-text-premium,
.hide-arabic .bismillah-wrap {
    filter: blur(10px);
    opacity: 0.3;
    user-select: none;
    transition: all 0.5s ease;
}

.hide-arabic .arabic-text-premium:hover,
.hide-arabic .bismillah-wrap:hover {
    filter: blur(0);
    opacity: 1;
}

.hide-arabic .latin-text-premium,
.hide-arabic .translation-text-premium {
    opacity: 0.05;
    filter: blur(4px);
    transition: all 0.5s ease;
}

.hide-arabic .latin-text-premium:hover,
.hide-arabic .translation-text-premium:hover {
    opacity: 1;
    filter: blur(0);
}