/* MyPB-lite demo page (v0.2.1). The look and feel follows the public MyPertamina for Business 2.0
   walkthrough video (layout, colours, page flow). Illustrations are our own SVG drawings.
   Plain CSS, no external fonts or files, so the page works without internet access. */
:root {
  --navy: #134e8a; --navy-2: #0f4275; --navy-3: #0b335c;
  --soft: #dde9f6; --soft-2: #edf3fa; --soft-3: #f4f7fb;
  --red: #e31e25; --red-2: #c8102e;
  --bg: #f2f5f9; --card: #ffffff; --line: #e3e8ef; --line-2: #d3dbe6;
  --text: #1d2433; --muted: #687283; --muted-2: #9aa3b0;
  --ok: #13803f; --ok-soft: #e3f4ea; --bad: #c5221f; --bad-soft: #fde8e7;
  --warn: #a35200; --warn-soft: #fff1dc; --orange: #d96d0a; --orange-soft: #fdebd5;
  --info: #134e8a; --info-soft: #e5eef9;
  --tile-a: #1b5ba5; --tile-b: #4a8fd6; --foot: #071a2e;
  --radius: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Segoe UI", "Lexend", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 14px;
  color: var(--text); background: var(--bg); line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 600; margin: 0 0 14px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt { margin-top: 14px; }
.mb0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.right { text-align: right; }
.center { text-align: center; }
.caps { text-transform: uppercase; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ic { width: 18px; height: 18px; display: block; flex: none; }
[data-icon] { display: inline-flex; }

/* ---------------------------------------------------------------- MyPertamina-style badge */
.mp-logo { display: inline-flex; align-items: stretch; height: 32px; transform: skewX(-13deg); border-radius: 4px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); flex: none; }
.mp-logo:hover { text-decoration: none; }
.mp-my, .mp-pt { display: inline-flex; align-items: center; color: #fff; font-weight: 800; }
.mp-my { background: var(--red); padding: 0 5px 0 10px; font-size: 21px; letter-spacing: -.6px; }
.mp-pt { background: var(--navy); padding: 0 12px 2px 7px; font-size: 15px; letter-spacing: .5px; position: relative; }
.mp-pt small { position: absolute; right: 10px; bottom: 1px; font-size: 6.5px; letter-spacing: 1.6px; font-weight: 600; opacity: .85; }
.demo-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 1px 6px; background: #fff; }

/* ---------------------------------------------------------------- Microsoft logo + Powered by */
.powered { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.powered b { color: var(--text); font-weight: 600; }
.pw-sep { width: 1px; height: 18px; background: var(--line-2); }
.ms-logo { display: inline-flex; align-items: center; gap: 6px; }
.ms-sym { width: 17px; height: 17px; display: block; flex: none; }
.ms-word { font-family: "Segoe UI", "Segoe UI Web (West European)", Arial, sans-serif; font-weight: 600; font-size: 15.5px;
  color: #737373; letter-spacing: -.2px; line-height: 1; }
.powered.dark { background: transparent; border-color: rgba(255, 255, 255, .2); color: #c9d4e3; }
.powered.dark b, .powered.dark .ms-word { color: #fff; }
.powered.dark .pw-sep { background: rgba(255, 255, 255, .28); }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 20; height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px 0 26px; }
.hdr-l, .hdr-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hdr-l { flex: 1 1 auto; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none; margin-left: 18px; }
.icon-btn:hover { background: var(--soft-3); }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: #eef1f5;
  color: var(--muted); flex: 0 1 300px; min-width: 120px; }
.search input { border: 0; background: transparent; outline: 0; font: inherit; color: var(--text); width: 100%; height: 100%; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 500; white-space: nowrap; }
a.pill:hover { background: var(--soft-3); text-decoration: none; }
.pill .ic { color: var(--navy); }
.count { min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-grid; place-items: center; padding: 0 5px; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; font: inherit;
  color: var(--text); padding: 4px 6px; border-radius: 12px; text-align: left; }
.user-btn:hover { background: var(--soft-3); }
.user-btn > .ic { color: var(--muted); width: 16px; height: 16px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; flex: none; }
.user-txt { display: flex; flex-direction: column; max-width: 165px; }
.user-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.user-menu { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .14); min-width: 230px; padding: 6px; z-index: 30; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.user-menu a:hover { background: var(--soft-3); text-decoration: none; }
.user-menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.user-menu .who b { display: block; color: var(--text); font-size: 13px; }

/* ---------------------------------------------------------------- banner and Azure status strip */
.banner { background: var(--bad); color: #fff; padding: 9px 26px; font-weight: 600; }
.statusbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 7px 26px; background: #fbfcfe;
  border-bottom: 1px solid var(--line); min-height: 42px; font-size: 12.5px; }
.sb-azure { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--navy); margin-right: 6px; }
.sb-azure .ms-sym { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- layout, sidebar, footer */
.layout { flex: 1 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; color: var(--text);
  font-weight: 500; }
.side-nav a .ic { color: var(--muted); }
.side-nav a:hover { background: #e8eef6; text-decoration: none; }
.side-nav a.active { background: var(--soft); color: var(--navy); font-weight: 600; }
.side-nav a.active .ic { color: var(--navy); }
.nav-sec { margin: 14px 16px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: var(--muted-2);
  text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.nav-sec .ms-sym { width: 11px; height: 11px; }
.help-card { margin-top: auto; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.help-card img { width: 100%; height: auto; display: block; border-radius: 10px; }
.help-card b { display: block; margin: 10px 2px 4px; font-size: 13px; }
.help-card p { margin: 0 2px 12px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.main { padding: 24px 30px 40px; min-width: 0; }
.foot { background: var(--foot); color: #c9d4e3; margin-top: auto; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 30px;
  font-size: 12.5px; }
body.flow .side { display: none; }
body.flow .layout { grid-template-columns: minmax(0, 1fr); }
body.collapsed .layout { grid-template-columns: 78px minmax(0, 1fr); }
body.collapsed.flow .layout { grid-template-columns: minmax(0, 1fr); }
body.collapsed .side-nav a { justify-content: center; padding: 12px 0; }
body.collapsed .side-nav .lbl, body.collapsed .nav-sec, body.collapsed .help-card { display: none; }

/* ---------------------------------------------------------------- generic building blocks */
.card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.page-title { font-size: 24px; font-weight: 600; margin: 2px 0 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head .page-title { margin: 0; }
.subtitle { margin: -10px 0 16px; color: var(--muted); }
.tool-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--navy);
  background: var(--soft-2); border: 1px solid var(--soft); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 10px; }
.tool-tag .ms-sym { width: 12px; height: 12px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-weight: 600;
  font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--soft-3); text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.soft { background: var(--soft); border-color: transparent; color: var(--navy); }
.btn.soft:hover { background: #cfe0f2; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.off { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.seg .btn { border: 0; border-radius: 0; border-right: 1px solid var(--line-2); height: 34px; }
.seg .btn:last-child { border-right: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: #eef1f5; color: #39424f; border: 1px solid #e2e7ee; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: #c9e8d4; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: #f6c8c6; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #f3dcbd; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: #cfe0f5; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.wait { background: var(--orange-soft); color: var(--orange); }
.badge.paid { background: var(--ok-soft); color: var(--ok); }
.badge.review { background: var(--bad-soft); color: var(--bad); }
.badge.other { background: #eef1f5; color: #39424f; }

.notice { border-radius: 10px; padding: 11px 14px; margin: 12px 0; font-size: 13.5px; border: 1px solid; }
.notice.ok { background: var(--ok-soft); border-color: #c9e8d4; color: #0d5a2c; }
.notice.bad { background: var(--bad-soft); border-color: #f6c8c6; color: #8f1411; }
.notice.warn { background: var(--warn-soft); border-color: #f3dcbd; color: #7a3d00; }
.notice.info { background: var(--info-soft); border-color: #cfe0f5; color: #0b3f73; }
.msg { min-height: 20px; margin: 10px 0 0; font-size: 13px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #c8d0db; border-top-color: var(--navy);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 14px; }
.req { color: var(--red); margin-left: 1px; }
input, select { height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px;
  background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid #b9d1ee; border-color: #8fb3db; }
.form input, .form select { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted);
  cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; margin-top: 3px; }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv div:nth-child(odd) { color: var(--muted); }
.big { font-size: 24px; font-weight: 700; }
.metric-bad { color: var(--bad); font-weight: 700; }
.metric-good { color: var(--ok); font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line-2); }

/* ---------------------------------------------------------------- sign-in page */
body.auth .hdr, body.auth .statusbar, body.auth .banner, body.auth .side, body.auth .foot { display: none !important; }
body.auth .layout { display: block; }
body.auth .main { padding: 0; }
.auth-wrap { display: grid; grid-template-columns: minmax(400px, 38%) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.auth-form { padding: 34px 64px 28px; display: flex; flex-direction: column; }
.auth-form .form, .auth-form .hint, .auth-form h1, .auth-form .lead { width: 100%; max-width: 460px; }
.auth-form .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 52px; }
.auth-form h1 { font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.auth-form .lead { color: var(--muted); margin: 0 0 30px; }
.auth-form .forgot { display: block; text-align: right; font-size: 12.5px; color: var(--red-2); margin: -6px 0 20px; font-weight: 500; }
.auth-form .alt { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.auth-form .msg:empty { min-height: 0; margin: 0; }
.auth-form .msg { margin-top: 12px; }
.auth-form .hint { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.auth-form .auth-powered { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.auth-form .auth-powered b { color: var(--text); font-weight: 600; }
.auth-hero { position: relative; margin: 16px 16px 16px 0; border-radius: 24px; overflow: hidden;
  background: linear-gradient(165deg, #f1f7fd 0%, #cfe3f6 42%, #8cbbe7 78%, #5f9ddb 100%); display: flex; align-items: flex-end; justify-content: center; }
.auth-hero::before { content: ""; position: absolute; left: 6%; top: 7%; width: 42%; height: 58%; background: rgba(255, 255, 255, .38);
  transform: skewX(-24deg); border-radius: 22px; }
.auth-hero::after { content: ""; position: absolute; left: 30%; top: 22%; width: 16%; height: 40%; background: rgba(255, 255, 255, .22);
  transform: skewX(-24deg); border-radius: 18px; }
.hero-img { position: relative; z-index: 1; width: min(94%, 860px); height: auto; margin-bottom: 1%; }
.hero-lang { position: absolute; right: 22px; top: 20px; z-index: 2; height: 32px; }
.hero-card { position: absolute; z-index: 2; left: 28px; top: 74px; max-width: 380px; background: rgba(255, 255, 255, .94);
  border-radius: 18px; padding: 18px 20px; box-shadow: 0 12px 30px rgba(11, 51, 92, .18); }
.hero-card .ms-sym { width: 26px; height: 26px; }
.hero-card .ms-word { font-size: 24px; }
.hero-card h2 { font-size: 20px; margin: 12px 0 6px; color: var(--navy-3); }
.hero-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.hero-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hero-list li { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text); }
.hero-list .ic { width: 16px; height: 16px; color: var(--ok); }

/* ---------------------------------------------------------------- categories page */
.cat-wrap { position: relative; padding: 0 20px; margin-bottom: 22px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-tile { position: relative; height: 132px; border-radius: 18px; border: 0; cursor: pointer; overflow: hidden; text-align: left;
  padding: 22px 24px; color: #fff; font: inherit; background: linear-gradient(115deg, var(--tile-a) 0%, var(--tile-b) 100%);
  box-shadow: 0 6px 14px rgba(19, 78, 138, .18); transition: transform .12s ease; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile::before { content: ""; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); }
.cat-tile.active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy), 0 6px 14px rgba(19, 78, 138, .25); }
.cat-name { position: relative; z-index: 1; display: block; font-size: 16px; font-weight: 600; max-width: 56%; line-height: 1.3; }
.cat-sub { position: relative; z-index: 1; display: block; font-size: 12px; opacity: .85; margin-top: 8px; }
.cat-tile img { position: absolute; right: 12px; bottom: 6px; height: 104px; width: auto; z-index: 1; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: #c2cad6; color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.car-arrow:hover { background: var(--navy); }
.car-arrow.l { left: -6px; }
.car-arrow.r { right: -6px; }
.filter-note { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(148px, calc((100% - 90px) / 6)), 1fr)); gap: 22px 18px; }
.pcard { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcard > .btn { margin-top: auto; }
.pimg { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #eef2f8); margin-bottom: 8px; }
.pimg img { width: 78%; height: auto; }
.pimg:hover { border-color: #9dbbe0; }
.pname { font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.pcat { font-size: 11.5px; color: var(--muted); }
.pprice { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.pprice span { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.porders { font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }

/* ---------------------------------------------------------------- product page */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; padding: 26px 28px; }
.prod-img { display: grid; place-items: center; border-radius: 14px; background: linear-gradient(180deg, #fbfcfe, #eef2f8); min-height: 360px; }
.prod-img img { width: min(70%, 360px); height: auto; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { background: var(--soft-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.field small { display: block; color: var(--muted); font-size: 12px; }
.field b { font-weight: 600; font-size: 14px; }
.frow { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; margin: 12px 0; }
.frow > label { color: var(--text); font-weight: 500; }
.ctl { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ctl select, .ctl input[type=date] { width: 100%; max-width: 300px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; height: 38px; background: #fff; }
.stepper button { width: 38px; height: 100%; border: 0; background: #fff; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.stepper button:hover { background: var(--soft-3); }
.stepper button .ic { width: 15px; height: 15px; }
.stepper input { width: 130px; height: 100%; border: 0; border-radius: 0; text-align: center; padding: 0 4px; -moz-appearance: textfield; appearance: textfield; }
.stepper input:focus { outline: 0; background: var(--soft-3); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit { display: inline-grid; place-items: center; min-width: 48px; height: 38px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 12.5px; font-weight: 600; background: #fff; }
.price-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.prod-sub { margin: 4px 0 16px; color: var(--muted); }

/* ---------------------------------------------------------------- checkout, payment instructions */
.checkout { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pi { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.steps { background: #fff; border-radius: var(--radius); padding: 24px 18px 18px; box-shadow: var(--shadow); min-height: 540px;
  display: flex; flex-direction: column; position: sticky; top: 84px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 10px; position: relative; padding-bottom: 30px; }
.step::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-of-type::after { display: none; }
.step .ic { width: 26px; height: 26px; color: var(--muted-2); }
.step small { display: block; font-size: 10px; letter-spacing: .9px; color: var(--muted-2); text-transform: uppercase; }
.step b { display: block; font-weight: 500; color: var(--muted-2); font-size: 15px; }
.step.done .ic, .step.cur .ic { color: var(--navy); }
.step.done b, .step.cur b { color: var(--navy); font-weight: 600; }
.step.done::after { background: var(--navy); opacity: .35; }
.steps .btn { margin-top: auto; }
.note-card { background: #eceff3; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; display: grid;
  grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--muted); }
.note-card b { color: var(--text); display: block; font-weight: 600; }
.note-card .ic { color: var(--muted); }
.sum { border-radius: 12px; overflow: hidden; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13.5px; }
.sum-row:nth-child(odd) { background: var(--soft-3); }
.sum-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-row small { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
.sum-total { display: flex; justify-content: space-between; padding: 16px 14px 4px; font-weight: 700; font-size: 16px; }
.item { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.thumb { width: 92px; height: 92px; border-radius: 12px; background: linear-gradient(180deg, #f6f8fc, #e6ecf4); display: grid; place-items: center; }
.thumb img { width: 74px; height: auto; }
.item .meta { font-size: 12px; color: var(--muted); }
.item .nm { font-size: 16px; font-weight: 600; text-transform: uppercase; margin-top: 10px; }
.item .qty { font-size: 13px; font-weight: 600; }
.cart-r { text-align: right; }
.cart-r .row { justify-content: flex-end; }
.loading { padding: 18px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm { display: grid; grid-template-columns: 22px 1fr; gap: 10px; text-align: left; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--text); }
.pm:hover { border-color: #9dbbe0; }
.pm .ic { color: var(--muted); margin-top: 1px; }
.pm b { display: block; font-size: 13.5px; font-weight: 600; }
.pm small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.pm.sel { background: var(--soft); border-color: #8fb3db; }
.pm.sel b, .pm.sel .ic { color: var(--navy); }
.lbl-strong { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.full { width: 100%; }
.pi-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.pi-logo { margin: 2px 0 26px; }
.pi-box { background: var(--soft-3); border-radius: 14px; padding: 4px 18px; }
.pi-box .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pi-box .r:last-child { border-bottom: 0; }
.pi-box .r span:first-child { color: var(--muted); }
.warnbar { display: flex; gap: 8px; align-items: center; background: #fff6d2; color: #745700; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; }
.warnbar .ic { color: #d1a100; width: 16px; height: 16px; }
.banks { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.bank { min-width: 118px; height: 54px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center;
  gap: 10px; padding: 0 14px; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.bank .bar { width: 8px; height: 28px; border-radius: 3px; flex: none; }
.bank b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .3px; line-height: 1.1; }
.bank small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.bank.sel { border-color: var(--navy); box-shadow: 0 0 0 3px var(--soft); }
.bk-a .bar { background: #0f8a6c; } .bk-b .bar { background: #e85b12; } .bk-c .bar { background: #0a3d91; }
.bk-d .bar { background: #1268b3; } .bk-e .bar { background: #c1272d; } .bk-f .bar { background: #00529c; }
.va { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: .6px; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.copy:hover { color: var(--navy); border-color: #9dbbe0; }
.howto { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.howto li { margin: 3px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }

/* ---------------------------------------------------------------- transactions */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 2px 11px; border: 0; background: none; border-bottom: 2px solid transparent; font: inherit; font-weight: 500;
  color: var(--text); cursor: pointer; margin-bottom: -1px; }
.tab.on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.pills { display: flex; gap: 10px; padding: 16px 0 4px; flex-wrap: wrap; }
.ptab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-weight: 500; color: var(--text); cursor: pointer; }
.ptab .ic { width: 16px; height: 16px; color: var(--muted); }
.ptab.on { background: var(--soft); border-color: transparent; color: var(--navy); font-weight: 600; }
.ptab.on .ic { color: var(--navy); }
.tx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.tx-head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.tx-tools { display: flex; align-items: center; gap: 10px; }
.tx-tools select { width: 140px; }
.tx-tools input { width: 96px; }
.sq { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid;
  place-items: center; cursor: pointer; }
.sq.fill { background: var(--navy); color: #fff; border-color: var(--navy); }
.tx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tx-bar select { width: 78px; }
.tx-search { display: flex; align-items: center; gap: 8px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px;
  color: var(--muted); width: 260px; background: #fff; }
.tx-search input { border: 0; outline: 0; height: 100%; width: 100%; padding: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: #f4f5f7; color: var(--text); font-weight: 600; padding: 13px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; cursor: pointer; user-select: none; font-size: 13px; }
.tbl th .srt { display: inline-block; vertical-align: -3px; color: var(--muted-2); margin-left: 4px; }
.tbl th .srt .ic { width: 14px; height: 14px; }
.tbl th.no { cursor: default; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfd; }
.st { font-weight: 600; }
.st.wait { color: var(--navy); } .st.paid { color: var(--ok); } .st.review { color: var(--bad); } .st.other { color: var(--muted); }
.tx-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 6px; }
.pager button { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--text); font: inherit; }
.pager button.cur { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .ic { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- demo tool pages */
.log { display: flex; flex-direction: column; gap: 8px; }
.log .entry { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-size: 13.5px; }
.log .entry .when { color: var(--muted); font-size: 12px; }
.bank-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lane { border-radius: var(--radius); background: #fff; padding: 18px 20px; box-shadow: var(--shadow); }
.lane h2 { display: flex; align-items: center; gap: 10px; }
.light { width: 14px; height: 14px; border-radius: 50%; background: #bbc3cf; display: inline-block; flex: none; }
.light.up { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.light.down { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.lane .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.lane .nums div { background: var(--soft-3); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; color: var(--muted); }
.lane .nums b { display: block; font-size: 22px; color: var(--text); }
.timeline { display: flex; gap: 2px; flex-wrap: wrap; min-height: 18px; }
.timeline span { width: 7px; height: 18px; border-radius: 2px; background: var(--ok); }
.timeline span.fail { background: var(--bad); }

/* ---------------------------------------------------------------- dialog and toast */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 40; }
.modal .box { position: relative; background: #fff; border-radius: 22px; padding: 24px 22px 20px; max-width: 400px; width: 92%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); text-align: center; }
.modal .box h2 { font-size: 17px; font-weight: 600; margin: 8px 0 2px; }
.modal .box p { margin: 0; color: var(--muted); }
.modal .x { position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.modal .x .ic { width: 14px; height: 14px; }
.modal .art { width: 100%; height: auto; display: block; border-radius: 14px; margin: 16px 0 18px; }
.modal .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #1d2433; color: #fff; padding: 10px 18px;
  border-radius: 10px; font-size: 13.5px; z-index: 60; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: 90%; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-height: 820px) {
  .help-card img { display: none; }
}
@media (max-width: 1300px) {
  .hdr .powered .pw-text, .hdr .powered .pw-sep { display: none; }
}
@media (max-width: 1200px) {
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .checkout .steps, .pi .steps { display: none; }
  .pi { grid-template-columns: minmax(0, 1fr); }
  .pi-top { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-txt { display: none; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 78px minmax(0, 1fr); }
  .side-nav a { justify-content: center; padding: 12px 0; }
  .side-nav .lbl, .nav-sec, .help-card { display: none; }
  .cols, .prod, .checkout { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { display: none; }
  .search { display: none; }
}
