﻿/* =========================================================
   shell-v2.css  -  muat SETELAH app.css (stylesheet biasa)
   sh-* = layout/shell, hm-* = beranda
   ========================================================= */
:root {
    --app-grad: linear-gradient(135deg, #6D5EF5, #A855F7);
}

.sh-mobile-only {
}

@media (min-width: 768px) {
    .sh-mobile-only {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .sh-desktop-only {
        display: none !important;
    }
}

/* ---------- Tombol & ikon umum ---------- */
.sh-ibtn {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .95rem;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform .15s, border-color .15s, background .15s;
}

    .sh-ibtn:active {
        transform: scale(.94);
    }

.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 2.75rem;
    padding: 0 1.1rem;
    border-radius: .95rem;
    font-size: .875rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, filter .15s;
}

    .sh-btn:hover {
        transform: translateY(-1px);
    }

    .sh-btn:active {
        transform: scale(.97);
    }

    .sh-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.sh-btn-block {
    width: 100%;
    height: 3rem;
}

.sh-sun, .sh-moon {
    animation: sh-pop .4s cubic-bezier(.22, 1, .36, 1);
}

.sh-sun {
    color: #F59E0B;
}

.sh-moon {
    color: var(--app-accent);
}

@keyframes sh-pop {
    from {
        transform: rotate(-70deg) scale(.4);
        opacity: 0;
    }
}

/* ---------- Shell ---------- */
.sh-app {
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 768px) {
    .sh-app {
        display: flex;
    }
}

.sh-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(10, 9, 20, .55);
    backdrop-filter: blur(4px);
    animation: nc-page-enter .2s both;
}

@media (min-width: 768px) {
    .sh-scrim {
        display: none;
    }
}

.sh-aside {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(18rem, 86vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}

    .sh-aside.is-open {
        transform: none;
    }

@media (min-width: 768px) {
    .sh-aside {
        position: sticky;
        top: 0;
        z-index: 30;
        flex: 0 0 auto;
        width: 18rem;
        transform: none;
        box-shadow: none;
        transition: width .3s cubic-bezier(.22, 1, .36, 1);
    }

        .sh-aside.is-collapsed {
            width: 5.5rem;
        }
}

.sh-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.sh-content {
    width: 100%;
    flex: 1;
    padding: 1rem .875rem 2.5rem;
}

.sh-wrap {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .sh-content {
        padding: 1.5rem 1.5rem 3rem;
    }
}

@media (min-width: 768px) {
    .sh-content {
        padding: 2rem 2rem 3rem;
    }
}

@media (min-width: 1024px) {
    .sh-content {
        padding: 2.25rem 2.5rem 3.5rem;
    }
}

/* ---------- Topbar ---------- */
.sh-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    height: 4rem;
    padding: 0 .875rem;
}

@media (min-width: 640px) {
    .sh-top {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .sh-top {
        height: 4.5rem;
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .sh-top {
        padding: 0 2.5rem;
    }
}

.sh-top-l {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.sh-top-r {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.sh-brand-m {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-width: 0;
    text-decoration: none;
}

.sh-brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.sh-brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 479.98px) {
    .sh-top {
        gap: .5rem;
        padding: 0 .75rem;
    }

    .sh-top-l {
        gap: .5rem;
    }

    .sh-top-r {
        gap: .375rem;
    }

    .sh-brand-name {
        font-size: 1rem;
    }
}

@media (max-width: 359.98px) {
    .sh-brand-name {
        display: none;
    }
}

.sh-tag {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

    .sh-tag p {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .875rem;
        color: var(--app-muted);
    }

@media (max-width: 1023.98px) {
    .sh-tag p {
        display: none;
    }
}

.sh-chip {
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.sh-profile {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 2.75rem;
    padding: 0 .375rem;
    border-radius: .95rem;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, border-color .15s;
}

    .sh-profile:hover {
        transform: translateY(-1px);
    }

.sh-avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .7rem;
    font-size: .875rem;
    font-weight: 800;
}

.sh-profile-name {
    display: none;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .sh-profile {
        padding-right: .9rem;
    }

    .sh-profile-name {
        display: inline;
    }
}

/* ---------- Sidebar / NavMenu ---------- */
.sh-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.sh-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    height: 4rem;
    padding: 0 .75rem;
    border-bottom: 1px solid var(--app-border);
}

@media (min-width: 768px) {
    .sh-nav-head {
        height: 4.5rem;
    }
}

.sh-nav-brand {
    display: flex;
    align-items: center;
    flex: 1;
    gap: .75rem;
    min-width: 0;
    padding: .375rem;
    border-radius: 1rem;
    text-decoration: none;
}

.sh-nav-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    transition: transform .2s;
}

.sh-nav-brand:hover .sh-nav-mark {
    transform: rotate(6deg) scale(1.05);
}

.sh-nav-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sh-nav-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    white-space: nowrap;
    color: var(--app-text);
}

.sh-nav-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .75rem;
    letter-spacing: .1em;
    color: var(--app-muted);
}

.sh-nav-x {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .85rem;
    font-size: 1.1rem;
    transition: background .15s, color .15s;
}

.sh-nav-menu {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem .875rem;
}

.sh-nav-label {
    margin: 1rem .75rem .375rem;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--app-muted);
    opacity: .8;
}

.sh-nav-sep {
    display: none;
    height: 1px;
    margin: .5rem;
    background: var(--app-border);
}

.sh-nav-menu > .sh-nav-sep:first-child + .sh-nav-label {
    margin-top: 0;
}

.sh-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .875rem;
    min-height: 2.75rem;
    padding: .5rem .875rem;
    border-radius: .95rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--app-muted);
    text-decoration: none;
    transition: background .15s, color .15s, transform .15s;
}

    .sh-link i {
        flex-shrink: 0;
        width: 1.5rem;
        text-align: center;
        font-size: 1.15rem;
    }

    .sh-link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sh-link:hover {
        color: var(--app-accent);
        background: var(--app-accent-soft);
    }

    .sh-link.active {
        color: #fff;
        font-weight: 700;
        background: var(--app-grad);
        box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--app-accent) 80%, transparent);
    }

.sh-nav-foot {
    padding: 1rem;
}

.sh-tip {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border-radius: 1.25rem;
}

.sh-tip-glyph {
    position: absolute;
    right: -.5rem;
    bottom: -1.25rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--app-accent);
    opacity: .1;
    pointer-events: none;
}

.sh-tip-t {
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
}

.sh-tip-d {
    position: relative;
    margin-top: .375rem;
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--app-muted);
}

.sh-tip-mini {
    display: none;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-inline: auto;
    border-radius: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--app-accent);
}

@media (min-width: 768px) {
    .sh-nav.is-collapsed .sh-nav-head {
        justify-content: center;
        padding-inline: .5rem;
    }

    .sh-nav.is-collapsed .sh-nav-brand {
        display: none;
    }

    .sh-nav.is-collapsed .sh-nav-menu {
        padding-inline: .75rem;
    }

    .sh-nav.is-collapsed .sh-nav-label {
        display: none;
    }

    .sh-nav.is-collapsed .sh-nav-sep {
        display: block;
    }

    .sh-nav.is-collapsed .sh-link {
        justify-content: center;
        padding-inline: 0;
    }

        .sh-nav.is-collapsed .sh-link span {
            display: none;
        }

    .sh-nav.is-collapsed .sh-tip {
        display: none;
    }

    .sh-nav.is-collapsed .sh-tip-mini {
        display: grid;
    }
}

.sh-nav-menu > .sh-nav-sep:first-child {
    display: none !important;
}

/* ---------- Modal keluar & koneksi ---------- */
.sh-ov {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(10, 9, 20, .6);
    backdrop-filter: blur(4px);
}

.sh-modal {
    width: 100%;
    padding: 1.5rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    border-radius: 1.75rem 1.75rem 0 0;
}

.sh-modal-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sh-modal-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    font-size: 1.5rem;
}

.sh-modal-t {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--app-text);
}

.sh-modal-d {
    margin-top: .25rem;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--app-muted);
}

.sh-modal-act {
    display: flex;
    flex-direction: column-reverse;
    gap: .625rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .sh-ov {
        align-items: center;
        padding: 1rem;
    }

    .sh-modal {
        max-width: 28rem;
        padding: 1.75rem;
        border-radius: 1.75rem;
    }

    .sh-modal-act {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.sh-conn {
    width: 100%;
    max-width: 26rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: 1.75rem;
}

.sh-conn-ico {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 1.25rem;
    font-size: 2rem;
}

.sh-conn h2 {
    margin-top: 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--app-text);
}

.sh-conn p {
    margin-top: .5rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--app-muted);
}

/* ---------- Banner update aplikasi ---------- */
.sh-update {
    position: fixed;
    right: 1rem;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 60;
    padding: 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -16px rgba(20, 18, 43, .28);
}

@media (min-width: 640px) {
    .sh-update {
        left: auto;
        right: 1.5rem;
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
        width: min(24rem, calc(100vw - 3rem));
    }
}

.sh-update-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.sh-update-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .85rem;
    font-size: 1.15rem;
}

.sh-update-body {
    flex: 1;
    min-width: 0;
}

.sh-update-t {
    font-size: .9375rem;
    font-weight: 800;
    color: var(--app-text);
}

.sh-update-s {
    margin-top: .2rem;
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--app-muted);
}

.sh-update-x {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .65rem;
    font-size: .875rem;
}

.sh-update-act {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .85rem;
}

.sh-update-act .sh-btn {
    padding: .45rem .9rem;
    font-size: .8125rem;
}

/* ---------- PageHeader ---------- */
.sh-ph {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .sh-ph {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.sh-ph-main {
    display: flex;
    align-items: center;
    gap: .875rem;
    min-width: 0;
}

.sh-ph-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.125rem;
    font-size: 1.4rem;
}

.sh-ph-eye {
    margin-bottom: .25rem;
    padding: .2rem .65rem;
    border-radius: .6rem;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sh-ph-t {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.sh-ph-d {
    margin: .25rem 0 0;
    font-size: .9375rem;
    line-height: 1.5;
}

.sh-ph-act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

@media (min-width: 640px) {
    .sh-ph-ico {
        width: 4rem;
        height: 4rem;
        border-radius: 1.25rem;
        font-size: 1.75rem;
    }

    .sh-ph-t {
        font-size: 2rem;
    }

    .sh-ph-d {
        font-size: 1.0625rem;
    }
}

/* ---------- Fullscreen layout ---------- */
.sh-full {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--app-text);
}

.sh-full-main {
    flex: 1;
    width: 100%;
}

/* =========================================================
   BERANDA
   ========================================================= */
.hm-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hm-stack {
        gap: 1.75rem;
    }
}

/* Hero */
.hm-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.25rem;
    border-radius: 1.75rem;
}

@media (min-width: 640px) {
    .hm-hero {
        padding: 2.25rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hm-hero {
        padding: 3rem 3.5rem;
        border-radius: 2rem;
    }
}

.hm-hero-in {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hm-hero-in {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
}

.hm-hero-main {
    min-width: 0;
    max-width: 40rem;
}

.hm-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
}

    .hm-pill .jp {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: .875rem;
    }

.hm-hero-jp {
    margin: 1rem 0 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 7vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}

.hm-hero-id {
    margin: .4rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.hm-hero-sub {
    margin: .75rem 0 0;
    max-width: 34rem;
    font-size: .9375rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .hm-hero-id {
        font-size: 1.75rem;
    }

    .hm-hero-sub {
        font-size: 1.0625rem;
    }
}

.hm-cta {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .hm-cta {
        flex-direction: row;
    }
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.25rem;
    padding: .75rem 1.5rem;
    border-radius: 1.125rem;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s, filter .2s, background .2s;
}

    .hm-btn:hover {
        transform: translateY(-2px);
    }

    .hm-btn:active {
        transform: scale(.98);
    }

.hm-btn-sm {
    min-height: 2.75rem;
    padding: .55rem 1.1rem;
    font-size: .875rem;
    border-radius: .95rem;
}

.hm-visit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
}

/* Kartu kaca di hero (target harian) */
.hm-side {
    flex-shrink: 0;
    width: 100%;
    padding: 1.125rem;
    border-radius: 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    .hm-side {
        width: 21rem;
    }
}

.hm-side-skel {
    height: 7rem;
    border-radius: 1rem;
    opacity: .35;
}

.hm-side-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hm-ring {
    position: relative;
    flex-shrink: 0;
    width: 5.5rem;
    height: 5.5rem;
}

    .hm-ring svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .hm-ring .trk {
        stroke: rgba(255, 255, 255, .18);
    }

    .hm-ring .bar {
        stroke: #FBBF24;
        transition: stroke-dashoffset .7s cubic-bezier(.22, 1, .36, 1);
    }

    .hm-ring.is-done .bar {
        stroke: #34D399;
    }

.hm-ring-in {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    font-weight: 800;
}

.hm-side-t {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #DDD6FE;
}

.hm-side-num {
    margin-top: .125rem;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.1;
}

    .hm-side-num small {
        font-size: .875rem;
        font-weight: 600;
        opacity: .8;
    }

.hm-side-note {
    margin-top: .25rem;
    font-size: .8125rem;
    line-height: 1.4;
    color: #EDE9FE;
}

.hm-streak {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: .875rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: .875rem;
    font-weight: 700;
}

    .hm-streak i {
        font-size: 1.1rem;
        color: #FBBF24;
    }

/* Kartu umum */
.hm-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .hm-progress {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: stretch;
    }
}

.hm-card {
    min-width: 0;
    padding: 1.125rem;
    border-radius: 1.5rem;
    color: var(--app-text);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
    .hm-card {
        padding: 1.5rem;
    }
}

.hm-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.125rem;
}

.hm-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--app-text);
}

.hm-card-sub {
    margin: .125rem 0 0;
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--app-muted);
}

.hm-fire {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .95rem;
    font-size: 1.35rem;
    color: #F59E0B;
    background: rgba(245, 158, 11, .15);
}

    .hm-fire.is-off {
        color: var(--app-muted);
        background: var(--app-surface-2);
    }

.hm-skel-card {
    height: 10rem;
    border-radius: 1.5rem;
}

.hm-cta-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hm-cta-l {
    display: flex;
    align-items: center;
    gap: .875rem;
}

@media (min-width: 640px) {
    .hm-cta-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Aktivitas 7 hari */
.hm-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .hm-week {
        gap: .625rem;
    }
}

.hm-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
}

.hm-dot {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 3rem;
    aspect-ratio: 1;
    border-radius: .875rem;
    font-size: .8125rem;
    font-weight: 800;
    color: var(--app-muted);
    background: var(--app-surface-2);
    border: 1px solid var(--app-border);
}

.hm-day.is-done .hm-dot {
    color: #fff;
    border-color: transparent;
    background: #10B981;
}

.hm-day.is-missed .hm-dot {
    color: #F43F5E;
    background: color-mix(in srgb, #F43F5E 12%, transparent);
    border-color: color-mix(in srgb, #F43F5E 35%, transparent);
}

.hm-day.is-warm .hm-dot {
    color: #F59E0B;
    background: color-mix(in srgb, #F59E0B 14%, transparent);
    border-color: color-mix(in srgb, #F59E0B 35%, transparent);
}

.hm-day.is-today .hm-dot {
    box-shadow: 0 0 0 2px var(--app-surface), 0 0 0 4px #F59E0B;
}

.hm-day.is-today.is-done .hm-dot {
    box-shadow: 0 0 0 2px var(--app-surface), 0 0 0 4px #10B981;
}

.hm-day-l {
    font-size: .6875rem;
    font-weight: 700;
    color: var(--app-muted);
}

.hm-day.is-today .hm-day-l {
    font-weight: 800;
    color: var(--app-text);
}

/* Pintasan */
.hm-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

@media (min-width: 640px) {
    .hm-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hm-q {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-width: 0;
    padding: .7rem;
    border-radius: 1rem;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--app-text);
    background: var(--app-surface-2);
    border: 1px solid var(--app-border);
    transition: transform .2s, border-color .2s, background .2s;
}

    .hm-q:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--tone) 45%, var(--app-border));
        background: color-mix(in srgb, var(--tone) 8%, var(--app-surface));
    }

.hm-q-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    font-size: 1.05rem;
}

.hm-q-lbl {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Materi */
.hm-sec {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.hm-sec-head {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

@media (min-width: 1024px) {
    .hm-sec-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.hm-sec-h {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--app-text);
}

.hm-sec-s {
    margin: .25rem 0 0;
    font-size: .9375rem;
    color: var(--app-muted);
}

@media (min-width: 640px) {
    .hm-sec-h {
        font-size: 1.75rem;
    }

    .hm-sec-s {
        font-size: 1.0625rem;
    }
}

.hm-search {
    position: relative;
    width: 100%;
}

@media (min-width: 1024px) {
    .hm-search {
        width: 24rem;
    }
}

.hm-search input {
    width: 100%;
    padding: .85rem 2.75rem;
    border-radius: 1rem;
    font-size: .9375rem;
    outline: none;
}

.hm-search .ico {
    position: absolute;
    inset: 0 auto 0 1rem;
    display: flex;
    align-items: center;
    color: var(--app-accent);
    pointer-events: none;
}

.hm-search .clr {
    position: absolute;
    top: 50%;
    right: .625rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transform: translateY(-50%);
    color: var(--app-muted);
}

    .hm-search .clr:hover {
        background: var(--app-accent-soft);
    }

.hm-ds-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
}

@media (min-width: 640px) {
    .hm-ds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .hm-ds-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .hm-ds-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hm-ds {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 1.125rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--app-text);
}

    .hm-ds:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--tone) 50%, transparent);
        outline-offset: 2px;
    }

    .hm-ds:active {
        transform: scale(.99);
    }

@media (min-width: 640px) {
    .hm-ds {
        padding: 1.375rem;
    }
}

.hm-ds-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.hm-ds-ico {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    transition: transform .3s;
}

.hm-ds:hover .hm-ds-ico {
    transform: rotate(-6deg) scale(1.08);
}

.hm-ds-count {
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.hm-ds-body {
    position: relative;
    min-width: 0;
}

.hm-ds-jp {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.hm-ds-name {
    margin: .25rem 0 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--app-text);
}

.hm-ds-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: .5rem 0 0;
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--app-muted);
}

.hm-ds-go {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .875rem;
    font-size: .875rem;
    font-weight: 800;
    border-top: 1px solid var(--app-border);
}

    .hm-ds-go i {
        font-size: 1.4rem;
        transition: transform .2s;
    }

.hm-ds:hover .hm-ds-go i {
    transform: translateX(5px);
}

.hm-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 1.5rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-card);
}

    .hm-state > i {
        font-size: 2.5rem;
        color: var(--app-accent);
    }

    .hm-state h3 {
        margin: .75rem 0 0;
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--app-text);
    }

    .hm-state p {
        margin: .25rem 0 0;
        font-size: 1rem;
        color: var(--app-muted);
    }

    .hm-state .sh-btn {
        margin-top: 1.25rem;
    }

.hm-err {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: 1.125rem 1.25rem;
    border-radius: 1.5rem;
    font-size: .9375rem;
}

@media (prefers-reduced-motion: reduce) {
    .sh-aside, .sh-link, .hm-btn, .hm-q, .hm-ring .bar {
        transition: none;
    }
}


/* ---------- Reusable Shimmer Skeleton ---------- */
@keyframes nc-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.nc-skeleton-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.nc-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .nc-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nc-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nc-skeleton-card,
.nc-skeleton-panel {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
}

.nc-skeleton {
    border-radius: .75rem;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.14) 25%,
        rgba(148, 163, 184, 0.28) 50%,
        rgba(148, 163, 184, 0.14) 75%
    );
    background-size: 200% 100%;
    animation: nc-shimmer 1.4s ease-in-out infinite;
}

.nc-skeleton-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .9rem;
}

.nc-skeleton-title {
    width: 65%;
    height: 1.25rem;
}

.nc-skeleton-heading {
    width: 40%;
    height: 1.4rem;
    margin-bottom: .25rem;
}

.nc-skeleton-line {
    width: 100%;
    height: .9rem;
}

.nc-skeleton-line.is-short {
    width: 55%;
}

.nc-skeleton-label {
    margin: 0;
    text-align: center;
    font-size: .875rem;
    font-weight: 600;
    color: var(--app-muted);
}
