/* ===================================
   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;
}

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

/* ===================================
   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);
    transition: var(--transition-normal);
}

.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;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.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: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.user-avatar:hover {
    transform: scale(1.1);
    background: rgba(16, 185, 129, 0.1);
}

/* Dashhboard Verse Card */
/* Dashhboard Verse Card - Premium Redesign */
.verse-card {
    background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.3), transparent 40%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.3), transparent 40%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 25px -5px rgba(49, 46, 129, 0.4), 0 10px 10px -5px rgba(49, 46, 129, 0.3);
    cursor: default;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Decorative Pattern Overlay */
.verse-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    pointer-events: none;
}

.verse-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Islamic Geometric Pattern (Octagonal Star Motif) */
    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%3Cpath d='M30 0l15 15-15 15L15 15 30 0zm0 30l15 15-15 15-15-15 15-15zM0 30l15 15-15 15L0 60l-15-15 15-15zm60 0l15 15-15 15L60 60l-15-15 15-15z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3Cpath d='M30 15l7.5 7.5-7.5 7.5-7.5-7.5L30 15zm0 30l7.5 7.5-7.5 7.5-7.5-7.5L30 45zM15 30l7.5 7.5-7.5 7.5-7.5-7.5L15 30zm30 0l7.5 7.5-7.5 7.5-7.5-7.5L45 30z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    background-size: 60px 60px;
}

.verse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(49, 46, 129, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

.verse-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(to bottom, #fcd34d, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.3));
    line-height: 2;
    padding: 0 1rem;
}

.translation-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
}

.verse-ref {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.verse-ref:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* 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;
}

.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;
}


/* Info Cards Grid Update */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.info-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 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);
}

.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: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
    cursor: default;
}

.ramadan-card {
    cursor: pointer;
}

.ramadan-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.info-card-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* 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.5rem 1rem;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.shortcut-item span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.shortcut-item:hover .icon-circle {
    transform: translateY(-5px) scale(1.05);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.shortcut-item:hover span {
    color: var(--primary-light);
}

/* 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;
}

@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);
    padding: var(--spacing-xl) 0;
    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: var(--bg-primary);
    padding-top: 100px;
    /* Clear main navbar only */
    padding-bottom: 80px;
    animation: fadeIn 0.5s ease;
}

.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.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.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);
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    margin: 0;
}

.back-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateX(-5px);
    box-shadow: var(--shadow-glow);
}

.back-btn svg {
    transition: transform var(--transition-normal);
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

/* Feature Navigation */
.feature-bottom-nav {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-hint-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.back-btn-bottom {
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    font-size: 1.1rem;
}

.back-btn-bottom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

/* 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;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        background: #0f172a;
        flex-direction: column;
        padding: 80px 0 40px;
        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: 800px;
        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;
    }

    /* 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 {
        padding-bottom: 110px;
        text-align: center;
    }

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

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

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 500;
        transition: 0.3s;
        padding: 0.5rem;
        min-width: 60px;
    }

    .bottom-nav-item i {
        font-size: 1.25rem;
        transition: 0.3s;
    }

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

    .bottom-nav-item.active i {
        transform: translateY(-2px);
    }

    /* 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;
    }
}

/* Base style for mobile nav (hidden on desktop) */
.mobile-bottom-nav {
    display: none;
}