/* =====================================================================
   VASTROX — Dashboard / app shell (client + admin areas)
   Loads after styles.css (reuses the same design tokens)
   ===================================================================== */

body.app-body { background: var(--bg-muted); }

.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* ----------  Sidebar  ---------- */
.app-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #fff; border-right: 1px solid var(--border);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin;
}
.app-sidebar::-webkit-scrollbar { width: 6px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #dfe6ef; border-radius: 10px; }
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text); }
.sb-brand .logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-blue); color: #fff; box-shadow: 0 6px 14px rgba(37,99,235,.3); }
.sb-brand .logo svg { width: 21px; height: 21px; }

.sb-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); padding: 14px 10px 6px; }
.sb-nav { display: grid; gap: 2px; }
.sb-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--text-3); transition: background .16s ease, color .16s ease; position: relative;
}
.sb-link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.sb-link:hover { background: var(--bg-soft); color: var(--primary-700); }
.sb-link.active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(37,99,235,.28); }
.sb-link.active svg { opacity: 1; }
.sb-badge { margin-left: auto; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-700); }
.sb-link.active .sb-badge { background: rgba(255,255,255,.24); color: #fff; }

.sb-card { margin-top: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.sb-card .t { font-size: 12.5px; color: var(--muted); }
.sb-card .v { font-size: 24px; font-weight: 800; font-family: var(--font-display); color: var(--green-600); margin: 2px 0 12px; }
.sb-card.promo { background: var(--grad-blue); border: none; color: #fff; text-align: center; }
.sb-card.promo .pico { width: 48px; height: 48px; border-radius: 13px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin: 0 auto 12px; }
.sb-card.promo .pico svg { width: 24px; height: 24px; }
.sb-card.promo h4 { color: #fff; font-size: 16px; margin-bottom: 5px; }
.sb-card.promo p { font-size: 12.5px; color: rgba(255,255,255,.88); margin-bottom: 14px; }

/* ----------  Main  ---------- */
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 12px 28px; height: 68px;
}
.tb-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; color: var(--muted); }
.tb-search svg { width: 18px; height: 18px; }
.tb-search input { border: none; background: none; outline: none; flex: 1; font-size: 14px; color: var(--text); }
.tb-search .kbd { font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-btn { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--text-3); border: 1px solid transparent; position: relative; transition: background .16s ease, border-color .16s; }
.tb-btn:hover { background: var(--bg-soft); border-color: var(--border); }
.tb-btn svg { width: 20px; height: 20px; }
.tb-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.tb-btn .cnt { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--pill); background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.tb-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-3); padding: 9px 12px; border-radius: 10px; }
.tb-link:hover { background: var(--bg-soft); color: var(--primary-700); }
.tb-link svg { width: 17px; height: 17px; }
.tb-user { display: flex; align-items: center; gap: 10px; padding-left: 8px; border-left: 1px solid var(--border); margin-left: 4px; }
.tb-user .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-blue); color: #fff; font-weight: 800; font-family: var(--font-display); font-size: 14px; }
.tb-user .nm { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.tb-user .rl { font-size: 12px; color: var(--muted); }

.app-content { padding: 26px 28px 40px; display: grid; gap: 22px; }
.app-foot { padding: 18px 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.app-foot a { color: var(--muted); } .app-foot a:hover { color: var(--primary); }

.sb-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); place-items: center; color: var(--text); }
.sb-toggle svg { width: 22px; height: 22px; }

/* ----------  Welcome banner  ---------- */
.welcome { position: relative; overflow: hidden; background: linear-gradient(110deg,#eef4ff 0%, #e7efff 60%, #eafaff 100%); border: 1px solid var(--primary-soft-2); border-radius: var(--radius-lg); padding: 26px 28px; }
.welcome::after { content:""; position:absolute; right:-40px; top:-40px; width:240px; height:240px; background: radial-gradient(circle, rgba(37,99,235,.12), transparent 65%); }
.welcome h2 { font-size: 24px; margin-bottom: 4px; }
.welcome p { color: var(--text-3); font-size: 14.5px; }
.welcome .qa { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 20px; max-width: 640px; }
.qa-card { background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: 13px; padding: 14px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, background .18s; }
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.qa-card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin: 0 auto 9px; background: var(--primary-soft); color: var(--primary); }
.qa-card .ico svg { width: 20px; height: 20px; }
.qa-card span { font-size: 12.5px; font-weight: 700; color: var(--text-2); font-family: var(--font-display); }
.welcome .wfig { position: absolute; right: 30px; bottom: 0; top: 0; display: grid; place-items: center; }
.welcome .wfig .box { width: 120px; height: 120px; border-radius: 26px; background: var(--grad-blue); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.welcome .wfig .box svg { width: 60px; height: 60px; color: #fff; }

/* ----------  KPI cards  ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.kpi .ico svg { width: 20px; height: 20px; }
.kpi .v { font-size: 26px; font-weight: 800; font-family: var(--font-display); color: var(--text); line-height: 1; }
.kpi .t { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.kpi .lnk { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.kpi .sub { font-size: 12px; font-weight: 700; }
.kpi .sub.up { color: var(--green-600); } .kpi .sub.down { color: var(--red); }

/* ----------  Cards / panels  ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { font-size: 17px; }
.card-head .link-arrow { font-size: 13.5px; }
.card-head .link-arrow svg { width: 14px; height: 14px; }
.grid-2c { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3c { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-2u { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }

/* ----------  Tables  ---------- */
.dtable { width: 100%; border-collapse: collapse; }
.dtable th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.dtable td { padding: 13px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.dtable tr:last-child td { border-bottom: none; }
.dtable tbody tr { transition: background .14s ease; }
.dtable tbody tr:hover { background: var(--bg-soft); }
.dtable .dom { font-weight: 700; color: var(--text); }
.dtable .dom small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.dtable .muted { color: var(--muted); }
.menu-dots { color: var(--muted-2); cursor: pointer; }
.menu-dots:hover { color: var(--text); }

/* ----------  Badges  ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); font-family: var(--font-display); }
.badge::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { color: var(--green-600); background: rgba(34,197,94,.12); }
.badge.blue { color: var(--primary-700); background: var(--primary-soft); }
.badge.orange { color: #c2410c; background: rgba(249,115,22,.12); }
.badge.red { color: #b91c1c; background: rgba(239,68,68,.1); }
.badge.purple { color: #6d28d9; background: rgba(139,92,246,.12); }
.badge.gray { color: var(--muted); background: var(--bg-muted); }
.badge.no-dot::before { display: none; }

/* ----------  Resource usage cards  ---------- */
.usage-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.usage { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.usage .t { font-size: 13px; font-weight: 700; color: var(--text-2); }
.usage .sub { font-size: 12px; color: var(--muted); }
.usage .v { font-size: 30px; font-weight: 800; font-family: var(--font-display); color: var(--text); margin: 8px 0 2px; }
.usage .chg { font-size: 12px; font-weight: 700; }
.usage .chg.up { color: var(--green-600); } .usage .chg.down { color: var(--red); }
.spark { width: 100%; height: 46px; margin-top: 8px; }

/* ----------  Quick access tiles  ---------- */
.qaccess { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 13px; transition: border-color .16s ease, box-shadow .16s; }
.qaccess:hover { border-color: var(--primary-400); box-shadow: var(--shadow); }
.qaccess .lg { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-display); }
.qaccess b { font-size: 14.5px; color: var(--text); font-family: var(--font-display); }
.qaccess span { font-size: 12.5px; color: var(--muted); }
.qaccess .go { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-soft); color: var(--primary); }
.qaccess .go svg { width: 17px; height: 17px; }

/* ----------  Simple list rows (security, status)  ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.list-row .ico svg { width: 17px; height: 17px; }
.list-row b { font-size: 13.5px; color: var(--text); font-weight: 600; }
.list-row .meta { margin-left: auto; text-align: right; }

/* ----------  Announcements  ---------- */
.ann { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.ann:last-child { border-bottom: none; }
.ann .pin { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.ann h4 { font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.ann p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ann .date { font-size: 11px; color: var(--muted-2); margin-top: 4px; display: block; }

/* ----------  Banners (refer / help)  ---------- */
.mini-banner { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.mini-banner .ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.mini-banner .ico svg { width: 25px; height: 25px; }
.mini-banner b { font-size: 15.5px; color: var(--text); font-family: var(--font-display); }
.mini-banner p { font-size: 13px; color: var(--muted); }
.mini-banner .btn { margin-left: auto; }

/* ----------  Charts  ---------- */
.chart-box { width: 100%; height: 220px; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }

.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.seg button { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 7px; }
.seg button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* ----------  Responsive  ---------- */
@media (max-width: 1240px) { .kpi-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; top: 0; z-index: 80; width: 280px; transform: translateX(-100%); transition: transform .28s ease; box-shadow: var(--shadow-lg); }
  .app.nav-open .app-sidebar { transform: none; }
  .sb-toggle { display: grid; }
  .app-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
  .app.nav-open .app-backdrop { opacity: 1; visibility: visible; }
  .grid-2u, .grid-2c, .grid-3c { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: repeat(2,1fr); }
  .welcome .wfig { display: none; }
}
@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .welcome .qa { grid-template-columns: repeat(2,1fr); max-width: none; }
  .tb-search { display: none; }
  .tb-link span, .tb-user .who-txt { display: none; }
  .app-content { padding: 18px 16px 32px; }
  .app-topbar { padding: 12px 16px; }
}
@media (max-width: 480px) { .usage-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Client Health Score — gauge + factor breakdown
   ===================================================================== */
.health-card { display: flex; align-items: center; gap: 22px; }
.health-gauge { position: relative; width: 120px; height: 120px; flex: none; }
.health-gauge svg { transform: rotate(-90deg); }
.health-gauge .hg-track { fill: none; stroke: var(--bg-muted); stroke-width: 11; }
.health-gauge .hg-fill { fill: none; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.health-gauge .hg-num { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; }
.health-gauge .hg-num b { font-size: 30px; font-weight: 800; font-family: var(--font-display); color: var(--text); line-height: 1; }
.health-gauge .hg-num span { font-size: 11px; color: var(--muted); }
.health-meta h3 { font-size: 17px; margin-bottom: 4px; }
.health-meta .grade { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.health-meta p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.hg-green { stroke: var(--green); } .hg-orange { stroke: var(--orange); } .hg-red { stroke: var(--red); }

.factor-list { display: grid; gap: 12px; }
.factor { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.factor:last-child { border-bottom: none; }
.factor .fico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.factor .fico svg { width: 16px; height: 16px; }
.factor.pass .fico { background: rgba(34,197,94,.14); color: var(--green-600); }
.factor.warn .fico { background: rgba(249,115,22,.14); color: #c2410c; }
.factor.fail .fico { background: rgba(239,68,68,.12); color: #b91c1c; }
.factor .fbody { flex: 1; }
.factor .fbody .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.factor .fbody b { font-size: 14px; color: var(--text); font-family: var(--font-display); }
.factor .fbody .fdetail { font-size: 12.5px; font-weight: 600; }
.factor.pass .fdetail { color: var(--green-600); } .factor.warn .fdetail { color: #c2410c; } .factor.fail .fdetail { color: #b91c1c; }
.factor .frec { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.health-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--pill); font-size: 12px; font-weight: 800; font-family: var(--font-display); }
.health-pill.green { background: rgba(34,197,94,.12); color: var(--green-600); }
.health-pill.orange { background: rgba(249,115,22,.12); color: #c2410c; }
.health-pill.red { background: rgba(239,68,68,.1); color: #b91c1c; }

/* =====================================================================
   Platform additions — flash, page headers, forms, tables, auth, detail
   ===================================================================== */
.hidden { display: none !important; }

.flash { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.flash svg { width: 18px; height: 18px; flex: none; }
.flash-ok { background: rgba(34,197,94,.1); color: var(--green-600); border: 1px solid rgba(34,197,94,.22); }
.flash-err { background: rgba(239,68,68,.08); color: #b91c1c; border: 1px solid rgba(239,68,68,.2); }

.page-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; font-family: var(--font-display); }
.page-h .sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.page-h .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.filters .seg a { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 7px 13px; border-radius: 8px; }
.filters .seg a.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.filters form { display: flex; gap: 8px; margin-left: auto; }
.filters input[type=search], .filters input[type=text] { padding: 9px 13px; border: 1px solid var(--border-2); border-radius: 9px; font-size: 13.5px; background: #fff; min-width: 220px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 56px; height: 56px; border-radius: 15px; background: var(--bg-muted); color: var(--muted-2); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .ico svg { width: 27px; height: 27px; }
.empty h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* Forms */
.pform { display: grid; gap: 18px; }
.pform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pform .row-3 { grid-template-columns: 1fr 1fr 1fr; }
.pfield { display: grid; gap: 7px; }
.pfield label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pfield input, .pfield select, .pfield textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fff; transition: border-color .16s ease, box-shadow .16s ease;
}
.pfield input:focus, .pfield select:focus, .pfield textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.pfield textarea { resize: vertical; min-height: 92px; font-family: inherit; }
.pfield .hint { font-size: 12px; color: var(--muted); }
.pcheck { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.pcheck input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }

/* Detail / key-value */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.kv { display: grid; gap: 0; }
.kv .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv .row:last-child { border-bottom: none; }
.kv .row .k { color: var(--muted); }
.kv .row .v { color: var(--text); font-weight: 600; text-align: right; }
.kv .row .v.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* Ticket thread */
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: #fff; }
.msg.staff { background: var(--primary-soft); border-color: var(--primary-soft-2); }
.msg .mh { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.msg .mh .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; font-family: var(--font-display); background: var(--primary); }
.msg .mh b { font-size: 14px; color: var(--text); }
.msg .mh .when { margin-left: auto; font-size: 12px; color: var(--muted); }
.msg p { font-size: 14px; color: var(--text-2); white-space: pre-wrap; }

/* Invoice table */
.inv-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.inv-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.inv-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.inv-table td.amt, .inv-table th.amt { text-align: right; font-variant-numeric: tabular-nums; }
.inv-total { display: flex; justify-content: flex-end; }
.inv-total .box { width: 280px; display: grid; gap: 8px; }
.inv-total .line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.inv-total .line.grand { font-size: 18px; font-weight: 800; color: var(--text); font-family: var(--font-display); padding-top: 10px; border-top: 1px solid var(--border); }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--grad-cta); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0); background-size: 30px 30px; opacity:.5; }
.auth-aside .brand { color: #fff; position: relative; }
.auth-aside .pitch { position: relative; }
.auth-aside .pitch h2 { color: #fff; font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
.auth-aside .pitch p { color: rgba(255,255,255,.9); font-size: 16px; max-width: 420px; }
.auth-aside .feats { position: relative; display: grid; gap: 12px; margin-top: 26px; }
.auth-aside .feats li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.auth-aside .feats svg { width: 18px; height: 18px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand-m { display: none; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.auth-card .pfield { margin-bottom: 16px; }
.auth-card .alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-card .alt a { color: var(--primary); font-weight: 700; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .pform .row, .pform .row-3 { grid-template-columns: 1fr; }
}

