/* Dilarang keras menghapus credits */
/* WP6A 6.4 customer dashboard member blocks (USR-DSH-02/03/07): tier card, quick actions, Layanan saya, recent transactions,
   closable announcement. Loaded only on /dashboard. Theme tokens only (light / dark / the six global themes). */
.vf-member { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 1024px) { .vf-member { grid-template-columns: minmax(0, 1fr) 392px; gap: 24px; align-items: stretch; } .vf-member > .vf-quick:only-child { grid-column: 1 / -1; } }

.vf-tier { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--vf-surface-2); border: var(--vf-card-border); border-radius: 16px; box-shadow: var(--vf-e1); min-width: 0; }
.vf-tier__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vf-tier__badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font: var(--vf-t-caption-strong); background: var(--vf-surface-3); color: var(--vf-text-1); }
.vf-tier__badge--bronze { background: color-mix(in srgb, var(--vf-tier-bronze) 18%, var(--vf-surface-2)); color: color-mix(in srgb, var(--vf-tier-bronze) 45%, var(--vf-text-1)); }
.vf-tier__badge--silver { background: color-mix(in srgb, var(--vf-tier-silver) 22%, var(--vf-surface-2)); color: var(--vf-text-1); }
.vf-tier__badge--gold { background: color-mix(in srgb, var(--vf-tier-gold) 22%, var(--vf-surface-2)); color: color-mix(in srgb, var(--vf-tier-gold) 40%, var(--vf-text-1)); }
.vf-tier__cb { font: var(--vf-t-small); color: var(--vf-text-2); }
.vf-tier__bar { height: 8px; border-radius: 999px; background: var(--vf-surface-3); overflow: hidden; }
.vf-tier__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--vf-accent); min-width: 4px; }
.vf-tier__next { margin: 0; font: var(--vf-t-small); color: var(--vf-text-2); }
.vf-tier__next [data-tier-percent] { font-weight: 600; color: var(--vf-text-1); font-variant-numeric: tabular-nums; }

.vf-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: center; }
.vf-quick__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 76px; padding: 8px 4px; border-radius: 16px; background: var(--vf-surface-2); border: var(--vf-card-border); box-shadow: var(--vf-e1); color: var(--vf-text-1); font: var(--vf-t-caption-strong); text-align: center; text-decoration: none; }
.vf-quick__item:hover { color: var(--vf-accent-text); }
.vf-quick__item:focus-visible { outline: 2px solid var(--vf-accent-text); outline-offset: 2px; }
.vf-quick__ic { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--vf-accent-subtle); color: var(--vf-accent-text); }

.vf-mysvc__list, .vf-recent__list { list-style: none; margin: 0; padding: 0; background: var(--vf-surface-2); border: 1px solid var(--vf-border); border-radius: var(--vf-r-card); }
.vf-mysvc__row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 16px; }
.vf-mysvc__row + .vf-mysvc__row, .vf-recent__row + .vf-recent__row { border-top: 1px solid var(--vf-border); }
.vf-mysvc__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vf-mysvc__name { font: var(--vf-t-ui-strong); color: var(--vf-text-1); overflow-wrap: anywhere; }
.vf-mysvc__srv { font-weight: 400; color: var(--vf-text-2); }
.vf-mysvc__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vf-mysvc__exp { font: var(--vf-t-caption); color: var(--vf-text-2); font-variant-numeric: tabular-nums; }
.vf-mysvc__row[data-soon] .vf-mysvc__exp { color: var(--vf-warning); font-weight: 600; }
.vf-mysvc__renew { flex: none; }
@media (max-width: 359.98px) { .vf-mysvc__row { flex-wrap: wrap; } .vf-mysvc__renew { width: 100%; } }

.vf-dash__aside { gap: var(--vf-section-gap); }
.vf-dash__srv, .vf-recent { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vf-recent .vf-sec-head { margin-bottom: 0; }
.vf-recent__row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; }
.vf-recent__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vf-recent__title { font: var(--vf-t-ui-strong); color: var(--vf-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-recent__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: var(--vf-t-caption); color: var(--vf-text-2); font-variant-numeric: tabular-nums; }
.vf-recent__amt { flex: none; font: 600 14px/20px var(--vf-font-num); font-variant-numeric: tabular-nums; color: var(--vf-text-1); }
.vf-recent__amt--in { color: var(--vf-success); }
.vf-recent__empty { margin: 0; padding: 16px; border: 1px dashed var(--vf-border); border-radius: var(--vf-r-card); font: var(--vf-t-small); color: var(--vf-text-2); }

.notice-bar { align-items: center; }
.notice-bar[hidden] { display: none; }
.notice-close { flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0;   /* WP7 7.1 CROSS-01: 44 px target */ display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--vf-text-2); cursor: pointer; }
.notice-close:hover { background: color-mix(in srgb, var(--vf-text-1) 8%, transparent); color: var(--vf-text-1); }
.notice-close:focus-visible { outline: 2px solid var(--vf-accent-text); outline-offset: 2px; }

/* WP6A 6.4 (USR-DSH-05) balanced last row (public/js/grid-balance.js): 2n half-tracks, every card spans 2 = the same card width as the
   n-column grid; the script starts the short last row in the middle. */
.vf-dash .rs-catgroup.is-balanced, .vf-dash .rs-product-grid.is-balanced { grid-template-columns: repeat(var(--bal-cols), minmax(0, 1fr)); }

/* WP6A 6.5 (USR-CAT-01) sort control next to "Semua produk" */
.vf-sort { display: inline-flex; align-items: center; gap: 8px; font: var(--vf-t-small); color: var(--vf-text-2); }
.vf-sort__sel { min-height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--vf-border); border-radius: var(--vf-r-ctl); background: var(--vf-surface-2); color: var(--vf-text-1); font: var(--vf-t-ui); }
@media (pointer: coarse) { .vf-sort__sel { min-height: 44px; } }   /* WP7 7.1 CROSS-01 */
.vf-sort__sel:focus-visible { outline: 2px solid var(--vf-accent-text); outline-offset: 2px; }
@media (max-width: 359.98px) { .vf-sort__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* WP6A 6.4 found in the 390 px screenshots: (1) with "Coba lagi" shown, the server state chip ("Tidak dapat dihubungi") wrapped inside
   its fixed 24 px pill and overlapped the name and "Dicek" line: the pill now grows with its text and the retry is icon-only on phones
   (its aria-label stays); (2) the stat values were cut with an ellipsis ("Rp 50.0…"): an amount is never cut, it wraps after "Rp". */
.vf-dash .srv-row__state { height: auto; min-height: 24px; padding-top: 4px; padding-bottom: 4px; line-height: 16px; white-space: normal; }
.vf-dash .srv-row__retry { min-width: 44px; justify-content: center; }
@media (max-width: 479.98px) { .vf-dash .srv-row__retry > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.vf-dash .vf-stats dd { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }

/* ---- Round 4: e-commerce dashboard for signed-in customers (catalogue first) -----------------------------------------
   Phone: slim account bar (avatar · Halo + saldo · Isi saldo) above the search; the account panel follows the catalogue.
   ≥ 1024 px: the bar is gone and the account panel heads the side column. Tokens only (colour, type, radius, spacing). */
.vf-acctbar { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--vf-surface-2); border: var(--vf-card-border, 1px solid var(--vf-border)); border-radius: var(--vf-r-card); box-shadow: var(--vf-e1); }
.vf-acctbar__avatar { flex: none; width: 40px; height: 40px; border-radius: var(--vf-r-full); display: inline-flex; align-items: center; justify-content: center; background: var(--vf-accent-subtle); color: var(--vf-accent-text); font: var(--vf-t-ui-strong); }
.vf-acctbar__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vf-acctbar__hello { font: var(--vf-t-caption); color: var(--vf-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-acctbar__saldo { font: var(--vf-t-num); color: var(--vf-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-acctbar__topup { flex: none; min-height: 44px; }

.vf-acct { display: flex; flex-direction: column; gap: 16px; padding: var(--vf-card-pad, 16px); background: var(--vf-surface-2); border: var(--vf-card-border, 1px solid var(--vf-border)); border-radius: var(--vf-r-card); box-shadow: var(--vf-e1); }
.vf-acct__head { display: flex; align-items: center; gap: 12px; }
.vf-acct__who { display: flex; flex-direction: column; min-width: 0; }
.vf-acct__hello { font: var(--vf-t-ui-strong); color: var(--vf-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-acct__lbl { font: var(--vf-t-caption); color: var(--vf-text-2); }
.vf-acct__saldo { margin: -8px 0 0; font: var(--vf-t-saldo); color: var(--vf-text-1); font-variant-numeric: tabular-nums; }
.vf-acct__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vf-acct__actions .vf-btn { width: 100%; justify-content: center; }
.vf-acct__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vf-acct__stats > div { min-width: 0; padding: 12px 8px; border-radius: var(--vf-r-ctl); background: var(--vf-surface-3); text-align: center; }
.vf-acct__stats dt { font: var(--vf-t-caption); color: var(--vf-text-2); }
.vf-acct__stats dd { margin: 4px 0 0; font: var(--vf-t-num); color: var(--vf-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-acct__tier { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--vf-border); }
.vf-acct__tierhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vf-acct__cb { font: var(--vf-t-caption); color: var(--vf-text-2); }
.vf-acct__bar { height: 8px; border-radius: var(--vf-r-full); background: var(--vf-surface-3); overflow: hidden; }
.vf-acct__bar > span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--vf-accent); }
.vf-acct__next { margin: 0; font: var(--vf-t-caption); color: var(--vf-text-2); }

/* Phone: the bar above the catalogue already shows greeting, saldo and Isi saldo, so the panel (after the catalogue)
   starts with the figures. */
@media (max-width: 1023.98px) {
  .vf-acct__head, .vf-acct__saldo, .vf-acct__actions { display: none; }
}
@media (min-width: 1024px) {
  .vf-acctbar { display: none; }
  .vf-dash .vf-dash__aside { position: static; }   /* the panel + history + servers can be taller than the window */
}
/* Side column: section titles and their "Lihat semua" link share one line; server rows keep their status on one line
   (the retry button is icon-only here, its aria-label "Cek ulang Server N" still names it). */
.vf-dash__aside .vf-sec-head { align-items: center; }
@media (min-width: 1024px) {
  .vf-dash .vf-dash__aside .srv-row__retry > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vf-dash .vf-dash__aside .srv-row__state { white-space: nowrap; }
}
/* Round 4e: guest bar on the public catalogue (same slot as the saldo bar; shown on every width, there is no account panel) */
.vf-acctbar__guest { font: var(--vf-t-ui-strong); color: var(--vf-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .vf-acctbar.vf-acctbar--guest { display: flex; } }
