/* ==========================================================================
   Komponen toko & akun pelanggan Playnoz.
   Hanya memakai var(--token) dari theme.css, jadi otomatis ikut mode gelap/terang.
   ========================================================================== */

/* ---------- Layout dasar toko ---------- */
.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-main { flex: 1; padding: 28px 0 24px; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap-row { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.stack.sm { gap: 8px; }
.stack.lg { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.w-full { width: 100%; }
.mono { font-family: var(--mono); }
.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; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.link { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; padding: 10px 14px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--text); font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 16px; }

/* ---------- Header toko ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.head-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.site-brand .brand-logo { width: 36px; height: 36px; }
.site-brand .brand-name { font-size: 17px; }
.head-nav { display: flex; align-items: center; gap: 2px; }
.head-link { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 13.5px; text-decoration: none; transition: background .15s, color .15s; }
.head-link:hover { color: var(--text); background: var(--surface-2); }
.head-link.is-active { color: var(--text); background: var(--surface-3); }
.head-search { flex: 1; max-width: 340px; margin-left: auto; }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-search + .head-actions { margin-left: 0; }
.cart-btn { position: relative; }
.count-dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.count-dot[hidden] { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 800; font-size: 13.5px; display: grid; place-items: center; flex: none; box-shadow: var(--glow); }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.acct-btn .avatar { width: 32px; height: 32px; font-size: 12.5px; box-shadow: none; }
.menu-btn { display: none !important; }

.search-wrap { position: relative; }
.search-wrap > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-left: 40px; }
.head-search .input { height: 38px; font-size: 13px; }

/* Drawer menu (HP) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 88vw); z-index: 70; background: var(--nav-drawer-bg); border-left: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; gap: 14px; transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }
.drawer-scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 65; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-scrim { display: block; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer .nav-links { gap: 4px; }

/* ---------- Footer toko ---------- */
.site-foot { margin-top: 64px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-solid) 55%, transparent); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 40px; }
.foot-about p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 12px; max-width: 320px; }
.foot-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.foot-col a, .foot-col button.linkish { display: block; color: var(--text-2); font-size: 13px; padding: 5px 0; text-decoration: none; }
.foot-col a:hover, .foot-col button.linkish:hover { color: var(--text); }
button.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
button.linkish.link { color: var(--accent-text); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 30px; padding: 16px 0 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--text-2); }
.proto-note { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Logo layanan (tiruan sederhana, bukan logo resmi) ---------- */
.tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.02em; box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.tile.xs { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.tile.lg { width: 84px; height: 84px; border-radius: 24px; font-size: 36px; }
.tile.xl { width: 132px; height: 132px; border-radius: 34px; font-size: 56px; }
.tile .t-word { font-size: .6em; letter-spacing: 0; }
.tile .t-word.long { font-size: .42em; }
.tile svg { width: 58%; height: 58%; }

/* ---------- Beranda ---------- */
.hero-store { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 28px; padding: 44px; align-items: center; }
.hero-store h1 { font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--hero-text); }
.hero-store .hero-text { margin-top: 14px; font-size: 15px; max-width: 520px; }
.hero-search { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.hero-search .search-wrap { flex: 1; }
.hero-search .input { height: 50px; font-size: 14.5px; border-radius: 14px; }
.hero-search .btn { height: 50px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
a.kv-chip { text-decoration: none; transition: border-color .15s, color .15s; }
a.kv-chip:hover { border-color: var(--border-strong); color: var(--text); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.hero-stats b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--hero-text); }
.hero-stats span { font-size: 12.5px; color: var(--muted); }
.hero-visual { position: relative; min-height: 330px; }
.orbit { position: absolute; inset: 8% 6%; border-radius: 50%; border: 1px dashed var(--border-strong); }
.orbit.o2 { inset: 22% 20%; }
.float-tile { position: absolute; animation: floaty 6s ease-in-out infinite; }
.float-tile:nth-child(2n) { animation-delay: -2s; }
.float-tile:nth-child(3n) { animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(260px, 78%); padding: 14px 16px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow), var(--glow); }
.hero-pop .row { gap: 10px; }
.hero-pop small { display: block; color: var(--muted); font-size: 11.5px; }
.hero-pop b { font-size: 13.5px; }
.hero-pop .bar-mini { height: 5px; border-radius: 99px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.hero-pop .bar-mini span { display: block; height: 100%; width: 100%; background: var(--accent-grad); animation: fill 2.4s ease-out infinite; transform-origin: left; }
@keyframes fill { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-card { display: flex; align-items: center; gap: 12px; padding: 16px; text-decoration: none; }
.cat-card > div b { display: block; font-size: 14px; }
.cat-card > div span { font-size: 12px; color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step-card { display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; font-weight: 800; box-shadow: var(--btn-primary-shadow); }
.step-card h3 { font-size: 15px; font-weight: 700; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.testi-card { display: flex; flex-direction: column; gap: 12px; }
.testi-card blockquote { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.stars { display: inline-flex; gap: 2px; color: var(--warn); }
.testi-who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testi-who .avatar { width: 34px; height: 34px; font-size: 13px; box-shadow: none; }
.testi-who small { display: block; color: var(--muted); font-size: 12px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Kartu produk ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.p-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.p-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.p-tagline { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.price-from { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.price-now { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.price-unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.price-was { font-size: 12.5px; color: var(--faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.rating .ico { color: var(--warn); }
.p-card.is-soon .tile { filter: saturate(.6); opacity: .8; }
.p-card.is-soon .price-now { font-size: 15px; color: var(--muted); }
.p-go { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; transition: transform .15s; }
.p-card:hover .p-go { transform: translateX(3px); }

/* ---------- Daftar produk ---------- */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-intro h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.page-intro p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search-wrap { flex: 1; min-width: 220px; max-width: 360px; }
.toolbar .select-wrap { width: 190px; }
.result-meta { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.empty { text-align: center; padding: 44px 20px; display: grid; justify-items: center; gap: 10px; }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { color: var(--muted); font-size: 13.5px; max-width: 420px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .cur { color: var(--text-2); font-weight: 600; }

/* ---------- Detail produk ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-areas: "visual buy" "details buy"; gap: 24px; align-items: start; }
.pd-details { grid-area: details; min-width: 0; }
.pd-visual { grid-area: visual; display: grid; place-items: center; min-height: 300px; padding: 30px; position: relative; }
.pd-visual .tile.xl { box-shadow: 0 24px 60px rgba(0, 0, 0, .35), var(--glow); }
.pd-visual .kv-chips { position: absolute; left: 20px; right: 20px; bottom: 18px; justify-content: center; }
.pd-buy { grid-area: buy; position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.pd-title { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.pd-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price .price-now { font-size: 30px; }
.save-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.opt-group { display: flex; flex-direction: column; gap: 8px; }
.opt-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.opt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt-cards.one { grid-template-columns: minmax(0, 1fr); }
.option-card .option-card-title { justify-content: space-between; }
.option-card.is-out { opacity: .62; }
.option-card.is-na { opacity: .35; cursor: not-allowed; }
.seg-item.is-na { opacity: .4; cursor: not-allowed; }
.seg-item .mini { font-size: 10.5px; font-weight: 700; opacity: .8; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
.dot.warn { background: var(--warn); }
.dot.neg { background: var(--neg); }
.dot.info { background: var(--info); }
.buy-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.buy-actions .btn { height: 48px; font-size: 14px; }
.buy-actions.single { grid-template-columns: minmax(0, 1fr); }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trust { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 6px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.trust .ico { color: var(--accent-text); }
.pd-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px; margin-top: 24px; align-items: start; }
.pd-sections .stack { min-width: 0; }
.sticky-cta { display: none; }

/* ---------- Keranjang & checkout ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cart-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; }
.ci-name { font-weight: 700; font-size: 14.5px; }
.ci-opts { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci-price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.summary { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.sum-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.sum-row.save b { color: var(--pos); }
.sum-row.total { font-size: 17px; font-weight: 800; color: var(--text); padding-top: 12px; border-top: 1px solid var(--border); }
.sum-row.total b { font-size: 20px; }
.coupon { display: flex; gap: 8px; }
.coupon .input { text-transform: uppercase; }
.coupon .input::placeholder { text-transform: none; }
.applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pos) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pos) 30%, transparent); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.mini-items { display: grid; gap: 10px; }
.mini-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-item small { display: block; color: var(--muted); font-size: 12px; }

.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.stp { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stp .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); font-size: 12px; background: var(--surface-2); }
.stp.is-done { color: var(--text-2); }
.stp.is-done .n { background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); border-color: transparent; }
.stp.is-current { color: var(--text); }
.stp.is-current .n { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: var(--btn-primary-shadow); }
.stp-line { flex: 1 1 24px; min-width: 16px; max-width: 80px; height: 2px; border-radius: 2px; background: var(--border); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.pay-list { display: grid; gap: 10px; }
.pay-opt { flex-direction: row; align-items: center; gap: 12px; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.pay-opt.is-active .radio { border-color: var(--accent); }
.pay-opt.is-active .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pay-logo { width: 46px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; flex: none; }
.pay-opt .po-main { flex: 1; min-width: 0; }
.pay-opt .po-main b { display: block; font-size: 13.5px; }
.pay-opt .po-main span { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.who-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.who-box .t { flex: 1; min-width: 0; }
.who-box .t b { display: block; font-size: 13.5px; }
.who-box .t span { font-size: 12.5px; color: var(--muted); }

/* ---------- Pembayaran & sukses ---------- */
.pay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; align-items: start; }
.qr-box { width: 248px; max-width: 100%; margin: 0 auto; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-cap { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.countdown { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--warn); }
.amount-big { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.copy-line > div span { font-size: 12px; color: var(--muted); display: block; }
.copy-line > div b { font-size: 15px; font-variant-numeric: tabular-nums; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-hero { text-align: center; padding: 38px 24px; display: grid; justify-items: center; gap: 10px; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); box-shadow: 0 0 0 10px color-mix(in srgb, var(--pos) 8%, transparent); margin-bottom: 8px; }
.success-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.success-hero p { color: var(--muted); max-width: 520px; }
.deliver { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.deliver > div b { display: block; font-size: 14px; }
.deliver > div span { font-size: 12.5px; color: var(--muted); }

/* ---------- Masuk & daftar ---------- */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.auth-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.auth-side { padding: 30px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.auth-side h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 600; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 34px; width: 38px; }
.g-mark { width: 18px; height: 18px; }

/* ---------- Bantuan ---------- */
.help-hero { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 12px; }
.help-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; }
.help-hero .search-wrap { width: min(560px, 100%); }
.help-hero .input { height: 50px; border-radius: 14px; }
.topic-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; text-decoration: none; }
.topic-card > div b { display: block; font-size: 14px; }
.topic-card > div span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.faq-list { display: grid; gap: 10px; }
.policy p { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }

/* ---------- Akun pelanggan ---------- */
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.acc-stats .stat-value { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 1279px) { .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.todo-list { display: grid; gap: 10px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.todo .t-main { flex: 1; min-width: 0; }
.todo b { display: block; font-size: 13.5px; }
.todo small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.list-rows { display: grid; }
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--row-border); text-decoration: none; color: inherit; }
.list-row:last-child { border-bottom: 0; }
.list-row b { display: block; font-size: 13.5px; }
.list-row small { display: block; font-size: 12px; color: var(--muted); }
.list-row:hover b { color: var(--accent-text); }

.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.sub-card { display: flex; flex-direction: column; gap: 14px; scroll-margin: 90px; }
.sub-head { display: flex; align-items: center; gap: 12px; }
.sub-title { flex: 1; min-width: 0; }
.sub-title h3 { font-size: 15.5px; font-weight: 700; }
.sub-title p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.period { padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.period-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.period .lbl { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.period b { font-size: 14.5px; font-weight: 700; }
.left { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.left b { font-size: 22px; font-weight: 800; color: var(--text); margin-right: 3px; font-variant-numeric: tabular-nums; }
.left.warn b { color: var(--warn); }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); }
.progress.warn span { background: var(--warn); }
.progress.mute span { background: var(--faint); }
.hint-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.hint-line .ico { margin-top: 2px; color: var(--muted); }
.hint-line.warn, .hint-line.warn .ico { color: var(--warn); }
.hint-line.info .ico { color: var(--info); }
.sub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-actions .btn-primary { flex: 1 1 auto; }
.sub-card.is-ended .tile { filter: grayscale(1); opacity: .55; }
.sub-card.flash, .cred-card.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 25% { box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow); } }

.cred-card { scroll-margin: 90px; }
.cred-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cred { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--row-border); min-height: 56px; }
.cred:last-child { border-bottom: 0; }
.cred .k { width: 96px; flex: none; font-size: 12px; color: var(--muted); font-weight: 600; }
.cred .v { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred .v.plain { font-family: var(--font); }
.cred .v small { display: block; font-family: var(--font); font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: normal; }
.locked { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.55; }
.locked b { color: var(--text-2); display: block; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; padding: 0 0 18px 36px; }
.tl::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: -2px; width: 2px; background: var(--border); }
.tl:last-child { padding-bottom: 0; }
.tl:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface-solid); display: grid; place-items: center; color: #fff; }
.tl.is-done .tl-dot { background: var(--pos); border-color: var(--pos); }
.tl.is-done::before { background: color-mix(in srgb, var(--pos) 60%, transparent); }
.tl.is-current .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); }
.tl.is-current .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl.is-neg .tl-dot { background: var(--neg); border-color: var(--neg); }
.tl > b { display: block; font-size: 13.5px; font-weight: 700; }
.tl.is-current > b { color: var(--accent-text); }
.tl > span:not(.tl-dot) { font-size: 12px; color: var(--muted); }

.kv { margin: 0; display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--row-border); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.kv .total dt, .kv .total dd { font-size: 15px; font-weight: 800; color: var(--text); }

/* Tabel pesanan: jadi kartu begitu wadahnya kurang dari 820px (berlaku di HP maupun layar sedang) */
.orders-card { container: orders / inline-size; }
@container orders (max-width: 820px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "svc svc" "id status" "date total" "act act"; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--row-border); }
  .rtable tbody tr:last-child { border-bottom: 0; }
  .table.rtable td { padding: 0; border: 0; white-space: normal; background: transparent !important; }
  .rtable td[data-area="svc"] { grid-area: svc; margin-bottom: 4px; }
  .rtable td[data-area="id"] { grid-area: id; font-size: 12.5px; color: var(--muted); }
  .rtable td[data-area="id"] .sub { display: inline; margin-left: 6px; }
  .rtable td[data-area="status"] { grid-area: status; text-align: right; }
  .rtable td[data-area="date"] { grid-area: date; font-size: 12.5px; color: var(--muted); }
  .rtable td[data-area="date"] .sub { display: inline; margin-left: 6px; }
  .rtable td[data-area="total"] { grid-area: total; text-align: right; font-weight: 800; }
  .rtable td[data-area="act"] { grid-area: act; padding-top: 8px; }
  .rtable td[data-area="act"] .row { justify-content: stretch !important; }
  .rtable td[data-area="act"] .btn { flex: 1; }
}
.order-svc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.order-svc b { display: block; font-size: 13.5px; }
.order-svc small { display: block; font-size: 12px; color: var(--muted); white-space: normal; }
.login-gate { max-width: 520px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 34px 26px; }
.msg-preview { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--pos) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pos) 28%, transparent); font-size: 13px; color: var(--text-2); line-height: 1.55; }
.msg-preview .lbl { display: block; font-size: 11.5px; font-weight: 700; color: var(--pos); margin-bottom: 4px; }
.issue-list { display: flex; flex-wrap: wrap; gap: 8px; }
.issue-list label { position: relative; cursor: pointer; }
.issue-list input { position: absolute; opacity: 0; pointer-events: none; }
.issue-list span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.issue-list input:checked + span { background: var(--accent-grad); color: #fff; border-color: transparent; }
.issue-list input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus-ring); }

/* ---------- Dialog (bottom sheet di HP) ---------- */
dialog.sheet { border: 0; padding: 0; background: transparent; color: var(--text); width: min(480px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: visible; }
dialog.sheet::backdrop { background: rgba(3, 8, 20, .62); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-panel { background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; max-height: calc(100vh - 48px); overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h3 { font-size: 17px; font-weight: 700; }
.sheet-svc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.sheet-svc > div b { display: block; font-size: 14.5px; }
.sheet-svc > div span { font-size: 12.5px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: var(--text); font-size: 13px; font-weight: 600; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--pos); }

/* ---------- Responsif ---------- */
@media (max-width: 1023px) {
  .head-search { display: none; }
  .head-actions { margin-left: auto; }
  .hero-store { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .hero-visual { min-height: 260px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "buy" "details"; }
  .pd-buy { position: static; }
  .pd-visual { min-height: 220px; }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .pay-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .auth-side { order: 2; }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .head-inner { height: 60px; gap: 10px; }
  .head-nav, .head-actions .acct-btn .acct-name, .hide-sm { display: none; }
  .acct-btn { padding: 0 4px; }
  .cred .btn-icon { width: 40px; height: 40px; }
  .menu-btn { display: inline-flex !important; }
  .section { margin-top: 42px; }
  .hero-store { padding: 24px 20px; gap: 10px; }
  .hero-store h1 { font-size: 30px; }
  .hero-visual { min-height: 220px; }
  .hero-stats { gap: 18px; }
  .page-intro h1 { font-size: 24px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .toolbar .search-wrap { max-width: none; flex-basis: 100%; }
  .toolbar .select-wrap { flex: 1; width: auto; }
  .result-meta { flex-basis: 100%; margin-left: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-item { grid-template-columns: auto minmax(0, 1fr); }
  .ci-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
  .opt-cards { grid-template-columns: minmax(0, 1fr); }
  .pd-title { font-size: 22px; }
  .pd-price .price-now { font-size: 26px; }
  .pd-visual { display: flex; flex-direction: column; gap: 18px; min-height: 0; padding: 26px 16px 20px; }
  .pd-visual .tile.xl { width: 104px; height: 104px; border-radius: 28px; font-size: 44px; }
  .pd-visual .kv-chips { position: static; }
  body[data-page="product"] .site-main { padding-bottom: 96px; }
  .sticky-cta { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border-strong); }
  .sticky-cta .sc-price { flex: 1; min-width: 0; }
  .sticky-cta .sc-price small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta .sc-price b { font-size: 17px; font-weight: 800; }
  .sticky-cta .btn { height: 46px; }
  .stepper .stp-label { display: none; }
  .stepper .stp.is-current .stp-label { display: inline; }
  .acc-stats { gap: 10px; }
  .cred .k { width: 78px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; }
  .sheet-panel { border-radius: 24px 24px 0 0; max-height: 92vh; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .toast { bottom: 90px; }
}

@media (max-width: 420px) {
  .hero-store h1 { font-size: 27px; }
  .hero-search { flex-direction: column; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .acc-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buy-actions { grid-template-columns: minmax(0, 1fr); }
  .trust-row { gap: 6px; }
  .trust { font-size: 11px; padding: 8px 4px; }
}

/* ==========================================================================
   v2 — Area akun menyatu dengan situs (header & footer toko), bukan panel terpisah.
   ========================================================================== */
.acct-btn.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
button.nav-link { width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit; text-align: left; }

.acc-top { margin-bottom: 22px; }
.acc-hello { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acc-hello .t { flex: 1; min-width: 220px; }
.acc-title { font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.acc-hello .page-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-actions:empty { display: none; }
.acc-tabs { margin-top: 18px; }
.acc-tabs .seg-item { text-decoration: none; padding: 7px 16px; }

.acc-summary { margin-bottom: 16px; }
.kv-chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.kv-chip.warn .ico { color: var(--warn); }
.kv-chip.pos { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 35%, transparent); }
.kv-chip.pos .ico { color: var(--pos); }

/* Kartu langganan gabungan: kiri = masa aktif & tombol, kanan = data login */
.subs-list { display: grid; gap: 16px; }
.sub2 { display: grid; gap: 16px; scroll-margin: 90px; }
.sub2.is-urgent { border-color: color-mix(in srgb, var(--warn) 38%, var(--border)); }
.sub2.flash { animation: flash 1.6s ease; }
.sub2-head { display: flex; align-items: center; gap: 12px; }
.sub2-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 18px; align-items: start; }
.sub2-left, .sub2-right { display: grid; gap: 12px; min-width: 0; }
.sub2.is-ended .tile { filter: grayscale(1); opacity: .55; }
.cred-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cred-title > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.cred-title .ico { color: var(--accent-text); }
.cred-title .faint { font-weight: 500; }
.sub2-more { border-top: 1px solid var(--border); }
.sub2-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.sub2-more > summary::-webkit-details-marker { display: none; }
.sub2-more > summary:hover { color: var(--text); }
.sub2-more > summary .ico { transition: transform .15s; }
.sub2-more[open] > summary .ico { transform: rotate(180deg); }
.sub2-more-body { display: grid; gap: 14px; padding-top: 12px; }
.hist { display: grid; }
.hist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--row-border); font-size: 13px; text-decoration: none; color: inherit; }
.hist-row:last-child { border-bottom: 0; }
.hist-row small { display: block; color: var(--muted); font-size: 12px; }
.hist-row:hover b:first-child { color: var(--accent-text); }

.ended-box { margin-top: 26px; }
.ended-box > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.ended-box > summary::-webkit-details-marker { display: none; }
.ended-box > summary .ico { transition: transform .15s; }
.ended-box[open] > summary .ico { transform: rotate(180deg); }
.ended-box .subs-list { margin-top: 12px; }

/* Header muat 4 menu: kolom cari disembunyikan lebih awal */
@media (max-width: 1199px) {
  .head-search { display: none; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .sub2-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .acc-title { font-size: 24px; }
  .acc-hello .avatar.lg { width: 42px; height: 42px; font-size: 16px; }
  .acc-actions { width: 100%; }
  .acc-actions .btn { flex: 1; }
  .acc-tabs { display: flex; width: 100%; }
  .acc-tabs .seg-item { flex: 1 1 0; padding: 7px 8px; }
  .sub2-head .sub-title { flex-basis: calc(100% - 64px); }
  .sub2-head { flex-wrap: wrap; row-gap: 8px; }
  .sub2-head .badge { order: 3; margin-left: 52px; }
  .sub2 .sub-actions .btn { flex: 1 1 100%; }
  .hist-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hist-row .badge { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 420px) {
  .acc-tabs .seg-item .ico { display: none; }
}
