/* HOLDERVEST - area member (kerangka + beranda).
   Dimuat setelah landing-holdervest.css (token warna, .hv-btn, .hv-icon, .hv-alert). */

body.hv-app {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
    background: #8f2f04 url('../holdervest/bg-global.jpg') center / cover fixed no-repeat;
}

.hv-app__wrap { width: 100%; max-width: 990px; margin: 0 auto; padding: 0 16px; }
.hv-app__wrap > * { animation: hv-rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.hv-app__wrap > :nth-child(2) { animation-delay: .05s; }
.hv-app__wrap > :nth-child(3) { animation-delay: .1s; }
.hv-app__wrap > :nth-child(4) { animation-delay: .15s; }
.hv-app__wrap > :nth-child(5) { animation-delay: .2s; }
.hv-app__wrap > :nth-child(6) { animation-delay: .25s; }
.hv-app__wrap > :nth-child(n+7) { animation-delay: .3s; }

/* Kartu kaca dasar */
.hv-card {
    position: relative;
    border: 1px solid rgba(255, 196, 140, .5);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(196, 64, 4, .58), rgba(132, 38, 0, .52) 60%, rgba(112, 30, 0, .56));
    box-shadow: inset 0 1px 0 rgba(255, 226, 196, .28), inset 0 0 40px rgba(255, 130, 40, .08), 0 18px 40px rgba(78, 20, 0, .34);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

a.hv-card { color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.hv-card:hover { transform: translateY(-3px); border-color: rgba(255, 226, 196, .85); box-shadow: inset 0 1px 0 rgba(255, 226, 196, .3), 0 0 26px rgba(255, 130, 40, .4), 0 22px 44px rgba(78, 20, 0, .4); }
a.hv-card:focus-visible, .hv-nav-bottom a:focus-visible, .hv-top__bell:focus-visible, .hv-user summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.hv-go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1.5px solid rgba(255, 196, 140, .85); border-radius: 50%; color: #ffc58f; font-size: 20px; transition: transform .2s ease, background-color .2s ease; }
a.hv-card:hover .hv-go { transform: translateX(3px); background: rgba(255, 170, 90, .18); }

/* ── Header ────────────────────────────────────────────────────────── */
.hv-top { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 10px 22px; }
.hv-top__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hv-top__brand img { width: 82px; filter: drop-shadow(0 4px 8px rgba(80, 22, 0, .5)); }
.hv-top__brand span { font-size: 27px; font-weight: 600; letter-spacing: .12em; color: #f3f5f7; text-shadow: 0 1px 3px rgba(80, 22, 0, .55); }
.hv-top__actions { display: flex; align-items: center; gap: 30px; }

.hv-top__bell { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255, 196, 140, .6); border-radius: 16px; background: linear-gradient(160deg, rgba(214, 78, 6, .6), rgba(132, 38, 0, .5)); color: #fff; font-size: 28px; transition: transform .2s ease; }
.hv-top__bell:hover { transform: translateY(-2px); }
.hv-top__bell:hover .hv-icon { animation: hv-bell .7s ease; }
.hv-top__bell i { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border: 2px solid #b33c05; border-radius: 50%; background: #ff3b30; animation: hv-ping 1.8s ease-out infinite; }

.hv-user { position: relative; }
.hv-user summary { display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; border-radius: 14px; }
.hv-user summary::-webkit-details-marker { display: none; }
.hv-user__avatar { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid rgba(255, 226, 200, .85); border-radius: 50%; background: #4a1602; color: #fff; font-size: 32px; overflow: hidden; }
.hv-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hv-user__name { display: grid; line-height: 1.25; }
.hv-user__name small { font-size: 13.5px; color: var(--hv-soft); }
.hv-user__name strong { max-width: 190px; overflow: hidden; font-size: 17.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hv-user summary > .hv-icon { font-size: 22px; transition: transform .2s ease; }
.hv-user[open] summary > .hv-icon { transform: rotate(180deg); }
.hv-user__menu { position: absolute; top: calc(100% + 12px); right: 0; display: grid; min-width: 210px; padding: 8px; border: 1px solid rgba(255, 196, 140, .55); border-radius: 18px; background: rgba(110, 30, 0, .96); box-shadow: 0 22px 48px rgba(60, 14, 0, .55); animation: hv-rise .22s ease both; }
.hv-user__menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.hv-user__menu a:hover { background: rgba(255, 255, 255, .12); }
.hv-user__menu .hv-icon { font-size: 20px; }

.hv-app .hv-alert { margin: 0 0 18px; }

/* ── Kartu sambutan ────────────────────────────────────────────────── */
.hv-welcome-card { display: flex; flex-direction: column; justify-content: center; min-height: 306px; padding: 40px 36px; overflow: hidden; }
.hv-welcome-card__text { position: relative; z-index: 1; max-width: 46%; }
.hv-welcome-card h1 { font-weight: 400; line-height: 1.2; }
.hv-welcome-card h1 small { display: block; font-size: 30px; }
.hv-welcome-card h1 strong { display: block; margin-top: 6px; font-size: 48px; font-weight: 600; overflow-wrap: anywhere; }
.hv-welcome-card h1 span { display: inline-block; transform-origin: 70% 70%; animation: hv-wave 2.6s ease-in-out 1s infinite; }
.hv-welcome-card p { margin-top: 16px; font-size: 21px; line-height: 1.5; color: #fff; }

.hv-welcome-card__art {
    position: absolute;
    top: 50%;
    right: -2%;
    height: 124%;
    aspect-ratio: 600 / 470;
    transform: translateY(-50%);
    background: url('../holdervest/hero-podium.jpg') center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 36%), linear-gradient(180deg, transparent 4%, #000 20%, #000 82%, transparent 98%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 2%, #000 36%), linear-gradient(180deg, transparent 4%, #000 20%, #000 82%, transparent 98%);
    mask-composite: intersect;
}

.hv-welcome-card__art img { position: absolute; left: 27%; top: 23%; width: 50%; filter: drop-shadow(0 12px 18px rgba(80, 22, 0, .55)); animation: hv-float 6s ease-in-out infinite; }

/* ── Saldo + aksi utama ────────────────────────────────────────────── */
.hv-balance-row { display: grid; grid-template-columns: minmax(0, 1fr) 152px 152px; gap: 22px; margin-top: 24px; }
.hv-balance { display: flex; align-items: center; gap: 26px; min-height: 160px; padding: 24px 30px; }
.hv-balance__icon { flex: none; width: 96px; filter: drop-shadow(0 10px 14px rgba(70, 18, 0, .5)); }
.hv-balance__body { flex: 1; min-width: 0; }
.hv-balance__label { display: flex; align-items: center; gap: 12px; font-size: 21px; color: var(--hv-soft); }
.hv-balance__eye { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: #ffc58f; font-size: 22px; cursor: pointer; }
.hv-balance__eye:hover { background: rgba(255, 255, 255, .12); }
.hv-balance__amount { margin-top: 2px; font-size: 44px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hv-balance__change { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 17px; color: var(--hv-soft); }
.hv-balance__change b { font-weight: 500; }
.hv-balance__change.is-up b { color: #4ade80; }
.hv-balance__change.is-down b { color: #ffb4a8; }
.hv-balance__change b::before { content: ''; display: inline-block; margin-right: 8px; border: 8px solid transparent; border-top: 0; border-bottom: 13px solid currentColor; vertical-align: -1px; }
.hv-balance__change.is-down b::before { transform: rotate(180deg); }

.hv-action { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 160px; padding: 16px 10px; font-size: 20px; font-weight: 500; text-align: center; }
.hv-action img { width: 76px; filter: drop-shadow(0 8px 12px rgba(70, 18, 0, .5)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
a.hv-card:hover img { transform: translateY(-4px) scale(1.06); }

/* ── Menu cepat ────────────────────────────────────────────────────── */
.hv-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 24px; padding: 28px 18px 30px; }
.hv-quick a { display: grid; justify-items: center; gap: 12px; padding: 4px 2px; border-radius: 18px; font-size: 20px; font-weight: 500; text-align: center; text-decoration: none; }
.hv-quick img { width: 92px; filter: drop-shadow(0 10px 14px rgba(70, 18, 0, .5)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.hv-quick a:hover img { transform: translateY(-6px) scale(1.08); }
.hv-quick a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── Banner promo ──────────────────────────────────────────────────── */
.hv-promo { margin-top: 24px; overflow: hidden; }
.hv-promo__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hv-promo__track::-webkit-scrollbar { display: none; }
.hv-promo__slide { position: relative; flex: 0 0 100%; min-height: 308px; padding: 26px 40px 60px; overflow: hidden; scroll-snap-align: start; }
.hv-promo__slide > div { position: relative; z-index: 1; max-width: 52%; }
.hv-promo__tag { display: inline-flex; align-items: center; height: 27px; padding: 0 13px; border: 1px solid rgba(255, 196, 140, .7); border-radius: 999px; font-size: 14px; letter-spacing: .04em; color: #ffc58f; }
.hv-promo h2 { margin-top: 18px; font-size: 31px; font-weight: 500; line-height: 1.22; }
.hv-promo p { margin-top: 10px; font-size: 18.5px; line-height: 1.42; color: #fff; }
.hv-promo .hv-btn { width: auto; min-width: 300px; height: 60px; margin-top: 18px; font-size: 19px; }
.hv-promo .hv-btn > span:first-child { flex: 1; text-align: center; }
.hv-promo__art { position: absolute; right: 2%; bottom: -22%; width: 46%; transform: rotate(-22deg); filter: drop-shadow(0 24px 28px rgba(70, 18, 0, .5)); animation: hv-promo-float 7s ease-in-out infinite; }
.hv-promo__slide--image { background-position: center; background-size: cover; }
.hv-promo__slide--image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(110, 30, 0, .82), rgba(110, 30, 0, .2) 70%); }
.hv-promo__dots { position: absolute; left: 50%; bottom: 22px; z-index: 2; display: flex; gap: 14px; transform: translateX(-50%); }
.hv-promo__dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 226, 200, .45); cursor: pointer; transition: background-color .25s ease, transform .25s ease; }
.hv-promo__dots button.is-active { background: #ff9a2e; transform: scale(1.15); box-shadow: 0 0 10px rgba(255, 160, 60, .9); }

/* ── Kartu tautan bawah ────────────────────────────────────────────── */
.hv-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.hv-link { display: flex; align-items: center; gap: 24px; min-height: 132px; padding: 20px 24px; }
.hv-link img { flex: none; width: 82px; filter: drop-shadow(0 8px 12px rgba(70, 18, 0, .5)); }
.hv-link > div { flex: 1; min-width: 0; }
.hv-link h3 { font-size: 20px; font-weight: 600; }
.hv-link p { margin-top: 6px; font-size: 16px; line-height: 1.42; color: var(--hv-soft); }

/* ── Navigasi bawah ────────────────────────────────────────────────── */
.hv-nav-bottom {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(calc(100% - 24px), 960px);
    padding: 16px 12px 14px;
    border: 1px solid rgba(255, 196, 140, .6);
    border-radius: 44px;
    background: linear-gradient(180deg, rgba(138, 40, 0, .9), rgba(92, 24, 0, .94));
    box-shadow: inset 0 1px 0 rgba(255, 226, 196, .3), 0 18px 44px rgba(50, 12, 0, .55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
}

.hv-nav-bottom a { display: grid; justify-items: center; gap: 8px; font-size: 17px; text-decoration: none; color: #fff; transition: color .2s ease; }
.hv-nav-bottom .hv-icon { font-size: 44px; stroke-width: 1.5; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.hv-nav-bottom a:hover .hv-icon { transform: translateY(-3px); }
.hv-nav-bottom a[aria-current="page"] { color: #ffb347; font-weight: 600; }
.hv-nav-bottom a[aria-current="page"] .hv-icon { filter: drop-shadow(0 0 10px rgba(255, 170, 60, .95)); }

@keyframes hv-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hv-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } }
@keyframes hv-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } }
@keyframes hv-bell { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-13deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
@keyframes hv-promo-float { 0%, 100% { transform: rotate(-22deg) translateY(0); } 50% { transform: rotate(-20deg) translateY(-10px); } }

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hv-top { padding: 18px 4px 16px; }
    .hv-top__brand img { width: 58px; }
    .hv-top__brand span { font-size: 19px; }
    .hv-top__actions { gap: 16px; }
    .hv-top__bell { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; }
    .hv-user__avatar { width: 48px; height: 48px; font-size: 26px; }
    .hv-user__name strong { max-width: 130px; font-size: 15.5px; }
    .hv-user__name small { font-size: 12.5px; }

    .hv-welcome-card { min-height: 230px; padding: 28px 24px; }
    .hv-welcome-card h1 small { font-size: 22px; }
    .hv-welcome-card h1 strong { font-size: 34px; }
    .hv-welcome-card p { font-size: 16px; }

    .hv-balance-row { grid-template-columns: minmax(0, 1fr) 118px 118px; gap: 14px; }
    .hv-balance { gap: 16px; min-height: 132px; padding: 18px 20px; }
    .hv-balance__icon { width: 70px; }
    .hv-balance__label { font-size: 16.5px; }
    .hv-balance__amount { font-size: 32px; }
    .hv-balance__change { font-size: 14px; }
    .hv-action { min-height: 132px; font-size: 16px; }
    .hv-action img { width: 60px; }

    .hv-quick { padding: 22px 10px 24px; }
    .hv-quick a { font-size: 15.5px; gap: 8px; }
    .hv-quick img { width: 68px; }

    .hv-promo__slide { min-height: 250px; padding: 22px 26px 54px; }
    .hv-promo h2 { font-size: 24px; }
    .hv-promo p { font-size: 15.5px; }
    .hv-promo .hv-btn { min-width: 230px; height: 52px; font-size: 16.5px; }

    .hv-links { gap: 14px; }
    .hv-link { gap: 16px; min-height: 108px; padding: 16px 18px; }
    .hv-link img { width: 62px; }
    .hv-link h3 { font-size: 17px; }
    .hv-link p { font-size: 14px; }

    .hv-nav-bottom { padding: 12px 8px 10px; border-radius: 34px; }
    .hv-nav-bottom a { gap: 5px; font-size: 13.5px; }
    .hv-nav-bottom .hv-icon { font-size: 30px; }
    body.hv-app { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ── Ponsel ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hv-app__wrap { padding: 0 14px; }
    .hv-top__brand img { width: 44px; }
    .hv-top__brand span { font-size: 15px; letter-spacing: .1em; }
    .hv-top__brand { gap: 8px; }
    .hv-top__actions { gap: 10px; }
    .hv-top__bell { width: 42px; height: 42px; font-size: 21px; }
    .hv-user summary { gap: 8px; }
    .hv-user__avatar { width: 42px; height: 42px; font-size: 22px; }
    .hv-user__name { display: none; }

    .hv-card { border-radius: 22px; }
    .hv-welcome-card { min-height: 190px; padding: 22px 20px; }
    .hv-welcome-card__text { max-width: 58%; }
    .hv-welcome-card h1 small { font-size: 17px; }
    .hv-welcome-card h1 strong { font-size: 25px; }
    .hv-welcome-card p { margin-top: 10px; font-size: 13.5px; }
    .hv-welcome-card__art { right: -18%; height: 112%; }

    .hv-balance-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
    .hv-balance { grid-column: 1 / -1; min-height: 116px; }
    .hv-balance__icon { width: 62px; }
    .hv-balance__amount { font-size: 28px; }
    .hv-go { width: 34px; height: 34px; font-size: 17px; }
    .hv-action { grid-auto-flow: column; justify-content: center; gap: 12px; min-height: 76px; padding: 10px; }
    .hv-action img { width: 46px; }

    .hv-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 6px; margin-top: 14px; padding: 20px 8px; }
    .hv-quick img { width: 62px; }
    .hv-quick a { font-size: 14.5px; }

    .hv-promo { margin-top: 14px; }
    .hv-promo__slide { min-height: 236px; padding: 20px 20px 50px; }
    .hv-promo__slide > div { max-width: 64%; }
    .hv-promo h2 { margin-top: 12px; font-size: 20px; }
    .hv-promo p { font-size: 13.5px; }
    .hv-promo .hv-btn { min-width: 0; height: 46px; padding: 0 16px 0 22px; font-size: 15px; gap: 12px; }
    .hv-promo__art { right: -12%; bottom: -14%; width: 56%; }
    .hv-promo__tag { height: 23px; font-size: 12px; }

    .hv-links { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
    .hv-link { min-height: 92px; }
    .hv-link img { width: 54px; }

    .hv-nav-bottom { padding: 10px 4px 8px; border-radius: 28px; }
    .hv-nav-bottom a { font-size: 11.5px; gap: 3px; }
    .hv-nav-bottom .hv-icon { font-size: 25px; stroke-width: 1.7; }
    body.hv-app { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
