@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Amiri:wght@400;700&display=swap");

:root {
    --bg: #0c1117;
    --bg-2: #0e141b;
    --panel: #121821;
    --panel-2: #0f151d;
    --panel-3: #141c25;
    --card: #171f28;
    --accent: #5c5bff;
    --accent-2: #f39c3b;
    --accent-3: #1fb9a7;
    --accent-4: #2f3bff;
    --text: #ecf1f7;
    --muted: #8d9aad;
    --danger: #ff6b6b;
    --shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
    --body-grad-start: #1b2734;
    --body-grad-end: #0c1117;
    --body-glow-a: #141b24;
    --body-glow-b: #101821;
}

* {
    box-sizing: border-box;
    font-family: "Poppins", system-ui, sans-serif;
}

body {
    margin: 0;
    background: radial-gradient(
            circle at 20% -20%,
            var(--body-grad-start),
            var(--body-grad-end) 60%
        )
        fixed;
    color: var(--text);
    font-size: 15px;
    transition:
        background 0.35s ease,
        color 0.2s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 70% 20%,
            var(--body-glow-a) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 30% 70%,
            var(--body-glow-b) 0%,
            transparent 50%
        );
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] {
    --bg: #e8f1fb;
    --bg-2: #edf4fc;
    --panel: #fdfefe;
    --panel-2: #f6faff;
    --panel-3: #edf4fc;
    --card: #ffffff;
    --accent: #0b63f6;
    --accent-2: #ff9b42;
    --accent-3: #0fa38e;
    --accent-4: #2a57e8;
    --text: #13263b;
    --muted: #4d627b;
    --danger: #cf3d54;
    --shadow: 0 18px 42px rgba(22, 65, 112, 0.18);
    --body-grad-start: #f8fbff;
    --body-grad-end: #e9f2fb;
    --body-glow-a: rgba(144, 190, 255, 0.42);
    --body-glow-b: rgba(255, 186, 119, 0.22);
}

[data-theme="light"] .login-modal {
    background: rgba(15, 35, 58, 0.34);
}

[data-theme="light"] #devModal .modal-close {
    background: #effbe9;
    border: 1px solid #77b979;
    color: #0f4c23;
    box-shadow: 0 6px 12px rgba(24, 94, 43, 0.2);
}

[data-theme="light"] #devModal .modal-close:hover {
    background: #e0f5d8;
    border-color: #5ea764;
    color: #0c3c1b;
}

[data-theme="light"] .toast {
    background: #ffffff;
    color: #1d344f;
    border: 1px solid #c9daec;
}

[data-theme="light"] .toast.reminder {
    background: #ebf9f6;
    color: #195148;
    border-color: rgba(15, 163, 142, 0.4);
}

[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #ffffff, #e3eefb);
    border-right-color: #9fbddd;
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.75),
        8px 0 20px rgba(34, 73, 113, 0.12);
}

[data-theme="light"] .sidebar-divider {
    background: linear-gradient(
        90deg,
        rgba(15, 163, 142, 0),
        rgba(15, 163, 142, 0.52),
        rgba(15, 163, 142, 0)
    );
}

[data-theme="light"] .menu-item {
    color: #264766;
    border-color: rgba(148, 177, 208, 0.7);
    background: rgba(245, 250, 255, 0.72);
}

[data-theme="light"] .menu-item.is-disabled {
    color: #8aa0bb;
}

[data-theme="light"] .menu-item.active {
    color: #10263e;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(22, 58, 97, 0.34);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.92),
        0 8px 16px rgba(35, 72, 111, 0.14);
}

[data-theme="light"] .menu-item[data-section="ibadah"].active {
    background: linear-gradient(
        120deg,
        rgba(255, 155, 66, 0.24),
        rgba(255, 255, 255, 0.8)
    );
}

[data-theme="light"] .menu-item[data-section="journal"].active {
    background: linear-gradient(
        120deg,
        rgba(11, 99, 246, 0.2),
        rgba(255, 255, 255, 0.8)
    );
}

[data-theme="light"] .menu-item[data-section="ramadhan"].active {
    background: linear-gradient(
        120deg,
        rgba(255, 155, 66, 0.22),
        rgba(255, 255, 255, 0.84)
    );
}

[data-theme="light"] .menu-item[data-section="quran"].active {
    background: linear-gradient(
        120deg,
        rgba(15, 163, 142, 0.2),
        rgba(255, 255, 255, 0.84)
    );
}

[data-theme="light"] .menu-item[data-section="meal"].active {
    background: linear-gradient(
        120deg,
        rgba(237, 87, 127, 0.2),
        rgba(255, 255, 255, 0.84)
    );
}

[data-theme="light"] .menu-item[data-section="dua"].active {
    background: linear-gradient(
        120deg,
        rgba(140, 89, 236, 0.2),
        rgba(255, 255, 255, 0.84)
    );
}

[data-theme="light"] .menu-item[data-section="progress"].active {
    background: linear-gradient(
        120deg,
        rgba(63, 183, 108, 0.2),
        rgba(255, 255, 255, 0.84)
    );
}

[data-theme="light"] .menu-item[data-section="feature"].active {
    background: linear-gradient(
        120deg,
        rgba(11, 99, 246, 0.2),
        rgba(255, 255, 255, 0.84)
    );
}

[data-theme="light"] .section-title span,
[data-theme="light"] #habitPercent,
[data-theme="light"] #badgeStatus,
[data-theme="light"] .ibadah-focus-phase {
    color: #163f73;
}

[data-theme="light"] .ibadah-focus-phase {
    border-color: rgba(22, 63, 115, 0.35);
    background: rgba(22, 63, 115, 0.08);
}

[data-theme="light"] .habit-progress .fill {
    background: linear-gradient(90deg, #1f4f91, #2a63b2);
}

[data-theme="light"] .habit-history .bar {
    background: #0f1824;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .habit-history .bar span,
[data-theme="light"] .challenge-progress .bar span {
    background: linear-gradient(90deg, #ffd14d, #ffb21f);
}

[data-theme="light"] .habit-history .day strong {
    color: #1b3e66;
}

[data-theme="light"] .habit-item {
    background: linear-gradient(145deg, #f8fcff, #eaf2fb);
    border-color: #bbd2e8;
    color: #153a61;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 18px rgba(38, 84, 133, 0.14);
}

[data-theme="light"] .habit-item .text {
    color: #173f69;
    font-weight: 600;
}

[data-theme="light"] .habit-item .toggle {
    background: #e6eef8;
    border-color: #a9c0d8;
}

[data-theme="light"] .habit-item .toggle::after {
    background: #335b85;
}

[data-theme="light"] .habit-item .state {
    background: #e4edf8;
    color: #4a6381;
    border: 1px solid #c3d4e6;
    font-weight: 700;
}

[data-theme="light"] .habit-item input:checked + .toggle {
    background: #2a66bd;
    border-color: #2a66bd;
    box-shadow: 0 0 0 3px rgba(42, 102, 189, 0.24);
}

[data-theme="light"] .habit-item input:checked + .toggle::after {
    background: #f5f9ff;
}

[data-theme="light"] .habit-item input:checked ~ .state {
    background: #1f5fb8;
    color: #f3f8ff;
    border-color: #2f73d0;
    box-shadow: 0 6px 12px rgba(31, 95, 184, 0.26);
}

[data-theme="light"] .habit-item input:checked ~ .text {
    color: #11365f;
}

[data-theme="light"] .habit-reset {
    background: linear-gradient(135deg, #1d58a5, #2f72ca);
    border: 1px solid #2f72ca;
    color: #f4f9ff;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(33, 96, 173, 0.35);
    transition:
        transform 0.18s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

[data-theme="light"] .habit-reset:hover {
    transform: translateY(-1px);
    filter: saturate(1.12);
    box-shadow: 0 14px 26px rgba(33, 96, 173, 0.42);
}

[data-theme="light"] .habit-reset:active {
    transform: translateY(0);
}

[data-theme="light"] .prayer-chip {
    background: linear-gradient(145deg, #fafdff, #ecf5ff);
    border-color: #bfd4e8;
    color: #3f5f7f;
}

[data-theme="light"] .prayer-chip strong {
    color: #123458;
}

[data-theme="light"] .prayer-chip.active {
    background: linear-gradient(145deg, #ffd38f, #ffb45b);
    border-color: #e38a2d;
    color: #7a4300;
    box-shadow: 0 12px 24px rgba(227, 138, 45, 0.28);
}

[data-theme="light"] .prayer-chip.active strong {
    color: #2f1b00;
}

[data-theme="light"] .stat-card {
    border-color: #8db2d7;
    box-shadow:
        0 14px 30px rgba(30, 73, 120, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .stat-card h3 {
    color: #123b60;
}

[data-theme="light"] .stat-card .label {
    color: #4f6780;
}

[data-theme="light"] .stat-card .muted {
    color: #355776;
}

[data-theme="light"] .stat-card.teal {
    background: linear-gradient(135deg, #71efd8, #bafced 52%, #ecfffa);
    border-color: rgba(0, 153, 130, 0.52);
    box-shadow:
        0 0 0 1px rgba(66, 210, 183, 0.2),
        0 16px 28px rgba(16, 154, 130, 0.25);
}

[data-theme="light"] .stat-card.teal .stat-icon {
    background: rgba(0, 153, 130, 0.36);
    color: #01473d;
}

[data-theme="light"] .stat-card.indigo {
    background: linear-gradient(135deg, #9abfff, #d8e7ff 55%, #f1f7ff);
    border-color: rgba(11, 99, 246, 0.5);
    box-shadow:
        0 0 0 1px rgba(61, 131, 255, 0.2),
        0 16px 28px rgba(30, 89, 210, 0.24);
}

[data-theme="light"] .stat-card.indigo .stat-icon {
    background: rgba(11, 99, 246, 0.34);
    color: #0d357f;
}

[data-theme="light"] .stat-card.amber {
    background: linear-gradient(135deg, #ffc66c, #ffe5b5 56%, #fff7e8);
    border-color: rgba(240, 132, 28, 0.55);
    box-shadow:
        0 0 0 1px rgba(245, 150, 38, 0.2),
        0 16px 28px rgba(188, 104, 18, 0.24);
}

[data-theme="light"] .stat-card.amber .stat-icon {
    background: rgba(240, 132, 28, 0.36);
    color: #6a3500;
}

[data-theme="light"]
    :is(
        .login-card,
        .dev-card,
        .dev-card-modal,
        .profile,
        .login-banner,
        .hero-card,
        .hero-clock,
        .hero-next,
        .intent-card,
        .badge-card,
        .ibadah-focus-card,
        .challenge-card,
        .streak-card,
        .journal-card,
        .journal-history-card,
        .meal-card,
        .water-card,
        .hadits-card,
        .mood-card,
        .gratitude-card,
        .reflection-card,
        .muhasabah-card,
        .quran-progress,
        .quran-summary,
        .quran-target,
        .quran-table,
        .quran-surah-hero,
        .quran-player-hero,
        .quran-exit-card,
        .ramadhan-card,
        .ramadhan-overview-card,
        .ramadhan-countdown-card,
        .ramadhan-feature-card,
        .ramadhan-special-card,
        .ramadhan-history-card,
        .dua-history-card,
        .feature-card,
        .summary-card,
        .trial-notice,
        .progress-summary,
        .progress-chart,
        .progress-heatmap,
        .progress-graph,
        .progress-splits
    ) {
    background: #ffffff;
    border-color: #c9dbed;
    box-shadow: 0 12px 30px rgba(30, 73, 120, 0.1);
}

[data-theme="light"]
    :is(
        .hero-card,
        .hero-clock,
        .hero-next,
        .quran-progress,
        .quran-target,
        .quran-summary,
        .ramadhan-countdown-card,
        .ramadhan-overview-card,
        .ramadhan-feature-card,
        .progress-summary
    ) {
    background: linear-gradient(160deg, #ffffff, #f2f8ff);
}

@media (min-width: 961px) {
    [data-theme="light"] .hero-next {
        background: linear-gradient(140deg, #3f71be, #224b8a);
        border: 1px solid rgba(133, 173, 227, 0.45);
        box-shadow:
            inset 0 1px 0 rgba(232, 244, 255, 0.26),
            0 14px 30px rgba(24, 58, 104, 0.3);
        color: #f2f8ff;
    }

    [data-theme="light"] .hero-next::after {
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.3),
            transparent 70%
        );
        opacity: 0.65;
    }

    [data-theme="light"] .hero-next .label,
    [data-theme="light"] .hero-next .muted,
    [data-theme="light"] .hero-next .next-time span {
        color: rgba(226, 239, 255, 0.86);
    }

    [data-theme="light"] .hero-next .next-title,
    [data-theme="light"] .hero-next .next-time strong {
        color: #f6fbff;
    }

    [data-theme="light"] .hero-next .pill {
        background: rgba(235, 245, 255, 0.2);
        border: 1px solid rgba(214, 231, 255, 0.35);
        color: #f2f8ff;
    }
}

[data-theme="light"] :is(input, textarea, select) {
    background: #ffffff;
    border-color: #b8cee4;
    color: #10243a;
}

[data-theme="light"] .btn {
    background: #edf4fb;
    border-color: #c1d5e9;
    color: #1a3f63;
}

[data-theme="light"] .btn.ghost {
    background: #f8fbff;
    border-color: #c5d8ec;
    color: #3b5a79;
}

[data-theme="light"] .btn.danger {
    background: #ffeef2;
    border-color: #f3b5c3;
    color: #9f2c43;
}

[data-theme="light"]
    :is(.floating-admin, .floating-dev-btn, .floating-theme-btn) {
    background: #f4f9ff;
    border-color: #bed4ea;
    color: #19466d;
    box-shadow: 0 12px 28px rgba(29, 72, 117, 0.2);
}

[data-theme="light"] .mobile-nav {
    background: rgba(238, 247, 255, 0.98);
    border: 1px solid #9fbddd;
    box-shadow: 0 16px 34px rgba(30, 69, 110, 0.24);
}

[data-theme="light"] .mobile-nav-item {
    color: #214563;
    border-color: rgba(152, 182, 213, 0.85);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .mobile-nav-item .menu-icon {
    stroke: currentColor;
}

[data-theme="light"] .mobile-nav-item.active {
    color: #0f2e4f;
    box-shadow: 0 8px 16px rgba(34, 76, 120, 0.16);
}

[data-theme="light"] .mobile-nav-item.active::before {
    background: linear-gradient(90deg, rgba(36, 84, 132, 0.2), #2d5f98);
}

[data-theme="light"] .mobile-nav-item[data-section="ibadah"].active {
    background: linear-gradient(
        120deg,
        rgba(255, 155, 66, 0.24),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-nav-item[data-section="journal"].active,
[data-theme="light"] .mobile-nav-item[data-section="feature"].active {
    background: linear-gradient(
        120deg,
        rgba(11, 99, 246, 0.22),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-nav-item[data-section="ramadhan"].active {
    background: linear-gradient(
        120deg,
        rgba(255, 155, 66, 0.22),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-nav-item[data-section="quran"].active {
    background: linear-gradient(
        120deg,
        rgba(15, 163, 142, 0.22),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-nav-item[data-section="meal"].active {
    background: linear-gradient(
        120deg,
        rgba(237, 87, 127, 0.2),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-nav-item[data-section="dua"].active {
    background: linear-gradient(
        120deg,
        rgba(140, 89, 236, 0.2),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-nav-item[data-section="progress"].active {
    background: linear-gradient(
        120deg,
        rgba(63, 183, 108, 0.22),
        rgba(255, 255, 255, 0.94)
    );
}

[data-theme="light"] .mobile-score {
    color: #1d4675;
    font-weight: 700;
}

[data-theme="light"] .mobile-ring {
    background: #f8fbff;
    border: 1px solid #c3d7eb;
    border-radius: 999px;
}

[data-theme="light"] .progress-avatar {
    background: linear-gradient(145deg, #546478, #455668);
    border-color: rgba(245, 251, 255, 0.55);
    color: #f2f8ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 18px rgba(37, 62, 88, 0.22);
}

[data-theme="light"] .progress-avatar i {
    color: #2da1ff;
    filter: drop-shadow(0 1px 0 rgba(5, 30, 52, 0.35));
}

[data-theme="light"] .fab-menu {
    background: rgba(238, 247, 255, 0.98);
    border-color: #9fbddd;
    box-shadow: 0 14px 26px rgba(30, 69, 110, 0.2);
}

[data-theme="light"] .fab-trigger {
    background: linear-gradient(135deg, #2a68b8, #2c86c4);
    border: 1px solid #8fb6dd;
    box-shadow: 0 10px 22px rgba(36, 83, 132, 0.3);
    color: #f6fbff;
}

[data-theme="light"] .fab-item.mobile-nav-item {
    color: #214563;
    border: 1px solid rgba(152, 182, 213, 0.85);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    min-height: 42px;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-theme="light"] .fab-item.mobile-nav-item .menu-icon {
    color: #214563;
    stroke: currentColor;
}

[data-theme="light"] .fab-item.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .fab-item.mobile-nav-item[data-section="meal"].active {
    color: #8e2d47;
    background: linear-gradient(
        120deg,
        rgba(237, 87, 127, 0.22),
        rgba(255, 255, 255, 0.95)
    );
    border-color: rgba(189, 64, 99, 0.35);
}

[data-theme="light"] .mobile-ring-track {
    stroke: #b6cbe2;
}

[data-theme="light"] .mobile-ring-value {
    stroke: #1f5fb8;
}

[data-theme="light"] .mobile-avatar {
    background: linear-gradient(135deg, #1f568f, #2f72ca);
    color: #f4f9ff;
    border: 1px solid #2f72ca;
    box-shadow: 0 8px 16px rgba(31, 95, 184, 0.28);
}

[data-theme="light"] .mobile-logout-btn {
    background: #f2f8ff;
    border-color: #bcd3e9;
    color: #1e4f81;
}

[data-theme="light"] .mobile-logout-btn:hover {
    background: #e4f0fd;
    border-color: #8fb5da;
    color: #0f3e70;
}

/* Light mode consistency for non-ibadah sections */
[data-theme="light"] .page-banner {
    background: linear-gradient(135deg, #f5f9ff, #e8f1fb);
    border-color: #c5d8eb;
    box-shadow: 0 14px 28px rgba(35, 82, 128, 0.14);
}

[data-theme="light"] .page-banner img {
    opacity: 1;
}

[data-theme="light"]
    :is(.journal-header p, .journal-saved, .journal-history-date) {
    color: #4f6780;
}

[data-theme="light"] .journal-saved.active {
    color: #1f5fb8;
}

[data-theme="light"] :is(.journal-card, .journal-history-card) {
    background: linear-gradient(145deg, #fbfdff, #edf4fc);
    border-color: #c4d8eb;
    box-shadow: 0 10px 24px rgba(35, 82, 128, 0.12);
}

[data-theme="light"] .journal-history-item {
    background: #ffffff;
    border-color: #d3e1ef;
}

[data-theme="light"]
    :is(
        .mood-card,
        .target-card,
        .gratitude-card,
        .muhasabah-card,
        .tilawah-card,
        .hadits-card
    ) {
    background: linear-gradient(145deg, #f8fcff, #ecf4fd);
    border-color: #c5d8eb;
}

[data-theme="light"] .mood-item {
    background: #ffffff;
    border-color: #c9daec;
    color: #173f69;
}

[data-theme="light"] .mood-item.active {
    border-color: rgba(31, 95, 184, 0.55);
    box-shadow: 0 0 0 2px rgba(31, 95, 184, 0.18);
    background: #eaf3ff;
}

[data-theme="light"] .mood-item span {
    color: #4f6780;
}

[data-theme="light"]
    :is(.journal-input, .journal-textarea, .tilawah-field input) {
    background: #ffffff;
    border-color: #bcd2e7;
    color: #153a61;
}

[data-theme="light"] .hadits-latin {
    color: #355676;
}

[data-theme="light"] .hadits-id {
    background: #ffffff;
    border-color: #cfe0ef;
}

[data-theme="light"] .hadits-source {
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-card {
    background: linear-gradient(145deg, #fdf9f0, #fff4df);
    border-color: #e5c28d;
}

[data-theme="light"] .ramadhan-card.is-preview {
    border-color: #b9d3ea;
    background: linear-gradient(145deg, #f8fbff, #edf4fc);
}

[data-theme="light"] .ramadhan-overview-card {
    background: #ffffff;
    border-color: #d0e0ef;
}

[data-theme="light"] .ramadhan-item {
    background: #ffffff;
    border-color: #c6d9ea;
    color: #173f69;
}

[data-theme="light"] .ramadhan-item-toggle {
    color: #4f6780;
}

[data-theme="light"] .ramadhan-item input {
    background: #e7eef7;
    border-color: #a8c2db;
}

[data-theme="light"] .ramadhan-item input::after {
    background: #315b86;
}

[data-theme="light"] .ramadhan-item input:checked {
    background: rgba(31, 95, 184, 0.26);
    border-color: rgba(31, 95, 184, 0.52);
}

[data-theme="light"] .ramadhan-item input:checked::after {
    background: #1f5fb8;
}

[data-theme="light"] .ramadhan-item.is-done {
    border-color: rgba(31, 95, 184, 0.48);
    background: rgba(31, 95, 184, 0.1);
}

[data-theme="light"] .ramadhan-item.is-done .ramadhan-item-state {
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-progress-today {
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-progress-bar {
    background: #0f1824;
}

[data-theme="light"] .ramadhan-progress-bar span {
    background: linear-gradient(90deg, #ffd14d, #ffb21f);
}

[data-theme="light"] :is(.ramadhan-summary-chip, .ramadhan-code-badge) {
    background: rgba(31, 95, 184, 0.12);
    border-color: rgba(31, 95, 184, 0.35);
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-reminder-btn {
    border-color: rgba(31, 95, 184, 0.35);
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-reminder-btn.is-enabled {
    background: rgba(31, 95, 184, 0.18);
    border-color: rgba(31, 95, 184, 0.5);
    color: #174a90;
}

[data-theme="light"] .ramadhan-today {
    background: rgba(31, 95, 184, 0.14);
    border-color: rgba(31, 95, 184, 0.35);
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-countdown-card {
    background: linear-gradient(145deg, #f8fcff, #edf4fc);
    border-color: #c5d8eb;
    box-shadow: 0 12px 24px rgba(35, 82, 128, 0.13);
}

[data-theme="light"] .ramadhan-countdown-label,
[data-theme="light"] .ramadhan-countdown-box span,
[data-theme="light"] .ramadhan-countdown-state {
    color: #4f6780;
}

[data-theme="light"] .ramadhan-countdown-box {
    background: #ffffff;
    border-color: #c9daeb;
}

[data-theme="light"] .ramadhan-countdown-box strong {
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-feature-card {
    background: linear-gradient(145deg, #ffffff, #eef5fd);
    border-color: #c5d8eb;
    color: #173f69;
}

[data-theme="light"] .ramadhan-feature-card small {
    color: #4f6780;
}

[data-theme="light"] .ramadhan-feature-card.active {
    border-color: rgba(31, 95, 184, 0.52);
    box-shadow: 0 10px 20px rgba(31, 95, 184, 0.2);
}

[data-theme="light"] .ramadhan-history-grid h4 {
    color: #1f5fb8;
}

[data-theme="light"] .ramadhan-history-list li {
    background: #ffffff;
    border-color: #cfe0ef;
}

[data-theme="light"]
    :is(
        .quran-target,
        .quran-progress,
        .quran-audio-history,
        .quran-ayah,
        .quran-card,
        .quran-detail-list .quran-ayah-item
    ) {
    background: linear-gradient(145deg, #fbfdff, #edf4fc);
    border-color: #c5d8eb;
    box-shadow: 0 10px 24px rgba(35, 82, 128, 0.12);
}

[data-theme="light"] .quran-target-card {
    background: #ffffff;
    border-color: #cfe0ef;
    color: #173f69;
}

[data-theme="light"] .quran-summary {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

[data-theme="light"] .quran-browser-trigger {
    background: linear-gradient(135deg, #1f5fb8, #2f72ca);
    border: 1px solid #2f72ca;
    color: #f5f9ff;
    box-shadow: 0 12px 24px rgba(31, 95, 184, 0.3);
    font-weight: 700;
    letter-spacing: 0.03em;
}

[data-theme="light"] .quran-browser-trigger::after {
    background: radial-gradient(
        circle at 25% 20%,
        rgba(255, 255, 255, 0.22),
        transparent 58%
    );
}

[data-theme="light"]
    :is(
        .quran-target-input input,
        .quran-search input,
        .quran-ayah-search input,
        .quran-detail-search input
    ) {
    background: #ffffff;
    border-color: #bcd2e7;
    color: #153a61;
}

[data-theme="light"] :is(.quran-header-row, .quran-tab, .quran-time-tab) {
    color: #1f5fb8;
}

[data-theme="light"] .quran-header-row {
    background: transparent;
}

[data-theme="light"] .quran-table,
[data-theme="light"] .quran-table .quran-rows {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

[data-theme="light"] :is(.quran-tab, .quran-time-tab) {
    background: #f4f8fd;
    border-color: #c7d9eb;
}

[data-theme="light"] :is(.quran-tab.active, .quran-time-tab.active) {
    background: rgba(31, 95, 184, 0.14);
    border-color: rgba(31, 95, 184, 0.5);
    color: #1f5fb8;
}

[data-theme="light"] .quran-plan-chip {
    background: rgba(13, 143, 126, 0.12);
    border-color: rgba(13, 143, 126, 0.34);
    color: #0d7c6d;
}

[data-theme="light"] .quran-active-day-badge {
    background: rgba(31, 95, 184, 0.16);
    border-color: rgba(31, 95, 184, 0.45);
    color: #1f5fb8;
}

[data-theme="light"] .quran-progress-bar .bar {
    background: #0f1824;
}

[data-theme="light"] .quran-progress-bar .bar span {
    background: linear-gradient(90deg, #ffd14d, #ffb21f);
}

[data-theme="light"]
    :is(
        .quran-check,
        .quran-audio-item,
        .quran-ayah-item,
        .quran-playlist-item
    ) {
    background: #ffffff;
    border-color: #cfe0ef;
    color: #173f69;
}

[data-theme="light"] .quran-check {
    background: rgba(231, 245, 239, 0.78);
    border-color: #b9decf;
    color: #1b4a40;
}

[data-theme="light"]
    :is(.quran-range, .quran-toggle, .quran-note, .quran-meaning, .quran-meta) {
    color: #4f6780;
}

[data-theme="light"] .quran-name {
    color: #173f69;
}

[data-theme="light"] .quran-latin {
    color: #1f5fb8;
}

[data-theme="light"] .quran-index {
    background: rgba(31, 95, 184, 0.12);
    color: #1f5fb8;
}

[data-theme="light"] .quran-toggle input {
    background: rgba(27, 35, 48, 0.8);
    border-color: rgba(13, 143, 126, 0.35);
}

[data-theme="light"] .quran-toggle input::after {
    background: rgba(241, 255, 249, 0.9);
}

[data-theme="light"] .quran-toggle input:checked {
    background: rgba(13, 143, 126, 0.34);
    border-color: rgba(13, 143, 126, 0.62);
}

[data-theme="light"] .quran-toggle input:checked::after {
    background: #9df3e7;
}

[data-theme="light"] .quran-check.is-checked {
    background: rgba(13, 143, 126, 0.13);
    border-color: rgba(13, 143, 126, 0.48);
}

[data-theme="light"]
    .quran-check.is-checked
    :is(.quran-toggle-text, .quran-range) {
    color: #0d8f7e;
}

[data-theme="light"] .quran-surah-hero {
    background:
        radial-gradient(
            circle at 15% 14%,
            rgba(70, 164, 133, 0.2),
            transparent 36%
        ),
        radial-gradient(
            circle at 88% 10%,
            rgba(255, 202, 115, 0.22),
            transparent 36%
        ),
        linear-gradient(145deg, #134339, #1b5a4d);
    border-color: rgba(66, 146, 121, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(198, 239, 223, 0.22),
        0 18px 32px rgba(18, 72, 62, 0.3);
}

[data-theme="light"] .quran-surah-title h3,
[data-theme="light"] .quran-surah-arabic {
    color: #f3fff9;
    text-shadow: 0 2px 9px rgba(8, 26, 22, 0.36);
}

[data-theme="light"] .quran-surah-pills span {
    background: rgba(235, 255, 247, 0.16);
    border-color: rgba(214, 255, 240, 0.45);
    color: #e7fff5;
}

[data-theme="light"] .quran-ayah-translation,
[data-theme="light"] .quran-detail-list .quran-ayah-translation {
    color: #264b74;
}

[data-theme="light"] .quran-ayah-tafsir {
    color: #355676;
    background: #f6faff;
    border-color: #d2e1ef;
}

[data-theme="light"] .quran-recitation-player {
    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(170, 235, 202, 0.2),
            transparent 45%
        ),
        linear-gradient(165deg, rgba(56, 92, 78, 0.95), rgba(28, 52, 44, 0.92));
    border-color: rgba(186, 228, 204, 0.28);
    box-shadow: 0 18px 40px rgba(4, 11, 9, 0.35);
}

[data-theme="light"] .quran-player-hero {
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-theme="light"] .quran-player-cover {
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(227, 248, 236, 0.42),
            transparent 60%
        ),
        linear-gradient(140deg, rgba(49, 93, 75, 0.95), rgba(22, 49, 40, 0.95));
    border-color: rgba(238, 254, 246, 0.35);
}

[data-theme="light"] :is(.quran-player-meta .label, .quran-player-meta .muted) {
    color: rgba(227, 255, 241, 0.75);
}

[data-theme="light"] .quran-player-meta h3 {
    color: #f1fffa;
}

[data-theme="light"] .quran-player-meta .muted {
    color: rgba(221, 244, 232, 0.84);
}

[data-theme="light"] .quran-player-verse {
    background: rgba(11, 28, 23, 0.5);
    border-color: rgba(219, 247, 232, 0.24);
    color: #eefbf4;
}

[data-theme="light"] .quran-player-progress span {
    color: rgba(232, 248, 240, 0.88);
}

[data-theme="light"] .quran-player-btn {
    background: rgba(11, 24, 20, 0.52);
    border-color: rgba(230, 252, 239, 0.35);
    color: #effff7;
}

[data-theme="light"] .quran-player-btn.is-primary {
    background: rgba(232, 252, 241, 0.92);
    color: #234838;
    border-color: rgba(233, 252, 242, 0.95);
}

[data-theme="light"] .quran-playlist-item {
    background: rgba(7, 17, 14, 0.46);
    border-color: rgba(223, 246, 234, 0.16);
    color: #f2fff9;
}

[data-theme="light"] .quran-playlist-item.is-active {
    border-color: rgba(230, 252, 240, 0.68);
    background: rgba(206, 246, 222, 0.2);
}

[data-theme="light"] .quran-playlist-item.is-playing {
    border-color: rgba(238, 255, 246, 0.78);
    box-shadow: 0 8px 20px rgba(2, 8, 6, 0.32);
}

[data-theme="light"] .quran-playlist-index {
    color: rgba(221, 248, 232, 0.82);
}

[data-theme="light"] .quran-playlist-track-meta strong {
    color: #f1fff8;
}

[data-theme="light"] .quran-playlist-track-meta .muted {
    color: rgba(214, 238, 225, 0.78);
}

[data-theme="light"] .quran-playlist-play {
    color: #effff7;
}

[data-theme="light"]
    :is(
        .dua-highlight,
        .dua-poll,
        .dua-card,
        .dua-history-card,
        .dua-history-item,
        .meal-card,
        .water-card,
        .progress-card,
        .progress-item,
        .summary-card,
        .progress-summary,
        .progress-graph
    ) {
    background: linear-gradient(145deg, #fbfdff, #edf4fc);
    border-color: #c5d8eb;
    color: #173f69;
    box-shadow: 0 10px 24px rgba(35, 82, 128, 0.12);
}

[data-theme="light"]
    :is(.dua-actions input, .meal-input, .meal-textarea, .meal-meta input) {
    background: #ffffff;
    border-color: #bcd2e7;
    color: #153a61;
}

[data-theme="light"] .dua-latin {
    color: #355676;
}

[data-theme="light"] .dua-meaning {
    background: #ffffff;
    border-color: #cfe0ef;
}

[data-theme="light"] .dua-poll-option {
    background: #ffffff;
    border-color: #cadced;
}

[data-theme="light"] .dua-poll-option span {
    color: #264b74;
}

[data-theme="light"] .dua-poll-option input:checked + span {
    color: #1f5fb8;
}

[data-theme="light"] .dua-spoken-btn {
    border-color: #c2d7ea;
    background: #f2f8ff;
    color: #234f7f;
}

[data-theme="light"] .dua-spoken-btn.is-spoken {
    border-color: rgba(31, 95, 184, 0.46);
    background: rgba(31, 95, 184, 0.14);
    color: #1f5fb8;
}

[data-theme="light"] .dua-history-range .btn.active {
    background: rgba(31, 95, 184, 0.16);
    border-color: rgba(31, 95, 184, 0.5);
    color: #1f5fb8;
}

[data-theme="light"] .dua-history-donut::before {
    background: #ffffff;
    border-color: #cadbec;
}

[data-theme="light"] .dua-history-legend-item .name,
[data-theme="light"] .dua-history-legend-item .value,
[data-theme="light"] .dua-history-stats {
    color: #355676;
}

[data-theme="light"] :is(.progress-filter, .split-btn) {
    background: #f4f8fd;
    border-color: #c8dbed;
    color: #355676;
}

[data-theme="light"] .split-btn {
    background: transparent;
    border-color: #bcd2e7;
    color: #3f5f7f;
}

[data-theme="light"] .progress-filter-btn.active {
    background: #1f5fb8;
    color: #f5f9ff;
}

[data-theme="light"] :is(.progress-chip, .progress-pill) {
    background: rgba(31, 95, 184, 0.12);
    border-color: rgba(31, 95, 184, 0.34);
    color: #1f5fb8;
}

[data-theme="light"] .progress-pill.soft {
    background: #eef4fb;
    color: #57708a;
    border-color: #cbddec;
}

[data-theme="light"] .progress-bars .bar {
    background: #0f1824;
}

[data-theme="light"] .progress-bars .bar span {
    background: linear-gradient(180deg, #ffd14d, #ffb21f);
}

[data-theme="light"] .progress-ring::before {
    background: #ffffff;
    border-color: #cadbec;
}

[data-theme="light"] .progress-ring-track {
    stroke: #bad0e4;
}

[data-theme="light"] .progress-chart-plot {
    background: #ffffff;
    border-color: #cadbec;
    box-shadow: none;
}

[data-theme="light"] .progress-chart-axis {
    background: transparent;
}

[data-theme="light"] .progress-heatmap {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

[data-theme="light"] .heatmap-cell {
    background: #e6edf5;
    border-color: #d4deea;
}

[data-theme="light"] .heatmap-cell.level-1 {
    background: #d8efe8;
    border-color: #bddfd3;
}

[data-theme="light"] .heatmap-cell.level-2 {
    background: #b9e3d5;
    border-color: #8dd0ba;
}

[data-theme="light"] .heatmap-cell.level-3 {
    background: #7fd0b5;
    border-color: #4fb697;
}

[data-theme="light"] .heatmap-cell.level-4 {
    background: #33b488;
    border-color: #1f9c73;
}

[data-theme="light"] .heatmap-legend .legend-scale span {
    border-color: #d4deea;
}

[data-theme="light"] .heatmap-legend .level-0 {
    background: #e6edf5;
}

[data-theme="light"] .heatmap-legend .level-1 {
    background: #d8efe8;
}

[data-theme="light"] .heatmap-legend .level-2 {
    background: #b9e3d5;
}

[data-theme="light"] .heatmap-legend .level-3 {
    background: #7fd0b5;
}

[data-theme="light"] .heatmap-legend .level-4 {
    background: #33b488;
}

[data-theme="light"] .progress-chart-grid {
    stroke: rgba(86, 115, 145, 0.25);
}

[data-theme="light"] .progress-chart-xlabel {
    fill: #5b738c;
}

[data-theme="light"] :is(.progress-day-value, .progress-day-dot) {
    color: #1f5fb8;
    border-color: rgba(31, 95, 184, 0.34);
    background: rgba(31, 95, 184, 0.1);
}

[data-theme="light"] .progress-day-dot.is-empty {
    color: #6f87a1;
    border-color: #c9d9ea;
    background: #f3f8fd;
}

/* Module accent pass (light mode) */
[data-theme="light"] .ramadhan-header h2 i,
[data-theme="light"] .ramadhan-feature-card i,
[data-theme="light"] .ramadhan-history-grid h4,
[data-theme="light"] .ramadhan-progress-today {
    color: #c66a10;
}

[data-theme="light"] .ramadhan-card {
    background: linear-gradient(145deg, #fff7ea, #ffefd6);
    border-color: #e5bb83;
}

[data-theme="light"] .ramadhan-feature-card.active {
    border-color: rgba(198, 106, 16, 0.45);
    box-shadow: 0 10px 20px rgba(198, 106, 16, 0.18);
}

[data-theme="light"] :is(.ramadhan-summary-chip, .ramadhan-code-badge) {
    background: rgba(198, 106, 16, 0.12);
    border-color: rgba(198, 106, 16, 0.35);
    color: #a85709;
}

[data-theme="light"] .quran-progress-head h3,
[data-theme="light"] .quran-latin,
[data-theme="light"] .quran-detail-label,
[data-theme="light"] .quran-audio-play {
    color: #0d8f7e;
}

[data-theme="light"] .quran-target {
    background: linear-gradient(145deg, #effcf8, #e2f7f1);
    border-color: #9fdccd;
}

[data-theme="light"] .quran-progress {
    background: linear-gradient(145deg, #f2fdfb, #e7f8f4);
    border-color: #b5e5da;
}

[data-theme="light"] :is(.quran-tab.active, .quran-time-tab.active) {
    background: rgba(13, 143, 126, 0.14);
    border-color: rgba(13, 143, 126, 0.45);
    color: #0d8f7e;
}

[data-theme="light"] .quran-check.is-checked {
    background: rgba(13, 143, 126, 0.1);
    border-color: rgba(13, 143, 126, 0.4);
}

[data-theme="light"]
    .quran-check.is-checked
    :is(.quran-toggle-text, .quran-range) {
    color: #0d8f7e;
}

[data-theme="light"] .dua-highlight {
    background: linear-gradient(145deg, #f6f2ff, #ece5ff);
    border-color: #cfc0ef;
}

[data-theme="light"] .dua-card.is-active {
    border-color: rgba(112, 82, 201, 0.5);
    box-shadow: 0 10px 20px rgba(112, 82, 201, 0.18);
}

[data-theme="light"] .dua-poll-option input:checked + span,
[data-theme="light"] .dua-spoken-btn.is-spoken,
[data-theme="light"] .dua-history-range .btn.active {
    color: #7052c9;
}

[data-theme="light"] .dua-spoken-btn.is-spoken {
    border-color: rgba(112, 82, 201, 0.42);
    background: rgba(112, 82, 201, 0.12);
}

[data-theme="light"] .progress-summary-top h3,
[data-theme="light"] .progress-ring-inner strong {
    color: #1d4f95;
}

[data-theme="light"] .progress-chart-dot,
[data-theme="light"] :is(.progress-day-value, .progress-day-dot) {
    color: #a95f08;
}

[data-theme="light"] .progress-chart-dot {
    fill: #d98a28;
}

[data-theme="light"] :is(.progress-day-value, .progress-day-dot) {
    border-color: rgba(217, 138, 40, 0.38);
    background: rgba(217, 138, 40, 0.12);
}

[data-theme="light"] .meal-card {
    background: linear-gradient(145deg, #f2fbf5, #e5f5ea);
    border-color: #b9ddc5;
}

[data-theme="light"] .meal-card .card-title {
    color: #1f7b4f;
}

[data-theme="light"] .leaderboard-hero {
    background:
        radial-gradient(
            circle at 16% -8%,
            rgba(93, 170, 255, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(80, 191, 140, 0.34),
            transparent 40%
        ),
        linear-gradient(165deg, #edf6ff, #dbefff);
    border-color: #98bde1;
    color: #153356;
    box-shadow: 0 18px 34px rgba(30, 69, 110, 0.2);
}

[data-theme="light"] .leaderboard-meta {
    color: #375876;
}

[data-theme="light"] .leaderboard-scope-btn {
    background: rgba(255, 255, 255, 0.72);
    border-color: #9dbde0;
    color: #214563;
}

[data-theme="light"] .leaderboard-scope-btn.active {
    background: linear-gradient(145deg, #2fa153, #217f40);
    border-color: #2b8f45;
    color: #f2fff4;
}

[data-theme="light"] .leaderboard-podium-item span {
    color: #2a5277;
}

[data-theme="light"] .podium-avatar {
    background: linear-gradient(145deg, #f6fbff, #deecfb);
    border-color: #9ec2e4;
    color: #20405f;
}

[data-theme="light"] .leaderboard-podium-item.first .podium-avatar {
    background: linear-gradient(145deg, #2fa153, #207b3e);
    border-color: #f4fff6;
    color: #f4fff7;
}

[data-theme="light"] .leaderboard-card {
    background: #ffffff;
    border-color: #c7ddef;
}

[data-theme="light"] .leaderboard-rank {
    color: #47617d;
}

[data-theme="light"] .leaderboard-meta-wrap span {
    color: #67809a;
}

[data-theme="light"] .leaderboard-xp {
    color: #1a5d9f;
}

[data-theme="light"] .leaderboard-self {
    background: linear-gradient(145deg, #3f6489, #33587d);
}

@media (max-width: 960px) {
    [data-theme="light"] .floating-dev-btn,
    [data-theme="light"] .floating-theme-btn {
        position: fixed;
        overflow: visible;
        width: 46px;
        height: 46px;
        border: 1px solid #8eb4d8;
        background: linear-gradient(145deg, #f7fbff, #e7f1fb);
        color: #143b62;
        box-shadow:
            0 10px 22px rgba(27, 66, 104, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    [data-theme="light"] .floating-dev-btn::after,
    [data-theme="light"] .floating-theme-btn::after {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 54px;
        top: 50%;
        transform: translateY(-50%);
        min-width: 70px;
        height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        border: 1px solid #9bbcdc;
        background: rgba(250, 253, 255, 0.98);
        color: #1b456f;
        font-size: 10px;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: 0 6px 12px rgba(30, 69, 110, 0.14);
        pointer-events: none;
    }

    [data-theme="light"] .floating-theme-btn::after {
        content: "Tema";
    }

    [data-theme="light"] .floating-dev-btn::after {
        content: "Info Dev";
    }

    [data-theme="light"] .floating-dev-btn {
        right: 16px;
        bottom: 102px;
    }

    [data-theme="light"] .floating-theme-btn {
        right: 16px;
        bottom: 158px;
    }
}

@media (max-width: 380px) {
    [data-theme="light"] .floating-dev-btn::after,
    [data-theme="light"] .floating-theme-btn::after {
        min-width: 62px;
        right: 50px;
        font-size: 9px;
        letter-spacing: 0.06em;
    }
}

[data-theme="light"] .water-card {
    background: linear-gradient(145deg, #eef9ff, #dff1ff);
    border-color: #b5d5ea;
}

.app {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.login-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(6, 10, 15, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.login-card {
    width: min(420px, 100%);
    background: var(--panel);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.profile-card {
    width: min(420px, 92vw);
}

.profile-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-modal-header .avatar.large {
    width: 54px;
    height: 54px;
    font-size: 18px;
}

.profile-modal-info .label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bottom-sheet {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 14px 24px;
    background: rgba(6, 10, 15, 0.65);
    backdrop-filter: blur(6px);
    z-index: 36;
}

.bottom-sheet-card {
    width: min(520px, 100%);
    border-radius: 22px 22px 14px 14px;
    background: var(--panel);
    padding: 18px 18px 22px;
    box-shadow: var(--shadow);
    animation: sheet-rise 0.3s ease;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 18px;
}

.bottom-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-sheet-list {
    display: grid;
    gap: 10px;
}

.more-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(107, 157, 204, 0.28);
    background: rgba(18, 25, 35, 0.75);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
}

.more-item:hover {
    border-color: rgba(107, 157, 204, 0.5);
    background: rgba(24, 32, 45, 0.85);
}

@media (max-width: 960px) {
    [data-theme="light"] #moreModal.bottom-sheet {
        background: rgba(12, 25, 14, 0.5);
        backdrop-filter: blur(8px);
    }

    [data-theme="light"] #moreModal .bottom-sheet-card {
        background: linear-gradient(170deg, #f4ffef, #e6f8df);
        border: 1px solid #8ec88a;
        box-shadow: 0 20px 36px rgba(24, 75, 31, 0.25);
    }

    [data-theme="light"] #moreModal .bottom-sheet-header h3 {
        color: #113f18;
    }

    [data-theme="light"] #moreModal .bottom-sheet-close {
        background: #e7f5e4;
        border: 1px solid #9dcf98;
        color: #175622;
    }

    [data-theme="light"] #moreModal .more-item {
        border: 1px solid #2e8f47;
        background: linear-gradient(135deg, #2fa153, #207b3e);
        color: #f3fff4;
        box-shadow: 0 8px 16px rgba(24, 94, 43, 0.3);
    }

    [data-theme="light"] #moreModal .more-item .menu-icon {
        color: #f3fff4;
    }

    [data-theme="light"] #moreModal .more-item:hover,
    [data-theme="light"] #moreModal .more-item:active {
        background: linear-gradient(135deg, #39b05f, #248347);
        border-color: #2b8b44;
    }

    body.more-sheet-open .mobile-nav,
    body.more-sheet-open .admin-mobile-nav,
    .dashboard.more-sheet-open .mobile-nav,
    .dashboard.more-sheet-open .admin-mobile-nav {
        display: none !important;
    }
}

@keyframes sheet-rise {
    from {
        transform: translateY(18px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dev-modal {
    animation: dev-fade 0.25s ease;
}

.dev-modal .dev-modal-card {
    animation: dev-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quran-modal {
    animation: dev-fade 0.25s ease;
}

.quran-modal .quran-modal-card {
    animation: dev-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-modal-card {
    width: min(360px, 92vw);
    padding: 28px;
    border-radius: 28px;
    background: radial-gradient(
        circle at 20% 20%,
        rgba(12, 22, 30, 0.72),
        rgba(9, 14, 19, 0.78)
    );
    border: 1px solid rgba(42, 56, 70, 0.5);
}

.quran-modal-card {
    width: min(520px, 94vw);
    padding: 22px;
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quran-browser {
    display: grid;
    gap: 16px;
}

.quran-browser-trigger {
    margin: 6px 0 16px;
    border-color: rgba(21, 155, 146, 0.45);
    color: #b6f0ea;
    box-shadow: 0 10px 24px rgba(21, 155, 146, 0.22);
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: normal;
    line-height: 1.3;
}

.quran-browser-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 25% 20%,
        rgba(88, 220, 210, 0.22),
        transparent 55%
    );
    pointer-events: none;
}

#quranModalBody {
    overflow: auto;
    padding-right: 6px;
    flex: 1;
}

.floating-dev-btn {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 30;
    border-radius: 999px;
    padding: 0;
    width: 44px;
    height: 44px;
    background: #162333;
    border-color: rgba(91, 156, 255, 0.35);
    color: #cfe0ff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    cursor: grab;
    touch-action: none;
    transition:
        left 0.22s ease,
        top 0.22s ease,
        box-shadow 0.22s ease;
}

.floating-dev-btn.dragging {
    cursor: grabbing;
    transition: none;
}

.floating-theme-btn {
    position: fixed;
    right: 18px;
    bottom: 144px;
    z-index: 29;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #162333;
    border: 1px solid rgba(91, 156, 255, 0.3);
    color: #cfe0ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.floating-theme-btn i {
    font-size: 16px;
}

.floating-dev-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.floating-dev-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.floating-dev-btn.snapping,
.floating-admin.snapping {
    animation: snap-pop 0.25s ease;
}

@keyframes snap-pop {
    0% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

.dev-card-modal {
    margin-top: 0;
    background: #101821;
    border: 1px solid rgba(53, 66, 80, 0.6);
    padding: 18px;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dev-modal .dev-card-modal .label {
    text-align: center;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.dev-modal .dev-info {
    justify-content: center;
    text-align: left;
    gap: 14px;
}

.dev-modal .dev-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.dev-modal .dev-info strong {
    font-size: 20px;
    display: block;
    line-height: 1.1;
}

.dev-modal .dev-info .muted {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.1;
}

.dev-modal .dev-actions {
    justify-content: center;
}

.dev-modal .dev-actions .btn.small {
    flex: 1;
    min-width: 110px;
    text-align: center;
    border-radius: 999px;
}

.dev-modal-close {
    margin-top: 18px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #273445;
    background: #0f171f;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-center {
    flex-direction: column;
    text-align: center;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-logo.large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.btn.link {
    background: transparent;
    border: none;
    color: #9bbcff;
    padding: 0;
    text-align: left;
    font-size: 12px;
}

.modal-note {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(140deg, #5b61ff, #2a9dff);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dashboard.guest-locked {
    filter: blur(6px) saturate(0.75);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.sidebar {
    background: linear-gradient(180deg, var(--panel-2), var(--bg));
    border-right: 1px solid rgba(27, 37, 50, 0.6);
    padding: 28px 22px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.logo h2 {
    margin: 0;
    font-size: 20px;
}

.logo p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.sidebar-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(31, 185, 167, 0),
        rgba(31, 185, 167, 0.5),
        rgba(31, 185, 167, 0)
    );
    margin: 6px 0 10px;
}

.menu {
    display: grid;
    gap: 10px;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 16px;
}

.cta-stack,
.dev-card {
    margin-top: 8px;
}

.menu-item {
    padding: 12px 16px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    color: #7f8ea3;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.menu-item.is-disabled {
    opacity: 0.45;
    color: #5f6d80;
    cursor: not-allowed;
}

.menu-item.is-disabled::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    opacity: 0.85;
}

.menu-item.active {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.menu-item[data-section="ibadah"].active {
    color: #f2a24b;
    background: linear-gradient(
        120deg,
        rgba(243, 156, 59, 0.28),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(243, 156, 59, 0.4);
    box-shadow: inset 0 0 0 1px rgba(243, 156, 59, 0.2);
}

.menu-item[data-section="journal"].active {
    color: #7b78ff;
    background: linear-gradient(
        120deg,
        rgba(91, 89, 255, 0.28),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(91, 89, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(91, 89, 255, 0.2);
}

.menu-item[data-section="ramadhan"].active {
    color: #f2b56b;
    background: linear-gradient(
        120deg,
        rgba(243, 156, 59, 0.3),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(243, 156, 59, 0.45);
    box-shadow: inset 0 0 0 1px rgba(243, 156, 59, 0.25);
}

.menu-item[data-section="quran"].active {
    color: #39d3c5;
    background: linear-gradient(
        120deg,
        rgba(57, 211, 197, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(57, 211, 197, 0.4);
    box-shadow: inset 0 0 0 1px rgba(57, 211, 197, 0.2);
}

.menu-item[data-section="meal"].active {
    color: #ff6b8a;
    background: linear-gradient(
        120deg,
        rgba(255, 107, 138, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(255, 107, 138, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 138, 0.2);
}

.menu-item[data-section="dua"].active {
    color: #b883ff;
    background: linear-gradient(
        120deg,
        rgba(184, 131, 255, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(184, 131, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(184, 131, 255, 0.2);
}

.menu-item[data-section="feature"].active {
    color: #7ad5ff;
    background: linear-gradient(
        120deg,
        rgba(111, 157, 255, 0.3),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(122, 213, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(122, 213, 255, 0.22);
}

.menu-item[data-section="progress"].active {
    color: #46d985;
    background: linear-gradient(
        120deg,
        rgba(70, 217, 133, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border-color: rgba(70, 217, 133, 0.4);
    box-shadow: inset 0 0 0 1px rgba(70, 217, 133, 0.2);
}

.prayer-sound-toggle.is-enabled {
    background: rgba(31, 185, 167, 0.2);
    border-color: rgba(31, 185, 167, 0.5);
    color: #d2fff8;
}

.profile {
    margin-top: auto;
    background: #121923;
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #273445;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.profile p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.content {
    padding: 32px 56px 120px;
}

.content-inner {
    max-width: 980px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.topbar h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.topbar p {
    margin: 0;
    color: var(--muted);
}

.menu-icon {
    width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.cta-stack {
    display: grid;
    gap: 10px;
}

.theme-toggle {
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #161c24;
    border: 1px solid #212b37;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
}

.login-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-card {
    background: linear-gradient(
        160deg,
        rgba(27, 35, 45, 0.85),
        rgba(16, 22, 30, 0.95)
    );
    border-radius: 26px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 22px;
}

.hero-clock {
    background: rgba(16, 22, 30, 0.6);
    border-radius: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.label-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #5d6b7c;
}

.hero-clock h1 {
    margin: 10px 0 6px;
    font-size: 54px;
    letter-spacing: -0.03em;
}

.hero-clock .muted {
    font-size: 13px;
}

.hero-next {
    background: linear-gradient(140deg, #5b5bff, #3c36a5);
    border-radius: 22px;
    padding: 22px 26px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-next::after {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.25),
        transparent 70%
    );
    opacity: 0.6;
}

.next-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 1;
}

.pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.next-title {
    font-size: 28px;
    font-weight: 600;
    margin: 12px 0 4px;
    z-index: 1;
}

.hero-next .muted {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    z-index: 1;
}

.next-time {
    text-align: right;
    z-index: 1;
}

.next-time strong {
    display: block;
    font-size: 26px;
}

.next-time span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.prayer-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(60px, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.prayer-chip {
    background: #151c25;
    border: 1px solid #222d3a;
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.prayer-chip strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-top: 6px;
}

.prayer-chip.active {
    background: linear-gradient(
        140deg,
        rgba(243, 156, 59, 0.25),
        rgba(28, 23, 16, 0.9)
    );
    border-color: rgba(243, 156, 59, 0.5);
    color: #f5d2a7;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.badge-row {
    margin-bottom: 28px;
}

.intent-card {
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(22, 34, 54, 0.9), #141c25);
    border: 1px solid rgba(92, 91, 255, 0.25);
}

.intent-card .card-title {
    margin-bottom: 10px;
}

.badge-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(28, 36, 52, 0.9), #131c28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.badge-card.is-unlocked {
    border-color: rgba(247, 191, 99, 0.6);
    box-shadow: 0 0 0 1px rgba(247, 191, 99, 0.25);
    background: linear-gradient(135deg, rgba(71, 52, 25, 0.9), #201a12);
}

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(247, 191, 99, 0.2);
    color: #f4c575;
    display: grid;
    place-items: center;
    font-size: 20px;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.badge-content h3 {
    margin: 4px 0 2px;
    font-size: 20px;
}

.badge-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-card.is-unlocked .badge-meta {
    color: #f7d5a2;
}

.stat-card {
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #141c25;
    min-width: 0;
}

.stat-card h3 {
    margin: 4px 0 2px;
    font-size: 26px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
}

.stat-card.teal {
    background: linear-gradient(
        135deg,
        rgba(21, 47, 49, 0.9),
        rgba(15, 24, 29, 0.95)
    );
}

.stat-card.teal .stat-icon {
    background: rgba(31, 185, 167, 0.15);
    color: #2bd2b0;
}

.stat-card.indigo {
    background: linear-gradient(
        135deg,
        rgba(28, 33, 62, 0.9),
        rgba(18, 22, 40, 0.95)
    );
}

.stat-card.indigo .stat-icon {
    background: rgba(92, 91, 255, 0.2);
    color: #7e7dff;
}

.stat-card.amber {
    background: linear-gradient(
        135deg,
        rgba(41, 30, 19, 0.9),
        rgba(24, 19, 14, 0.95)
    );
}

.stat-card.amber .stat-icon {
    background: rgba(243, 156, 59, 0.2);
    color: #f3a956;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title h3 {
    margin: 0;
    font-size: 20px;
}

.section-title span {
    color: #31c5b5;
    font-weight: 700;
}

.habit-time-context {
    margin: -6px 0 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ibadah-focus-card {
    border-radius: 16px;
    border: 1px solid rgba(49, 197, 181, 0.35);
    background: linear-gradient(
        135deg,
        rgba(19, 36, 44, 0.9),
        rgba(15, 25, 30, 0.95)
    );
    padding: 14px 16px;
    margin-bottom: 12px;
}

.ibadah-focus-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ibadah-focus-head h4 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.ibadah-focus-phase {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(49, 197, 181, 0.4);
    background: rgba(49, 197, 181, 0.12);
    color: #9be7de;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ibadah-focus-next {
    margin: 8px 0 10px;
    font-size: 12px;
}

.ibadah-focus-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.habit-progress {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #1c2430;
    overflow: hidden;
    margin-bottom: 10px;
}

.habit-progress .track {
    position: absolute;
    inset: 0;
    background: #1c2430;
}

.habit-progress .fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, #2f3bff, #1fb9a7);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.habit-meta {
    display: flex;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.habit-history-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.habit-history {
    display: grid;
    grid-template-columns: repeat(7, minmax(40px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.habit-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.challenge-card,
.streak-card {
    border-radius: 18px;
    padding: 16px 18px;
    background: #151c25;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.challenge-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-progress .bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #1b2330;
    overflow: hidden;
}

.challenge-progress .bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2f3bff, #1fb9a7);
}

.streak-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.streak-card .btn {
    width: fit-content;
}

.progress-heatmap {
    margin-top: 22px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
}

.heatmap-cell {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.heatmap-cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 8px;
    background: #0f1620;
    color: #e7eef7;
    font-size: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    transform-origin: center;
}

.heatmap-cell:hover::after,
.heatmap-cell:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.heatmap-cell.level-1 {
    background: rgba(31, 185, 167, 0.15);
    border-color: rgba(31, 185, 167, 0.25);
}

.heatmap-cell.level-2 {
    background: rgba(31, 185, 167, 0.3);
    border-color: rgba(31, 185, 167, 0.4);
}

.heatmap-cell.level-3 {
    background: rgba(31, 185, 167, 0.55);
    border-color: rgba(31, 185, 167, 0.6);
}

.heatmap-cell.level-4 {
    background: rgba(31, 185, 167, 0.8);
    border-color: rgba(31, 185, 167, 0.9);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.heatmap-legend .legend-scale {
    display: flex;
    gap: 6px;
    align-items: center;
}

.heatmap-legend .legend-scale span {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.heatmap-legend .level-0 {
    background: rgba(255, 255, 255, 0.06);
}

.heatmap-legend .level-1 {
    background: rgba(31, 185, 167, 0.15);
}

.heatmap-legend .level-2 {
    background: rgba(31, 185, 167, 0.3);
}

.heatmap-legend .level-3 {
    background: rgba(31, 185, 167, 0.55);
}

.heatmap-legend .level-4 {
    background: rgba(31, 185, 167, 0.8);
}
.habit-history .day {
    display: grid;
    gap: 6px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.habit-history .day strong {
    font-size: 12px;
    color: #9fb0c7;
}

.habit-history .bar {
    height: 6px;
    border-radius: 999px;
    background: #1b2330;
    overflow: hidden;
    position: relative;
}

.habit-history .bar span {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, #2f3bff, #1fb9a7);
}

.habit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.sedekah-card {
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(24, 40, 32, 0.85), #151f1a);
    border: 1px solid rgba(31, 185, 167, 0.3);
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.ramadhan-card {
    border-radius: 18px;
    padding: 18px 20px;
    margin-top: 10px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(45, 34, 19, 0.88), #17140f);
    border: 1px solid rgba(243, 156, 59, 0.32);
}

.ramadhan-card.is-preview {
    border-color: rgba(122, 213, 255, 0.35);
    background: linear-gradient(135deg, rgba(22, 34, 54, 0.85), #121d2a);
}

.ramadhan-card.is-preview .ramadhan-item {
    opacity: 0.82;
}

.ramadhan-card.is-preview .ramadhan-item input {
    cursor: not-allowed;
}

.ramadhan-header h2 i {
    color: #f2b56b;
}

.ramadhan-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.ramadhan-overview-card {
    border-radius: 14px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(19, 27, 39, 0.72);
}

.ramadhan-overview-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.ramadhan-overview-card strong {
    font-size: 20px;
}

.ramadhan-overview-card.wajib strong {
    color: #f2b56b;
}

.ramadhan-overview-card.sunnah strong {
    color: #7ad5ff;
}

.ramadhan-overview-card.quran strong {
    color: #7dffcf;
}

.ramadhan-overview-card.sedekah strong {
    color: #ffd38a;
}

.ramadhan-head {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.ramadhan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ramadhan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(17, 24, 36, 0.6);
    border: 1px solid rgba(123, 120, 255, 0.2);
    font-size: 13px;
    color: var(--text);
}

.ramadhan-item-label {
    font-weight: 600;
}

.ramadhan-item-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.ramadhan-item input {
    appearance: none;
    width: 38px;
    height: 20px;
    background: rgba(27, 35, 48, 0.8);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ramadhan-item input::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.ramadhan-item input:checked {
    background: rgba(243, 156, 59, 0.3);
    border-color: rgba(243, 156, 59, 0.6);
}

.ramadhan-item input:checked::after {
    transform: translateX(18px);
    background: #f2b56b;
}

.ramadhan-item-state {
    min-width: 44px;
    text-align: right;
}

.ramadhan-item.is-done {
    border-color: rgba(243, 156, 59, 0.5);
    background: rgba(243, 156, 59, 0.12);
}

.ramadhan-item.is-done .ramadhan-item-state {
    color: #f2b56b;
}

.ramadhan-note {
    margin: 10px 0 0;
    font-size: 12px;
}

.ramadhan-progress-today {
    font-size: 22px;
    color: #f2b56b;
}

.ramadhan-progress-bar {
    margin-top: 12px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.ramadhan-progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f2b56b, #ffdf9e);
}

.ramadhan-summary-strip {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ramadhan-summary-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(243, 156, 59, 0.14);
    color: #f6cc8f;
    border: 1px solid rgba(243, 156, 59, 0.35);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ramadhan-reminder-btn {
    border-color: rgba(243, 156, 59, 0.35);
    color: #f7c986;
}

.ramadhan-reminder-btn.is-enabled {
    background: rgba(243, 156, 59, 0.22);
    border-color: rgba(243, 156, 59, 0.6);
    color: #fff0cf;
}

.ramadhan-today {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(123, 120, 255, 0.18);
    border: 1px solid rgba(123, 120, 255, 0.35);
    color: #c9c8ff;
}

.ramadhan-countdown-card {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(
        140deg,
        rgba(24, 31, 47, 0.92),
        rgba(15, 21, 34, 0.9)
    );
    border: 1px solid rgba(243, 156, 59, 0.25);
    box-shadow: 0 12px 22px rgba(5, 11, 20, 0.35);
}

.ramadhan-countdown-label {
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #9db4d0;
    margin-bottom: 4px;
}

.ramadhan-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ramadhan-countdown-box {
    background: rgba(9, 13, 22, 0.65);
    border: 1px solid rgba(243, 156, 59, 0.2);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.ramadhan-countdown-box strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    color: #ffd38f;
    font-weight: 800;
}

.ramadhan-countdown-box strong.is-ticking {
    animation: ramadhan-countdown-tick 0.34s ease;
}

.ramadhan-countdown-box span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #9db4d0;
}

.ramadhan-countdown-state {
    margin-top: 8px;
    font-size: 12px;
    color: #cdd9ea;
}

@keyframes ramadhan-countdown-tick {
    0% {
        transform: translateY(3px) scale(0.92);
        opacity: 0.45;
    }
    65% {
        transform: translateY(-1px) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ramadhan-feature-grid {
    margin-top: 22px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ramadhan-feature-card {
    text-align: left;
    border: 1px solid rgba(243, 156, 59, 0.2);
    background: linear-gradient(
        140deg,
        rgba(22, 31, 46, 0.95),
        rgba(17, 24, 36, 0.9)
    );
    color: #dfe8ff;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 5px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ramadhan-feature-card i {
    color: #f2b56b;
    font-size: 16px;
}

.ramadhan-feature-card span {
    font-weight: 700;
    font-size: 13px;
}

.ramadhan-feature-card small {
    color: #9db4d0;
    font-size: 11px;
}

.ramadhan-feature-card:hover {
    transform: translateY(-1px);
    border-color: rgba(243, 156, 59, 0.4);
}

.ramadhan-feature-card.active {
    border-color: rgba(243, 156, 59, 0.7);
    box-shadow: 0 12px 20px rgba(5, 11, 20, 0.4);
}

.ramadhan-focus-hidden {
    display: none !important;
}

.ramadhan-special-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 12px;
}

.ramadhan-special-card .card-title i {
    color: #f2b56b;
    margin-right: 8px;
}

.ramadhan-special-card .actions {
    grid-column: 1 / -1;
}

.ramadhan-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(243, 156, 59, 0.18);
    border: 1px solid rgba(243, 156, 59, 0.5);
    color: #ffd28e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.ramadhan-history-card .card-title i {
    color: #f2b56b;
    margin-right: 8px;
}

.ramadhan-history-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.ramadhan-history-grid h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #ffd18a;
}

.ramadhan-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ramadhan-history-list li {
    background: rgba(14, 20, 30, 0.68);
    border: 1px solid rgba(243, 156, 59, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
}

.ramadhan-history-list .muted {
    font-size: 11px;
}

.sedekah-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sedekah-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.sedekah-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cfeee8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sedekah-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #1fb9a7;
}

.sedekah-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 10px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sedekah-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(31, 185, 167, 0.18);
    color: #9df3e7;
    border: 1px solid rgba(31, 185, 167, 0.35);
}

.sedekah-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(36px, 1fr));
    gap: 8px;
}

.sedekah-day {
    display: grid;
    gap: 6px;
    place-items: center;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sedekah-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #1b2a25;
    color: #9fb0c7;
    border: 1px solid rgba(31, 185, 167, 0.2);
}

.sedekah-day.is-done .sedekah-dot {
    background: rgba(31, 185, 167, 0.2);
    color: #2bd2b0;
    border-color: rgba(31, 185, 167, 0.6);
}

.sedekah-note {
    margin: 12px 0 0;
    font-size: 12px;
}

.habit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #151c25;
    border: 1px solid #222c38;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.22s ease,
        box-shadow 0.25s ease,
        transform 0.18s ease;
}

.habit-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.habit-item .toggle {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #0f151d;
    border: 1px solid #2a3a4a;
    transition: all 0.2s ease;
}

.habit-item .toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #283445;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.habit-item input:checked + .toggle {
    background: #1fb9a7;
    border-color: #1fb9a7;
    box-shadow: 0 0 0 3px rgba(31, 185, 167, 0.18);
}

.habit-item input:checked + .toggle::after {
    transform: translateX(14px);
    background: #071d1b;
}

.habit-item .text {
    color: #cdd6e2;
    transition: color 0.2s ease;
}

.habit-item .state {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #1b2330;
    color: #93a0b2;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.2s ease;
}

.habit-item input:checked ~ .state {
    background: rgba(31, 185, 167, 0.2);
    color: #1fb9a7;
    animation: habit-state-pop 0.26s ease;
}

.habit-item input:checked + .toggle::after {
    animation: habit-knob-pop 0.24s ease;
}

@keyframes habit-state-pop {
    0% {
        transform: scale(0.9);
    }
    60% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes habit-knob-pop {
    0% {
        transform: translateX(10px) scale(0.92);
    }
    65% {
        transform: translateX(15px) scale(1.08);
    }
    100% {
        transform: translateX(14px) scale(1);
    }
}

.habit-reset {
    background: #1a2533;
    border: 1px solid #2b3b4c;
    color: var(--muted);
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

.trial-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(35, 24, 24, 0.95), #1a1f2b);
    border: 1px solid rgba(255, 153, 102, 0.4);
    box-shadow: 0 18px 32px rgba(8, 12, 20, 0.45);
    margin-bottom: 20px;
}

.trial-notice.is-warning {
    border-color: rgba(255, 215, 125, 0.5);
    background: linear-gradient(135deg, rgba(47, 36, 18, 0.95), #1a1f2b);
}

.trial-notice.is-expired {
    border-color: rgba(255, 122, 122, 0.5);
    background: linear-gradient(135deg, rgba(46, 20, 20, 0.95), #1a1f2b);
}

.trial-notice h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #ffd7c2;
}

.trial-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

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

.page-banner {
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(30, 40, 58, 0.9), #111621);
    box-shadow: 0 16px 30px rgba(8, 14, 24, 0.35);
}

.page-banner img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    opacity: 0.9;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.journal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.journal-saved {
    font-size: 12px;
    color: #9fb0c7;
    opacity: 0.75;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.journal-saved.active {
    opacity: 1;
    color: #2bd2b0;
}

.journal-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.journal-header p {
    margin: 0;
    color: var(--muted);
}

.journal-card {
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #161e28;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.journal-history-card {
    background: linear-gradient(
        135deg,
        rgba(28, 36, 52, 0.85),
        rgba(15, 20, 30, 0.95)
    );
}

.journal-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.journal-history-card .card-title {
    margin: 0;
}

.journal-history {
    display: grid;
    gap: 10px;
}

.journal-history-body {
    overflow: hidden;
    max-height: 520px;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;
    opacity: 1;
}

.journal-history-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(11, 16, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.journal-history-date {
    font-size: 12px;
    color: #9fb0c7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.journal-history-content p {
    margin: 0 0 6px;
    font-size: 13px;
}

.journal-history-note {
    margin: 10px 0 0;
    font-size: 12px;
}

.journal-history-card.is-collapsed .journal-history-body {
    max-height: 0;
    opacity: 0;
}

.journal-card .card-title {
    font-weight: 600;
    margin-bottom: 14px;
}

.reflection-card .reflection-body p {
    margin: 0 0 8px;
}

.mood-card {
    background: linear-gradient(
        135deg,
        rgba(46, 58, 120, 0.55),
        rgba(22, 26, 45, 0.9)
    );
}

.target-card {
    background: linear-gradient(
        135deg,
        rgba(74, 50, 28, 0.6),
        rgba(26, 20, 14, 0.9)
    );
}

.gratitude-card {
    background: linear-gradient(
        135deg,
        rgba(16, 48, 49, 0.75),
        rgba(14, 24, 27, 0.9)
    );
}

.muhasabah-card {
    background: linear-gradient(
        135deg,
        rgba(30, 45, 60, 0.75),
        rgba(17, 23, 32, 0.95)
    );
}

.muhasabah-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
}

.muhasabah-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.tilawah-card {
    background: linear-gradient(
        135deg,
        rgba(40, 35, 72, 0.7),
        rgba(22, 18, 36, 0.9)
    );
}

.hadits-card {
    background: linear-gradient(
        135deg,
        rgba(64, 51, 24, 0.7),
        rgba(24, 20, 12, 0.95)
    );
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 10px;
}

.mood-item {
    background: rgba(14, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 10px;
    color: var(--text);
    display: grid;
    gap: 6px;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
}

.mood-item.active {
    border-color: rgba(92, 91, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(92, 91, 255, 0.2);
    background: rgba(23, 26, 45, 0.85);
}

.mood-item span {
    font-size: 12px;
    color: var(--muted);
}

.journal-input,
.journal-textarea,
.tilawah-field input {
    width: 100%;
    background: #111a24;
    border: 1px solid #243241;
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
}

.journal-textarea {
    resize: vertical;
}

.tilawah-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
}

.tilawah-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.hadits-ar {
    font-size: 20px;
    text-align: right;
    margin-bottom: 8px;
    font-family: "Amiri", "Scheherazade New", serif;
    letter-spacing: 0;
}

.hadits-latin {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 10px;
}

.hadits-id {
    background: rgba(13, 15, 18, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.hadits-source {
    color: #f2b56b;
    font-weight: 600;
    font-size: 12px;
}

.quran-header .btn {
    min-width: 90px;
}

.quran-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    overflow-x: hidden;
}

.quran-target {
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(33, 39, 61, 0.9), #151a2a);
    border: 1px solid rgba(92, 91, 255, 0.3);
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.quran-target-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.quran-target-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.quran-target-input {
    display: grid;
    gap: 6px;
    text-align: right;
}

.quran-target-field {
    display: grid;
    gap: 6px;
}

.quran-target-input label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quran-target-input input {
    width: 110px;
    background: #111a24;
    border: 1px solid #2a3a4a;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    text-align: center;
}

.quran-day-focus-note {
    margin: 0 0 10px;
    font-size: 11px;
}

.quran-target-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 12px;
}

.quran-target-card {
    background: rgba(17, 24, 36, 0.7);
    border: 1px solid rgba(92, 91, 255, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    color: var(--text);
}

.quran-target-card span {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quran-progress {
    background: linear-gradient(
        135deg,
        rgba(48, 38, 22, 0.8),
        rgba(22, 18, 12, 0.95)
    );
    border-radius: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.quran-plan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 14px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quran-plan-chip-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quran-plan-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(31, 185, 167, 0.18);
    color: #9df3e7;
    border: 1px solid rgba(31, 185, 167, 0.35);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.quran-active-day-badge {
    background: rgba(243, 156, 59, 0.2);
    border-color: rgba(243, 156, 59, 0.6);
    color: #f2b56b;
}

.quran-audio-history {
    border-radius: 20px;
    padding: 18px 20px;
    margin: 16px 0 22px;
    background: linear-gradient(135deg, rgba(20, 32, 40, 0.9), #131b25);
    border: 1px solid rgba(92, 91, 255, 0.18);
}

.quran-audio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quran-audio-list {
    display: grid;
    gap: 10px;
}

.quran-audio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 18, 26, 0.6);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.quran-audio-item:hover {
    transform: translateY(-1px);
    border-color: rgba(123, 120, 255, 0.4);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.quran-audio-item strong {
    display: block;
    font-size: 13px;
}

.quran-audio-item .muted {
    font-size: 11px;
}

.quran-audio-play {
    font-size: 16px;
    color: #7b78ff;
}

.quran-audio-empty {
    margin: 10px 0 0;
    font-size: 12px;
}

.quran-continue {
    width: 100%;
    background: linear-gradient(135deg, #159b92, #0f7d75);
    border: none;
    color: #eafffb;
    padding: 16px 18px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    margin: 8px 0 18px;
}

.quran-continue-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.quran-continue-text {
    display: grid;
    gap: 4px;
    text-align: left;
}

.quran-continue-text .label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.quran-continue-text strong {
    font-size: 18px;
}

.quran-continue-arrow {
    font-size: 24px;
    opacity: 0.9;
}

.quran-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.quran-progress-head h3 {
    margin: 0;
    font-size: 20px;
    color: #f2b56b;
    flex: 1 1 180px;
}

.quran-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scroll-snap-type: x mandatory;
    scroll-padding: 6px;
}

.quran-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aebbd0;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.quran-time-tabs {
    display: flex;
    gap: 6px;
    margin: 10px 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quran-progress[data-view="current"] .quran-time-tabs {
    display: none;
}

.quran-progress[data-view="all"] .quran-time-tabs {
    display: none;
}

.quran-time-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aebbd0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.quran-time-tab.active {
    background: rgba(243, 156, 59, 0.2);
    border-color: rgba(243, 156, 59, 0.6);
    color: #f2b56b;
}

.quran-time-tab.is-current {
    position: relative;
    padding-right: 18px;
}

.quran-time-tab.is-current::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f2b56b;
    box-shadow: 0 0 8px rgba(243, 156, 59, 0.8);
}

.quran-grid-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.quran-mobile-focus-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quran-mobile-focus-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.quran-grid-meta {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: auto;
}

.quran-tab.active {
    background: rgba(243, 156, 59, 0.2);
    border-color: rgba(243, 156, 59, 0.6);
    color: #f2b56b;
}

.quran-progress-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 12px;
}

.quran-progress-bar .bar {
    height: 8px;
    border-radius: 999px;
    background: #1b2330;
    overflow: hidden;
}

.quran-progress-bar .bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f2b56b, #5b5bff);
}

.quran-table {
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    position: relative;
    scroll-snap-type: x mandatory;
    scroll-padding: 8px;
}

.quran-header-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    color: #f2b56b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(20, 26, 34, 0.92);
    backdrop-filter: blur(6px);
    padding: 6px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.quran-header-short {
    display: none;
}

.quran-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.quran-table[data-view="current"] .quran-rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.quran-table[data-view="current"] .quran-row {
    display: contents;
}

.quran-table[data-view="current"] .quran-cell {
    width: 100%;
}

.quran-table[data-view="current"] .quran-header-row,
.quran-table[data-view="current"] .quran-row {
    grid-template-columns: 1fr;
}

.quran-table[data-view="current"][data-active-col="0"]
    .quran-header-row
    > div:not(:nth-child(1)),
.quran-table[data-view="current"][data-active-col="0"]
    .quran-row
    > .quran-cell:not(:nth-child(1)) {
    display: none;
}
.quran-table[data-view="current"][data-active-col="1"]
    .quran-header-row
    > div:not(:nth-child(2)),
.quran-table[data-view="current"][data-active-col="1"]
    .quran-row
    > .quran-cell:not(:nth-child(2)) {
    display: none;
}
.quran-table[data-view="current"][data-active-col="2"]
    .quran-header-row
    > div:not(:nth-child(3)),
.quran-table[data-view="current"][data-active-col="2"]
    .quran-row
    > .quran-cell:not(:nth-child(3)) {
    display: none;
}
.quran-table[data-view="current"][data-active-col="3"]
    .quran-header-row
    > div:not(:nth-child(4)),
.quran-table[data-view="current"][data-active-col="3"]
    .quran-row
    > .quran-cell:not(:nth-child(4)) {
    display: none;
}
.quran-table[data-view="current"][data-active-col="4"]
    .quran-header-row
    > div:not(:nth-child(5)),
.quran-table[data-view="current"][data-active-col="4"]
    .quran-row
    > .quran-cell:not(:nth-child(5)) {
    display: none;
}

.quran-tabs::before,
.quran-tabs::after,
.quran-table::before,
.quran-table::after {
    content: "";
    position: sticky;
    top: 0;
    width: 26px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.quran-tabs::before,
.quran-table::before {
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(22, 18, 12, 0.95),
        rgba(22, 18, 12, 0)
    );
}

.quran-tabs::after,
.quran-table::after {
    right: 0;
    background: linear-gradient(
        270deg,
        rgba(22, 18, 12, 0.95),
        rgba(22, 18, 12, 0)
    );
}

.quran-cell {
    position: relative;
}

.quran-cell.is-empty {
    display: none;
}

.quran-check {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #cfd8e6;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quran-range {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.quran-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.quran-toggle input {
    appearance: none;
    width: 38px;
    height: 20px;
    background: rgba(27, 35, 48, 0.8);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quran-toggle input::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.quran-toggle input:checked {
    background: rgba(243, 156, 59, 0.3);
    border-color: rgba(243, 156, 59, 0.6);
}

.quran-toggle input:checked::after {
    transform: translateX(18px);
    background: #f2b56b;
}

.quran-toggle-text {
    min-width: 50px;
    text-align: left;
}

.quran-check.is-checked {
    background: rgba(243, 156, 59, 0.15);
    border-color: rgba(243, 156, 59, 0.5);
}

.quran-check.is-checked .quran-toggle-text,
.quran-check.is-checked .quran-range {
    color: #f2b56b;
}

.quran-check.is-empty {
    opacity: 0.4;
    pointer-events: none;
}

.quran-note {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
}

.quran-search {
    margin-bottom: 16px;
}

.quran-search input {
    width: 100%;
    background: #141c26;
    border: 1px solid #273242;
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--text);
}

.quran-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
}

.quran-ayah-search {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 12px;
}

.quran-ayah-search input {
    flex: 1;
    background: #141c26;
    border: 1px solid #273242;
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--text);
}

.quran-ayah-search-results {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.quran-ayah {
    margin-top: 24px;
    background: #151e28;
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.quran-ayah-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quran-ayah-head .quran-ayah-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quran-ayah-head h3 {
    margin: 0;
    font-size: 18px;
}

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

.quran-ayah-list {
    display: grid;
    gap: 12px;
}

.quran-ayah-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(12, 16, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 8px;
}

.quran-ayah-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quran-ayah-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quran-ayah-audio {
    background: rgba(31, 185, 167, 0.12);
    border: 1px solid rgba(31, 185, 167, 0.4);
    color: #2bd2b0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
}

.quran-ayah-tafsir {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    background: rgba(18, 22, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
}

.quran-ayah-ar {
    text-align: right;
    font-size: 22px;
    font-family: "Amiri", "Scheherazade New", serif;
}

.quran-ayah-translation {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.quran-detail {
    display: grid;
    gap: 22px;
}

.quran-detail-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.quran-back {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
}

.quran-detail-title h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.quran-detail-label {
    justify-self: end;
    color: #39d3c5;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quran-surah-hero {
    border-radius: 24px;
    padding: 26px;
    background:
        radial-gradient(
            circle at 15% 14%,
            rgba(142, 221, 189, 0.24),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 10%,
            rgba(255, 236, 186, 0.26),
            transparent 36%
        ),
        radial-gradient(
            circle at 50% 120%,
            rgba(65, 116, 93, 0.42),
            transparent 50%
        ),
        linear-gradient(
            145deg,
            rgba(203, 175, 118, 0.32),
            rgba(21, 29, 38, 0.98)
        );
    border: 1px solid rgba(227, 205, 153, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 242, 213, 0.22),
        0 18px 36px rgba(8, 12, 20, 0.45);
    position: relative;
    overflow: hidden;
}

.quran-surah-hero::before,
.quran-surah-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.quran-surah-hero::before {
    inset: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 235, 196, 0.2);
    background: linear-gradient(
        130deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.01)
    );
}

.quran-surah-hero::after {
    inset: auto -20% -52% auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 237, 190, 0.26),
            rgba(255, 237, 190, 0)
        ),
        conic-gradient(
            from 120deg,
            rgba(255, 245, 220, 0.15),
            rgba(255, 245, 220, 0.01),
            rgba(255, 245, 220, 0.2)
        );
    pointer-events: none;
}

.quran-surah-frame {
    position: relative;
    z-index: 1;
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.quran-surah-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f9efd5;
    letter-spacing: 0.03em;
    text-shadow: 0 3px 10px rgba(6, 10, 18, 0.4);
}

.quran-surah-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.quran-surah-pills span {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 248, 226, 0.2);
    border: 1px solid rgba(255, 233, 181, 0.45);
    color: #fff3d3;
    backdrop-filter: blur(2px);
}

.quran-surah-arabic {
    font-size: 30px;
    line-height: 1.75;
    color: #fff4d8;
    max-width: 920px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(9, 20, 24, 0.35);
    border: 1px solid rgba(247, 228, 181, 0.24);
    font-family: "Amiri", "Scheherazade New", serif;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.quran-detail-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
}

.quran-detail-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.quran-detail-search input {
    flex: 1;
    background: #101823;
    border: 1px solid #283243;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 220px;
}

.quran-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.quran-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
}

.quran-mode-btn .mode-icon {
    font-size: 14px;
}

.quran-mode-btn .mode-text {
    font-size: 13px;
    font-weight: 600;
}

.quran-detail-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.quran-detail-secondary-actions .btn {
    width: 100%;
}

.quran-recitation-player {
    margin-top: 12px;
    border-radius: 26px;
    padding: 18px;
    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(170, 235, 202, 0.2),
            transparent 45%
        ),
        linear-gradient(165deg, rgba(56, 92, 78, 0.95), rgba(28, 52, 44, 0.92));
    border: 1px solid rgba(186, 228, 204, 0.28);
    box-shadow: 0 18px 40px rgba(4, 11, 9, 0.35);
    display: grid;
    gap: 12px;
}

.quran-player-hero {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    align-items: center;
}

.quran-player-cover {
    width: 94px;
    height: 94px;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(227, 248, 236, 0.42),
            transparent 60%
        ),
        linear-gradient(140deg, rgba(49, 93, 75, 0.95), rgba(22, 49, 40, 0.95));
    border: 1px solid rgba(238, 254, 246, 0.35);
    display: grid;
    place-items: center;
    color: #ecfff6;
    font-size: 28px;
}

.quran-player-meta {
    min-width: 0;
}

.quran-player-meta .label {
    margin: 0 0 4px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(227, 255, 241, 0.75);
    font-size: 11px;
}

.quran-player-meta h3 {
    margin: 0 0 4px;
    color: #f1fffa;
    font-size: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.quran-player-meta .muted {
    margin: 0;
    color: rgba(221, 244, 232, 0.84);
    font-size: 12px;
}

.quran-player-verse {
    border-radius: 14px;
    border: 1px solid rgba(219, 247, 232, 0.24);
    background: rgba(11, 28, 23, 0.5);
    color: #eefbf4;
    padding: 10px 12px;
    font-family:
        "Amiri Quran", "KFGQPC Uthmanic Script HAFS", "Amiri",
        "Scheherazade New", serif;
    font-size: 23px;
    line-height: 1.5;
    text-align: right;
}

.quran-player-progress {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
}

.quran-player-progress span {
    color: rgba(232, 248, 240, 0.88);
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.quran-player-progress input[type="range"] {
    width: 100%;
    accent-color: #d7f8e5;
}

.quran-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.quran-player-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(230, 252, 239, 0.35);
    background: rgba(11, 24, 20, 0.52);
    color: #effff7;
    display: grid;
    place-items: center;
    font-size: 16px;
    cursor: pointer;
}

.quran-player-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quran-player-btn.is-primary {
    width: 56px;
    height: 56px;
    font-size: 21px;
    background: rgba(232, 252, 241, 0.92);
    color: #234838;
    border-color: rgba(233, 252, 242, 0.95);
}

.quran-player-btn.is-primary span {
    line-height: 1;
}

.quran-playlist-queue {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
    padding-right: 2px;
}

.quran-playlist-item {
    border: 1px solid rgba(223, 246, 234, 0.16);
    background: rgba(7, 17, 14, 0.46);
    color: #f2fff9;
    border-radius: 12px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.quran-playlist-item.is-active {
    border-color: rgba(230, 252, 240, 0.68);
    background: rgba(206, 246, 222, 0.2);
}

.quran-playlist-item.is-playing {
    border-color: rgba(238, 255, 246, 0.78);
    box-shadow: 0 8px 20px rgba(2, 8, 6, 0.32);
}

.quran-playlist-index {
    min-width: 26px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(221, 248, 232, 0.82);
}

.quran-playlist-track-meta {
    display: grid;
    min-width: 0;
}

.quran-playlist-track-meta strong {
    font-size: 13px;
    font-weight: 600;
    color: #f1fff8;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.quran-playlist-track-meta .muted {
    font-size: 11px;
    color: rgba(214, 238, 225, 0.78);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.quran-playlist-play {
    font-size: 14px;
}

.quran-playlist-empty {
    margin: 0;
    font-size: 12px;
    color: rgba(218, 238, 228, 0.8);
}

.quran-reading-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.quran-reading-chip {
    background: rgba(15, 22, 34, 0.7);
    border: 1px solid rgba(215, 181, 121, 0.45);
    border-radius: 999px;
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #f2deb8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quran-detail.reading-mode .quran-surah-hero {
    display: none;
}

.quran-detail-list {
    display: grid;
    gap: 24px;
}

.quran-detail-list.reading-mode {
    gap: 0;
    border-radius: 14px;
    border: 2px solid rgba(68, 142, 109, 0.65);
    background:
        linear-gradient(180deg, rgba(18, 28, 36, 0.98), rgba(12, 20, 28, 0.98)),
        rgba(10, 16, 24, 0.98);
    padding: 10px 12px 12px;
    position: relative;
}

.quran-detail-list.reading-mode::before {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    border: 1px solid rgba(92, 184, 139, 0.55);
    border-radius: 10px;
}

.quran-detail-list.reading-mode .quran-ayah-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(92, 184, 139, 0.35);
    border-radius: 0;
    padding: 8px 10px;
    position: relative;
    z-index: 1;
}

.quran-detail-list.reading-mode .quran-ayah-meta,
.quran-detail-list.reading-mode .quran-ayah-translation,
.quran-detail-list.reading-mode .quran-ayah-tafsir {
    display: none;
}

.quran-detail-list.reading-mode .quran-ayah-ar {
    text-align: right;
    line-height: 1.9;
    font-size: clamp(30px, 3.15vw, 48px);
    color: #f7f3e8;
    font-family:
        "Amiri Quran", "KFGQPC Uthmanic Script HAFS", "Amiri",
        "Scheherazade New", serif;
}

.quran-ayah-marker {
    display: none;
    width: 40px;
    height: 40px;
    margin-inline-start: 10px;
    vertical-align: middle;
    position: relative;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 245, 210, 0.95),
            rgba(203, 151, 79, 0.85)
        ),
        linear-gradient(
            135deg,
            rgba(231, 190, 118, 0.95),
            rgba(164, 108, 47, 0.95)
        );
    border: 1px solid rgba(246, 214, 154, 0.9);
    box-shadow:
        inset 0 0 0 1px rgba(93, 52, 20, 0.45),
        0 3px 8px rgba(0, 0, 0, 0.35);
}

.quran-detail-list.reading-mode .quran-ayah-marker {
    display: inline-grid;
    place-items: center;
}

.quran-ayah-marker::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(120, 73, 31, 0.55);
}

.quran-ayah-marker-inner {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #4b2f17;
    font-family: "Cinzel", "Georgia", serif;
}

.quran-detail-list .quran-ayah-item {
    background: #111821;
    border-radius: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
}

.quran-detail-list .quran-ayah-meta {
    font-size: 12px;
    letter-spacing: 0.2em;
}

.quran-ayah-actions {
    display: inline-flex;
    gap: 8px;
}

.quran-ayah-action {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 21, 28, 0.7);
    color: #cfd8e6;
    cursor: pointer;
    font-size: 12px;
    display: grid;
    place-items: center;
}

.quran-ayah-action.is-playing {
    color: #39d3c5;
    border-color: rgba(57, 211, 197, 0.4);
    background: rgba(57, 211, 197, 0.12);
}

.quran-ayah-action.is-active {
    color: #f2b56b;
    border-color: rgba(242, 181, 107, 0.4);
    background: rgba(243, 156, 59, 0.15);
}

.quran-detail-list .quran-ayah-ar {
    font-size: 30px;
    line-height: 1.9;
}

.quran-detail-list .quran-ayah-translation {
    font-size: 14px;
    line-height: 1.7;
}

.quran-detail-list .quran-ayah-tafsir {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.quran-detail-list.tafsir-hidden .quran-ayah-tafsir {
    display: none;
}

.quran-card {
    background: #1a2430;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.quran-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 199, 182, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.quran-card-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.quran-index {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: rgba(47, 187, 176, 0.2);
    color: #2bd2b0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.quran-name {
    font-weight: 600;
    font-size: 14px;
    color: #e9eef6;
}

.quran-meaning {
    font-size: 12px;
    color: #9aa8bb;
    margin-top: 4px;
}

.quran-latin {
    color: #32c7b6;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    min-width: 90px;
}

.quran-card-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
}

.quran-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.meal-grid.two {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.meal-card {
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(
        140deg,
        rgba(30, 38, 48, 0.85),
        rgba(18, 22, 30, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
}

.meal-card .card-title {
    font-weight: 600;
}

.meal-input,
.meal-textarea {
    width: 100%;
    background: #101823;
    border: 1px solid #283243;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
}

.meal-textarea {
    resize: vertical;
}

.meal-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.meal-meta input {
    background: #101823;
    border: 1px solid #283243;
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text);
}

.water-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(
        140deg,
        rgba(31, 49, 58, 0.9),
        rgba(16, 24, 30, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.water-card h3 {
    margin: 0 0 6px;
}

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

.dua-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dua-actions input {
    background: #121c27;
    border: 1px solid #2b3644;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    min-width: 180px;
}

.dua-highlight {
    border-radius: 20px;
    padding: 18px 20px;
    background: linear-gradient(
        140deg,
        rgba(62, 45, 24, 0.7),
        rgba(22, 18, 12, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.dua-highlight .dua-title {
    font-weight: 600;
    margin: 6px 0 10px;
}

.dua-ar {
    font-size: 20px;
    text-align: right;
    margin-bottom: 8px;
    font-family: "Amiri", "Scheherazade New", serif;
}

.dua-latin {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-bottom: 10px;
}

.dua-meaning {
    background: rgba(13, 15, 18, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

.dua-poll {
    margin-top: 12px;
    background: rgba(12, 18, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.dua-poll-title {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dua-poll-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dua-poll-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 12px;
}

.dua-poll-option input {
    accent-color: #f2b56b;
}

.dua-poll-option span {
    color: rgba(255, 255, 255, 0.82);
}

.dua-poll-option input:checked + span {
    color: #f2b56b;
    font-weight: 700;
}

.dua-poll-status {
    margin: 10px 0 0;
    font-size: 12px;
}

.dua-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
}

.dua-card {
    background: #1a2330;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dua-card:hover {
    border-color: rgba(243, 156, 59, 0.35);
}

.dua-card.is-active {
    border-color: rgba(243, 156, 59, 0.58);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.dua-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dua-spoken-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.dua-spoken-btn.is-spoken {
    border-color: rgba(31, 185, 167, 0.5);
    background: rgba(31, 185, 167, 0.2);
    color: #9ef5e8;
}

.dua-card .dua-title {
    font-weight: 600;
    margin: 0;
}

.dua-card .dua-meaning {
    margin: 0;
}

.dua-history-card {
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 20, 30, 0.78);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.dua-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dua-history-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.dua-history-range {
    display: inline-flex;
    gap: 8px;
}

.dua-history-range .btn.active {
    background: rgba(243, 156, 59, 0.2);
    border-color: rgba(243, 156, 59, 0.6);
    color: #f2b56b;
}

.dua-history-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.dua-history-donut {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
}

.dua-history-donut::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: rgba(10, 14, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dua-history-center {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.dua-history-center span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dua-history-legend {
    display: grid;
    gap: 6px;
}

.dua-history-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.dua-history-legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dua-history-legend-item .name {
    color: rgba(255, 255, 255, 0.82);
}

.dua-history-legend-item .value {
    color: #d6e1f2;
}

.dua-history-list {
    display: grid;
    gap: 8px;
}

.dua-history-detail {
    margin-top: 6px;
}

.dua-history-item {
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
}

.dua-history-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dua-history-item-head strong {
    font-size: 13px;
}

.dua-history-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.progress-card {
    background: #141c25;
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 12px;
}

.progress-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(30px, 1fr));
    gap: 10px;
}

.progress-bars .day {
    display: grid;
    gap: 6px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress-bars .bar {
    height: 70px;
    background: #1b2330;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-bars .bar span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, #f2b56b, #5b5bff);
}

.progress-list {
    display: grid;
    gap: 10px;
}

.progress-item {
    background: #1b2431;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.progress-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
}

.progress-greeting h2 {
    margin: 0 0 4px;
    font-style: italic;
    font-weight: 700;
}

.progress-greeting p {
    margin: 0;
    color: var(--muted);
}

.progress-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(26, 35, 48, 0.7);
    display: grid;
    place-items: center;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.progress-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.progress-filter {
    display: inline-flex;
    gap: 8px;
    background: rgba(15, 22, 31, 0.9);
    border-radius: 999px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-filter-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.progress-filter-btn.active {
    background: #f2b56b;
    color: #1b1410;
}

.progress-chip,
.progress-pill {
    background: rgba(242, 181, 107, 0.16);
    color: #f2b56b;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(242, 181, 107, 0.35);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.progress-pill.soft {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.progress-tags {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.progress-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(340px, 1.6fr);
    grid-template-areas:
        "summary graph"
        "leaderboard graph";
    gap: 20px;
    align-items: stretch;
}

.progress-summary,
.progress-graph {
    background: linear-gradient(160deg, #141c25 0%, #0f151d 100%);
    border-radius: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    min-height: 520px;
}

.progress-summary {
    grid-area: summary;
    display: grid;
    gap: 18px;
}

.progress-leaderboard {
    grid-area: leaderboard;
}

.progress-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.progress-summary-top h3 {
    margin: 0;
    font-size: 24px;
}

.progress-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    position: relative;
    will-change: transform;
}

.progress-ring::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #0f171f;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-track {
    fill: none;
    stroke: #2b3542;
    stroke-width: 12;
}

.progress-ring-value {
    fill: none;
    stroke: url(#progressRingGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 0.9s ease;
}

.progress-ring-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.progress-ring-inner strong {
    display: block;
    font-size: 28px;
}

.progress-ring-inner span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10px;
}

.progress-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-card {
    background: #0f171f;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.summary-card strong {
    font-size: 20px;
}

.progress-graph {
    grid-area: graph;
    display: grid;
    gap: 16px;
}

.progress-graph-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.progress-graph-head h3 {
    margin: 0 0 6px;
}

.progress-chart {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
    align-items: stretch;
}

.progress-chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    padding-bottom: 8px;
}

.progress-chart-plot {
    height: 180px;
    background: rgba(12, 18, 26, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
}

.progress-chart-plot svg {
    width: 100%;
    height: 100%;
    display: block;
}

.progress-chart-grid {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.progress-chart-line {
    stroke: url(#progressLineGradient);
    stroke-width: 2;
    fill: none;
    transition: stroke-dashoffset 1.1s ease;
}

.progress-chart-dot {
    fill: #f2b56b;
    opacity: 0;
    transition: opacity 0.6s ease 0.35s;
}

.progress-chart-dot.is-visible {
    opacity: 1;
}

.progress-chart-xlabel {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 4px;
    letter-spacing: 0.08em;
}

.progress-day-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
}

.progress-day {
    display: grid;
    gap: 6px;
    place-items: center;
    font-size: 11px;
    color: var(--muted);
}

.progress-day-value {
    font-size: 10px;
    color: #f2b56b;
    background: rgba(242, 181, 107, 0.12);
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid rgba(242, 181, 107, 0.25);
}

.progress-day-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(242, 181, 107, 0.35);
    display: grid;
    place-items: center;
    font-size: 9px;
    color: #f2b56b;
    background: rgba(242, 181, 107, 0.1);
}

.progress-day-dot.is-empty {
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.progress-day-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress-splits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.split-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 31, 0.7);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 600;
    cursor: default;
}

.split-btn.is-disabled {
    opacity: 0.5;
}

.leaderboard-shell {
    display: grid;
    gap: 16px;
}

.leaderboard-hero {
    border-radius: 28px;
    padding: 24px 20px 30px;
    background:
        radial-gradient(
            circle at 20% -10%,
            rgba(119, 198, 255, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 92% 4%,
            rgba(242, 181, 107, 0.26),
            transparent 38%
        ),
        linear-gradient(165deg, #29456f, #173156);
    border: 1px solid rgba(144, 190, 255, 0.35);
    box-shadow: 0 20px 40px rgba(8, 17, 33, 0.35);
    color: #f5fbff;
}

.leaderboard-scope {
    display: flex;
    gap: 10px;
    align-items: center;
}

.leaderboard-scope .btn {
    margin-left: auto;
}

.leaderboard-scope-btn {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    color: #d7ebff;
    border-radius: 999px;
    min-width: 92px;
    height: 40px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
}

.leaderboard-scope-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #173156;
}

.leaderboard-hero h2 {
    margin: 14px 0 6px;
    font-size: 32px;
}

.leaderboard-meta {
    margin: 0;
    color: rgba(238, 248, 255, 0.9);
    font-weight: 600;
}

.leaderboard-podium {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
}

.leaderboard-podium-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.leaderboard-podium-item strong {
    max-width: 120px;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.leaderboard-podium-item span {
    color: rgba(229, 244, 255, 0.9);
    font-weight: 700;
}

.leaderboard-podium-item.first {
    transform: translateY(-12px);
}

.leaderboard-podium-item.empty {
    opacity: 0.55;
}

.podium-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 46px;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.8);
    background: rgba(20, 37, 67, 0.55);
}

.leaderboard-podium-item.first .podium-avatar {
    width: 116px;
    height: 116px;
    background: linear-gradient(145deg, #1f5fb8, #2c86c4);
    border-color: rgba(255, 255, 255, 0.95);
}

.leaderboard-list {
    display: grid;
    gap: 10px;
}

.leaderboard-card {
    display: grid;
    grid-template-columns: 38px 52px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #141d28;
}

.leaderboard-rank {
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

.leaderboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(145deg, #2e9f6d, #1e7a50);
    color: #f2fff7;
}

.leaderboard-meta-wrap {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.leaderboard-meta-wrap strong {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.leaderboard-meta-wrap span {
    color: var(--muted);
    font-size: 12px;
}

.leaderboard-xp {
    font-weight: 700;
    color: #9dc7ff;
}

.leaderboard-empty {
    text-align: center;
}

.leaderboard-self {
    background: linear-gradient(145deg, #204776, #2f5a85);
    border-radius: 18px;
    padding: 12px;
}

.leaderboard-self-title {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cfe6ff;
}

.leaderboard-self .leaderboard-card {
    background: rgba(16, 30, 49, 0.55);
    border-color: rgba(206, 232, 255, 0.2);
}

.leaderboard-self .leaderboard-rank,
.leaderboard-self .leaderboard-xp,
.leaderboard-self .leaderboard-meta-wrap span {
    color: rgba(224, 241, 255, 0.9);
}

@media (max-width: 960px) {
    .leaderboard-shell {
        margin: -2px -4px 10px;
    }

    .progress-leaderboard .leaderboard-shell {
        margin: 0;
    }

    .leaderboard-hero {
        border-radius: 0 0 26px 26px;
        margin: -12px -12px 0;
        padding: 18px 16px 26px;
    }

    .progress-leaderboard .leaderboard-hero {
        border-radius: 24px;
        margin: 0;
        padding: 18px 16px 22px;
    }

    .leaderboard-hero h2 {
        font-size: 30px;
    }

    .leaderboard-scope .btn {
        min-height: 36px;
        font-size: 11px;
        padding-inline: 12px;
    }

    .leaderboard-scope-btn {
        min-width: 84px;
        height: 38px;
    }

    .leaderboard-podium {
        gap: 8px;
    }

    .podium-avatar {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }

    .leaderboard-podium-item.first .podium-avatar {
        width: 94px;
        height: 94px;
    }

    .leaderboard-podium-item strong {
        font-size: 13px;
        max-width: 98px;
    }

    .leaderboard-card {
        grid-template-columns: 30px 44px 1fr auto;
        gap: 10px;
        border-radius: 14px;
        padding: 10px;
    }

    .leaderboard-avatar {
        width: 38px;
        height: 38px;
    }
}

.mobile-nav {
    position: fixed;
    inset: auto 16px 16px 16px;
    background: rgba(15, 21, 29, 0.95);
    border: 1px solid #1e2936;
    border-radius: 18px;
    padding: 10px 12px;
    display: none;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    z-index: 20;
}

.mobile-nav-item {
    flex: 1;
    background: transparent;
    border: none;
    color: #7f8ea3;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
}

.mobile-nav-item.is-disabled {
    opacity: 0.45;
    color: #5f6d80;
    cursor: not-allowed;
}

.mobile-nav-item.is-disabled::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 6px;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    opacity: 0.85;
}

.mobile-nav-item .menu-icon {
    width: 18px;
    height: 18px;
}

.mobile-nav-item.active {
    color: var(--text);
    border-radius: 12px;
}

.mobile-nav-item.active .menu-icon {
    stroke: currentColor;
}

.mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), #cfd8e6);
}

.mobile-nav-item[data-section="ibadah"].active {
    color: #f2a24b;
    background: linear-gradient(
        120deg,
        rgba(243, 156, 59, 0.28),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(243, 156, 59, 0.4);
}

.mobile-nav-item[data-section="ramadhan"].active {
    color: #f2a24b;
    background: linear-gradient(
        120deg,
        rgba(243, 156, 59, 0.28),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(243, 156, 59, 0.4);
}

.mobile-nav-item[data-section="journal"].active {
    color: #7b78ff;
    background: linear-gradient(
        120deg,
        rgba(91, 89, 255, 0.28),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(91, 89, 255, 0.4);
}

.mobile-nav-item[data-section="quran"].active {
    color: #39d3c5;
    background: linear-gradient(
        120deg,
        rgba(57, 211, 197, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(57, 211, 197, 0.4);
}

.mobile-nav-item[data-section="meal"].active {
    color: #ff6b8a;
    background: linear-gradient(
        120deg,
        rgba(255, 107, 138, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(255, 107, 138, 0.4);
}

.mobile-nav-item[data-section="dua"].active {
    color: #b883ff;
    background: linear-gradient(
        120deg,
        rgba(184, 131, 255, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(184, 131, 255, 0.4);
}

.mobile-nav-item[data-section="feature"].active {
    color: #7ad5ff;
    background: linear-gradient(
        120deg,
        rgba(111, 157, 255, 0.3),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(122, 213, 255, 0.45);
}

.mobile-nav-item[data-section="progress"].active {
    color: #46d985;
    background: linear-gradient(
        120deg,
        rgba(70, 217, 133, 0.26),
        rgba(27, 34, 43, 0.8)
    );
    border: 1px solid rgba(70, 217, 133, 0.4);
}

.mobile-only {
    display: none;
}

@media (min-width: 961px) {
    .fab-container {
        display: none !important;
    }
}

.mobile-home {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-home {
    gap: 18px;
    margin-bottom: 28px;
}

.mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.mobile-greet {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.mobile-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.mobile-location .pin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #f2b56b;
    position: relative;
}

.mobile-location .pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #f2b56b;
}

.mobile-location .location-refresh-btn {
    padding: 2px 8px;
    font-size: 11px;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.location-row .location-refresh-btn {
    padding: 4px 10px;
    font-size: 12px;
}

.mobile-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logout-btn {
    border: 1px solid rgba(122, 213, 255, 0.35);
    background: rgba(18, 25, 35, 0.75);
    color: #cfe8ff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.mobile-logout-btn:hover {
    border-color: rgba(122, 213, 255, 0.7);
    color: #ffffff;
}

.mobile-logout-btn .logout-icon {
    width: 18px;
    height: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-score {
    font-weight: 600;
    color: #cdd6e2;
}

.mobile-ring {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    opacity: 0.9;
}

.mobile-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mobile-ring-track {
    fill: none;
    stroke: #2a3747;
    stroke-width: 3;
}

.mobile-ring-value {
    fill: none;
    stroke: #cdd6e2;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 56.5;
    stroke-dashoffset: 56.5;
    transition: stroke-dashoffset 0.6s ease;
}

.mobile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2b3848;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.mobile-hero {
    background: linear-gradient(145deg, #21385a, #18314d);
    border-radius: 22px;
    padding: 14px 14px 12px;
    color: white;
    min-height: 232px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(122, 213, 255, 0.22);
}

.fab-container {
    position: fixed;
    bottom: 80px; /* Above the bottom nav */
    right: 16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e7bff, #2d8fb0);
    border: none;
    color: white;
    font-size: 20px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fab-trigger:active {
    transform: scale(0.95);
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 22, 31, 0.95);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform-origin: bottom right;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.fab-menu.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    width: 100%;
}

.fab-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fab-item .menu-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.mobile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            90% 70% at 50% 0%,
            rgba(122, 213, 255, 0.22),
            transparent 62%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0)
        );
    pointer-events: none;
}

.mobile-prayer-subtitle {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 245, 255, 0.78);
    position: relative;
    z-index: 1;
}

.mobile-prayer-gauge {
    --progress: 0;
    position: relative;
    height: auto;
    margin-top: 4px;
    z-index: 1;
    display: grid;
    justify-items: center;
}

.mobile-prayer-arc-svg {
    position: relative;
    left: auto;
    top: auto;
    width: 220px;
    height: 120px;
    transform: none;
    overflow: visible;
    z-index: 1;
}

.mobile-prayer-arc-track,
.mobile-prayer-arc-value {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.mobile-prayer-arc-track {
    stroke: rgba(255, 255, 255, 0.22);
}

.mobile-prayer-arc-value {
    stroke: #f2b56b;
    stroke-dasharray: 314;
    stroke-dashoffset: calc(314 * (1 - var(--progress)));
    filter: drop-shadow(0 0 8px rgba(242, 181, 107, 0.45));
    transition: stroke-dashoffset 0.55s ease;
}

.mobile-prayer-center {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(230px, 100%);
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    background: linear-gradient(170deg, #1e8fa7, #195f78);
    border: 1px solid rgba(122, 213, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: -10px;
    z-index: 2;
}

.mobile-prayer-next {
    margin: 0;
    font-size: 10px;
    color: rgba(228, 251, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-prayer-next span {
    color: #fff3d9;
}

.mobile-prayer-center strong {
    display: block;
    margin-top: 2px;
    font-size: 42px;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #f4fbff;
    font-variant-numeric: tabular-nums;
}

.mobile-prayer-center strong.is-urgent-blink {
    animation: mobile-prayer-blink 0.9s steps(2, end) infinite;
    color: #fff0bf;
    text-shadow: 0 0 12px rgba(255, 208, 122, 0.55);
}

@keyframes mobile-prayer-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-prayer-center strong.is-urgent-blink {
        animation: none;
    }
}

.mobile-prayer-times {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.mobile-prayer-time {
    display: grid;
    gap: 2px;
}

.mobile-prayer-time .label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(220, 238, 255, 0.72);
}

.mobile-prayer-time strong {
    font-size: 12px;
    color: #f2f7ff;
}

.mobile-prayer-time span {
    font-size: 12px;
    color: #9fcaee;
    font-weight: 600;
}

.mobile-prayer-time-next {
    text-align: right;
}

.mobile-prayer-sound-wrap {
    margin-top: 10px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.mobile-prayer-sound-btn {
    width: 100%;
    border-color: rgba(122, 213, 255, 0.45);
    color: #dff7ff;
    background: rgba(12, 29, 47, 0.35);
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

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

.form.compact {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 13px;
    color: var(--muted);
}

.floating-field {
    position: relative;
}

.with-icon .field-icon {
    position: absolute;
    left: 12px;
    top: 16px;
    color: #8ea3b8;
    font-size: 14px;
    pointer-events: none;
}

.floating-field input {
    padding: 18px 12px 8px;
}

.with-icon input {
    padding-left: 38px;
}

.floating-field label {
    position: absolute;
    left: 12px;
    top: 14px;
    padding: 0 6px;
    background: var(--panel);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
    pointer-events: none;
    opacity: 0.7;
}

.with-icon label {
    left: 34px;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
    transform: translateY(-12px) scale(0.86);
    color: #9bbcff;
    opacity: 1;
}

.school-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 12;
    max-height: 220px;
    overflow-y: auto;
    background: #0e1824;
    border: 1px solid #2a3a4a;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    padding: 6px;
}

.school-suggest-item {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    text-align: left;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: grid;
    gap: 2px;
}

.school-suggest-item:hover,
.school-suggest-item:focus-visible {
    outline: none;
    background: rgba(122, 213, 255, 0.15);
}

.school-suggest-item .name {
    font-size: 13px;
    font-weight: 600;
}

.school-suggest-item .meta {
    font-size: 11px;
    color: var(--muted);
}

.school-suggest-empty {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--muted);
}

.otp-request-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.otp-request-row .field {
    min-width: 0;
}

.otp-request-row input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.otp-mini-btn {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.actions .btn i {
    margin-right: 8px;
}

input {
    background: #0f1c2a;
    border: 1px solid #2a3a4a;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
}

select {
    background: #0f1c2a;
    border: 1px solid #2a3a4a;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
}

.table-inline-select {
    min-width: 110px;
    padding: 6px 8px;
    border-radius: 8px;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#loginForm .actions {
    justify-content: center;
}

#loginForm .actions .btn {
    width: min(100%, 280px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn {
    background: #1a2533;
    color: var(--text);
    border: 1px solid #2b3b4c;
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #4e7bff);
    border: none;
    color: #fff;
    font-weight: 700;
}

.btn.ghost {
    background: transparent;
    border: 1px solid #2a3a4a;
    color: var(--muted);
}

.btn.teal {
    background: #1aa79a;
    border: none;
    color: #07201d;
    font-weight: 700;
}

.btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

.btn.danger {
    background: #3a1d1d;
    border: 1px solid #5a2a2a;
    color: #ffbcbc;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cdd7e6;
    background: rgba(255, 255, 255, 0.04);
}

.reset-badge.active {
    color: #f2b56b;
    border-color: rgba(243, 156, 59, 0.5);
    background: rgba(243, 156, 59, 0.12);
}

.reset-pending {
    background: rgba(243, 156, 59, 0.08);
}

.table-wrap {
    overflow-x: auto;
}

.table-quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    flex-wrap: wrap;
}

.quick-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 26, 38, 0.62);
    color: #c4d0df;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.quick-filter-btn:hover {
    border-color: rgba(88, 198, 176, 0.48);
}

.quick-filter-btn.active {
    color: #d7fff3;
    border-color: rgba(88, 198, 176, 0.62);
    background: rgba(44, 144, 121, 0.36);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #263445;
    font-size: 14px;
}

th {
    color: var(--muted);
    font-weight: 600;
}

.class-origin-wrap {
    display: grid;
    gap: 6px;
}

.class-origin-badge {
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.class-origin-badge.auto {
    color: #a9ffe1;
    border-color: rgba(67, 220, 178, 0.45);
    background: rgba(67, 220, 178, 0.14);
}

.class-origin-badge.manual {
    color: #ffd59e;
    border-color: rgba(243, 156, 59, 0.5);
    background: rgba(243, 156, 59, 0.16);
}

.admin-topbar {
    align-items: flex-start;
    gap: 12px;
}

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

.admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    margin-top: 12px;
}

.admin-sidebar {
    background: rgba(12, 18, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 16px;
}

.admin-sidebar-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 14px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #2b3b4c;
    background: rgba(12, 20, 32, 0.7);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.admin-tab.active {
    color: #f8fafc;
    border-color: rgba(113, 143, 255, 0.5);
    background: linear-gradient(
        135deg,
        rgba(79, 112, 255, 0.35),
        rgba(36, 52, 104, 0.6)
    );
    box-shadow: 0 10px 24px rgba(20, 35, 66, 0.3);
}

.admin-content {
    min-width: 0;
}

.admin-mobile-nav {
    display: none;
}

.admin-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-layout {
    flex: 1;
    min-height: 0;
}

.admin-content {
    overflow: auto;
    max-height: calc(100vh - 140px);
    padding-bottom: 12px;
}

.dashboard.admin-mode {
    height: 100vh;
    overflow: hidden;
}

.admin-content {
    min-width: 0;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

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

.summary-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-item h3 {
    margin-top: 6px;
    font-size: 22px;
}

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

.inline-form {
    align-items: end;
}

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

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.list-row span {
    color: var(--muted);
}

.bar-chart {
    height: 160px;
}

.bar-chart svg {
    width: 100%;
    height: 100%;
}

.line-grid line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-dasharray: 4 6;
}

.line-fill {
    fill: url(#lineFill);
    opacity: 0.85;
}

.line-path {
    fill: none;
    stroke: #7aa7ff;
    stroke-width: 3;
    filter: drop-shadow(0 6px 12px rgba(84, 128, 255, 0.35));
}

.line-point {
    fill: #dce7ff;
    stroke: #4b6ee8;
    stroke-width: 2;
}

.ramadhan-meta {
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .admin-panel .table-wrap {
        overflow-x: visible;
    }

    .admin-panel table,
    .admin-panel thead,
    .admin-panel tbody,
    .admin-panel th,
    .admin-panel td,
    .admin-panel tr {
        display: block;
        width: 100%;
    }

    .admin-panel thead {
        display: none;
    }

    .admin-panel tr {
        margin-bottom: 12px;
        padding: 10px;
        border: 1px solid #263445;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
    }

    .admin-panel td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 4px;
        border: none;
        font-size: 13px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .admin-panel td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 11px;
    }

    .admin-panel td:last-child {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .admin-panel td[data-label="Detail"] {
        white-space: normal;
        line-height: 1.4;
    }
    .dashboard .admin-mobile-nav {
        display: none;
    }

    .dashboard.admin-mode .mobile-nav {
        display: none;
    }

    .dashboard.admin-mode .admin-mobile-nav {
        display: flex;
    }
    .admin-mobile-nav {
        display: flex;
    }

    .dashboard .mobile-nav {
        display: flex;
    }
    #adminMenu {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        justify-content: space-between;
        gap: 6px;
        position: fixed;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        background: rgba(10, 16, 26, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        padding: 8px;
        z-index: 30;
        width: min(92vw, 520px);
        backdrop-filter: blur(10px);
    }

    .admin-tab {
        text-align: center;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 12px;
    }

    .admin-content {
        padding-bottom: 80px;
    }
    .admin-menu {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        justify-content: space-between;
        gap: 6px;
        position: fixed;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        background: rgba(10, 16, 26, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        padding: 8px;
        z-index: 30;
        width: min(92vw, 520px);
        backdrop-filter: blur(10px);
    }

    .admin-tab {
        text-align: center;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 12px;
    }

    .admin-content {
        padding-bottom: 80px;
    }
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.muted {
    color: var(--muted);
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    background: #1d2b3b;
    color: var(--text);
    padding: 12px 18px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.reminder {
    background: #1a2b2a;
    color: #d1fff4;
    border: 1px solid rgba(31, 185, 167, 0.4);
}

.toast.success {
    background: #1f3a2a;
    color: #b7ffd0;
}

.toast.error {
    background: #3a1d1d;
    color: #ffc5c5;
}

.login-result {
    margin-top: 10px;
    font-size: 14px;
}

.dev-card {
    background: #121923;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid #1f2a36;
}

.dev-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.dev-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dev-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #1b2634;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-image {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

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

.floating-admin {
    position: fixed;
    bottom: 24px;
    right: 26px;
    background: #1a2130;
    border: 1px solid #2d3a4f;
    color: #b9c4d6;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    touch-action: none;
    transition:
        left 0.22s ease,
        top 0.22s ease,
        box-shadow 0.22s ease;
}

.floating-admin.dragging {
    cursor: grabbing;
    transition: none;
}

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

    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        height: 100%;
    }

    .profile {
        margin-top: 0;
    }

    .content {
        padding: 24px 20px 140px;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .prayer-row {
        grid-template-columns: repeat(4, minmax(60px, 1fr));
    }

    .stat-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .badge-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .badge-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

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

    .habit-history {
        grid-template-columns: repeat(7, minmax(32px, 1fr));
    }

    .habit-extra {
        grid-template-columns: 1fr;
    }

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

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

    .ramadhan-feature-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 75%);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .ramadhan-feature-card {
        scroll-snap-align: start;
    }

    .ramadhan-special-grid {
        grid-template-columns: 1fr;
    }

    .ramadhan-history-grid {
        grid-template-columns: 1fr;
    }

    .quran-audio-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sedekah-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .mobile-nav {
        display: flex;
    }

    .floating-admin {
        bottom: 96px;
    }

    .floating-dev-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .floating-theme-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-only {
        display: block;
    }

    .mobile-home {
        display: grid;
    }

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

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

    .journal-history-item {
        grid-template-columns: 1fr;
    }

    .quran-summary {
        grid-template-columns: 1fr;
    }

    .quran-target-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .quran-target-input {
        text-align: left;
    }

    .quran-target-grid {
        grid-template-columns: 1fr;
    }

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

    .quran-list {
        grid-template-columns: 1fr;
    }

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

    .meal-grid.two {
        grid-template-columns: 1fr;
    }

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

    .dua-poll-options {
        grid-template-columns: 1fr;
    }

    .dua-history-item-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dua-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dua-history-summary {
        grid-template-columns: 1fr;
    }

    .dua-history-donut {
        margin: 0 auto;
    }

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

    .progress-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .progress-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .progress-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "summary"
            "leaderboard"
            "graph";
    }

    .progress-day-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .heatmap-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .desktop-only {
        display: none;
    }

    .hero-card {
        display: none;
    }

    .quran-browser {
        display: none;
    }

    .quran-modal .quran-browser {
        display: grid;
    }
}

@media (max-width: 720px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .page-banner img {
        height: 140px;
    }

    .trial-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .quran-surah-hero {
        padding: 18px;
    }

    .quran-surah-title h3 {
        font-size: 20px;
    }

    .quran-surah-arabic {
        font-size: 22px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .otp-request-row {
        grid-template-columns: 1fr;
    }

    .otp-mini-btn {
        width: 100%;
        justify-content: center;
    }

    .quran-table .quran-header-row,
    .quran-table .quran-row {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .quran-table,
    .quran-table .quran-rows {
        min-width: 0;
        overflow-x: hidden;
    }

    .quran-progress,
    .quran-continue,
    .quran-summary,
    .quran-target {
        width: 100%;
        max-width: 100%;
        margin-left: -4px;
        margin-right: -4px;
        width: calc(100% + 8px);
        align-self: stretch;
    }

    .quran-browser-trigger {
        min-height: 64px;
        padding: 18px 20px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.35;
        border-radius: 14px;
    }

    .quran-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .quran-target-input {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        text-align: left;
    }

    .quran-target-input input {
        width: 100%;
    }

    .quran-target {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .quran-target-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .quran-target-head h3 {
        font-size: 18px;
    }

    .quran-target-input label {
        font-size: 11px;
    }

    .quran-target-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .quran-target-input input {
        min-height: 44px;
        font-size: 15px;
    }

    .quran-target-card {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .quran-target-card strong {
        font-size: 15px;
    }

    .quran-plan-chip-row {
        row-gap: 8px;
    }

    .quran-plan-chip {
        font-size: 12px;
        line-height: 1.35;
        padding: 5px 10px;
    }

    .stat-row .stat-card {
        padding: 10px;
        gap: 8px;
        border-radius: 14px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        align-items: stretch;
        column-gap: 10px;
        row-gap: 2px;
    }

    .stat-row .stat-card > div:last-child {
        display: contents;
    }

    .stat-row .stat-card .label {
        grid-column: 1 / 2;
        grid-row: 1;
        font-size: 10px;
        letter-spacing: 0.1em;
        text-align: left;
    }

    .stat-row .stat-card h3 {
        grid-column: 2 / 3;
        grid-row: 2;
        font-size: 32px;
        line-height: 1;
        margin: 2px 0 2px;
        text-align: left;
    }

    .stat-row .stat-card .muted {
        grid-column: 2 / 3;
        grid-row: 3;
        font-size: 10px;
        text-align: left;
    }

    .ibadah-focus-card {
        padding: 12px;
    }

    .ibadah-focus-head h4 {
        font-size: 13px;
    }

    .ibadah-focus-list {
        font-size: 12px;
    }

    .stat-row .stat-icon {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
        align-self: center;
        justify-self: center;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 24px;
    }

    .quran-progress {
        padding: 10px 12px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .quran-progress-head h3 {
        font-size: 16px;
    }

    .quran-progress-head {
        margin-bottom: 10px;
    }

    .quran-time-tabs {
        margin: 6px 0 8px;
    }

    .quran-tabs {
        gap: 6px;
        margin-bottom: 8px;
    }

    .quran-tab {
        font-size: 11px;
        padding: 7px 10px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .quran-time-tab {
        min-height: 40px;
        padding: 8px 12px;
    }

    .quran-progress-bar {
        margin-bottom: 8px;
        font-size: 11px;
        gap: 8px;
    }

    .quran-header-row {
        font-size: 10px;
        letter-spacing: 0.1em;
        margin-bottom: 6px;
    }

    .quran-header-full {
        display: none;
    }

    .quran-header-short {
        display: inline;
    }

    .quran-table[data-active-col] .quran-header-row,
    .quran-table[data-active-col] .quran-row {
        grid-template-columns: 1fr;
    }

    .quran-table[data-active-col="0"]
        .quran-header-row
        > div:not(:nth-child(1)),
    .quran-table[data-active-col="0"]
        .quran-row
        > .quran-cell:not(:nth-child(1)) {
        display: none;
    }
    .quran-table[data-active-col="1"]
        .quran-header-row
        > div:not(:nth-child(2)),
    .quran-table[data-active-col="1"]
        .quran-row
        > .quran-cell:not(:nth-child(2)) {
        display: none;
    }
    .quran-table[data-active-col="2"]
        .quran-header-row
        > div:not(:nth-child(3)),
    .quran-table[data-active-col="2"]
        .quran-row
        > .quran-cell:not(:nth-child(3)) {
        display: none;
    }
    .quran-table[data-active-col="3"]
        .quran-header-row
        > div:not(:nth-child(4)),
    .quran-table[data-active-col="3"]
        .quran-row
        > .quran-cell:not(:nth-child(4)) {
        display: none;
    }
    .quran-table[data-active-col="4"]
        .quran-header-row
        > div:not(:nth-child(5)),
    .quran-table[data-active-col="4"]
        .quran-row
        > .quran-cell:not(:nth-child(5)) {
        display: none;
    }

    .quran-table[data-active-col] .quran-rows {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        overflow-y: auto;
        padding-bottom: 8px;
    }

    .quran-table[data-view="current"][data-active-col] .quran-rows {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    @media (max-width: 420px) {
        .quran-table[data-active-col] .quran-rows {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    .quran-table[data-active-col] .quran-row {
        display: contents;
    }

    .quran-table[data-active-col] .quran-cell {
        width: 100%;
    }

    .quran-table[data-active-col][data-grid="2"] .quran-rows {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .quran-table[data-view="current"][data-active-col][data-grid="2"]
        .quran-rows {
        grid-template-columns: 1fr;
    }

    @media (max-width: 420px) {
        .quran-table[data-active-col][data-grid="2"] .quran-rows {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    .quran-day {
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.65);
    }

    .quran-row {
        gap: 4px;
        margin-bottom: 4px;
    }

    .quran-check {
        flex-direction: column;
        padding: 6px 4px;
        font-size: 10px;
        border-radius: 12px;
        gap: 6px;
        background: rgba(17, 24, 36, 0.7);
        border: 1px solid rgba(31, 185, 167, 0.25);
    }

    .quran-check .quran-day {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .quran-table[data-view="current"] .quran-check {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        justify-items: stretch;
        text-align: left;
        width: 100%;
        padding: 10px 12px;
        gap: 10px;
    }

    .quran-table[data-view="current"] .quran-check .quran-day {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.9);
    }

    [data-theme="light"] .quran-table[data-view="current"] .quran-check {
        background: rgba(231, 245, 239, 0.72);
        border-color: #b9decf;
    }

    [data-theme="light"]
        .quran-table[data-view="current"]
        .quran-check
        .quran-day {
        color: #1f5b4f;
    }

    .quran-table[data-view="current"]
        .quran-check
        .quran-day[data-range]:not([data-range=""])::after {
        content: " (" attr(data-range) ")";
    }

    .quran-table[data-view="current"] .quran-check .quran-toggle {
        margin-left: auto;
        font-size: 10px;
    }

    .quran-range {
        display: none;
    }

    .quran-toggle {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .quran-toggle input {
        width: 36px;
        height: 18px;
    }

    .quran-toggle input::after {
        width: 12px;
        height: 12px;
    }

    .quran-toggle input:checked::after {
        transform: translateX(18px);
    }

    .quran-note {
        display: none;
    }

    .quran-table {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .quran-table .quran-rows {
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    .page-section[data-section="quran"] {
        padding-bottom: 16px;
        height: auto;
        max-height: none;
        overflow: visible;
        display: block;
    }

    .page-section[data-section="quran"] .quran-progress {
        overflow: visible;
    }

    .quran-progress-bar {
        grid-template-columns: 1fr auto;
    }

    .quran-progress-bar span {
        display: none;
    }

    .quran-detail-actions {
        grid-template-columns: 1fr;
    }

    .quran-detail-search {
        flex-wrap: wrap;
        gap: 8px;
    }

    .quran-detail-search input {
        min-height: 42px;
        min-width: 100%;
    }

    .quran-detail-secondary-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quran-detail-secondary-actions .btn {
        min-height: 42px;
    }

    .quran-mode-btn {
        min-height: 44px;
        padding: 0 8px;
    }

    .quran-mode-btn .mode-text {
        display: none;
    }

    .quran-mode-btn .mode-icon {
        font-size: 16px;
    }

    .quran-recitation-player {
        border-radius: 20px;
        padding: 14px;
    }

    .quran-player-hero {
        grid-template-columns: 76px 1fr;
        gap: 10px;
    }

    .quran-surah-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .quran-surah-title h3 {
        font-size: 20px;
    }

    .quran-surah-arabic {
        font-size: 24px;
        padding: 8px 10px;
    }

    .quran-player-cover {
        width: 76px;
        height: 76px;
        border-radius: 14px;
        font-size: 22px;
    }

    .quran-player-meta h3 {
        font-size: 15px;
    }

    .quran-player-verse {
        font-size: 20px;
    }

    .quran-player-controls {
        gap: 14px;
    }

    .quran-player-btn {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .quran-player-btn.is-primary {
        width: 62px;
        height: 62px;
        font-size: 22px;
    }

    .quran-playlist-queue {
        max-height: 220px;
    }

    .quran-playlist-item {
        min-height: 56px;
        padding: 10px 11px;
    }

    .quran-playlist-track-meta strong {
        font-size: 14px;
    }

    .quran-playlist-track-meta .muted {
        font-size: 12px;
    }

    .quran-playlist-play {
        font-size: 16px;
    }

    .quran-ayah-actions {
        gap: 10px;
    }

    .quran-ayah-action {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 14px;
    }

    .floating-theme-btn {
        bottom: 160px;
    }

    .quran-reading-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.btn.telegram {
    background: #1b86bf;
    color: #fff;
    border: none;
    text-decoration: none;
}
.btn.whatsapp {
    background: #1fae55;
    color: #fff;
    border: none;
    text-decoration: none;
}
.dev-actions a {
    text-decoration: none;
}

.dev-modal-trigger {
    position: relative;
    overflow: hidden;
    border-color: rgba(91, 156, 255, 0.35);
    color: #cfe0ff;
    box-shadow: 0 8px 24px rgba(91, 156, 255, 0.18);
    animation: dev-pulse 2.4s ease-in-out infinite;
}

.dev-modal-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 20%,
        rgba(99, 170, 255, 0.2),
        transparent 55%
    );
    opacity: 0.8;
    pointer-events: none;
}

@keyframes dev-pulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 8px 24px rgba(91, 156, 255, 0.18);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(91, 156, 255, 0.3);
    }
}

@keyframes dev-pop {
    0% {
        transform: translateY(12px) scale(0.94);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes dev-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.feature-status {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(111, 157, 255, 0.2);
    border: 1px solid rgba(120, 160, 255, 0.5);
    color: #dbe6ff;
}

.feature-status.is-disabled {
    background: rgba(255, 164, 120, 0.18);
    border-color: rgba(255, 164, 120, 0.45);
    color: #ffd2b8;
}

.feature-card {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 35px rgba(10, 20, 40, 0.3);
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #e3e9ff;
}

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

.feature-highlight {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-highlight span {
    font-size: 14px;
    color: #e5ecff;
}

.feature-empty {
    margin-top: 14px;
}

.feature-cta {
    margin-top: 20px;
}

.feature-cta .btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(0.2);
}

.subscribe-modal-card {
    max-width: 520px;
}

.quran-exit-modal {
    place-items: end center;
    padding: 20px 16px 22px;
}

.quran-exit-card {
    width: min(560px, 100%);
    border-radius: 24px 24px 18px 18px;
    background: #f5f5f5;
    color: #3f4a5f;
    padding: 20px 22px 22px;
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.28);
    animation: quran-exit-slide-up 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
    text-align: center;
}

.quran-exit-icon {
    width: 88px;
    height: 88px;
    margin: 2px auto 12px;
    border-radius: 50%;
    background: #ef4646;
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px rgba(239, 70, 70, 0.3);
}

.quran-exit-card h3 {
    margin: 0 0 8px;
    font-size: clamp(28px, 5vw, 52px);
    color: #434f64;
    letter-spacing: 0.01em;
}

.quran-exit-card .muted {
    margin: 0 auto;
    max-width: 700px;
    color: #7c8695;
    font-size: clamp(18px, 3.6vw, 46px);
    line-height: 1.35;
}

.quran-exit-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.quran-exit-btn {
    width: 100%;
    border-radius: 16px;
    min-height: 54px;
    font-size: clamp(24px, 4.2vw, 34px);
    font-weight: 700;
    border: 0;
}

.quran-exit-continue {
    background: #f5372d !important;
    color: #fff !important;
}

.quran-exit-bookmark {
    background: #f3793f !important;
    color: #fff !important;
}

.quran-exit-close {
    background: #ececec !important;
    color: #4b5668 !important;
    border: 1px solid rgba(75, 86, 104, 0.16);
}

@keyframes quran-exit-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.subscribe-plan {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.subscribe-plan h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.subscribe-plan p {
    margin: 0 0 12px;
}

.feature-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.switch .slider::after {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 2px;
    border-radius: 50%;
    background: #d4ddff;
    transition: all 0.2s ease;
}

.switch input:checked + .slider {
    background: rgba(106, 146, 255, 0.5);
    border-color: rgba(120, 160, 255, 0.8);
}

.switch input:checked + .slider::after {
    transform: translateX(20px);
    background: #f4f7ff;
}

@media (max-width: 720px) {
    .feature-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
