@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #1a5f3a;
    --primary-light: #2a8f5a;
    --primary-gradient: linear-gradient(135deg, #1a5f3a 0%, #2a8f5a 100%);
    --secondary: #FFEF00; /* Canary Yellow */
    --secondary-light: #FFF766;
    --secondary-gradient: linear-gradient(135deg, #FFEF00 0%, #FFF766 100%);
    --accent: #FFC107;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #0f1419;
    --text-secondary: #657786;
    --border: #e1e8ed;
    --success: #00ba88;
    --error: #ff3b30;
    --warning: #ffcc00;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(26, 95, 58, 0.08);
    --shadow-lg: 0 15px 40px rgba(26, 95, 58, 0.12);
    --glass: rgba(255, 255, 255, 0.85);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4cf77 50%, #d4af37 100%);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

[data-theme="dark"] {
    --primary: #2a8f5a;
    --primary-light: #3aaf6a;
    --primary-gradient: linear-gradient(135deg, #2a8f5a 0%, #3aaf6a 100%);
    --secondary: #f4cf77;
    --secondary-gradient: linear-gradient(135deg, #d4af37 0%, #f4cf77 100%);
    --bg: #15202b;
    --card-bg: #1c2938;
    --text: #ffffff;
    --text-secondary: #8899a6;
    --border: #38444d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background: var(--card-bg);
    background-image: linear-gradient(to bottom, rgba(26, 95, 58, 0.02), transparent);
    border-left: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2500; /* Higher z-index to stay above main content */
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.sidebar.open {
    width: 200px;
}

.sidebar.closed {
    width: 64px;
}

.sidebar-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
}

.logo-icon-mini {
    display: none;
}

.logo-text-brand {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar-toggle {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto; /* Allowed scrolling to ensure all items are visible on small screens */
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: right;
    width: 100%;
    position: relative;
}

.sidebar-item:hover {
    background: var(--bg);
    color: var(--text);
    transform: translateX(-5px);
}

.sidebar-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(26, 95, 58, 0.2);
    transform: translateX(-5px) scale(1.02);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: var(--secondary);
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 10px var(--secondary);
}

.streak-badge-sidebar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-gradient);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-icon {
    font-size: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.theme-toggle-floating {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 2001;
    box-shadow: var(--shadow-md);
}

.theme-toggle-floating:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .theme-toggle-floating {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .card {
        padding: 18px;
        border-radius: var(--radius-md);
    }
    
    .btn, .icon-btn, .shortcut-btn {
        min-height: 48px; /* Safe touch target */
    }
    
    .hero-section-compact {
        padding: 20px;
    }
    
    .dashboard-grid-compact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    
    .dash-btn {
        min-width: 0;
        padding: 10px;
    }

    .hero-section-compact {
        padding: 25px 20px;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-grid-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        margin-top: 15px;
    }

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

    .community-main {
        order: 2;
    }

    .community-sidebar {
        order: 1;
    }

    .dashboard-grid-compact {
        display: flex !important;
        flex-direction: column !important;
    }

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

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

    .guidance-result-card {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .ayah-text {
        font-size: 22px !important;
        padding: 30px 15px !important;
    }

    .radio-grid {
        grid-template-columns: 1fr !important;
    }

    .tajweed-tools-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-section-compact {
        padding: 20px !important;
    }

    .hero-text h1 {
        font-size: 24px !important;
    }

    .quote-text {
        font-size: 24px !important;
    }

    .modal-container {
        max-height: 95vh !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }

    .modal-body {
        padding: 15px !important;
    }
}

.main-content {
    flex: 1;
    margin-right: 200px;
    padding: 32px;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.closed + .main-content {
    margin-right: 64px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px; /* Reduced padding */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-input, .form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 95, 58, 0.1);
    transform: translateY(-1px);
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.btn-icon.playing {
    background: var(--error);
    color: white;
    border-color: var(--error);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.ayah-container {
    text-align: center;
    padding: 0;
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(26, 95, 58, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 239, 0, 0.05) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/arabesque.png');
    border-radius: var(--radius-lg);
    border: 2px solid rgba(26, 95, 58, 0.08);
    margin-bottom: 32px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .ayah-container {
    background-color: #1c2938;
}

.ayah-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.ayah-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a5f3a, #FFEF00, #1a5f3a);
    background-size: 200% auto;
    animation: flow-gradient 4s linear infinite;
    z-index: 2;
}

@keyframes flow-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.ayah-text {
    font-family: 'Amiri Quran', serif;
    font-size: 38px;
    line-height: 2.2;
    color: var(--text);
    margin: 0;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.ayah-text::before,
.ayah-text::after {
    font-family: 'Amiri Quran', serif;
    font-size: 52px;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: normal;
}

.ayah-text::before {
    content: '﴿';
    right: 15px;
}

.ayah-text::after {
    content: '﴾';
    left: 15px;
}

[data-theme="dark"] .ayah-text {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.ayah-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(26, 95, 58, 0.1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    color: var(--text);
}

[data-theme="dark"] .ayah-info-bar {
    background: linear-gradient(135deg, #1c2938 0%, #243447 100%);
    color: white;
}

.ayah-reference {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.ayah-actions {
    display: flex;
    gap: 10px;
}

.ayah-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.ayah-action-btn:hover {
    background: var(--secondary);
    transform: scale(1.15) rotate(5deg);
}

.ayah-action-btn.active {
    background: var(--secondary);
}

.ayah-translation {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.9;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(26, 95, 58, 0.05) 100%);
    border-radius: 12px;
    border-right: 4px solid var(--secondary);
    text-align: right;
    position: relative;
}

.ayah-translation::before {
    content: '📖';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    opacity: 0.5;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff6259 100%);
    color: white;
    border-radius: var(--radius-md);
    margin: 24px 0;
    animation: pulse 1.5s infinite;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    font-size: 18px;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.85; 
        transform: scale(1.02);
    }
}

.feedback-box {
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.feedback-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--success);
}

.feedback-error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--error);
}

.feedback-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid var(--warning);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mastery-indicator {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.mastery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.mastery-dot.active {
    background: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.review-session-card {
    background: linear-gradient(135deg, #0d321e 0%, #1a5f3a 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 25px;
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.review-session-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
    opacity: 0.1;
    pointer-events: none;
}

.rating-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.rating-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    font-size: 13px;
}

.rating-btn.hard { background: #ff3b30; }
.rating-btn.good { background: #ffcc00; color: #1a5f3a; }
.rating-btn.easy { background: #00ba88; }
.rating-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 18px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.2) 0%, rgba(42, 143, 90, 0.2) 100%);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 237, 78, 0.2) 100%);
    color: #d4a000;
    border: 1px solid var(--secondary);
}

.badge-info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.icon-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border: none;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.achievement-unlock {
    animation: achievementPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes achievementPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.reciter-card {
    transition: all 0.3s;
}

.reciter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.daily-progress-header {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.daily-info h2 {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.daily-info p {
    color: var(--text-secondary);
    font-size: 16px;
}

.phase-indicator {
    display: flex;
    align-items: center;
    background: var(--bg);
    padding: 6px;
    border-radius: 40px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.phase-indicator span {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phase-indicator span.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 95, 58, 0.25);
    transform: scale(1.05);
}

.phase-indicator .separator {
    color: var(--border);
    font-size: 10px;
    margin: 0 4px;
}

.completion-state {
    text-align: center;
    padding: 60px 20px;
}

/* Quick Shortcut Buttons */
.shortcut-btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.shortcut-btn i {
    font-size: 24px;
}

.shortcut-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.shortcut-btn.secondary {
    background: var(--secondary-gradient);
    color: var(--primary);
}

.shortcut-btn.success {
    background: linear-gradient(135deg, #00ba88 0%, #00d4aa 100%);
    color: white;
}

.shortcut-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Compact Landing Page Styles */
.landing-page {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section-compact {
    background: linear-gradient(135deg, #0d321e 0%, #1a5f3a 50%, #2a8f5a 100%);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(26, 95, 58, 0.25);
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 239, 0, 0.2);
}

.hero-section-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('shimmer_overlay.png');
    background-size: cover;
    opacity: 0.07;
    pointer-events: none;
}

.hero-section-compact::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 239, 0, 0.05) 0%, transparent 70%);
    animation: slowRotate 30s linear infinite;
    pointer-events: none;
}

.khatma-progress-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.khatma-progress-card::before {
    content: '🏆';
    position: absolute;
    bottom: -10px;
    left: -10px;
    font-size: 60px;
    opacity: 0.05;
    transform: rotate(15deg);
}

.daily-challenge-box {
    background: var(--gold-gradient);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    color: #1a5f3a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    animation: pulse 2s infinite ease-in-out;
}

.daily-challenge-text {
    display: flex;
    flex-direction: column;
}

.daily-challenge-text strong {
    font-size: 16px;
    font-weight: 800;
}

.daily-challenge-text span {
    font-size: 11px;
    opacity: 0.8;
}

.mini-tracker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.mini-tracker-dot.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.floating-action-menu {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 2100;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
}

.floating-action-menu.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.fab-option:hover {
    background: var(--primary);
    color: white;
}

.hero-content-compact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-icon-compact {
    font-size: 48px;
}

.hero-text {
    color: white;
}

.hero-title-compact {
    font-size: 20px; /* Slightly smaller */
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-subtitle-compact {
    font-size: 12px; /* Slightly smaller */
    opacity: 0.95;
}

.hero-stats-compact {
    display: flex;
    gap: 20px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.hero-stat i {
    font-size: 16px;
}

.daily-ward-section-compact {
    margin-bottom: 20px;
}

.section-title-compact {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text);
}

.section-title-compact i {
    color: var(--primary);
    font-size: 18px;
}

.ward-card-compact {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
}

.ward-header-compact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.ward-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ward-info p {
    font-size: 12px;
    opacity: 0.9;
}

.ward-count-compact {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 60px;
}

.ward-count-compact span {
    font-size: 24px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.ward-count-compact small {
    font-size: 10px;
    opacity: 0.9;
}

.ward-verses-compact {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(26, 95, 58, 0.02);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.ward-verse-compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    background-image: 
        linear-gradient(135deg, rgba(26, 95, 58, 0.02) 0%, rgba(255, 239, 0, 0.02) 100%),
        url('https://www.transparenttextures.com/patterns/arabesque.png');
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 95, 58, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    width: 100%;
    margin: 0;
    border-right: 4px solid var(--primary);
}

[data-theme="dark"] .ward-verse-compact {
    background-color: #1c2938;
    background-image: 
        linear-gradient(135deg, rgba(42, 143, 90, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%),
        url('https://www.transparenttextures.com/patterns/arabesque.png');
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-verse-husary {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    flex-shrink: 0;
}

.btn-verse-husary:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 95, 58, 0.3);
}

.btn-verse-husary.playing {
    background: var(--error);
    color: white;
    animation: pulse-ring 1.5s infinite;
}

.hint-btn {
    background: rgba(255, 193, 7, 0.1);
    border: 1px dashed var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 10px;
}

.hint-btn:hover {
    background: var(--accent);
    color: white;
}

.sleep-timer-bubble {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    animation: fadeIn 0.3s;
}

.ward-verse-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.ward-verse-compact:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.verse-num {
    background: var(--primary-gradient);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(26, 95, 58, 0.2);
    position: relative;
    z-index: 2;
    transform: rotate(45deg);
}

.verse-num span {
    transform: rotate(-45deg);
}

.verse-text-compact {
    font-family: 'Amiri Quran', serif;
    font-size: 22px;
    line-height: 2;
    color: var(--text);
    text-align: right;
    padding: 0;
    flex: 1;
    display: block;
    direction: rtl;
}

.verse-text-compact::before {
    content: '﴿ ';
    color: var(--primary);
    font-weight: bold;
    opacity: 0.7;
}

.verse-text-compact::after {
    content: ' ﴾';
    color: var(--primary);
    font-weight: bold;
    opacity: 0.7;
}

[data-theme="dark"] .verse-text-compact {
    color: #e1e8ed;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

[data-theme="dark"] .verse-text-compact::before,
[data-theme="dark"] .verse-text-compact::after {
    color: var(--secondary);
    opacity: 0.4;
}

.btn-start-ward {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.btn-start-ward:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.ward-completed-compact {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    gap: 16px;
}

.ward-completed-compact i {
    font-size: 48px;
    color: var(--success);
}

.ward-completed-compact h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.ward-completed-compact p {
    font-size: 13px;
    color: var(--text-secondary);
}

.features-section-compact {
    margin-bottom: 20px;
}

.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.feature-card-compact {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-card-compact i {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-card-compact h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text);
}

.feature-card-compact p {
    font-size: 11px;
    color: var(--text-secondary);
}

.cta-section-compact {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.cta-section-compact i:first-child {
    font-size: 36px;
    color: var(--primary);
}

.cta-section-compact > div {
    flex: 1;
}

.cta-section-compact h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.cta-section-compact p {
    font-size: 12px;
    color: var(--primary);
    opacity: 0.85;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    width: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 95, 58, 0.3);
}

/* Mood Guidance Styles */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.mood-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mood-btn:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.mood-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(26, 95, 58, 0.2);
    transform: translateY(-8px) scale(1.05);
}

.mood-btn.active span {
    color: var(--secondary);
}

.guidance-result-card {
    background: white;
    background-image: radial-gradient(circle at top right, rgba(26, 95, 58, 0.02) 0%, transparent 40%);
    border-radius: 35px;
    padding: 35px;
    border: 1px solid var(--border);
    border-right: 12px solid var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .guidance-result-card {
    background: #1c2938;
}

.btn-audio-pulse {
    animation: audio-ring 2s infinite;
}

@keyframes audio-ring {
    0% { box-shadow: 0 0 0 0 rgba(26, 95, 58, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(26, 95, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 95, 58, 0); }
}

.mood-btn i {
    font-size: 32px;
}

.mood-btn span {
    font-weight: 800;
    font-size: 14px;
}

.custom-input-active {
    grid-column: span 2;
    background: white;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
    .custom-input-active {
        grid-column: span 1;
    }
}

.guidance-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbf9 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    border-right: 8px solid var(--primary);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.6s ease-out;
}

.mnemonic-box {
    background: rgba(255, 239, 0, 0.08);
    border: 1.5px dashed var(--accent);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    position: relative;
    animation: fadeIn 0.5s;
}

.mnemonic-box::before {
    content: '💡 تقنية قصر الذاكرة';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(26, 95, 58, 0.03);
    border-radius: var(--radius-lg);
}

.flower-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.flower-icon {
    font-size: 24px;
    filter: grayscale(1);
    transition: 0.5s;
}

.flower-item.bloomed .flower-icon {
    filter: grayscale(0);
    transform: scale(1.2);
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.surah-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.surah-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.surah-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.surah-card-premium:hover::before {
    opacity: 1;
}

.surah-card-premium .surah-number-hex {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    flex-shrink: 0;
}

.surah-number {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.surah-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
    font-family: 'Amiri Quran', serif;
}

.surah-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.surah-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.quran-reader {
    padding: 20px 0;
}

.quran-ayah {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.quran-ayah:last-child {
    border-bottom: none;
}

.ayah-number-circle {
    background: var(--secondary-gradient);
    color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ayah-text-reader {
    font-family: 'Amiri Quran', serif;
    font-size: 24px;
    line-height: 2.2;
    color: var(--text);
    flex: 1;
    background: #f9fbf9;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 95, 58, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
}

.ayah-text-reader:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.ayah-item-active .ayah-text-reader {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.05) 0%, var(--card-bg) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(26, 95, 58, 0.12);
}

.ayah-text-reader::before {
    content: '﴿';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.15;
}

.ayah-text-reader::after {
    content: '﴾';
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.15;
}

/* Plan Tab Styles */
.plan-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.quick-stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.quick-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.quick-stat-card i {
    font-size: 28px;
    color: var(--primary);
}

.quick-stat-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.quick-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.current-plan-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.current-plan-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: white;
}

.current-plan-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-plan-title i {
    font-size: 24px;
}

.current-plan-title h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.current-plan-title p {
    font-size: 11px;
    opacity: 0.9;
}

.current-plan-toggle {
    font-size: 20px;
    transition: transform 0.3s;
}

.current-plan-body {
    padding: 20px;
}

.plan-progress-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.progress-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.plan-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.plan-detail-item {
    background: var(--bg);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-detail-item i {
    font-size: 20px;
    color: var(--primary);
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: block;
    line-height: 1;
}

.detail-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: block;
}

.today-achievement {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
}

.today-achievement i {
    font-size: 20px;
}

.compact-card {
    padding: 20px;
}

.compact-title {
    font-size: 16px;
    margin-bottom: 16px;
}

.plan-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.plan-type-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    color: var(--text);
}

.plan-type-btn:hover {
    border-color: var(--primary);
}

.plan-type-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.plan-type-btn i {
    font-size: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.compact-form {
    margin-bottom: 0;
}

.compact-label {
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-label i {
    font-size: 13px;
    color: var(--primary);
}

.compact-select,
.compact-input {
    padding: 10px 12px;
    font-size: 13px;
}

.plan-summary {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.plan-summary i {
    color: var(--primary);
    font-size: 16px;
}

.btn-create-plan {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-create-plan:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-create-plan:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.plan-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.history-plan-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.history-plan-item > i {
    font-size: 20px;
    color: var(--success);
}

.history-plan-info {
    flex: 1;
}

.history-plan-info span:first-child {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.history-plan-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.history-plan-badge {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        width: 280px !important;
        background: var(--card-bg);
        z-index: 4000; /* Ensure it is above everything on mobile */
        transform: translateX(105%); /* Move further out to ensure hiding */
        visibility: hidden; /* Prevent interactions when hidden */
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
    }

    .sidebar.mobile-drawer-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-header {
        display: flex;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-nav {
        flex-direction: column;
        padding: 15px;
        gap: 8px;
    }

    .sidebar-item {
        padding: 12px 16px;
        font-size: 14px;
        flex-direction: row;
        width: 100%;
        border-radius: 12px;
        text-align: right;
        gap: 15px;
    }

    .sidebar-item.active {
        background: var(--primary-gradient);
        color: white;
    }

    .sidebar-item.active .sidebar-icon {
        background: none;
        width: auto;
        height: auto;
    }

    .main-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 80px 15px 100px 15px !important;
        width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll from any content */
    }
    
    .ayah-text {
        font-size: 24px;
        line-height: 2.1;
        padding: 40px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .controls .btn,
    .controls .btn-icon {
        width: 100%;
    }

    .daily-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .phase-indicator {
        width: 100%;
        justify-content: center;
    }

    .sidebar-toggle {
        display: none;
    }

    .hero-section-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats-compact {
        width: 100%;
        justify-content: space-between;
    }

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

    .cta-section-compact {
        flex-direction: column;
        text-align: center;
    }

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

    .ayah-text-reader {
        font-size: 18px;
    }

    .plan-details-grid {
        grid-template-columns: 1fr;
    }

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

.presence-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(0, 186, 136, 0.1);
    border-radius: 20px;
    margin-bottom: 15px;
    width: fit-content;
}

.presence-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 186, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 186, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 186, 136, 0); }
}

.mask-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.mask-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
}

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

.ayah-text.masked span {
    filter: blur(5px);
    background: var(--text);
    color: transparent;
    user-select: none;
    transition: filter 0.3s, background 0.3s;
    padding: 0 4px;
    border-radius: 4px;
}

.ayah-text.masked span.revealed {
    filter: none;
    background: transparent;
    color: inherit;
}

.activity-feed {
    margin-top: 24px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.community-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.global-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding-bottom: 5px;
}

.global-stat-mini {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.03) 0%, rgba(255, 239, 0, 0.03) 100%);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    flex-shrink: 0;
}

.global-stat-mini i {
    font-size: 20px;
    color: var(--primary);
}

.stat-pulse-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.global-stat-mini:hover .stat-pulse-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-gradient);
}

.global-stat-mini:hover .stat-pulse-icon i {
    color: white;
}

.active-pulse {
    border-color: var(--success);
    background: rgba(0, 186, 136, 0.05);
}

.active-pulse .stat-pulse-icon {
    animation: pulse-green 2s infinite;
}

.global-stat-mini div {
    display: flex;
    flex-direction: column;
}

.global-stat-mini .val {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.global-stat-mini .lab {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 700;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: var(--bg);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: slideInLeft 0.5s ease-out both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.activity-item:hover {
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: scale(1.01);
}

.activity-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.activity-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid white;
    border-radius: 50%;
}

.activity-content {
    flex: 1;
}

.activity-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.activity-username {
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}

.activity-time {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.activity-message {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.activity-message strong {
    color: var(--primary);
}

.activity-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.praise-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.praise-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 95, 58, 0.05);
}

.praise-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.presence-wall {
    display: flex;
    align-items: center;
    gap: -10px;
    margin-top: 10px;
}

.presence-avatar-stack {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -12px;
    background: var(--border);
    transition: transform 0.3s;
    cursor: pointer;
}

.presence-avatar-stack:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.presence-avatar-stack.user-self {
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    z-index: 5;
}

.presence-wall {
    display: flex;
    align-items: center;
    direction: ltr; /* To make stack overlap correctly in RTL */
    justify-content: flex-end;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
}

.heatmap-cell {
    aspect-ratio: 1;
    background: var(--bg);
    border-radius: 2px;
    position: relative;
    border: 1px solid var(--border);
}

.heatmap-cell.active {
    background: var(--primary);
    border-color: var(--primary);
}

.focus-mode-active .sidebar {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.focus-mode-active .main-content {
    margin-right: 0 !important;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto !important;
}

.focus-mode-active .daily-progress-header,
.focus-mode-active .card:not(.ayah-container-parent) {
    background: transparent;
    border: none;
    box-shadow: none;
}

.focus-mode-active .card h3,
.focus-mode-active .form-group,
.focus-mode-active .mask-controls {
    opacity: 0.3;
    transition: opacity 0.3s;
}

.focus-mode-active .card:hover h3,
.focus-mode-active .card:hover .form-group,
.focus-mode-active .card:hover .mask-controls {
    opacity: 1;
}

.btn-focus-toggle {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.btn-focus-toggle.active {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.mushaf-grid-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 6px;
    background: var(--bg);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.mushaf-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: help;
    transition: all 0.2s;
}

.mushaf-cell.full {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
}

.mushaf-cell.partial {
    background: var(--secondary-gradient);
    color: var(--primary);
    border-color: var(--secondary);
}

.ai-wisdom-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #114b2d 100%);
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png'), linear-gradient(135deg, var(--primary) 0%, #114b2d 100%);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    margin-bottom: 25px;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ai-wisdom-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 239, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wisdom-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 239, 0, 0.3);
}

.ai-wisdom-banner p {
    font-family: 'Amiri Quran', serif;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* Loading Screen Styles */
.app-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d3b24;
    background: 
        radial-gradient(circle at 50% 50%, rgba(42, 143, 90, 0.3) 0%, transparent 70%),
        radial-gradient(circle at 0% 0%, rgba(255, 239, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 239, 0, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #0d3b24 0%, #1a5f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

.app-loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
    opacity: 0.15;
    animation: slowRotate 60s linear infinite;
}

.app-logo-container {
    margin-bottom: 30px;
}

.app-logo-main {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    border: 3px solid var(--secondary);
}

.app-svg-logo {
    width: 70%;
    height: 70%;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-content .loading-title {
    color: white;
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.loading-content .loading-text {
    color: rgba(255,255,255,0.8);
}

.loading-bar-container {
    background: rgba(255,255,255,0.1);
}

.loading-bar-fill {
    background: var(--secondary-gradient);
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.loading-logo {
    font-size: 80px;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulseScale 2s infinite ease-in-out;
}

.loading-title {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.loading-bar-container {
    width: 240px;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

.loading-bar-fill {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    animation: loadingProgress 2s ease-in-out infinite;
    transform-origin: left;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

/* PWA Install Sheet */
.pwa-install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.pwa-install-sheet {
    width: 100%;
    background: var(--card-bg);
    border-radius: 30px 30px 0 0;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-icon-large {
    font-size: 60px;
    margin-bottom: 20px;
}

.pwa-install-sheet h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.pwa-install-sheet p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-pwa-install {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 95, 58, 0.3);
}

.pwa-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.ios-instructions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
    background: var(--bg);
    padding: 15px;
    border-radius: 15px;
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.ios-step p {
    margin: 0;
    font-size: 14px;
}

.btn-pwa-dismiss {
    margin-top: 15px;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

@keyframes loadingProgress {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.7); }
    100% { transform: scaleX(1); }
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Motivational Quote Styles */
.motivational-quote-card {
    background: linear-gradient(135deg, #1a5f3a 0%, #114b2d 100%);
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png'), linear-gradient(135deg, #1a5f3a 0%, #114b2d 100%);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.motivational-quote-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px; /* border width */
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

.quote-ornament {
    color: var(--secondary);
    font-size: 36px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(255, 239, 0, 0.6));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.quote-text {
    font-family: 'Amiri Quran', serif;
    font-size: 32px;
    line-height: 2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .quote-text {
    background: linear-gradient(135deg, var(--secondary) 0%, #fff766 100%);
    -webkit-background-clip: text;
}

.quote-divider {
    width: 120px;
    height: 3px;
    background: var(--secondary-gradient);
    margin-top: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.quote-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: #fff;
    filter: blur(5px);
    animation: shimmer-light 3s infinite;
}

@keyframes shimmer-light {
    0% { transform: translateX(-150px); }
    100% { transform: translateX(150px); }
}

.quote-accent-corners {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.quote-accent-corners::before,
.quote-accent-corners::after {
    content: '✵';
    position: absolute;
    color: var(--secondary);
    font-size: 20px;
    opacity: 0.6;
}

.quote-accent-corners::before { top: 15px; right: 15px; }
.quote-accent-corners::after { bottom: 15px; left: 15px; }

/* Plan Templates Styles */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.template-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.template-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
}

.template-content {
    flex: 1;
}

.template-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.template-content p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.template-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.template-card:hover .template-action {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Daily Alert Banner */
.daily-alert-banner {
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(26, 95, 58, 0.05) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/arabesque.png');
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--text);
    box-shadow: 0 25px 50px rgba(26, 95, 58, 0.12);
    animation: slideInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: 3px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.daily-alert-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 239, 0, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

[data-theme="dark"] .daily-alert-banner {
    background: #1c2938;
    border-color: var(--secondary);
}

.daily-alert-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-gradient);
}

@keyframes goldShimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

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

.alert-timer-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.08) 0%, rgba(255, 239, 0, 0.08) 100%);
    padding: 15px;
    border-radius: 24px;
    border: 2px solid rgba(26, 95, 58, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), inset 0 2px 10px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .alert-timer-container {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.2) 0%, rgba(255, 239, 0, 0.1) 100%);
    border-color: rgba(255, 239, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 2px 10px rgba(255,255,255,0.05);
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    background: white;
    padding: 10px 8px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(26, 95, 58, 0.1);
}

[data-theme="dark"] .timer-unit {
    background: #243447;
    border-color: rgba(255, 239, 0, 0.1);
}

.timer-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Amiri Quran', serif;
    letter-spacing: -1px;
}

[data-theme="dark"] .timer-value {
    background: linear-gradient(180deg, var(--secondary) 0%, #fff766 100%);
    -webkit-background-clip: text;
}

.timer-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 6px;
    opacity: 0.8;
}

.timer-separator {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: 0.4;
    animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

[data-theme="dark"] .timer-separator {
    color: var(--secondary);
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

.alert-content {
    flex: 1;
    border-right: 3px solid rgba(26, 95, 58, 0.1);
    padding-right: 24px;
}

[data-theme="dark"] .alert-content {
    border-right-color: rgba(255, 239, 0, 0.1);
}

.alert-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .alert-content h3 {
    color: var(--secondary);
}

.alert-content h3 i {
    color: var(--primary);
    animation: bellRing 3.5s ease-in-out infinite;
}

[data-theme="dark"] .alert-content h3 i {
    color: var(--secondary);
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    5%, 15% { transform: rotate(20deg); }
    10%, 20% { transform: rotate(-20deg); }
    25% { transform: rotate(0); }
}

.alert-content p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-secondary);
}

[data-theme="dark"] .alert-content p {
    color: #a0aec0;
}

.btn-alert-action {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(26, 95, 58, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .btn-alert-action {
    background: var(--secondary-gradient);
    color: #1a1a1a;
    box-shadow: 0 8px 16px rgba(255, 239, 0, 0.15);
}

.btn-alert-action:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 239, 0, 0.3);
    filter: brightness(1.1);
}

.export-btn {
    background: rgba(26, 95, 58, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.export-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Notifications & Toasts */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--error); }
.toast.info::before { background: var(--primary); }

.toast {
    animation: toastBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounceIn {
    0% { transform: translate(-50%, -100%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, 20px) scale(1.1); }
    100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.toast-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(0, 186, 136, 0.1); color: var(--success); }
.toast.error .toast-icon { background: rgba(255, 59, 48, 0.1); color: var(--error); }
.toast.info .toast-icon { background: rgba(26, 95, 58, 0.1); color: var(--primary); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
    display: block;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    opacity: 0.5;
    transition: 0.2s;
}

.toast-close:hover { opacity: 1; }

@keyframes toastSlideIn {
    from { transform: translateY(-100%) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.toast.hiding {
    animation: toastSlideOut 0.4s ease-in forwards;
}

@keyframes toastSlideOut {
    to { transform: translateY(-20px) scale(0.95); opacity: 0; }
}

/* Sharing UI */
.share-modal-content {
    text-align: center;
    padding: 20px 0;
}

.share-file-preview {
    background: var(--bg);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.share-file-preview i {
    font-size: 48px;
    color: var(--primary);
}

.share-link-box {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 25px;
    align-items: center;
}

.share-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px;
    outline: none;
}

.message-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
}

.message-option {
    padding: 10px 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-align: right;
    color: var(--text-secondary);
}

.message-option:hover {
    border-color: var(--primary);
    background: white;
}

.message-option.active {
    background: rgba(26, 95, 58, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
}

.share-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.facebook { background: #1877F2; }
.share-btn.copy { background: #607D8B; }
.share-btn.native { background: var(--primary-gradient); }

.share-btn i {
    font-size: 24px;
}

.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

@media (max-width: 600px) {
    .daily-alert-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .btn-alert-action {
        width: 100%;
    }
}

/* Modal and Dashboard Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    animation: slideInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-header {
    padding: 20px 24px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    background: var(--bg);
}

.dashboard-grid-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-btn {
    flex: 1;
    min-width: 110px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    text-align: right;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dash-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dash-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.dash-btn-icon.stats { background: linear-gradient(135deg, #4CAF50, #2E7D32); box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3); }
.dash-btn-icon.favs { background: linear-gradient(135deg, #FFC107, #FFA000); box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3); }
.dash-btn-icon.trophies { background: linear-gradient(135deg, #2196F3, #1565C0); box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3); }
.dash-btn-icon.share { background: linear-gradient(135deg, #FFEF00, #FFC107); color: #1a5f3a !important; box-shadow: 0 4px 10px rgba(255, 239, 0, 0.3); }

.dash-btn-text {
    display: flex;
    flex-direction: column;
}

.dash-btn-text strong {
    font-size: 15px;
    font-weight: 800;
}

.dash-btn-text span {
    font-size: 11px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .dashboard-grid-compact {
        width: 100%;
    }
    .dash-btn {
        min-width: 100%;
    }
}

/* Tajweed Academy Professional Enhancements */
.tajweed-roadmap {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
}

.tajweed-roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 35px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    opacity: 0.3;
}

.tajweed-card-premium {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tajweed-card-premium:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tajweed-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.tajweed-card-premium:hover::after {
    transform: scaleX(1);
}

.lesson-step-num {
    width: 70px;
    height: 70px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: all 0.3s;
    z-index: 2;
}

.tajweed-card-premium:hover .lesson-step-num {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: rotate(-5deg);
}

.lesson-content-brief h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}

.lesson-content-brief p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.lesson-status-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 186, 136, 0.1);
    color: var(--success);
}

/* Tajweed Lesson Styles */
.lesson-action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ai-assist-btn {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.ai-assist-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.practice-jump-btn {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.practice-jump-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.tajweed-section {
    margin: 25px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    border-right: 6px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
}

[data-theme="dark"] .tajweed-section {
    background: rgba(255,255,255,0.02);
}

.tajweed-section h3,
.tajweed-section h4,
.tajweed-section h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.tajweed-section h3 {
    font-size: 20px;
    font-weight: 800;
}

.tajweed-section h4 {
    font-size: 18px;
    font-weight: 700;
}

.tajweed-section h5 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
}

.tajweed-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.tajweed-section ul {
    padding-right: 25px;
    margin: 10px 0;
}

.tajweed-section ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.tajweed-section strong {
    color: var(--primary);
    font-weight: 700;
}

.highlight-section {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(26, 95, 58, 0.15);
}

[data-theme="dark"] .tajweed-section {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .highlight-section {
    background: linear-gradient(135deg, rgba(42, 143, 90, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.2);
}

/* Tajweed AI Mentor Professional Styles */
.tajweed-ai-mentor {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.5s ease-out;
}

.ai-chat-header {
    padding: 16px 20px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.back-btn-chat:hover {
    background: white;
    color: var(--primary);
}

.ai-status-indicator {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #00ff00;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

[data-theme="dark"] .ai-chat-messages {
    background: #0f172a;
}

.chat-bubble-container {
    display: flex;
    width: 100%;
}

.chat-bubble-container.user { justify-content: flex-end; }

.chat-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-bubble.ai {
    background: white;
    color: #1e293b;
    border-bottom-right-radius: 4px;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .chat-bubble.ai {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

.chat-bubble.user {
    background: var(--primary-gradient);
    color: white;
    border-bottom-left-radius: 4px;
}

.ai-msg-header {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0 8px 0;
    display: block;
}

.ai-msg-text { margin-bottom: 12px; }

.ai-msg-verse {
    font-family: 'Amiri Quran', serif;
    font-size: 20px;
    color: var(--primary);
    background: rgba(26, 95, 58, 0.05);
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.ai-msg-list-item {
    margin-right: 15px;
    margin-bottom: 5px;
    position: relative;
}

.ai-msg-list-item::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    right: -15px;
}

.ai-chat-footer {
    padding: 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.quick-chips-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.quick-chip {
    white-space: nowrap;
    padding: 6px 14px;
    background: rgba(26, 95, 58, 0.05);
    border: 1px solid rgba(26, 95, 58, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.quick-chip:hover {
    background: var(--primary);
    color: white;
}

.ai-chat-input-wrapper {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    padding: 8px 8px 8px 16px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .ai-chat-input-wrapper {
    background: #334155;
    border-color: #475569;
}

.chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(26, 95, 58, 0.3);
}

.chat-bubble.thinking {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Community Global Goal Styles */
.global-goal-container {
    background: linear-gradient(135deg, #0d321e 0%, #1a5f3a 100%);
    padding: 20px;
    border-radius: 20px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.community-main .activity-item img {
    transition: transform 0.3s;
}

.community-main .activity-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Smart Analyzer Professional Styles */
.tajweed-analyze-container {
    background: var(--card-bg);
    border: none;
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.analyze-textarea {
    font-family: 'Amiri Quran', serif;
    font-size: 24px;
    line-height: 1.8;
    text-align: center;
    padding: 25px;
    border: 2px solid var(--border);
    transition: 0.3s;
    min-height: 150px;
}

.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scanAnimation 2s infinite linear;
    z-index: 5;
    pointer-events: none;
}

@keyframes scanAnimation {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.analyze-btn {
    width: 100%;
    margin-top: 15px;
    padding: 18px;
    font-size: 18px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.analyze-summary-card {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.08) 0%, rgba(255, 239, 0, 0.08) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
    display: flex;
    gap: 15px;
    border: 1px solid rgba(26, 95, 58, 0.2);
}

.summary-icon {
    font-size: 32px;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.summary-text strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.results-title {
    margin: 25px 0 15px;
    font-size: 18px;
    font-weight: 800;
}

.rules-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.rule-result-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.rule-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.rule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.rule-word {
    font-family: 'Amiri Quran', serif;
    font-size: 22px;
    color: var(--primary);
    font-weight: bold;
}

.rule-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
}

.type-nun .rule-badge { background: #fee2e2; color: #991b1b; }
.type-meem .rule-badge { background: #fef9c3; color: #854d0e; }
.type-madd .rule-badge { background: #dcfce7; color: #166534; }
.type-qalqalah .rule-badge { background: #dbeafe; color: #1e40af; }

.rule-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.rule-perf {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.spiritual-insight {
    margin-top: 30px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.spiritual-insight i {
    font-size: 24px;
    color: #f43f5e;
}

.spiritual-insight strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 8px;
}

/* Practice Enhancements */
.practice-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.rule-select-chip {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
    font-family: inherit;
}

.rule-select-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rule-select-chip.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(26, 95, 58, 0.2);
}

.tajweed-level-badge {
    padding: 10px 20px;
    background: var(--secondary-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.practice-card {
    background: linear-gradient(135deg, #fff 0%, #f0f7f4 100%);
    border: 2px dashed var(--primary);
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '🎯';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 60px;
    opacity: 0.1;
    transform: rotate(20deg);
}

.lesson-intro-hero {
    background: var(--primary-gradient);
    padding: 30px;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(26, 95, 58, 0.2);
}

.lesson-intro-hero i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.lesson-intro-hero h4 {
    font-size: 22px;
    font-weight: 800;
}

.lesson-rich-content .tajweed-section {
    transition: all 0.3s ease;
}

.lesson-rich-content .tajweed-section:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(26, 95, 58, 0.08);
}

.lesson-rich-content h3 {
    font-size: 24px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
    margin: 30px 0 20px;
}

.lesson-rich-content ul li::marker {
    color: var(--primary);
    content: "✦ ";
    font-size: 1.2em;
}

.analyze-result-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.analyze-result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.rule-pill {
    background: var(--primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

[data-theme="dark"] .practice-card {
    background: linear-gradient(135deg, #1c2938 0%, #112a1d 100%);
}

.resource-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--bg);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-link-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.res-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.res-info {
    display: flex;
    flex-direction: column;
}

.res-info strong {
    font-size: 14px;
    font-weight: 700;
}

.res-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

[data-theme="dark"] .resource-link-card {
    background: rgba(255, 255, 255, 0.05);
}

/* Tajweed Tools Professional Styling */
.tajweed-tools-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tajweed-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tajweed-tool-card {
    border: none;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: right;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.tajweed-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tajweed-tool-card.mentor { background: linear-gradient(135deg, #1a5f3a 0%, #2d8a57 100%); color: white; }
.tajweed-tool-card.practice { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); color: white; }
.tajweed-tool-card.analyze { background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%); color: white; }
.tajweed-tool-card.quiz { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); color: white; }

.tajweed-tool-card.comprehensive {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    color: #1a1a1a;
    width: 100%;
    margin-top: 8px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tajweed-tool-card.comprehensive .tool-icon {
    background: rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
}

.tool-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tool-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-info strong {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.tool-info span {
    font-size: 11px;
    opacity: 0.9;
}

.tajweed-tool-card.comprehensive i:last-child {
    margin-right: auto;
    font-size: 18px;
    animation: bounceLeft 2s infinite;
}

@keyframes bounceLeft {
    0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
    40% {transform: translateX(-5px);}
    60% {transform: translateX(-3px);}
}

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

.challenge-tag-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff 0%, #fef9c3 100%);
    border: 1.5px solid var(--secondary);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(255, 239, 0, 0.2);
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    border-right: 4px solid var(--primary);
}

[data-theme="dark"] .challenge-tag-premium {
    background: linear-gradient(135deg, #1c2938 0%, #2d3748 100%);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.challenge-tag-premium:hover {
    transform: scale(1.04) translateX(-5px);
    box-shadow: 0 8px 20px rgba(255, 239, 0, 0.3);
}

.challenge-icon-vibe {
    width: 28px;
    height: 28px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    animation: slowRotate 4s linear infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.challenge-text-main {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
}

[data-theme="dark"] .challenge-text-main {
    color: var(--secondary);
}

.challenge-count-pill {
    background: var(--primary-gradient);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Guide Tab Styles */
.guide-header-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #0d321e 100%);
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png'), linear-gradient(135deg, var(--primary) 0%, #0d321e 100%);
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--secondary);
}

.guide-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.guide-hero-content p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.guide-nav-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.guide-nav-pills button {
    padding: 12px 25px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-nav-pills button.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.guide-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.guide-card-modern {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.guide-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.guide-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.guide-card-modern h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
}

.guide-card-modern p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.guide-roadmap-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.roadmap-step-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    align-items: center;
    transition: 0.3s;
}

.roadmap-step-item:hover {
    transform: translateX(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.step-number-hex {
    width: 50px;
    height: 50px;
    background: var(--secondary-gradient);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--primary);
}

.step-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.guide-health-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.guide-ai-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
    border: 2px dashed var(--primary);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.ai-cta-icon {
    font-size: 50px;
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.ai-cta-text {
    flex: 1;
    min-width: 250px;
}

.ai-cta-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.ai-cta-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Certificate Styles */
.certificate-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.certificate-frame {
    border: 10px double var(--primary);
    padding: 40px;
    background: #fff;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(26, 95, 58, 0.03) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/arabesque.png');
    text-align: center;
    position: relative;
}

.cert-header {
    font-family: 'Amiri Quran', serif;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.cert-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.cert-recipient {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
    font-family: 'Cairo', sans-serif;
}

.cert-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 30px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
}

.cert-seal {
    width: 100px;
    height: 100px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: 4px solid white;
}

.cert-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cert-id {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 10px;
    opacity: 0.4;
}

/* Circles Tab Professional Enhancements */
.circles-hero-premium {
    background: #0d321e !important;
    background-image: 
        linear-gradient(135deg, rgba(26, 95, 58, 0.95) 0%, rgba(13, 50, 30, 0.98) 100%),
        radial-gradient(circle at 100% 0%, rgba(255, 239, 0, 0.15) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/arabesque.png') !important;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    color: white;
    margin-bottom: 30px;
    border: 3px solid var(--secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    flex-wrap: wrap;
}

.circles-hero-content { flex: 2; min-width: 300px; }
.circles-badge-top {
    display: inline-block;
    background: var(--secondary-gradient);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.circles-hero-content h1 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.circles-hero-content p { font-size: 16px; opacity: 0.9; line-height: 1.6; margin-bottom: 25px; }

.circles-hero-stats { display: flex; gap: 30px; }
.hero-mini-stat { display: flex; flex-direction: column; }
.hero-mini-stat .val { font-size: 28px; font-weight: 900; color: var(--secondary); line-height: 1; }
.hero-mini-stat .lab { font-size: 12px; opacity: 0.7; font-weight: 600; margin-top: 5px; }

.btn-create-circle-premium {
    background: var(--secondary-gradient);
    color: var(--primary);
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(255, 239, 0, 0.3);
    font-family: inherit;
}

.btn-create-circle-premium:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(255, 239, 0, 0.4); }

/* Filters Bar */
.circles-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: var(--card-bg);
}

.search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    color: var(--text);
}

.search-wrapper input:focus { border-color: var(--primary); background: white; box-shadow: var(--shadow-sm); }

.filters-group { display: flex; gap: 10px; }
.filter-select {
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
}

/* Grid & Cards */
.circles-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.circle-card-modern {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
}

.circle-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.circle-badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    z-index: 10;
    text-transform: uppercase;
}

.circle-badge-status.new { background: #E91E63; }
.circle-badge-status.active { background: #00ba88; }
.circle-badge-status.full { background: #607D8B; }

.member-avatars-preview {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.member-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    background: var(--bg);
}

.member-count-more {
    font-size: 10px;
    color: var(--text-secondary);
    margin-right: 5px;
    font-weight: 700;
}

.card-top-decoration {
    height: 6px;
    width: 100%;
}

.circle-platform-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 5;
}

.circle-card-header {
    padding: 24px 24px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.circle-template-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.circle-header-text { flex: 1; min-width: 0; }
.circle-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.verified-check { color: #2196F3; font-size: 14px; }
.circle-host { font-size: 12px; color: var(--text-secondary); font-weight: 600; }

.circle-card-body { padding: 0 24px 15px; flex: 1; }
.circle-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.circle-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.circle-tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.circle-tag.gender.male { background: #e0f2fe; color: #0369a1; }
.circle-tag.gender.female { background: #fdf2f8; color: #be185d; }
.circle-tag.gender.mixed { background: #f0fdf4; color: #15803d; }

.circle-card-footer {
    padding: 15px 24px 24px;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid var(--border);
}

.template-info-pill {
    font-size: 12px;
    color: var(--primary);
    background: rgba(26, 95, 58, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    width: fit-content;
}

.circle-card-actions { display: flex; gap: 10px; }
.circle-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.circle-action-btn:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

.circle-manage-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.circle-manage-btn.edit { color: var(--primary); }
.circle-manage-btn.delete { color: var(--error); }
.circle-manage-btn:hover { background: var(--bg); transform: scale(1.1); }

.circle-join-btn-modern {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
}

.circle-join-btn-modern:hover { filter: brightness(1.1); transform: translateX(-5px); }

/* Create Circle Modern Form */
.create-circle-intro {
    text-align: center;
    background: rgba(26, 95, 58, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.create-circle-intro i { font-size: 32px; color: var(--primary); margin-bottom: 10px; }
.create-circle-intro p { font-size: 14px; font-weight: 600; color: var(--primary); line-height: 1.5; }

.form-row { display: flex; gap: 15px; }
.flex-2 { flex: 2; }
.flex-1 { flex: 1; }

.platform-selector-pills { display: flex; gap: 10px; }
.platform-pill {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 15px;
    background: white;
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.platform-pill.wa.active { border-color: #25D366; background: #f0fdf4; color: #166534; }
.platform-pill.tg.active { border-color: #0088cc; background: #f0f9ff; color: #075985; }

.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); opacity: 0.5; }
.input-with-icon .form-input { padding-right: 40px; }

.btn-submit-premium {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
    font-family: inherit;
}

.btn-submit-premium:hover { box-shadow: 0 10px 25px rgba(26, 95, 58, 0.3); transform: translateY(-3px); }

.empty-circles-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
}

.empty-circles-state .empty-icon { font-size: 64px; margin-bottom: 20px; }

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .circles-hero-premium { padding: 30px 20px; text-align: center; }
    .circles-hero-content { min-width: 100%; }
    .circles-hero-stats { justify-content: center; }
    .btn-create-circle-premium { width: 100%; }
}

/* Radio Tab Professional Styles */
.radio-tab-container {
    padding: 10px 0;
}

.radio-hero {
    background: var(--primary-gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    padding: 30px;
    margin-bottom: 25px;
}

.radio-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/arabesque.png');
    opacity: 0.1;
}

.radio-live-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.radio-live-icon .ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: radio-ripple 2s infinite;
}

@keyframes radio-ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.radio-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-box-radio {
    flex: 1;
    min-width: 280px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box-radio i { color: var(--text-secondary); }
.search-box-radio input {
    border: none; background: transparent; width: 100%;
    font-family: inherit; font-size: 15px; outline: none; color: var(--text);
}

.filter-dropdown-container {
    position: relative;
    min-width: 180px;
}

.filter-select-custom {
    width: 100%;
    padding: 12px 18px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    background: var(--card-bg);
    color: var(--primary);
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a5f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    transition: 0.3s;
}

.filter-select-custom:focus {
    box-shadow: 0 0 0 4px rgba(26, 95, 58, 0.1);
}

.radio-history-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.history-grid-horizontal {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 5px;
}

.history-mini-card {
    min-width: 150px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.history-mini-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.history-mini-card i {
    color: var(--primary);
    font-size: 14px;
}

.history-mini-card span {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    width: 100%;
}

@media (max-width: 480px) {
    .radio-grid {
        grid-template-columns: 1fr; /* Full width cards on small screens */
    }
}

.radio-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.radio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.radio-card.active {
    background: var(--card-bg);
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 12px 30px rgba(26, 95, 58, 0.15);
}

.radio-card.active::before {
    opacity: 0.03;
}

.fav-btn-radio {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    color: var(--border);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.fav-btn-radio.active {
    color: #FFC107;
    transform: scale(1.1);
}

.fav-btn-radio:hover {
    transform: scale(1.2);
}

.radio-visualizer {
    width: 50px;
    height: 50px;
    background: var(--bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.radio-card.active .radio-visualizer {
    background: var(--primary-gradient);
    color: white;
}

.playing-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
}

.playing-bars span {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: radio-bars 1s ease-in-out infinite;
}

.playing-bars span:nth-child(2) { animation-delay: 0.2s; }
.playing-bars span:nth-child(3) { animation-delay: 0.4s; }
.playing-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes radio-bars {
    0%, 100% { height: 6px; }
    50% { height: 18px; }
}

.radio-info { flex: 1; min-width: 0; }
.radio-info h3 {
    font-size: 15px; font-weight: 800; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.live-tag {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 800; color: var(--text-secondary);
    text-transform: uppercase;
}

.radio-card.active .live-tag { color: var(--primary); }
.live-tag .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-secondary);
}

.radio-card.active .dot {
    background: var(--primary);
    animation: dot-pulse 1s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.radio-action-indicator {
    font-size: 24px; color: var(--border); transition: 0.3s;
}

.radio-card:hover .radio-action-indicator {
    color: var(--primary);
}

.radio-card.active .radio-action-indicator {
    color: var(--primary);
}

.mini-player-radio {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 600px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1001;
    overflow: hidden;
    border: 3px solid var(--primary);
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.player-main-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-vol-slider {
    width: 80px;
    accent-color: var(--primary);
    cursor: pointer;
}

.player-content {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.player-label { font-size: 10px; color: var(--text-secondary); font-weight: 700; }
.player-station-name {
    font-size: 14px; font-weight: 800; color: var(--primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.player-stop-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: 0.3s;
}

.player-stop-btn:hover { background: #d32f2f; transform: scale(1.05); }

.btn-timer-custom {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-timer-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.player-stop-btn-premium {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.player-stop-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

.player-progress-infinite {
    height: 4px;
    background: var(--primary);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.player-progress-infinite::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 30%; height: 100%;
    background: var(--secondary);
    animation: player-loading 1.5s linear infinite;
}

@keyframes player-loading {
    from { left: -30%; }
    to { left: 100%; }
}

.loading-state-radio {
    padding: 60px 0; text-align: center; color: var(--text-secondary);
}

.spinner-radio {
    width: 50px; height: 50px; border: 4px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    margin: 0 auto 20px; animation: radio-spin 1s linear infinite;
}

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

.empty-search-radio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.empty-search-radio i { font-size: 48px; margin-bottom: 15px; opacity: 0.5; }

@media (max-width: 768px) {
    .mini-player-radio { bottom: 80px; }
}

/* Mobile Navigation & Header */
.mobile-header-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header-bar {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 64px;
        background: var(--glass);
        backdrop-filter: blur(15px);
        z-index: 2000;
        padding: 0 20px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .mobile-header-bar.hidden {
        transform: translateY(-100%);
    }

    .mobile-menu-trigger {
        background: var(--primary-gradient);
        color: white;
        border: none;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(26, 95, 58, 0.2);
    }

    .mobile-logo-text {
        font-size: 18px;
        font-weight: 800;
        color: var(--primary);
        font-family: 'Cairo', sans-serif;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        height: 70px;
        background: var(--glass);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-secondary);
        background: none;
        border: none;
        font-family: inherit;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
        padding: 8px;
        flex: 1;
        transition: 0.3s;
    }

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

    .mobile-nav-item i {
        font-size: 18px;
        transition: 0.3s;
    }

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

    .more-item {
        color: var(--secondary-dark);
        opacity: 0.8;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 2500;
        animation: fadeIn 0.3s ease-out;
    }

    .sidebar-close {
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
}

.admin-dashboard {
    animation: fadeIn 0.5s ease-out;
}

.admin-dashboard table th, .admin-dashboard table td {
    border: 1px solid var(--border);
}

.admin-dashboard table tr:hover {
    background: rgba(26, 95, 58, 0.05);
}

/* Prayer Times Styles - Professional Overhaul */
.prayer-times-card-premium {
    padding: 0 !important;
    overflow: hidden;
    background: var(--card-bg);
    border: none !important;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.prayer-times-card-premium:hover {
    transform: translateY(-5px);
}

.prayer-datetime-topbar {
    background: linear-gradient(to left, #0d321e, #1a5f3a);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-live-clock {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-live-clock i {
    color: var(--secondary);
    font-size: 18px;
    animation: pulse 2s infinite;
}

.live-time {
    font-family: monospace;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.live-day {
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 12px;
    border-radius: 20px;
    color: var(--secondary);
}

.topbar-dates {
    display: flex;
    gap: 8px;
}

.date-pill {
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.date-pill.hijri {
    background: linear-gradient(135deg, #FFEF00 0%, #FFC107 100%);
    color: #1a5f3a;
    box-shadow: 0 4px 10px rgba(255, 239, 0, 0.2);
}

.date-pill.gregorian {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prayer-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.prayer-location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.prayer-location-info i {
    color: #ff3b30;
    animation: bounce 2s infinite;
}

.prayer-status-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--success);
    background: rgba(0, 186, 136, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: dot-pulse 1.5s infinite;
}

.next-prayer-banner {
    background: linear-gradient(135deg, #1a5f3a 0%, #2a8f5a 100%);
    padding: 35px 30px;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-overlay-pattern {
    position: absolute;
    inset: 0;
    background-image: url('shimmer_overlay.png');
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.next-prayer-details {
    flex: 1;
    position: relative;
    z-index: 2;
}

.next-label {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.85;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-label::after {
    content: '';
    height: 2px;
    width: 30px;
    background: var(--secondary);
    display: inline-block;
}

.next-name {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--secondary);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.next-time {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 16px;
    border-radius: 30px;
    width: fit-content;
}

.next-prayer-countdown {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 20px 25px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.remaining-label {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.8;
    margin-bottom: 6px;
    display: block;
}

.countdown-timer {
    font-size: 32px;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--secondary);
}

.next-prayer-icon {
    font-size: 120px;
    position: absolute;
    left: -30px;
    bottom: -30px;
    opacity: 0.1;
    transform: rotate(-15deg);
    z-index: 1;
}

.all-prayers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 25px;
    gap: 12px;
    background: var(--card-bg);
}

.prayer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.prayer-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
    background: white;
    box-shadow: var(--shadow-sm);
}

.prayer-item.active {
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.1) 0%, rgba(255, 239, 0, 0.1) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(26, 95, 58, 0.12);
}

.p-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.prayer-item.active .p-name {
    color: var(--primary);
}

.p-time {
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
}

.active-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 8px;
    animation: pulse-green 2s infinite;
}

@media (max-width: 768px) {
    .all-prayers-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 15px;
        gap: 10px;
    }
    
    .prayer-datetime-topbar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .topbar-dates {
        width: 100%;
        justify-content: center;
    }
    
    .next-prayer-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .next-name {
        font-size: 36px;
    }
    
    .next-prayer-countdown {
        width: 100%;
        margin-top: 20px;
    }
    
    .next-time {
        margin: 10px auto;
    }
}