﻿        :root {
            --ink-900: #0A0A0F;
            --ink-700: #1C1C28;
            --ink-500: #4B4B63;
            --ink-300: #8E8EA8;
            --ink-100: #E8E8F0;
            --ink-050: #F4F4F8;
            --white: #FFFFFF;
            --violet: #4F3EF5;
            --violet-lt: #EEECFF;
            --amber: #D97A28;
            --amber-lt: #FDF1E7;
            --sage: #1B7B4B;
            --sage-lt: #EAF4EF;
            --s1: 0 1px 3px rgba(10, 10, 15, .06);
            --s2: 0 3px 12px rgba(10, 10, 15, .08);
            --max: 680px;
            --r-s: 10px;
            --r-m: 16px;
            --r-l: 20px;
            --r-xl: 26px
        }

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

        html {
            font-family: 'Inter', system-ui, sans-serif;
            background: var(--ink-050);
            color: var(--ink-700);
            -webkit-font-smoothing: antialiased;
            font-size: 15px
        }

        body {
            min-height: 100dvh;
            padding-bottom: 96px
        }

        a {
            text-decoration: none;
            color: inherit
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            background: none
        }

        .ns::-webkit-scrollbar {
            display: none
        }

        .ns {
            -ms-overflow-style: none;
            scrollbar-width: none
        }

        .page {
            max-width: var(--max);
            margin: 0 auto;
            padding: 0 18px
        }

        .ap {
            opacity: 0;
            transform: translateY(12px);
            transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1)
        }

        .ap.in {
            opacity: 1;
            transform: none
        }

        @media(prefers-reduced-motion:reduce) {
            .ap {
                transition: none
            }
        }

        .ico {
            fill: none;
            stroke: currentColor;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(250, 250, 252, .92);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-bottom: 1px solid var(--ink-100)
        }

        .tb {
            max-width: var(--max);
            margin: 0 auto;
            padding: 12px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 9px
        }

        .brand-mark {
            width: 32px;
            height: 32px;
            background: var(--violet);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center
        }

        .brand-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--ink-900);
            letter-spacing: -.25px
        }

        .brand-name em {
            font-style: normal;
            color: var(--violet)
        }

        .tb-r {
            display: flex;
            align-items: center;
            gap: 8px
        }

        .streak-tag {
            display: flex;
            align-items: center;
            gap: 5px;
            background: var(--amber-lt);
            color: var(--amber);
            border: 1px solid rgba(217, 122, 40, .15);
            border-radius: 20px;
            padding: 4px 11px;
            font-size: 12px;
            font-weight: 600
        }

        .avatar {
            width: 33px;
            height: 33px;
            border-radius: 50%;
            background: var(--ink-700);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            transition: background .15s, transform .15s
        }

        .avatar:hover {
            background: var(--violet);
            transform: scale(1.05)
        }

        main {
            padding-top: 18px
        }

        section {
            margin-bottom: 22px
        }

        .cc {
            background: var(--white);
            border: 1px solid var(--ink-100);
            border-radius: var(--r-l);
            padding: 18px;
            box-shadow: var(--s1)
        }

        .cc-eye {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .8px;
            color: var(--ink-300);
            margin-bottom: 12px
        }

        /* TAB */
        .tab-nav {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            margin-bottom: 16px
        }

        .tab-nav::-webkit-scrollbar {
            display: none
        }

        .tab-btn {
            flex-shrink: 0;
            padding: 6px 14px;
            border-radius: 20px;
            border: 1px solid var(--ink-100);
            background: var(--white);
            font-size: 12px;
            font-weight: 500;
            color: var(--ink-500);
            cursor: pointer;
            transition: all .18s;
            font-family: inherit
        }

        .tab-btn.on {
            background: var(--violet-lt);
            border-color: var(--violet);
            color: var(--violet)
        }

        .scr {
            display: none
        }

        .scr.on {
            display: block
        }

        /* DATE NAV */
        .date-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--white);
            border: 1px solid var(--ink-100);
            border-radius: var(--r-l);
            padding: 12px 16px;
            box-shadow: var(--s1)
        }

        .dn-btn {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            border: 1px solid var(--ink-100);
            background: var(--ink-050);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ink-300);
            cursor: pointer;
            transition: all .18s
        }

        .dn-btn:hover {
            border-color: var(--violet);
            color: var(--violet);
            background: var(--violet-lt)
        }

        /* RING HERO */
        .ring-hero {
            background: var(--ink-900);
            border-radius: var(--r-xl);
            padding: 22px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 20px
        }

        .ring-hero::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -50px;
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(79, 62, 245, .3), transparent 70%);
            pointer-events: none
        }

        .ring-hero::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: -30px;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(27, 123, 75, .18), transparent 70%);
            pointer-events: none
        }

        .ring-wrap {
            position: relative;
            flex-shrink: 0;
            z-index: 1
        }

        .ring-label {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center
        }

        .ring-num {
            font-size: 22px;
            font-weight: 700;
            color: white;
            line-height: 1
        }

        .ring-of {
            font-size: 10px;
            color: rgba(255, 255, 255, .5);
            margin-top: 2px
        }

        .ring-info {
            flex: 1;
            position: relative;
            z-index: 1
        }

        .ring-title {
            font-size: 14px;
            font-weight: 600;
            color: white;
            margin-bottom: 5px
        }

        .ring-sub {
            font-size: 11px;
            color: rgba(255, 255, 255, .5);
            margin-bottom: 10px
        }

        .ring-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, .08);
            border: 1px solid rgba(255, 255, 255, .1);
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 11px;
            color: rgba(255, 255, 255, .8)
        }

        /* HABIT */
        .grp-label {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .8px;
            color: var(--ink-300);
            margin-bottom: 8px;
            padding-left: 2px
        }

        .habit-list {
            background: var(--white);
            border: 1px solid var(--ink-100);
            border-radius: var(--r-l);
            overflow: hidden;
            box-shadow: var(--s1)
        }

        .hr {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 16px;
            border-bottom: 1px solid var(--ink-100);
            cursor: pointer;
            transition: background .15s;
            -webkit-tap-highlight-color: transparent
        }

        .hr:last-child {
            border-bottom: none
        }

        .hr.done {
            background: linear-gradient(135deg, rgba(234, 244, 239, .7), var(--white))
        }

        .h-ico {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: var(--ink-050);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ink-300);
            flex-shrink: 0;
            transition: all .18s
        }

        .hr.done .h-ico {
            background: var(--sage-lt);
            color: var(--sage)
        }

        .h-inf {
            flex: 1;
            min-width: 0
        }

        .h-n {
            font-size: 13px;
            font-weight: 600;
            color: var(--ink-700);
            transition: all .15s;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap
        }

        .hr.done .h-n {
            color: var(--ink-300);
            text-decoration: line-through
        }

        .h-s {
            font-size: 11px;
            color: var(--ink-300);
            margin-top: 1px
        }

        .h-tick {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 1.5px solid var(--ink-100);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: transparent;
            flex-shrink: 0;
            transition: all .18s
        }

        .hr.done .h-tick {
            background: var(--sage);
            border-color: var(--sage);
            color: white
        }

        .add-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1.5px dashed var(--ink-100);
            border-radius: var(--r-l);
            padding: 13px;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-300);
            cursor: pointer;
            transition: all .18s;
            width: 100%;
            background: none
        }

        .add-btn:hover {
            border-color: var(--violet);
            color: var(--violet)
        }

        /* JUZ */
        .juz-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 6px;
            margin-top: 14px
        }

        .j {
            aspect-ratio: 1;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: transform .15s
        }

        .j:hover {
            transform: scale(1.06)
        }

        .j-done {
            background: var(--sage);
            color: white
        }

        .j-active {
            background: var(--amber);
            color: white
        }

        .j-none {
            background: var(--ink-050);
            color: var(--ink-300);
            border: 1px solid var(--ink-100)
        }

        /* PROG */
        .prog-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px
        }

        .prog-lbl {
            font-size: 12px;
            color: var(--ink-500)
        }

        .prog-val {
            font-size: 12px;
            font-weight: 600;
            color: var(--ink-700)
        }

        .prog-track {
            height: 5px;
            background: var(--ink-100);
            border-radius: 99px;
            overflow: hidden
        }

        .prog-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--violet), var(--sage));
            border-radius: 99px;
            width: 0;
            transition: width 1.4s cubic-bezier(.22, 1, .36, 1)
        }

        /* BAR */
        .bar-chart {
            display: flex;
            align-items: flex-end;
            gap: 5px;
            height: 72px
        }

        .bar-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px
        }

        .bar {
            width: 100%;
            border-radius: 4px 4px 0 0;
            background: var(--violet-lt);
            min-height: 3px
        }

        .bar.has {
            background: var(--violet)
        }

        .bar-d {
            font-size: 9px;
            font-weight: 600;
            color: var(--ink-300)
        }

        /* STATS */
        .stat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px
        }

        .stat-card {
            background: var(--white);
            border: 1px solid var(--ink-100);
            border-radius: var(--r-l);
            padding: 16px;
            box-shadow: var(--s1)
        }

        .stat-num {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -1px;
            line-height: 1;
            margin-top: 6px
        }

        .stat-lbl {
            font-size: 11px;
            color: var(--ink-300);
            margin-top: 3px
        }

        /* HEATMAP */
        .heat-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 3px
        }

        .heat-d {
            font-size: 9px;
            font-weight: 600;
            color: var(--ink-300);
            text-align: center;
            padding-bottom: 3px
        }

        .hc {
            aspect-ratio: 1;
            border-radius: 3px
        }

        .h0 {
            background: var(--ink-100)
        }

        .h1 {
            background: #C8E6C9
        }

        .h2 {
            background: #81C784
        }

        .h3 {
            background: #4CAF50
        }

        .h4 {
            background: var(--sage)
        }

        /* SURAH */
        .s-list {
            background: var(--white);
            border: 1px solid var(--ink-100);
            border-radius: var(--r-l);
            overflow: hidden;
            box-shadow: var(--s1)
        }

        .s-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-bottom: 1px solid var(--ink-100);
            cursor: pointer
        }

        .s-row:last-child {
            border-bottom: none
        }

        .s-num {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: var(--violet-lt);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            color: var(--violet);
            flex-shrink: 0
        }

        .s-info {
            flex: 1
        }

        .s-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--ink-700)
        }

        .s-meta {
            font-size: 11px;
            color: var(--ink-300);
            margin-top: 1px
        }

        .s-pill {
            padding: 3px 9px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 600
        }

        .pd {
            background: var(--sage-lt);
            color: var(--sage)
        }

        .pr {
            background: var(--amber-lt);
            color: var(--amber)
        }

        .pp {
            background: var(--violet-lt);
            color: var(--violet)
        }

        .pn {
            background: var(--ink-050);
            color: var(--ink-300)
        }

        /* BADGE */
        .badge-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px
        }

        .badge-card {
            background: var(--white);
            border: 1px solid var(--ink-100);
            border-radius: var(--r-m);
            padding: 14px 10px;
            text-align: center;
            box-shadow: var(--s1)
        }

        .badge-card.locked {
            opacity: .35;
            filter: grayscale(1)
        }

        .badge-ico {
            font-size: 26px;
            margin-bottom: 6px
        }

        .badge-name {
            font-size: 10px;
            font-weight: 600;
            color: var(--ink-700);
            line-height: 1.3
        }

        /* TARGET HERO */
        .t-hero {
            background: var(--ink-900);
            border-radius: var(--r-xl);
            padding: 22px;
            position: relative;
            overflow: hidden;
            color: white
        }

        .t-hero::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -40px;
            width: 160px;
            height: 160px;
            background: radial-gradient(circle, rgba(217, 122, 40, .3), transparent 70%);
            pointer-events: none
        }

        .t-big {
            font-size: 48px;
            font-weight: 700;
            letter-spacing: -2px;
            line-height: 1;
            position: relative;
            z-index: 1
        }

        .t-lbl {
            font-size: 12px;
            color: rgba(255, 255, 255, .45);
            margin-top: 3px;
            position: relative;
            z-index: 1
        }

        .t-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 16px;
            position: relative;
            z-index: 1
        }

        .t-item {
            background: rgba(255, 255, 255, .07);
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: var(--r-s);
            padding: 10px 12px
        }

        .t-val {
            font-size: 15px;
            font-weight: 700;
            color: white
        }

        .t-meta {
            font-size: 10px;
            color: rgba(255, 255, 255, .4);
            margin-top: 2px
        }

        .alert {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: var(--amber-lt);
            border: 1px solid rgba(217, 122, 40, .2);
            border-radius: var(--r-m);
            padding: 12px 14px
        }

        .alert-txt {
            font-size: 12px;
            color: var(--ink-500);
            line-height: 1.55
        }

        .alert-txt strong {
            display: block;
            font-size: 13px;
            color: var(--amber);
            margin-bottom: 2px
        }

        /* NAV */
        .nav-shell {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0 18px 18px;
            z-index: 100;
            pointer-events: none
        }

        .nav-bar {
            max-width: var(--max);
            margin: 0 auto;
            background: rgba(255, 255, 255, .88);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(255, 255, 255, .9);
            border-radius: 22px;
            padding: 8px 6px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            box-shadow: 0 2px 0 rgba(255, 255, 255, .8) inset, 0 10px 36px rgba(10, 10, 15, .12);
            pointer-events: all
        }

        .nl {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            padding: 7px 12px;
            border-radius: 12px;
            color: var(--ink-300);
            cursor: pointer;
            transition: all .18s;
            -webkit-tap-highlight-color: transparent;
            min-width: 52px;
            flex: 1;
            text-decoration: none
        }

        .nl:hover {
            background: var(--ink-050);
            color: var(--ink-700)
        }

        .nl.on {
            color: var(--violet)
        }

        .nl-ico {
            width: 21px;
            height: 21px
        }

        .nl-lbl {
            font-size: 9.5px;
            font-weight: 600
        }

        .nl.on .nl-lbl {
            color: var(--violet)
        }

        .nl.on .nl-ico-wrap {
            background: var(--violet-lt);
            border-radius: 10px;
            padding: 4px
        }

        .nav-dot {
            width: 4px;
            height: 4px;
            border-radius: 99px;
            background: transparent;
            margin-top: 1px;
            transition: background .18s
        }

        .nl.on .nav-dot {
            background: var(--violet)
        }

        /* MODAL */
        .modal-bg {
            position: fixed;
            inset: 0;
            background: rgba(10, 10, 15, .6);
            z-index: 200;
            display: none;
            align-items: flex-end;
            justify-content: center;
            padding: 0 0 env(safe-area-inset-bottom)
        }

        .modal-bg.show {
            display: flex
        }

        .modal {
            background: var(--white);
            border-radius: 24px 24px 0 0;
            width: 100%;
            max-width: var(--max);
            max-height: 85dvh;
            overflow-y: auto
        }

        .modal-drag {
            width: 40px;
            height: 4px;
            border-radius: 99px;
            background: var(--ink-100);
            margin: 12px auto 0
        }

        /* Custom habit action buttons */
        .h-actions {
            display: flex;
            gap: 4px;
            margin-right: 6px
        }

        .h-edit,
        .h-del {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            cursor: pointer;
            opacity: 0;
            transition: opacity .15s, background .15s;
            color: var(--ink-300)
        }

        .hr:hover .h-edit,
        .hr:hover .h-del {
            opacity: 1
        }

        .h-edit:hover {
            background: var(--violet-lt);
            color: var(--violet)
        }

        .h-del:hover {
            background: #FEE2E2;
            color: #EF4444
        }

        @media (max-width: 480px) {

            .h-edit,
            .h-del {
                opacity: .6
            }
        }