/* ============================================
   MuslimFit Pro - Complete Web App Styles
   Exact Match to Mobile App Design
   ============================================ */

:root {
    /* Primary Colors */
    --primary-main: #0D7C66;
    --primary-dark: #0A5C4F;
    --primary-deep: #0D4A3F;
    --primary-light: #E8F5F1;

    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-gold-dark: #A38750;
    --accent-gold-light: #F5F0E6;

    /* Backgrounds */
    --bg-main: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-splash: #347C56;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-white: #FFFFFF;

    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;
}

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

body {
    font-family: var(--font-inter);
    overflow-x: hidden;
    background: #F5F5F5;
    color: var(--text-primary);
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-splash);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.splash-screen.active {
    opacity: 1;
    visibility: visible;
}

.islamic-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: splashFadeIn 0.8s ease-out;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.icon-container {
    background: linear-gradient(135deg, #1D3D52, #102331);
    width: 120px;
    height: 120px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-svg {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.brand-text {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text .white {
    color: var(--text-white);
}

.brand-text .gold {
    color: var(--accent-gold);
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.app-container.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    background: linear-gradient(135deg, #083D32, #0D5C4C, #137563);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-white);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 90px;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: #9E9E9E;
    font-size: 12px;
    flex: 1;
}

.nav-btn svg {
    stroke: currentColor;
}

.nav-btn.active {
    color: var(--bg-dark);
}

.nav-btn.active svg {
    stroke: var(--accent-gold);
}

.nav-btn.nav-center {
    margin-top: -20px;
}

.center-btn-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(13, 74, 63, 0.4);
    border: 4px solid var(--text-white);
}

.center-btn-icon svg {
    fill: var(--accent-gold);
    stroke: none;
}

/* Quran Player */
.player-card {
    background: linear-gradient(135deg, #0D7C66, #0A5C4F);
    border-radius: 16px;
    padding: 20px;
    color: white;
}
.reciter-card {
    width: 90px;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.reciter-card.active {
    border-color: var(--accent-gold);
    background: rgba(212,175,55,0.08);
}
.reciter-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.audio-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    outline: none;
}
.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
}
/* Ramadan Calendar Grid */
.ramadan-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.ramadan-day-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.ramadan-day-cell.completed {
    background: rgba(13,124,102,0.15);
    color: #0D7C66;
    border-color: #0D7C66;
}
.ramadan-day-cell.today {
    border-color: var(--accent-gold);
    background: rgba(212,175,55,0.1);
}
.ramadan-day-cell:not(.completed):hover {
    background: #f3f4f6;
}

/* ============================================
   CARDS
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card {
    background: var(--text-white);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    background: rgba(13, 124, 102, 0.08);
    color: var(--primary-main);
}

.islamic-card {
    background: linear-gradient(135deg, #0D7C66, #0A5C4F);
    border-radius: 16px;
    padding: 24px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.islamic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(212, 175, 55, 0.1) 30px, rgba(212, 175, 55, 0.1) 31px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(212, 175, 55, 0.1) 30px, rgba(212, 175, 55, 0.1) 31px);
    opacity: 0.3;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.arabic-text {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: center;
    font-size: 28px;
    line-height: 2;
    color: var(--primary-main);
    font-weight: 400;
}

.urdu-text {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    font-size: 18px;
    line-height: 2;
    color: var(--text-primary);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #0D7C66, #0A5C4F);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13, 124, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 124, 102, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #C7A04D);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ============================================
   DHIKR COUNTER
   ============================================ */
.counter-display {
    font-size: 80px;
    font-weight: 700;
    color: var(--primary-main);
    text-align: center;
    margin: 40px 0;
    text-shadow: 0 4px 20px rgba(13, 124, 102, 0.2);
}

.counter-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #C7A04D);
    border: none;
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.counter-btn:hover {
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5);
}

/* ============================================
   COMPASS (QIBLA)
   ============================================ */
.compass-container {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    position: relative;
}

.compass-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F5F45, #164344, #0E2943);
    box-shadow: 0 15px 50px rgba(13, 124, 102, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-needle {
    width: 8px;
    height: 120px;
    background: linear-gradient(to bottom, #EF4444, #D4AF37);
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.compass-degree {
    position: absolute;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   LIST ITEMS
   ============================================ */
.list-item {
    background: var(--text-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.list-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(13, 124, 102, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-main);
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   BADGE & PILLS
   ============================================ */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-dark);
}

.badge-primary {
    background: rgba(13, 124, 102, 0.15);
    color: var(--primary-dark);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-dark);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(13, 124, 102, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D7C66, #D4AF37);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ============================================
   INPUTS & FORMS
   ============================================ */
.app-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-inter);
    transition: all 0.3s;
    background: var(--text-white);
}

.app-input:focus {
    outline: none;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.1);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--text-white);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

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

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.lang-option {
    width: 100%;
    padding: 16px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    background: var(--text-white);
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-option:hover {
    border-color: var(--primary-main);
    background: rgba(13, 124, 102, 0.05);
}

.lang-option.active {
    border-color: var(--primary-main);
    background: rgba(13, 124, 102, 0.08);
}

.lang-option .check {
    color: var(--primary-main);
    font-size: 20px;
    display: none;
}

.lang-option.active .check {
    display: block;
}

/* ============================================
   LOADING
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

.flex {
    display: flex;
}

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

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

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

.slide-up {
    animation: slideUp 0.4s ease-out;
}

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

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

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0D7C66, #D4AF37);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0A5C4F, #C7A04D);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .counter-display {
        font-size: 60px;
    }

    .counter-btn {
        width: 130px;
        height: 130px;
        font-size: 20px;
    }

    .compass-container {
        width: 250px;
        height: 250px;
    }

    .arabic-text {
        font-size: 24px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .header-title {
        font-size: 18px;
    }
}

/* ============================================
   NEW FEATURES STYLES
   ============================================ */

/* Side Menu */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.menu-item:hover {
    background: #F3F4F6;
    color: #0D7C66;
}

.menu-item.active {
    background: #E8F5F1;
    color: #0D7C66;
    font-weight: 600;
}

.menu-item i {
    font-size: 20px;
    width: 24px;
}

/* Category Buttons */
.category-btn {
    padding: 10px 20px;
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-btn.active {
    background: #0D7C66;
    color: white;
}

.category-btn:hover {
    background: #E5E7EB;
}

.category-btn.active:hover {
    background: #0A5C4F;
}

/* Feature Cards on Landing Page */
.feature-card-home {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card-home:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.feature-icon-lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Water Glass Button */
.water-glass-btn {
    transition: all 0.3s;
}

.water-glass-btn:hover {
    transform: scale(1.05);
}

/* Sleep Quality Button */
.sleep-quality-btn {
    transition: all 0.3s;
}

.sleep-quality-btn:hover {
    transform: scale(1.05);
}

/* Exercise Section */
.exercise-section {
    animation: fadeIn 0.3s ease;
}

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

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

/* Challenge Cards */
.islamic-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    color: var(--text-primary);
}

/* Islamic card dark variant (green bg with white text) */
.islamic-card-dark {
    background: linear-gradient(135deg, #0D7C66, #0A5C4F);
    border-radius: 16px;
    padding: 24px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

/* Dhikr Presets Page */
.dhikr-preset-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.dhikr-preset-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dhikr-preset-card.selected {
    border-color: var(--primary-main);
    background: rgba(13, 124, 102, 0.03);
}

/* Dua Arabic text section */
.dua-arabic-section {
    background: linear-gradient(135deg, rgba(13, 124, 102, 0.06), rgba(13, 124, 102, 0.02));
    border: 1px solid rgba(13, 124, 102, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.dua-arabic-section p {
    color: var(--primary-dark) !important;
}

.islamic-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Page Transitions */
.fade-in {
    animation: fadeInPage 0.4s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Glass Badge */
.glass-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header i {
    font-size: 24px;
    color: #0D7C66;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
}

.page-header i {
    font-size: 48px;
    color: #0D7C66;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    color: #6B7280;
}

/* Grid Layouts */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.space-y-3>*+* {
    margin-top: 12px;
}

.space-y-4>*+* {
    margin-top: 16px;
}

.space-y-6>*+* {
    margin-top: 24px;
}

.max-w-2xl {
    max-width: 672px;
}

.max-w-4xl {
    max-width: 896px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

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

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Responsive Padding */
.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-6 {
    padding: 24px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Rounded Corners */
.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-full {
    border-radius: 9999px;
}

/* Width */
.w-full {
    width: 100%;
}

.w-12 {
    width: 48px;
}

.w-16 {
    width: 64px;
}

.w-24 {
    width: 96px;
}

/* Height */
.h-2 {
    height: 8px;
}

.h-3 {
    height: 12px;
}

.h-4 {
    height: 16px;
}

.h-8 {
    height: 32px;
}

.h-12 {
    height: 48px;
}

.h-16 {
    height: 64px;
}

.h-24 {
    height: 96px;
}

/* Opacity */
.opacity-50 {
    opacity: 0.5;
}

/* Page Container */
.page-container {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.3s;
}

.search-bar:focus-within {
    border-color: var(--primary-main);
}

.search-bar i {
    color: #9CA3AF;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

/* Prose */
.prose {
    line-height: 1.7;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Font utilities */
.font-arabic {
    font-family: 'Amiri', serif;
}

.font-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Category button active */
.category-btn.active {
    background-color: var(--primary-main);
    color: white;
    border-color: var(--primary-main);
}

/* Toast animation */
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Back button styling */
.back-btn {
    transition: opacity 0.2s;
}

.prose p {
    margin-bottom: 8px;
}