        :root {
            --dark-bg-1: #020617;
            --dark-bg-2: #0f172a;
            --dark-bg-3: #1e293b;
            --dark-bg-4: #0c1220;
            --gold: #F59E0B;
            --gold-light: #FCD34D;
            --gold-glow: rgba(245, 158, 11, 0.4);
            --primary-light: #E8D5B7;
            --light-bg-1: #FFF8E1;
            --light-bg-2: #FFECB3;
            --light-bg-3: #D7CCC8;
            --coffee-brown: #5D4037;
            --coffee-light: #6D4C41;
            --green: #27AE60;
            --purple: #CE93D8;
            --text-primary: #FFFFFF;
            --text-secondary: rgba(255, 255, 255, 0.7);
            --text-muted: rgba(255, 255, 255, 0.5);
            --spacing-xs: 8px;
            --spacing-sm: 12px;
            --spacing-md: 16px;
            --spacing-lg: 20px;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Tajawal', -apple-system, sans-serif;
            min-height: 100vh;
            color: var(--text-primary);
            overflow-x: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(245,158,11,0.55), rgba(245,158,11,0.25));
            border-radius: 999px;
            border: 2px solid rgba(2,6,23,0.7);
        }
        body.light-mode::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(217,119,6,0.35), rgba(217,119,6,0.15));
            border: 2px solid rgba(248,250,252,0.7);
        }
        
        /* Luxury Gold Frame */
        .lux-frame::before {
            content: "";
            position: fixed;
            inset: 10px;
            border-radius: 18px;
            pointer-events: none;
            z-index: 9999;
            border: 1px solid rgba(245,158,11,0.20);
            box-shadow:
                0 0 0 1px rgba(253,230,138,0.08) inset,
                0 0 35px rgba(245,158,11,0.06);
            transition: opacity 0.4s;
        }
        body.light-mode .lux-frame::before {
            border-color: rgba(217,119,6,0.08);
            box-shadow: none;
        }
        
        /* Selection Color */
        ::selection {
            background: var(--gold);
            color: var(--dark-bg-1);
        }
        body.light-mode ::selection {
            background: var(--coffee-brown);
            color: white;
        }
        
        body.dark-mode {
            background:
                radial-gradient(1200px 700px at 20% 15%, rgba(245,158,11,0.10), transparent 60%),
                radial-gradient(900px 600px at 80% 10%, rgba(252,211,77,0.08), transparent 55%),
                radial-gradient(1200px 900px at 50% 100%, rgba(56,189,248,0.04), transparent 60%),
                var(--dark-bg-1);
            background-attachment: fixed;
        }
        
        body.light-mode {
            background: linear-gradient(145deg, var(--light-bg-1) 0%, var(--light-bg-2) 50%, #FFFDF5 100%);
            background-size: 200% 200%;
            animation: gradientShift 20s ease infinite;
            color: var(--coffee-brown);
        }
        
        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        /* Floating particles for visual effect */
        .particle {
            position: fixed;
            width: 4px;
            height: 4px;
            background: var(--gold);
            border-radius: 50%;
            pointer-events: none;
            opacity: 0.3;
            animation: float 15s infinite ease-in-out;
        }
        body.light-mode .particle {
            background: var(--coffee-brown);
            opacity: 0.15;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 0.3; }
            90% { opacity: 0.3; }
            100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
        }
        
        /* Stars */
        .stars-container {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none;
            z-index: 0;
        }
        body.light-mode .stars-container { display: none; }
        
        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s ease-in-out infinite;
        }
        
        @keyframes twinkle {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.9; transform: scale(1.2); }
        }
        
        /* Moon */
        .crescent-moon {
            position: fixed;
            top: 80px; left: 25px;
            z-index: 1;
            pointer-events: none;
        }
        body.light-mode .crescent-moon { display: none; }
        
        .moon-glow {
            position: absolute;
            width: 70px; height: 70px;
            background: radial-gradient(circle, rgba(244, 228, 186, 0.35) 0%, transparent 70%);
            top: -15px; left: -15px;
            filter: blur(8px);
        }
        
        .moon-body { position: relative; width: 40px; height: 40px; }
        .moon-light {
            position: absolute;
            width: 40px; height: 40px;
            background: var(--gold-light);
            border-radius: 50%;
            box-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(245, 158, 11, 0.15);
        }
        .moon-dark {
            display: none;
            width: 38px; height: 38px;
            background: var(--dark-bg-1);
            border-radius: 50%;
            position: absolute;
            top: 1px; left: 0;
            transition: left 0.5s ease;
        }
        
        /* Sun for light mode */
        .sun-glow {
            position: fixed;
            top: -50px; right: -50px;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(255, 193, 7, 0.25) 0%, transparent 60%);
            pointer-events: none;
            z-index: 0;
            display: none;
        }
        body.light-mode .sun-glow { display: block; }
        
        .container {
            max-width: min(440px, 96vw);
            margin: 0 auto;
            padding: var(--spacing-sm) max(var(--spacing-sm), env(safe-area-inset-left));
            position: relative;
            z-index: 2;
            min-height: 100vh;
        }
        
        /* احترام تفضيلات الحركة المنخفضة */
        @media (prefers-reduced-motion: reduce) {
            .particle, .star, .prayer-hero::before, .brand-glow {
                animation: none !important;
            }
            * {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
            }
        }
        
        /* Toolbar */
        .toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: var(--spacing-sm) 0;
            margin-bottom: var(--spacing-xs);
        }
        
        .toolbar-title {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* Logo SVG */
        .logo-icon {
            width: 36px;
            height: 36px;
            filter: drop-shadow(0 0 8px var(--gold-glow));
        }
        
        body.light-mode .logo-icon {
            filter: drop-shadow(0 2px 4px rgba(93, 64, 55, 0.3));
        }
        
        .toolbar-title h1 {
            font-size: 20px;
            font-weight: 800;
            color: var(--gold);
            text-shadow: 0 0 20px var(--gold-glow);
        }
        
        body.light-mode .toolbar-title h1 {
            color: var(--coffee-brown);
            text-shadow: none;
        }
        
        /* ===== Brand Header - هوية التطبيق ===== */
        .brand-header {
            position: relative;
            text-align: center;
            padding: 20px 20px 14px;
            margin: -8px -16px 16px;
            border-radius: 0 0 var(--radius-xl) var(--radius-xl);
            overflow: hidden;
        }
        
        /* خلفية الأيقونة الشفافة كبصمة الهوية */
        .brand-header::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 280px;
            height: 280px;
            background-image: url('app-icon-transparent.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            opacity: 0.12;
            filter: brightness(1.8) contrast(0.9);
            border-radius: 0;
            pointer-events: none;
        }
        
        .brand-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.22), transparent);
        }
        
        body.light-mode .brand-header::before {
            opacity: 0.08;
            filter: brightness(0.8) contrast(1.2);
        }
        
        body.light-mode .brand-header::after {
            background: linear-gradient(90deg, transparent, rgba(93, 64, 55, 0.15), transparent);
        }
        
        .brand-logo-container {
            position: relative;
            display: inline-block;
            margin-bottom: 4px;
        }
        
        .brand-logo {
            width: 80px;
            height: 80px;
            transition: transform 0.3s;
            filter: drop-shadow(0 4px 20px rgba(245, 158, 11, 0.2));
        }
        
        .brand-logo:hover {
            transform: scale(1.05);
        }
        
        body.light-mode .brand-logo {
            filter: drop-shadow(0 2px 8px rgba(93, 64, 55, 0.3));
        }
        
        .brand-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(128, 0, 32, 0.1) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 70%);
            animation: brandPulse 4s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes brandPulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
            50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
        }
        
        body.light-mode .brand-glow {
            background: radial-gradient(circle, rgba(93, 64, 55, 0.06) 0%, transparent 60%);
        }
        
        .notif-toggle {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            font-size: 16px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .notif-toggle.active {
            background: rgba(245, 158, 11, 0.2);
            border-color: rgba(245, 158, 11, 0.4);
        }
        .notif-toggle:hover { transform: scale(1.1); }
        body.light-mode .notif-toggle {
            background: rgba(93, 64, 55, 0.08);
            border-color: rgba(93, 64, 55, 0.15);
        }
        body.light-mode .notif-toggle.active {
            background: rgba(93, 64, 55, 0.15);
            border-color: rgba(93, 64, 55, 0.3);
        }

        .theme-toggle {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            font-size: 18px;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .theme-toggle::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .theme-toggle:hover::before {
            opacity: 1;
        }
        
        body.light-mode .theme-toggle {
            background: rgba(93, 64, 55, 0.08);
            border-color: rgba(93, 64, 55, 0.15);
        }
        
        body.light-mode .theme-toggle::before {
            background: radial-gradient(circle, rgba(93, 64, 55, 0.2) 0%, transparent 70%);
        }
        
        .theme-toggle:hover {
            transform: scale(1.1) rotate(15deg);
            background: rgba(245, 158, 11, 0.2);
        }
        
        .theme-toggle:active {
            transform: scale(0.95);
        }
        
        #themeIcon {
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-block;
        }
        
        .theme-toggle:hover #themeIcon {
            transform: rotate(20deg);
        }
        
        /* Location */
        .location-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
            margin-bottom: var(--spacing-xs);
        }
        
        .location-badge .icon { color: var(--gold); font-size: 12px; }
        body.light-mode .location-badge { color: var(--coffee-light); }
        body.light-mode .location-badge .icon { color: var(--coffee-brown); }
        
        /* Date */
        .date-section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: var(--radius-md);
            margin-bottom: var(--spacing-md);
            border: 1px solid rgba(245, 158, 11, 0.12);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        
        body.light-mode .date-section {
            background: rgba(93, 64, 55, 0.05);
            border-color: rgba(217, 119, 6, 0.08);
            backdrop-filter: none;
        }
        
        .hijri-date { font-size: 15px; font-weight: 700; color: var(--gold); }
        body.light-mode .hijri-date { color: var(--coffee-brown); }
        .date-separator { color: rgba(255,255,255,0.15); font-weight: 300; }
        body.light-mode .date-separator { color: rgba(93, 64, 55, 0.2); }
        .gregorian-date { font-size: 14px; color: var(--text-secondary); }
        body.light-mode .gregorian-date { color: var(--coffee-light); }
        
        /* Hero */
        .prayer-hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 28px 20px;
            margin-bottom: var(--spacing-md);
            background: linear-gradient(145deg, rgba(245, 158, 11, 0.10) 0%, rgba(253, 230, 138, 0.03) 50%, rgba(245, 158, 11, 0.06) 100%);
            border-radius: var(--radius-xl);
            border: 1.5px solid rgba(245, 158, 11, 0.22);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 0 0 1px rgba(253,230,138,0.06) inset, 0 8px 32px rgba(0, 0, 0, 0.25);
        }
        
        .prayer-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
            animation: heroPulse 5s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes heroPulse {
            0%, 100% { transform: scale(1); opacity: 0.4; }
            50% { transform: scale(1.1); opacity: 0.7; }
        }
        
        body.light-mode .prayer-hero {
            background: linear-gradient(145deg, rgba(93, 64, 55, 0.1) 0%, rgba(166, 124, 82, 0.04) 50%, rgba(93, 64, 55, 0.06) 100%);
            border-color: rgba(93, 64, 55, 0.18);
            box-shadow: 0 8px 32px rgba(93, 64, 55, 0.08);
        }
        
        body.light-mode .prayer-hero::before {
            background: radial-gradient(circle, rgba(93, 64, 55, 0.04) 0%, transparent 50%);
        }
        
        .hero-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
        body.light-mode .hero-label { color: var(--coffee-light); }
        
        .hero-prayer-name {
            font-size: 42px;
            font-weight: 800;
            color: var(--gold);
            margin: 8px 0;
            text-shadow: 0 0 30px var(--gold-glow);
            letter-spacing: 1px;
        }
        body.light-mode .hero-prayer-name { color: var(--coffee-brown); text-shadow: 0 2px 8px rgba(93, 64, 55, 0.15); }
        
        .hero-prayer-time {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 17px;
            font-weight: 700;
            padding: 8px 24px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 25px;
            border: 1px solid rgba(245, 158, 11, 0.15);
            margin: 6px auto 4px;
            font-variant-numeric: tabular-nums;
        }
        body.light-mode .hero-prayer-time { 
            background: rgba(93, 64, 55, 0.08); 
            border-color: rgba(93, 64, 55, 0.12);
        }
        
        .hero-countdown {
            font-size: 50px;
            font-weight: 800;
            color: var(--gold);
            font-family: 'Tajawal', monospace;
            letter-spacing: 3px;
            margin: 8px 0;
            text-shadow: 0 0 35px var(--gold-glow);
            position: relative;
            display: inline-block;
            font-variant-numeric: tabular-nums;
        }
        
        .hero-countdown::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
            border-radius: 2px;
            animation: countdownLine 3s ease-in-out infinite;
        }
        
        @keyframes countdownLine {
            0%, 100% { opacity: 0.3; width: 40px; }
            50% { opacity: 1; width: 80px; }
        }
        
        body.light-mode .hero-countdown { 
            color: var(--coffee-brown); 
            text-shadow: none; 
        }
        
        body.light-mode .hero-countdown::after {
            background: linear-gradient(90deg, transparent, var(--coffee-brown), transparent);
        }
        
        .hero-countdown-label { font-size: 14px; font-weight: 600; color: var(--primary-light); }
        body.light-mode .hero-countdown-label { color: var(--coffee-light); }
        
        /* Prayer Grid */
        .prayer-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: var(--spacing-sm);
        }
        
        .prayer-card {
            text-align: center;
            padding: 16px 8px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(245, 158, 11, 0.10);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .prayer-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
            transition: left 0.5s;
        }
        
        .prayer-card:hover::before {
            left: 100%;
        }
        
        .prayer-card:hover {
            transform: translateY(-4px) scale(1.02);
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(245, 158, 11, 0.25);
            box-shadow: 0 0 0 1px rgba(245,158,11,0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
        }
        
        body.light-mode .prayer-card { 
            background: rgba(93, 64, 55, 0.06); 
            border-color: rgba(217, 119, 6, 0.10);
            backdrop-filter: none;
        }
        body.light-mode .prayer-card:hover { 
            background: rgba(93, 64, 55, 0.1); 
            border-color: rgba(217, 119, 6, 0.20);
            box-shadow: 0 8px 24px rgba(93, 64, 55, 0.12);
        }
        
        .prayer-card.active {
            background: linear-gradient(145deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
            border-color: rgba(245, 158, 11, 0.45);
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.20), inset 0 0 20px rgba(245, 158, 11, 0.04);
            transform: scale(1.03);
            animation: activeGlow 3s ease-in-out infinite;
        }
        
        @keyframes activeGlow {
            0%, 100% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15), inset 0 0 15px rgba(245, 158, 11, 0.03); }
            50% { box-shadow: 0 6px 30px rgba(245, 158, 11, 0.30), inset 0 0 25px rgba(245, 158, 11, 0.06); }
        }
        
        body.light-mode .prayer-card.active {
            background: linear-gradient(145deg, rgba(93, 64, 55, 0.14) 0%, rgba(93, 64, 55, 0.06) 100%);
            border-color: rgba(93, 64, 55, 0.4);
            animation: activeGlowLight 3s ease-in-out infinite;
        }
        
        @keyframes activeGlowLight {
            0%, 100% { box-shadow: 0 4px 20px rgba(93, 64, 55, 0.15); }
            50% { box-shadow: 0 6px 30px rgba(93, 64, 55, 0.3); }
        }
        
        .prayer-card-icon { font-size: 30px; margin-bottom: 8px; }
        .prayer-card-name { font-size: 14px; font-weight: 600; margin-bottom: 5px; line-height: 1.2; }
        .prayer-card-time { font-size: 18px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
        body.light-mode .prayer-card-time { color: var(--coffee-brown); }
        
        /* Iqama */
        .iqama-mini {
            margin-top: 8px;
            padding: 6px 10px;
            background: linear-gradient(135deg, rgba(39, 174, 96, 0.18), rgba(39, 174, 96, 0.08));
            border: 1px solid rgba(39, 174, 96, 0.25);
            border-radius: 8px;
            display: none;
        }
        .iqama-mini.active { display: block; }
        .iqama-mini-label { font-size: 10px; font-weight: 600; color: var(--green); }
        .iqama-mini-time { font-size: 13px; font-weight: 700; color: var(--green); font-family: monospace; font-variant-numeric: tabular-nums; }
        
        /* Special Times */
        .special-times {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: var(--spacing-md);
        }
        
        .special-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border-radius: var(--radius-lg);
            border: 1px solid;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .special-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        
        .special-card.midnight {
            background: linear-gradient(135deg, rgba(206, 147, 216, 0.12) 0%, rgba(206, 147, 216, 0.05) 100%);
            border-color: rgba(206, 147, 216, 0.25);
        }
        body.light-mode .special-card.midnight {
            background: linear-gradient(135deg, rgba(109, 76, 65, 0.08) 0%, rgba(109, 76, 65, 0.03) 100%);
            border-color: rgba(109, 76, 65, 0.18);
        }
        
        .special-card.lastthird {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
            border-color: rgba(245, 158, 11, 0.25);
        }
        body.light-mode .special-card.lastthird {
            background: linear-gradient(135deg, rgba(93, 64, 55, 0.08) 0%, rgba(93, 64, 55, 0.03) 100%);
            border-color: rgba(93, 64, 55, 0.18);
        }
        
        .special-info { display: flex; align-items: center; gap: 8px; }
        .special-icon { font-size: 16px; }
        .special-label { font-size: 13px; font-weight: 700; }
        .special-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
        
        .midnight .special-label, .midnight .special-time, .midnight .special-icon { color: var(--purple); }
        body.light-mode .midnight .special-label, body.light-mode .midnight .special-time, body.light-mode .midnight .special-icon { color: var(--coffee-light); }
        .lastthird .special-label, .lastthird .special-time, .lastthird .special-icon { color: var(--gold); }
        body.light-mode .lastthird .special-label, body.light-mode .lastthird .special-time, body.light-mode .lastthird .special-icon { color: var(--coffee-brown); }
        
        /* Tabs */
        .tabs-container {
            display: flex;
            gap: 6px;
            margin-bottom: var(--spacing-md);
            background: rgba(255,255,255,0.05);
            padding: 6px;
            border-radius: var(--radius-lg);
        }
        
        body.light-mode .tabs-container { background: rgba(93, 64, 55, 0.05); }
        
        .tab-btn {
            flex: 1;
            padding: 12px 8px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-family: 'Tajawal', sans-serif;
            font-size: 13px;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        
        .tab-btn .tab-icon { font-size: 20px; }
        
        .tab-btn.active {
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
            color: var(--dark-bg-1);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        }
        
        body.light-mode .tab-btn { color: var(--coffee-light); }
        body.light-mode .tab-btn.active {
            background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-light));
            color: white;
        }
        
        /* Tab Content */
        .tab-content { display: none; }
        .tab-content.active { display: block; animation: slideInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
        
        @keyframes slideInUp {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Adhkar Section */
        .adhkar-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        .adhkar-grid .adhkar-card:last-child:nth-child(odd) {
            grid-column: 1 / -1;
            max-width: calc(50% - 6px);
            margin: 0 auto;
        }
        
        .adhkar-card {
            padding: 22px 14px;
            background: rgba(255,255,255,0.04);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(245, 158, 11, 0.10);
            text-align: center;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .adhkar-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        
        .adhkar-card:hover::after {
            opacity: 0.12;
        }
        
        body.light-mode .adhkar-card {
            background: rgba(93, 64, 55, 0.06);
            border-color: rgba(217, 119, 6, 0.10);
            backdrop-filter: none;
        }
        
        body.light-mode .adhkar-card::after {
            background: radial-gradient(circle at center, rgba(93, 64, 55, 0.15) 0%, transparent 70%);
        }
        
        .adhkar-card:hover {
            transform: translateY(-4px) scale(1.01);
            border-color: rgba(245, 158, 11, 0.35);
            box-shadow: 0 0 0 1px rgba(245,158,11,0.10), 0 12px 30px rgba(0, 0, 0, 0.35);
        }
        
        body.light-mode .adhkar-card:hover {
            border-color: rgba(217, 119, 6, 0.25);
            box-shadow: 0 12px 30px rgba(93, 64, 55, 0.15);
        }
        
        .adhkar-card:active {
            transform: translateY(-1px) scale(0.98);
        }
        
        .adhkar-icon { 
            font-size: 40px; 
            margin-bottom: 10px; 
            display: block;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .adhkar-card:hover .adhkar-icon {
            transform: scale(1.12);
        }
        .adhkar-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
        .adhkar-count { font-size: 13px; color: var(--text-muted); font-weight: 500; }
        body.light-mode .adhkar-count { color: var(--coffee-light); }
        
        /* Dhikr Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .modal-overlay.active { display: flex; }
        
        .modal-content {
            background: rgba(15, 23, 42, 0.90);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: var(--radius-xl);
            max-width: 500px;
            width: 95%;
            max-height: 85vh;
            overflow-y: auto;
            border: 1px solid rgba(245, 158, 11, 0.22);
            box-shadow: 0 0 0 1px rgba(253,230,138,0.06) inset, 0 20px 60px rgba(0,0,0,0.6);
        }
        
        body.light-mode .modal-content {
            background: linear-gradient(145deg, #FFFDF5, var(--light-bg-1));
            border-color: rgba(93, 64, 55, 0.2);
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        }
        
        @media (max-width: 480px) {
            .modal-content {
                max-width: 100%;
                width: 100%;
                height: 100%;
                max-height: 100vh;
                border-radius: 0;
                margin: 0;
                padding-top: env(safe-area-inset-top, 0px);
                padding-bottom: env(safe-area-inset-bottom, 0px);
            }
        }
        
        .modal-header {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid rgba(245, 158, 11, 0.10);
            position: sticky;
            top: 0;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            z-index: 100;
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        }
        
        body.light-mode .modal-header { 
            border-color: rgba(93, 64, 55, 0.1); 
            background: linear-gradient(145deg, #FFFDF5, var(--light-bg-1));
        }
        
        .modal-title { font-size: 20px; font-weight: 700; color: var(--gold); }
        body.light-mode .modal-title { color: var(--coffee-brown); }
        
        .modal-close {
            position: absolute;
            top: 15px; left: 15px;
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            width: 42px; height: 42px;
            border-radius: 50%;
            font-size: 22px;
            font-weight: bold;
            cursor: pointer;
            color: #fff;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .modal-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
        body.light-mode .modal-close { background: rgba(93,64,55,0.15); border: 2px solid rgba(93,64,55,0.3); color: #5D4037; }
        body.light-mode .modal-close:hover { background: rgba(93,64,55,0.25); }
        
        .dhikr-item {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            position: relative;
        }
        
        body.light-mode .dhikr-item { border-color: rgba(93, 64, 55, 0.1); }
        
        .dhikr-number {
            position: absolute;
            top: 14px;
            left: 14px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold-glow), var(--primary-light));
            color: #020617;
            font-size: 14px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
        }
        
        body.light-mode .dhikr-number {
            background: linear-gradient(135deg, #8B4513, #A0522D);
            color: white;
        }
        
        .dhikr-text {
            font-size: 22px;
            line-height: 2.2;
            text-align: center;
            margin-bottom: 18px;
            font-family: 'Amiri', 'Traditional Arabic', serif;
            padding: 12px 36px;
            letter-spacing: 0.3px;
        }
        
        .dhikr-reference {
            font-size: 14px;
            line-height: 1.7;
            text-align: center;
            color: var(--gold-glow);
            margin-bottom: 16px;
            padding: 12px 18px;
            background: rgba(245, 158, 11, 0.1);
            border-radius: 10px;
            border-right: 4px solid var(--gold-glow);
        }
        
        body.light-mode .dhikr-reference {
            color: #8B4513;
            background: rgba(139, 69, 19, 0.07);
            border-color: #8B4513;
        }
        
        .dhikr-info {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            color: var(--text-muted);
        }
        
        body.light-mode .dhikr-info { color: var(--coffee-light); }
        
        .dhikr-count-badge {
            background: linear-gradient(135deg, var(--gold-glow), var(--gold));
            color: #020617;
            padding: 6px 14px;
            border-radius: 16px;
            font-weight: 700;
            font-size: 13px;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }

        /* Inline Counter Styles */
        .dhikr-inline-counter {
            width: 100px;
            height: 100px;
            margin: 12px auto 4px;
            position: relative;
            cursor: pointer;
            transition: transform 0.12s ease;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .dhikr-inline-counter:active { transform: scale(0.93); }
        .dhikr-inline-counter.completed { animation: counterPulse 0.5s ease; }
        .mini-progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
        .mini-progress-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 5; }
        body.light-mode .mini-progress-bg { stroke: rgba(0,0,0,0.08); }
        .mini-progress-fill { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease; }
        .mini-counter-inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            line-height: 1.2;
        }
        .mini-counter-value { font-size: 24px; font-weight: 700; color: var(--text-primary); transition: color 0.3s; }
        .mini-counter-target { font-size: 12px; color: var(--text-muted); }
        .dhikr-counter-hint { text-align: center; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
        @keyframes counterPulse { 0%{transform:scale(1)} 50%{transform:scale(1.1)} 100%{transform:scale(1)} }
        
        body.light-mode .dhikr-count-badge {
            background: linear-gradient(135deg, #8B4513, #A0522D);
            color: white;
            box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
        }
        
        /* Inline Counter for Prayer Adhkar */
        .dhikr-countable {
            padding-bottom: 15px !important;
        }
        .dhikr-inline-counter {
            width: 100px;
            height: 100px;
            margin: 12px auto 0;
            position: relative;
            cursor: pointer;
            transition: transform 0.15s ease;
            user-select: none;
            -webkit-user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .dhikr-inline-counter:active {
            transform: scale(0.93);
        }
        .dhikr-inline-counter.completed {
            animation: counterPulse 0.5s ease;
        }
        @keyframes counterPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.08); }
        }
        .mini-progress-ring {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }
        .mini-progress-bg {
            fill: none;
            stroke: rgba(255,255,255,0.1);
            stroke-width: 4;
        }
        body.light-mode .mini-progress-bg {
            stroke: rgba(0,0,0,0.08);
        }
        .mini-progress-fill {
            fill: none;
            stroke-width: 4;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
        }
        .mini-counter-inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
        }
        .mini-counter-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--gold);
            transition: color 0.3s ease, transform 0.1s ease;
            line-height: 1;
        }
        body.light-mode .mini-counter-value {
            color: #5D4037;
        }
        .mini-counter-target {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-top: 2px;
        }
        body.light-mode .mini-counter-target {
            color: rgba(93,64,55,0.6);
        }
        .dhikr-counter-hint {
            text-align: center;
            font-size: 11px;
            color: rgba(255,255,255,0.35);
            margin-top: 4px;
        }
        body.light-mode .dhikr-counter-hint {
            color: rgba(0,0,0,0.3);
        }
        
        /* Prayer Counter Section */
        /* Inline Counters inside Prayer Adhkar */
        .dhikr-countable {
            padding-bottom: 10px !important;
        }
        
        .dhikr-inline-counter {
            position: relative;
            width: 110px;
            height: 110px;
            margin: 12px auto 5px;
            cursor: pointer;
            transition: transform 0.15s ease;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }
        
        .dhikr-inline-counter:active {
            transform: scale(0.92) !important;
        }
        
        .dhikr-inline-counter.completed {
            animation: counterPulse 0.6s ease;
        }
        
        @keyframes counterPulse {
            0% { transform: scale(1); }
            30% { transform: scale(1.12); }
            60% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
        
        .mini-progress-ring {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }
        
        .mini-progress-bg {
            fill: none;
            stroke: rgba(245, 158, 11, 0.12);
            stroke-width: 6;
        }
        
        body.light-mode .mini-progress-bg {
            stroke: rgba(139, 69, 19, 0.12);
        }
        
        .mini-progress-fill {
            fill: none;
            stroke-width: 6;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
        }
        
        .mini-counter-inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        
        .mini-counter-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--counter-color, var(--gold-glow));
            line-height: 1;
            font-family: 'Tajawal', sans-serif;
            transition: color 0.3s ease;
        }
        
        body.light-mode .mini-counter-value {
            color: var(--counter-color, #8B4513);
        }
        
        .mini-counter-target {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        
        .dhikr-counter-hint {
            font-size: 11px;
            color: var(--text-muted);
            text-align: center;
            margin-top: 2px;
            opacity: 0.6;
        }
        
        /* Tasbih Section */
        .tasbih-container {
            text-align: center;
            padding: 20px;
        }
        
        .tasbih-display {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 0 auto 20px;
        }
        
        .tasbih-circle {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
            border: 3px solid var(--gold);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 0 30px var(--gold-glow);
            position: relative;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }
        
        .tasbih-circle::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
            pointer-events: none;
        }
        
        .tasbih-circle.tapped::before {
            width: 200%;
            height: 200%;
        }
        
        body.light-mode .tasbih-circle {
            background: linear-gradient(145deg, rgba(93, 64, 55, 0.1), rgba(93, 64, 55, 0.05));
            border-color: var(--coffee-brown);
            box-shadow: 0 4px 20px rgba(93, 64, 55, 0.2);
        }
        
        body.light-mode .tasbih-circle::before {
            background: radial-gradient(circle, rgba(93, 64, 55, 0.2) 0%, transparent 70%);
        }
        
        .tasbih-circle:active { transform: scale(0.92); }
        
        .tasbih-circle.completed {
            border-color: var(--green) !important;
            box-shadow: 0 0 40px rgba(39, 174, 96, 0.4) !important;
            animation: completionPulse 0.6s ease-out;
        }
        
        @keyframes completionPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* Progress ring around tasbih */
        .tasbih-progress-ring {
            position: absolute;
            top: -5px;
            left: -5px;
            width: calc(100% + 10px);
            height: calc(100% + 10px);
            transform: rotate(-90deg);
        }
        
        .tasbih-progress-bg {
            fill: none;
            stroke: rgba(245, 158, 11, 0.15);
            stroke-width: 4;
        }
        
        .tasbih-progress-fill {
            fill: none;
            stroke: var(--gold);
            stroke-width: 5;
            stroke-linecap: round;
            stroke-dasharray: 628.32;
            stroke-dashoffset: 628.32;
            transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        body.light-mode .tasbih-progress-bg {
            stroke: rgba(93, 64, 55, 0.15);
        }
        
        body.light-mode .tasbih-progress-fill {
            stroke: var(--coffee-brown);
        }
        
        .tasbih-circle.completed .tasbih-progress-fill {
            stroke: var(--green);
        }
        
        .tasbih-count {
            font-size: 60px;
            font-weight: 800;
            color: var(--gold);
            line-height: 1;
            font-variant-numeric: tabular-nums;
            transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        body.light-mode .tasbih-count { color: var(--coffee-brown); }
        
        .tasbih-target {
            font-size: 15px;
            color: var(--text-secondary);
            margin-top: 6px;
            font-weight: 500;
        }
        body.light-mode .tasbih-target { color: var(--coffee-light); }
        
        .tasbih-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--gold);
            margin-bottom: 24px;
        }
        body.light-mode .tasbih-text { color: var(--coffee-brown); }
        
        .tasbih-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            justify-content: center;
            margin-bottom: 20px;
            max-width: 340px;
            margin-left: auto;
            margin-right: auto;
        }
        
        @media (min-width: 400px) {
            .tasbih-options {
                grid-template-columns: repeat(4, 1fr);
                max-width: 100%;
            }
        }
        
        .tasbih-option {
            padding: 12px 16px;
            background: rgba(255,255,255,0.06);
            border: 1.5px solid rgba(255,255,255,0.12);
            border-radius: var(--radius-md);
            color: var(--text-primary);
            font-family: 'Tajawal', sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        body.light-mode .tasbih-option {
            background: rgba(93, 64, 55, 0.05);
            border-color: rgba(93, 64, 55, 0.15);
            color: var(--coffee-brown);
        }
        
        .tasbih-option.active {
            background: linear-gradient(135deg, var(--gold), rgba(245, 158, 11, 0.85));
            border-color: var(--gold);
            color: var(--dark-bg-1);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }
        
        body.light-mode .tasbih-option.active {
            background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-light));
            border-color: var(--coffee-brown);
            color: white;
            box-shadow: 0 4px 12px rgba(93, 64, 55, 0.25);
        }
        
        .tasbih-option:hover:not(.active) {
            background: rgba(255,255,255,0.1);
            border-color: rgba(245, 158, 11, 0.3);
            transform: translateY(-2px);
        }
        
        body.light-mode .tasbih-option:hover:not(.active) {
            background: rgba(93, 64, 55, 0.08);
            border-color: rgba(93, 64, 55, 0.25);
        }
        
        .tasbih-reset {
            padding: 12px 36px;
            background: rgba(231, 76, 60, 0.1);
            border: 1.5px solid rgba(231, 76, 60, 0.3);
            border-radius: var(--radius-lg);
            color: #E74C3C;
            font-family: 'Tajawal', sans-serif;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
        }
        
        .tasbih-reset:hover { background: rgba(231, 76, 60, 0.25); transform: translateY(-2px); }
        
        /* Download Section */
        .download-section {
            text-align: center;
            padding: 28px 20px;
            background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-xl);
            border: 1px solid rgba(245, 158, 11, 0.15);
            margin-top: var(--spacing-lg);
        }
        
        body.light-mode .download-section {
            background: linear-gradient(145deg, rgba(93, 64, 55, 0.06) 0%, transparent 100%);
            border-color: rgba(217, 119, 6, 0.10);
            backdrop-filter: none;
        }
        
        .download-icon-wrapper {
            margin-bottom: 16px;
        }
        
        .download-app-icon {
            width: 80px;
            height: 80px;
            border-radius: 18px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3);
            animation: iconFloat 3s ease-in-out infinite;
        }
        
        @keyframes iconFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        
        .download-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
        .download-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
        body.light-mode .download-desc { color: var(--coffee-light); }
        
        .download-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-bottom: 18px;
        }
        
        .download-feature {
            font-size: 12px;
            padding: 6px 12px;
            background: rgba(255,255,255,0.08);
            border-radius: 20px;
            color: var(--gold);
            font-weight: 500;
        }
        
        body.light-mode .download-feature {
            background: rgba(93, 64, 55, 0.08);
            color: var(--coffee-brown);
        }
        
        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
            color: var(--dark-bg-1);
            padding: 14px 32px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
        }
        
        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 35px rgba(245, 158, 11, 0.45);
        }
        
        .download-btn svg { width: 22px; height: 22px; }
        
        /* Footer */
        .footer {
            text-align: center;
            padding: 0 0 25px;
            color: var(--text-muted);
            font-size: 12px;
        }
        body.light-mode .footer { color: var(--coffee-light); }
        
        .footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
        body.light-mode .footer a { color: var(--coffee-brown); }
        
        .footer-divider {
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
            margin: 12px auto;
        }
        body.light-mode .footer-divider { background: linear-gradient(90deg, transparent, var(--coffee-brown), transparent); }
        
        /* ===== Bottom Links Section ===== */
        .bottom-links-section {
            margin-top: var(--spacing-md);
            padding: 16px 12px 14px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(245, 158, 11, 0.10);
            position: relative;
            overflow: hidden;
        }
        
        .bottom-links-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 8%;
            right: 8%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.30), transparent);
            border-radius: 1px;
        }
        
        body.light-mode .bottom-links-section {
            background: linear-gradient(145deg, rgba(93, 64, 55, 0.06) 0%, rgba(93, 64, 55, 0.02) 100%);
            border-color: rgba(93, 64, 55, 0.12);
        }
        
        .bottom-links-grid {
            display: flex;
            gap: 8px;
            margin-bottom: 0;
        }
        
        @media (max-width: 360px) {
            .bottom-links-grid {
                flex-direction: column;
                gap: 10px;
            }
            .bottom-link-card {
                flex-direction: row !important;
                justify-content: center;
            }
        }
        
        .bottom-link-card {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 14px 8px;
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(245, 158, 11, 0.08);
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            color: inherit;
        }
        
        .bottom-link-card:hover {
            transform: translateY(-5px) scale(1.02);
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(245, 158, 11, 0.30);
            box-shadow: 0 0 0 1px rgba(245,158,11,0.08), 0 14px 35px rgba(0, 0, 0, 0.3);
        }
        
        body.light-mode .bottom-link-card {
            background: rgba(93, 64, 55, 0.05);
            border-color: rgba(93, 64, 55, 0.1);
        }
        
        body.light-mode .bottom-link-card:hover {
            background: rgba(93, 64, 55, 0.1);
            border-color: rgba(93, 64, 55, 0.22);
            box-shadow: 0 14px 35px rgba(93, 64, 55, 0.14);
        }
        
        .bottom-link-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .bottom-link-card:hover .bottom-link-icon {
            transform: scale(1.1) translateY(-2px);
        }
        
        .bottom-link-icon.app-icon {
            background: linear-gradient(135deg, #1e293b, #020617);
            box-shadow: 0 4px 14px rgba(2, 6, 23, 0.45);
        }
        
        body.light-mode .bottom-link-icon.app-icon {
            background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-light));
            box-shadow: 0 4px 14px rgba(93, 64, 55, 0.25);
        }
        
        .bottom-link-icon.contact-icon {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.12));
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
        }
        
        .bottom-link-icon.instagram-icon-bg {
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
            color: white;
            box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
            transition: all 0.35s ease;
        }
        
        .bottom-link-card:hover .instagram-icon-bg {
            box-shadow: 0 8px 24px rgba(225, 48, 108, 0.5);
            transform: scale(1.12) translateY(-2px);
        }
        
        .bottom-link-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
        }
        
        body.light-mode .bottom-link-label {
            color: var(--coffee-brown);
        }
        
        .bottom-instagram-handle {
            font-size: 10px;
            font-weight: 500;
            color: var(--text-muted);
            margin-top: -2px;
        }
        
        body.light-mode .bottom-instagram-handle {
            color: var(--coffee-light);
        }
        
        /* Loading */
        .loading { text-align: center; padding: 30px; }
        .loading-spinner {
            width: 32px; height: 32px;
            border: 3px solid rgba(245, 158, 11, 0.2);
            border-top-color: var(--gold);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 12px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* Confetti animation */
        @keyframes confettiFall {
            0% {
                transform: translate(-50%, -50%) rotate(0deg) scale(1);
                opacity: 1;
            }
            100% {
                transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(720deg) scale(0);
                opacity: 0;
            }
        }
        
        /* Loading skeleton */
        .skeleton {
            background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
            background-size: 200% 100%;
            animation: skeleton 1.5s infinite;
        }
        
        @keyframes skeleton {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        /* Tooltip */
        .tooltip {
            position: relative;
        }
        
        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: var(--dark-bg-2);
            color: var(--gold);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s;
            pointer-events: none;
            margin-bottom: 8px;
        }
        
        .tooltip:hover::after {
            opacity: 1;
            visibility: visible;
        }
        
        body.light-mode .tooltip::after {
            background: var(--coffee-brown);
            color: white;
        }
        
        /* App install banner */
        .install-banner {
            display: none;
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
            color: var(--dark-bg-1);
            padding: 12px 16px;
            border-radius: var(--radius-md);
            margin-bottom: var(--spacing-sm);
            align-items: center;
            justify-content: space-between;
            animation: slideDown 0.3s ease;
        }
        
        .install-banner.show { display: flex; }
        
        @keyframes slideDown {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .install-banner-text {
            font-weight: 600;
            font-size: 14px;
        }
        
        .install-banner-btn {
            background: var(--dark-bg-1);
            color: var(--gold);
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .install-banner-btn:hover {
            transform: scale(1.05);
        }
        
        .install-banner-close {
            background: transparent;
            border: none;
            color: var(--dark-bg-1);
            font-size: 18px;
            cursor: pointer;
            padding: 4px;
            margin-left: 8px;
            opacity: 0.7;
        }
        
        .install-banner-close:hover { opacity: 1; }
        
        /* Contact Form */
        .contact-section {
            padding: 20px;
        }
        
        .contact-header {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .contact-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        
        .contact-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--gold);
            margin-bottom: 8px;
        }
        
        body.light-mode .contact-title {
            color: var(--coffee-brown);
        }
        
        .contact-desc {
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        body.light-mode .contact-desc {
            color: var(--coffee-light);
        }
        
        .contact-form {
            background: rgba(255,255,255,0.04);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-lg);
            padding: 20px;
            border: 1px solid rgba(245, 158, 11, 0.12);
        }
        
        body.light-mode .contact-form {
            background: rgba(93, 64, 55, 0.04);
            border-color: rgba(217, 119, 6, 0.08);
            backdrop-filter: none;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-primary);
        }
        
        body.light-mode .form-label {
            color: var(--coffee-brown);
        }
        
        .form-label .required {
            color: #E74C3C;
        }
        
        .form-textarea {
            width: 100%;
            min-height: 120px;
            padding: 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-md);
            color: var(--text-primary);
            font-family: 'Tajawal', sans-serif;
            font-size: 15px;
            resize: vertical;
            transition: border-color 0.2s;
        }
        
        body.light-mode .form-textarea {
            background: white;
            border-color: rgba(93, 64, 55, 0.15);
            color: var(--coffee-brown);
        }
        
        .form-textarea:focus {
            outline: none;
            border-color: var(--gold);
        }
        
        .form-textarea::placeholder {
            color: var(--text-muted);
        }
        
        .char-count {
            text-align: left;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }
        
        .input-with-icon {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-md);
            overflow: hidden;
        }
        
        body.light-mode .input-with-icon {
            background: white;
            border-color: rgba(93, 64, 55, 0.15);
        }
        
        .input-icon {
            padding: 0 12px;
            font-size: 16px;
        }
        
        .form-input {
            flex: 1;
            padding: 12px;
            padding-right: 0;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-family: 'Tajawal', sans-serif;
            font-size: 15px;
        }
        
        body.light-mode .form-input {
            color: var(--coffee-brown);
        }
        
        .form-input:focus {
            outline: none;
        }
        
        .form-input::placeholder {
            color: var(--text-muted);
        }
        
        .form-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 8px;
        }
        
        .submit-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 24px;
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
            border: none;
            border-radius: var(--radius-lg);
            color: var(--dark-bg-1);
            font-family: 'Tajawal', sans-serif;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        }
        
        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        }
        
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .submit-btn.loading .submit-text {
            display: none;
        }
        
        .submit-btn.loading::after {
            content: 'جاري الإرسال...';
        }
        
        .form-message {
            margin-top: 16px;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            text-align: center;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .form-message.success {
            background: rgba(39, 174, 96, 0.15);
            color: #27AE60;
            border: 1px solid rgba(39, 174, 96, 0.3);
        }
        
        .form-message.error {
            background: rgba(231, 76, 60, 0.15);
            color: #E74C3C;
            border: 1px solid rgba(231, 76, 60, 0.3);
        }
        
        .whatsapp-alternative {
            text-align: center;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        body.light-mode .whatsapp-alternative {
            border-color: rgba(93, 64, 55, 0.1);
        }
        
        .whatsapp-alternative p {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 12px;
        }
        
        .instagram-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
            border-radius: 25px;
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .instagram-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
        }
        
        .footer-social {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-bottom: 12px;
        }
        
        /* footer-social-link removed - moved to bottom-links-section */
        
        .whatsapp-btn:hover {
            background: #20BA5A;
            transform: translateY(-2px);
        }
        
        /* ===== Back to Top Button ===== */
        .back-to-top {
            position: fixed;
            bottom: 24px;
            left: 24px;
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
            color: var(--dark-bg-1);
            border: none;
            border-radius: 50%;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 200;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
        }
        body.light-mode .back-to-top {
            background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-light));
            color: white;
            box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
        }
        body.light-mode .back-to-top:hover {
            box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
        }
        
        /* ===== Improved Focus States ===== */
        .tab-btn:focus-visible,
        .submit-btn:focus-visible,
        .form-input:focus-visible,
        .download-btn:focus-visible {
            outline: 2px solid var(--gold);
            outline-offset: 2px;
        }
        body.light-mode .tab-btn:focus-visible,
        body.light-mode .submit-btn:focus-visible,
        body.light-mode .form-input:focus-visible,
        body.light-mode .download-btn:focus-visible {
            outline-color: var(--coffee-brown);
        }
        
        /* ===== Improved Hover States ===== */
        .tab-btn:not(.active):hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-1px);
        }
        body.light-mode .tab-btn:not(.active):hover {
            background: rgba(93, 64, 55, 0.08);
        }
        
        .prayer-card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .prayer-card:hover {
            transform: translateY(-2px);
        }
        
        .submit-btn:active:not(:disabled) {
            transform: translateY(0) scale(0.98);
        }
        
        /* ===== Skeleton Loaders ===== */
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        
        .prayer-card.skeleton {
            min-height: 90px;
            background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.04) 25%,
                rgba(255, 255, 255, 0.08) 50%,
                rgba(255, 255, 255, 0.04) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.8s infinite ease-in-out;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        body.light-mode .prayer-card.skeleton {
            background: linear-gradient(90deg,
                rgba(93, 64, 55, 0.04) 25%,
                rgba(93, 64, 55, 0.1) 50%,
                rgba(93, 64, 55, 0.04) 75%);
            background-size: 200% 100%;
            border-color: rgba(93, 64, 55, 0.08);
        }
        
        /* ===== Improved Light Mode ===== */
        body.light-mode .prayer-card {
            box-shadow: 0 2px 8px rgba(93, 64, 55, 0.08);
        }
        body.light-mode .prayer-card:hover {
            box-shadow: 0 4px 16px rgba(93, 64, 55, 0.12);
        }
        body.light-mode .hero-section {
            box-shadow: 0 4px 20px rgba(93, 64, 55, 0.08);
        }
        body.light-mode .form-group {
            box-shadow: 0 1px 4px rgba(93, 64, 55, 0.06);
        }
        body.light-mode .adhkar-card {
            box-shadow: 0 2px 8px rgba(93, 64, 55, 0.06);
        }
        body.light-mode .adhkar-card:hover {
            box-shadow: 0 4px 16px rgba(93, 64, 55, 0.1);
        }
        body.light-mode .download-section {
            box-shadow: 0 4px 20px rgba(93, 64, 55, 0.08);
        }
        
        /* ===== Responsive - Tablets ===== */
        @media (min-width: 768px) {
            .container {
                max-width: 600px;
            }
            .prayer-grid {
                gap: 12px;
            }
            .adhkar-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
            .adhkar-grid .adhkar-card:last-child:nth-child(3n + 1) {
                grid-column: 2 / 3;
                justify-self: center;
            }
            .hero-countdown {
                font-size: 52px;
            }
            .hero-prayer-name {
                font-size: 42px;
            }
            .footer {
                padding: 30px;
            }
        }
        
        @media (min-width: 1024px) {
            .container {
                max-width: 700px;
            }
        }
        
        /* Responsive - Small phones */
        @media (max-width: 380px) {
            .prayer-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
            .hero-countdown { font-size: 36px; }
            .hero-prayer-name { font-size: 30px; }
            .hero-prayer-time { font-size: 15px; padding: 6px 18px; }
        }
        
        @media (max-width: 340px) {
            .tab-btn {
                padding: 10px 4px;
                font-size: 11px;
            }
            .tab-btn .tab-icon {
                font-size: 16px;
            }
        }
        
        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
