
        /* ── CSS Variables ── */
        :root {
            --bg-primary: #050a08;
            --bg-secondary: #0a1f1a;
            --text-primary: #ffffff;
            --text-secondary: rgba(255,255,255,0.7);
            --text-tertiary: rgba(255,255,255,0.4);
            --accent-color: #4ade80;
            --accent-bg: rgba(74,222,128,0.05);
            --accent-border: rgba(74,222,128,0.3);
            --hr-color: rgba(74,222,128,0.1);
            --card-bg: rgba(10,25,20,0.98);
            --nav-bg: rgba(10,25,20,0.9);
            --ad-bg: rgba(10,25,20,0.85);
            --nav-item-inactive: rgba(255,255,255,0.35);
            --close-icon: rgba(255,255,255,0.4);
            --reset-text: rgba(255,255,255,0.6);
            --reset-bg: rgba(255,255,255,0.05);
            --reset-border: rgba(255,255,255,0.1);
            --ring-track: rgba(74,222,128,0.12);
            --ring-fill: #4ade80;
        }

        [data-theme="light"] {
            --bg-primary: #ffffff;
            --bg-secondary: #ffffff;
            --text-primary: #111824;
            --text-secondary: #374151;
            --text-tertiary: #6b7280;
            --accent-color: #10b981;
            --accent-bg: #ecfdf5;
            --accent-border: #a7f3d0;
            --hr-color: #e5e7eb;
            --card-bg: #ffffff;
            --nav-bg: #ffffff;
            --ad-bg: #fafafa;
            --nav-item-inactive: #6b7280;
            --close-icon: #6b7280;
            --reset-text: #6b7280;
            --reset-bg: #f3f4f6;
            --reset-border: #d1d5db;
            --ring-track: rgba(16,185,129,0.12);
            --ring-fill: #10b981;
        }

        html, body {
            height: 100%;
            margin: 0;
            background-color: var(--bg-primary);
            font-family: 'Work Sans', sans-serif;
            color: var(--text-primary);
            transition: background-color 0.3s, color 0.3s;
            overflow-x: hidden;
        }

        .jumbotron-single {
            background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
            min-height: 100vh;
            margin-bottom: 0 !important;
            padding-top: 60px;
            padding-bottom: 180px !important;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .jumbotron-single::before,
        .jumbotron-single::after { display: none !important; }

        [data-theme="light"] .jumbotron-single {
            background: #ffffff !important;
        }

        /* ── Swipe Display Section ── */
        .display-section {
            text-align: center;
            margin-bottom: 24px;
            position: relative;
            min-height: 80px;
            width: 100%;
            overflow: hidden;
        }

        /* Slide wrapper for all tasbih labels */
        .tasbih-slider {
            display: flex;
            transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
            will-change: transform;
        }

        .tasbih-slide {
            min-width: 100%;
            text-align: center;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .tasbih-label {
            color: var(--accent-color);
            font-size: 13px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 2px;
            display: block;
            transition: opacity 0.3s;
        }

        .tasbih-arabic {
            font-size: 20px;
            color: var(--text-secondary);
            font-weight: 300;
            letter-spacing: 1px;
            display: block;
            margin-top: 4px;
            font-family: 'Lato', serif;
        }

        /* ── Count Display ── */
        #count-display {
            font-size: 100px;
            font-weight: 300;
            color: var(--text-primary);
            line-height: 1;
            user-select: none;
            transition: transform 0.08s ease, color 0.3s;
            margin-bottom: 8px;
        }

        #count-display.bump {
            transform: scale(1.08);
        }

        #count-display.complete-flash {
            color: var(--accent-color);
        }

        /* ── Target Badge ── */
        .target-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-bg);
            border: 1px solid var(--accent-border);
            border-radius: 20px;
            padding: 4px 14px;
            font-size: 10px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--accent-color);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 2px;
            user-select: none;
        }

        .target-badge:hover {
            background: rgba(74,222,128,0.12);
        }

        .target-badge i { font-size: 9px; }

        /* ── Dot Indicators ── */
        .dot-indicators {
            display: flex;
            gap: 8px;
            justify-content: center;
            margin-bottom: 18px;
        }

        .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent-border);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .dot.active {
            background: var(--accent-color);
            width: 20px;
            border-radius: 4px;
        }

        /* ── Swipe Arrows ── */
        .swipe-hint {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
        }

        .swipe-arrow {
            color: var(--text-tertiary);
            font-size: 14px;
            cursor: pointer;
            padding: 6px;
            transition: color 0.2s, transform 0.2s;
            border-radius: 50%;
        }

        .swipe-arrow:hover { color: var(--accent-color); transform: scale(1.2); }
        .swipe-arrow:active { transform: scale(0.9); }

        /* ── Tap Zone + Ring ── */
        .tap-zone-wrapper {
            position: relative;
            width: 220px;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* SVG Ring sits behind everything */
        .progress-ring-svg {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            transform: rotate(-90deg);
            pointer-events: none;
        }

        .ring-track {
            fill: none;
            stroke: var(--ring-track);
            stroke-width: 4;
        }

        .ring-fill {
            fill: none;
            stroke: var(--ring-fill);
            stroke-width: 4;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.3s ease, stroke 0.3s;
        }

        .ring-fill.complete {
            stroke: #fbbf24;
            filter: drop-shadow(0 0 6px #fbbf2480);
        }

        .tap-zone {
            width: 200px;
            height: 200px;
            border: 2px solid var(--accent-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            z-index: 1;
        }

        .tap-zone::after {
            content: '';
            width: 160px;
            height: 160px;
            background: var(--accent-bg);
            border-radius: 50%;
            position: absolute;
            transition: transform 0.1s ease;
        }

        .tap-zone:active {
            border-color: var(--accent-color);
            transform: scale(0.96);
        }

        .tap-icon {
            font-size: 30px;
            color: var(--accent-color);
            z-index: 1;
        }

        /* Completion ripple */
        .tap-zone.complete-ripple {
            animation: complete-pulse 0.6s ease;
        }

        @keyframes complete-pulse {
            0%   { box-shadow: 0 0 0 0 rgba(251,191,36,0.6); border-color: #fbbf24; }
            50%  { box-shadow: 0 0 0 20px rgba(251,191,36,0); }
            100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); border-color: var(--accent-border); }
        }

        /* ── Reset ── */
        .reset-wrapper {
            margin-top: 30px;
            z-index: 200;
        }

        .reset-link {
            background: var(--reset-bg);
            border: 1px solid var(--reset-border);
            color: var(--reset-text);
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 10px 25px;
            border-radius: 30px;
            transition: all 0.2s;
            cursor: pointer;
            user-select: none;
            outline: none;
            display: inline-block;
        }

        .reset-link:active {
            background: rgba(255,77,77,0.2);
            color: #ff4d4d;
            border-color: #ff4d4d;
            transform: scale(0.95);
        }

        /* ── Target Modal ── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .modal-overlay.open {
            opacity: 1;
            pointer-events: all;
        }

        .modal-sheet {
            background: var(--card-bg);
            border: 1px solid var(--accent-border);
            border-radius: 24px 24px 0 0;
            padding: 28px 24px 40px;
            width: 100%;
            max-width: 420px;
            transform: translateY(30px);
            transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        }

        .modal-overlay.open .modal-sheet {
            transform: translateY(0);
        }

        .modal-handle {
            width: 36px;
            height: 4px;
            background: var(--accent-border);
            border-radius: 2px;
            margin: 0 auto 20px;
        }

        .modal-title {
            font-size: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--accent-color);
            font-weight: 700;
            margin-bottom: 16px;
            text-align: center;
        }

        .target-options {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }

        .target-option {
            background: var(--reset-bg);
            border: 1px solid var(--reset-border);
            color: var(--text-secondary);
            border-radius: 12px;
            padding: 12px 6px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .target-option:hover,
        .target-option.selected {
            background: rgba(74,222,128,0.12);
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        .target-option-label {
            font-size: 9px;
            letter-spacing: 1px;
            display: block;
            margin-top: 2px;
            opacity: 0.6;
            text-transform: uppercase;
        }

        .modal-close {
            width: 100%;
            background: var(--accent-bg);
            border: 1px solid var(--accent-border);
            color: var(--accent-color);
            border-radius: 12px;
            padding: 12px;
            font-size: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 6px;
        }

        .modal-close:hover {
            background: rgba(74,222,128,0.15);
        }

        /* ── AI Circle ── */
        .ai-circle-container {
            position: fixed;
            bottom: 160px;
            right: 15px;
            width: 60px;
            height: 60px;
            background: var(--card-bg);
            border: 2px solid var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(74,222,128,0.3);
            z-index: 1000;
            animation: pulse-glow 2s infinite;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
        }

        .ai-circle-container:hover {
            transform: scale(1.12);
            box-shadow: 0 6px 25px rgba(74,222,128,0.55);
            animation-play-state: paused;
        }

        .ai-circle-container:active {
            transform: scale(0.92);
        }

        .ai-circle-container img {
            width: 40px; height: 40px;
            border-radius: 50%;
            object-fit: contain;
            pointer-events: none;
        }

        .close-ai-icon {
            position: absolute;
            top: -5px; right: -5px;
            background: #ff4d4d;
            color: white;
            width: 22px; height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            z-index: 1001;
            font-style: normal;
            line-height: 1;
            transition: transform 0.2s;
            pointer-events: all;
        }

        .close-ai-icon:hover { transform: scale(1.2); background: #ff1a1a; }

        @keyframes pulse-glow {
            0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
            70%  { box-shadow: 0 0 0 15px rgba(74,222,128,0); }
            100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
        }

        /* ── Bottom Ad ── */
        .bottom-ad-banner {
            position: fixed;
            bottom: 95px;
            left: 0; right: 0;
            margin: 0 auto;
            width: 90%;
            max-width: 400px;
            background: var(--ad-bg);
            border: 1px solid var(--accent-border);
            border-radius: 15px;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 999;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .ad-content-wrapper {
            display: flex;
            align-items: center;
            text-decoration: none !important;
            flex-grow: 1;
            justify-content: center;
        }

        .bottom-ad-banner img { height: 20px; border-radius: 4px; margin-right: 12px; }
        .bottom-ad-banner span { font-size: 11px; color: var(--accent-color); font-weight: 600; }

        .close-ad-icon {
            color: var(--close-icon);
            font-size: 16px;
            cursor: pointer;
            padding-left: 10px;
            transition: 0.3s;
        }
        .close-ad-icon:hover { color: #ff4d4d; }

        /* ── Bottom Nav ── */
        .bottom-nav {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 400px;
            background: var(--nav-bg);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: space-around;
            padding: 12px 5px;
            border-radius: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            z-index: 1000;
            border: 1px solid var(--accent-border);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none !important;
            color: var(--nav-item-inactive);
            transition: 0.3s;
            flex: 1;
        }

        .nav-item i { font-size: 18px; margin-bottom: 4px; }
        .nav-item span { font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
        .nav-item.active { color: var(--accent-color); }
        .nav-item.active i { text-shadow: 0 0 10px rgba(74,222,128,0.4); }

        /* ── Theme Toggle ── */
        .theme-toggle {
            position: fixed;
            top: 15px; right: 15px;
            z-index: 1001;
            background: var(--card-bg);
            border: 1px solid var(--accent-border);
            border-radius: 50%;
            width: 36px; height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            transition: all 0.25s ease;
        }

        .theme-toggle:hover { transform: scale(1.15); }
        .theme-toggle i { font-size: 16px; color: var(--accent-color); }

        /* Drag prevention */
        .nav-icon, img, a {
            -webkit-user-drag: none;
            user-drag: none;
            -webkit-tap-highlight-color: transparent;
        }
