/* iKonek Pay — Portal Stylesheet
   Tokens taken from iKonek Pay logo + brand palette */

:root {
  --navy: #0b1e3f;
  --navy-2: #122b5c;
  --navy-3: #1d3978;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f6f8fb;
  --bg-soft: #eef2f7;
  --card: #ffffff;
  --teal: #14b8a6;
  --teal-2: #0ea5a3;
  --teal-soft: rgba(20,184,166,0.12);
  --teal-line: rgba(20,184,166,0.35);
  --green: #22c55e;
  --green-soft: rgba(34,197,94,0.12);
  --red: #dc2626;
  --red-soft: rgba(220,38,38,0.10);
  --amber: #f59e0b;
  --amber-soft: rgba(245,158,11,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 16px -4px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 60px -20px rgba(15,23,42,.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Montserrat', sans-serif;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
button { font: inherit; cursor: pointer; }

/* ============ Flash messages ============ */
.flash-bar {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 1000;
  width: min(560px, calc(100vw - 32px));
}
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: opacity .3s, transform .3s;
}
.flash--success { background: var(--green); color: #fff; }
.flash--error   { background: var(--red); color: #fff; }
.flash--info    { background: var(--navy); color: #fff; }
.flash--gone { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); box-shadow: 0 6px 20px -8px rgba(20,184,166,.6); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.field-label .req { color: var(--red); margin-left: 2px; }
.field-hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], select, textarea {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
textarea { resize: vertical; min-height: 90px; }

/* ============ Layout shell — Portal ============ */
body.portal { background: var(--bg-soft); }
.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}
.portal-sidebar {
  background: var(--navy);
  color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-link { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 6px; background: #fff; padding: 2px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.brand-text strong { color: var(--teal); font-weight: 800; }
.sidebar-nav { display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.78);
  font-weight: 500;
  font-size: 14.5px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--teal); color: #fff; }
.nav-link.is-active:hover { background: var(--teal-2); }
.nav-link .ico { font-size: 18px; width: 22px; text-align: center; }
.nav-link--muted { color: rgba(255,255,255,.55); }
.sidebar-foot {
  padding: 12px 12px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 8px;
}
.sidebar-build { color: rgba(255,255,255,.4); font-size: 11.5px; padding: 0 14px; }

.portal-main { min-width: 0; display: flex; flex-direction: column; }
.portal-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 50;
}
.sidebar-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); }
.topbar-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.topbar-spacer { flex: 1; }
.wallet-chip {
  display: flex; flex-direction: column;
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: 999px;
  text-align: right;
  border: 1px solid var(--teal-line);
}
.wallet-label { font-size: 11px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.wallet-amount { font-family: var(--font-head); font-weight: 800; color: var(--teal-2); font-size: 15px; }
.agent-chip { display: flex; flex-direction: column; text-align: right; }
.agent-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.agent-biz { font-size: 11.5px; color: var(--muted); }
.portal-content { padding: 28px 32px 56px; max-width: 1200px; width: 100%; margin: 0 auto; }

@media (max-width: 900px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 78%; max-width: 320px;
    transform: translateX(-100%);
    transition: transform .2s;
    z-index: 60;
  }
  body.sidebar-open .portal-sidebar { transform: translateX(0); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
  body.sidebar-open::after {
    content: ""; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 55;
  }
  .sidebar-toggle { display: block; }
  .topbar-title { display: none; }
  .agent-chip { display: none; }
  .portal-content { padding: 18px 18px 56px; }
  .portal-topbar { padding: 12px 16px; gap: 12px; }
}

/* ============ Cards & grids ============ */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.card--padded { padding: 32px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2,1fr);} .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ============ Stat cards (Dashboard) ============ */
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--navy); margin-top: 4px; }
.stat-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ============ Service tiles ============ */
.svc-tile {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.svc-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--teal-line);
  text-decoration: none;
}
.svc-tile .svc-num {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 30px;
  color: rgba(20,184,166,.16);
}
.svc-tile .svc-icon {
  font-size: 30px; margin-bottom: 12px;
}
.svc-tile h3 { color: var(--ink); margin-bottom: 6px; padding-right: 36px; }
.svc-tile p { color: var(--muted); margin: 0; font-size: 13.5px; }
.svc-tile.is-soon { opacity: .55; pointer-events: none; }
.svc-tile .badge-soon {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--bg-soft); color: var(--muted);
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}

/* ============ Tables ============ */
.table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
table.tx { width: 100%; border-collapse: collapse; }
table.tx th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
table.tx td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
table.tx tr:last-child td { border-bottom: 0; }
table.tx tr:hover td { background: rgba(20,184,166,0.03); }
.tx-ref { font-family: 'SF Mono', monospace; font-size: 12.5px; color: var(--navy-2); }
.tx-amount { font-family: var(--font-head); font-weight: 700; }
.amt-out { color: var(--red); }
.amt-in  { color: #15803d; }
.amt-success { color: var(--navy); }
.empty-state {
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 8px; }

/* ============ Status pills ============ */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
}
.pill--success { background: var(--green-soft); color: #15803d; }
.pill--failed  { background: var(--red-soft); color: var(--red); }
.pill--pending { background: var(--amber-soft); color: #b45309; }
.pill--bills   { background: var(--teal-soft); color: var(--teal-2); }
.pill--loading { background: rgba(14,165,233,.12); color: #0369a1; }
.pill--cash_in { background: rgba(34,197,94,.12); color: #15803d; }
.pill--agent   { background: var(--teal-soft); color: var(--teal-2); }
.pill--admin   { background: rgba(220,38,38,.10); color: var(--red); }
.pill--pending { background: var(--amber-soft); color: #b45309; }
.pill--active  { background: var(--green-soft); color: #15803d; }
.pill--inactive { background: var(--bg-soft); color: var(--muted); }

.nav-link--admin { color: rgba(245,158,11,.85); }
.nav-link--admin:hover { color: #fff; background: rgba(245,158,11,.15); }

/* Admin tab strip */
.admin-tabs {
  display: flex; gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.admin-tabs a {
  padding: 12px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.admin-tabs a:hover { color: var(--navy-2); text-decoration: none; }
.admin-tabs a.is-active { color: var(--navy); border-bottom-color: var(--teal); }

/* Admin row action popover */
.action-pop {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 10;
  margin-top: 6px;
}

/* ============ Filters bar ============ */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters select, .filters input {
  width: auto; min-width: 160px;
  padding: 9px 12px; font-size: 13.5px;
}
.filters .btn { padding: 9px 16px; }

/* ============ Login page ============ */
.login-page {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}
.login-art {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
.login-art::before, .login-art::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.login-art::before {
  top: -180px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(20,184,166,.30), transparent 70%);
}
.login-art::after {
  bottom: -160px; left: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(14,165,233,.22), transparent 70%);
}
.login-art > * { position: relative; z-index: 1; }
.login-art .brand img { height: 56px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.login-art h1 { color: #fff; font-size: 38px; line-height: 1.15; }
.login-art .lede { color: rgba(255,255,255,.85); font-size: 16px; max-width: 460px; }
.login-art .features { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 28px; }
.login-art .features li { color: rgba(255,255,255,.85); font-size: 14px; position: relative; padding-left: 26px; }
.login-art .features li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.login-art .foot { color: rgba(255,255,255,.55); font-size: 12.5px; }
.login-form-wrap {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.login-form-card { width: 100%; max-width: 380px; }
.login-form-card .form-head h2 { color: var(--navy); margin-bottom: 6px; }
.login-form-card .form-head p { color: var(--muted); margin: 0 0 28px; }
.demo-creds {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
}
.demo-creds strong { color: var(--ink); }
.demo-creds code { font-family: 'SF Mono', monospace; background: #fff; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.back-home { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 32px 24px; min-height: 280px; }
  .login-art h1 { font-size: 28px; }
  .login-form-wrap { padding: 32px 22px; }
}

/* ============ Public landing ============ */
body.public { background: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; max-width: 1200px; margin: 0 auto; }
.site-header img.logo { height: 36px; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.site-header nav a:hover { color: var(--teal-2); text-decoration: none; }
.site-header .btn { padding: 9px 18px; font-size: 14px; }

.hero {
  position: relative;
  padding: 96px 24px 80px;
  text-align: center;
  background:
    radial-gradient(900px circle at 15% 10%, rgba(20,184,166,0.12), transparent 60%),
    radial-gradient(900px circle at 85% 90%, rgba(14,165,233,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .container { max-width: 920px; margin: 0 auto; position: relative; z-index: 1; }
.hero img.hero-logo { height: 96px; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 18px; }
.hero p.lede { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-mesh {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
}
.hero-mesh img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 72px 24px; }
.section .container { max-width: 1100px; margin: 0 auto; }
.section--soft { background: var(--bg); }
.section h2 { text-align: center; }
.section .section-sub {
  text-align: center; color: var(--ink-2); max-width: 640px; margin: 0 auto 44px;
}

.svc-public-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .svc-public-grid { grid-template-columns: 1fr; } }

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 620px; margin: 8px auto 28px; }
.cta-band .btn-primary { background: var(--teal); }

.site-footer { padding: 28px 24px; text-align: center; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--navy-2); }

/* Contact form on landing */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.contact-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .contact-form .form-row-2 { grid-template-columns: 1fr; } }

/* ============ Step indicators ============ */
.steps {
  display: flex; gap: 12px; margin-bottom: 24px; align-items: center;
  flex-wrap: wrap;
}
.steps .step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.steps .step .num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--line); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
}
.steps .step.is-current .num { background: var(--teal); color: #fff; }
.steps .step.is-done .num { background: var(--navy); color: #fff; }
.steps .arrow { color: var(--line-strong); }

/* ============ Selection grids (biller categories / networks / denominations) ============ */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pick {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pick:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.pick-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 15px; }
.pick-sub { color: var(--muted); font-size: 12.5px; }

/* Denomination grid */
.denom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.denom-radio { position: relative; }
.denom-radio input { position: absolute; opacity: 0; pointer-events: none; }
.denom-radio label {
  display: block; padding: 14px 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.denom-radio input:checked + label {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.denom-amount { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy); }
.denom-label { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ============ Confirm / Receipt ============ */
.confirm-card {
  max-width: 520px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.confirm-card h2 { text-align: center; margin-bottom: 4px; }
.confirm-card .lede { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14.5px; }
.detail-list { display: grid; gap: 10px; margin: 0 0 22px; }
.detail-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list .lbl { color: var(--muted); }
.detail-list .val { font-weight: 600; color: var(--ink); text-align: right; word-break: break-all; }
.detail-list li.total { font-size: 16px; padding-top: 16px; border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px;}
.detail-list li.total .val { font-family: var(--font-head); color: var(--navy); font-size: 22px; }
.confirm-actions { display: flex; gap: 12px; }
.confirm-actions .btn { flex: 1; }

.receipt-page {
  max-width: 580px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.receipt-header { text-align: center; margin-bottom: 24px; }
.receipt-header img { height: 48px; margin: 0 auto 14px; }
.receipt-header .status-banner {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: 12.5px; margin-bottom: 10px;
}
.receipt-header .status-banner.success { background: var(--green-soft); color: #15803d; }
.receipt-header .status-banner.failed { background: var(--red-soft); color: var(--red); }
.receipt-header h2 { margin: 0; font-size: 22px; }
.receipt-header .receipt-ref { color: var(--muted); font-family: 'SF Mono', monospace; font-size: 13px; margin-top: 4px; }
.receipt-footer { text-align: center; margin-top: 22px; color: var(--muted); font-size: 12px; }
.receipt-actions { display: flex; gap: 10px; margin-top: 18px; }
.receipt-actions .btn { flex: 1; }
.note-box {
  margin-top: 16px; padding: 12px 14px;
  background: var(--red-soft); border-left: 3px solid var(--red);
  color: var(--red); font-size: 13.5px; border-radius: var(--radius-sm);
}

/* Pagination */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13.5px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.pagination span.current { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination a:hover { border-color: var(--teal); color: var(--teal-2); text-decoration: none; }

/* ============ Profile ============ */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.kv { display: grid; gap: 10px; }
.kv .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv .row:last-child { border-bottom: 0; }
.kv .lbl { color: var(--muted); }
.kv .val { font-weight: 600; color: var(--ink); text-align: right; }

/* ============ PIN block ============ */
.pin-block {
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin-bottom: 18px;
}
.pin-block .field-label {
  display: block;
  margin-bottom: 10px;
}
.pin-input {
  width: 100%;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1em;
  padding-left: 1em;
  background: #fff;
}
.pin-input.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.18);
}
.pin-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.demo-creds .pin-hint-inline {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ============ Print (receipts) ============ */
@media print {
  body.portal { background: #fff; }
  .portal-sidebar, .portal-topbar, .receipt-actions, .flash-bar { display: none !important; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-content { padding: 0; max-width: none; }
  .receipt-page { box-shadow: none; border: 0; padding: 0; }
}
