/* ============================================================
   PayPortico - white-labeled customer payment portal
   ============================================================ */

:root {
  --ink: #393a3d;
  --ink-soft: #5c5e63;
  --ink-faint: #6b6c72;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --line: #d4d7dc;
  --brand: #2ca01c;
  --brand-2: #2ca01c;
  --tint: color-mix(in srgb, var(--brand) 10%, white);
  --tint-strong: color-mix(in srgb, var(--brand) 22%, white);
  --ok-bg: #eaf7e8;
  --ok-ink: #1a6011;
  --bad-bg: #fff5f5;
  --bad-ink: #842029;
  --warn-bg: #fff4d6;
  --warn-ink: #5c3b00;
  --info-bg: #e8f3ff;
  --info-ink: #0f4c81;
  --neutral-bg: #eceef1;
  --neutral-ink: #5c5e63;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 32, 35, 0.06);
  --shadow-lg: 0 2px 6px rgba(57, 58, 61, 0.08), 0 12px 28px rgba(57, 58, 61, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Material Symbols icon helper */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.22em;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: var(--neutral-bg);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: color-mix(in srgb, var(--brand) 80%, #000);
  color: #fff;
}
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 60%, #000); filter: none; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: var(--neutral-bg); }
.btn-danger { color: #b91c1c; }
.btn-danger:hover { background: var(--bad-bg); color: #991b1b; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Forms ---------- */

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--tint-strong);
}
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--ink-faint); margin: 6px 0 0; }
.hint a { font-weight: 600; }
fieldset { border: none; margin: 0 0 10px; padding: 0; }
legend {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  padding: 0;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  font-size: 14.5px;
  margin: 0 0 16px;
  cursor: pointer;
}
.check-field input { width: auto; }
.slug-input { display: flex; align-items: stretch; }
.slug-prefix {
  display: flex;
  align-items: center;
  background: var(--neutral-bg);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.slug-input input { border-radius: 0 8px 8px 0; }

/* ---------- Cards, tables, pills ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h2 { font-size: 18px; margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h2 { margin: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f7f8fa; }
.muted { color: var(--ink-faint); font-size: 13px; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions form { display: inline-block; }

.pill {
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  text-transform: capitalize;
  white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill-neutral { background: var(--neutral-bg); color: var(--neutral-ink); }

.flash {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 18px;
}
.flash-success { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--bad-bg); color: var(--bad-ink); }

.empty { text-align: center; padding: 36px 16px; color: var(--ink-soft); }
.empty p { margin-bottom: 6px; }
.count-chip {
  display: inline-block;
  background: var(--neutral-bg);
  color: var(--ink-soft);
  font-size: 12.5px;
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: 2px;
}

.detail-list { margin: 0; }
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list div:last-child { border-bottom: none; }
.detail-list dt { color: var(--ink-faint); font-size: 14px; }
.detail-list dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: right; }
.mt { margin-top: 28px; }

/* ---------- Brand marks ---------- */

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; }

/* ---------- Site header (landing / auth) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.site-brand:hover { text-decoration: none; }
.site-links { display: flex; gap: 22px; flex: 1; }
.site-links a { color: var(--ink-soft); font-weight: 550; font-size: 14.5px; }
.site-links a:hover { color: var(--ink); text-decoration: none; }
.site-actions { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Landing hero ---------- */

.page-landing main { overflow-x: hidden; }
.hero {
  position: relative;
  padding: 64px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.09);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; margin-bottom: 18px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); font-size: 15px; }
.hero-points li { padding-left: 26px; position: relative; margin-bottom: 9px; }
.hero-points li::before {
  content: "check_circle" / "";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 1, "wght" 500;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--brand);
  font-size: 17px;
}

/* Merchant login card */
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 360px;
  justify-self: end;
  width: 100%;
}
.login-card h2 { font-size: 20px; margin-bottom: 4px; }
.login-sub { color: var(--ink-faint); font-size: 14px; margin-bottom: 18px; }
.login-card label { margin-top: 12px; }
.login-card .btn { margin-top: 18px; }
.login-alt { font-size: 14px; margin: 16px 0 0; }
.login-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

/* ---------- Landing mockups ---------- */

.preview-stage { position: relative; margin-top: 48px; padding-bottom: 56px; }
.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-main { max-width: 760px; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar .dot:first-child { background: #fda4af; }
.browser-bar .dot:nth-child(2) { background: #fcd34d; }
.browser-bar .dot:nth-child(3) { background: #86efac; }
.browser-bar .addr {
  flex: 1;
  max-width: 380px;
  margin-left: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 4px 14px;
}
.browser-bar .addr strong { color: var(--ink); }
.mock-app { padding: 18px 20px 20px; }
.mock-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mock-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mock-name { font-weight: 700; font-size: 14px; }
.mock-tabs { display: flex; gap: 14px; margin-left: 18px; font-size: 12.5px; color: var(--ink-faint); }
.mock-tabs .active { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.mock-user { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.mock-stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-stat label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0; }
.mock-stat strong { font-size: 15.5px; }
.mock-stat em { font-style: normal; font-size: 12px; color: var(--ink-faint); }
.mock-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mock-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.mock-row:last-child { border-bottom: none; }
.mock-row-head {
  background: #f8fafc;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 700;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.mock-pm {
  right: 7%;
  top: -28px;
  width: 250px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #e2e8f0;
  border: none;
  transform: rotate(2.5deg);
}
.pm-chip {
  display: block;
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fcd34d, #d97706);
  margin-bottom: 16px;
}
.pm-brand { position: absolute; right: 18px; top: 16px; font-weight: 800; font-style: italic; letter-spacing: 0.04em; }
.pm-num { font-size: 16.5px; letter-spacing: 0.08em; margin-bottom: 12px; font-weight: 600; }
.pm-meta { display: flex; justify-content: space-between; font-size: 11px; color: #94a3b8; }
.pm-default { position: absolute; right: 18px; bottom: 16px; }
.mock-sub { right: 13%; bottom: 4px; width: 240px; transform: rotate(-1.5deg); }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sub-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.mock-btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  color: var(--ink-soft);
}

/* ---------- Landing sections ---------- */

.features, .how { padding: 72px 0; }
.features h2, .how h2, .security h2, .cta h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand);
  margin-bottom: 14px;
}
.feature-icon .ms { font-size: 24px; vertical-align: 0; }
.feature h3 { font-size: 16.5px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.how { padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.security { background: #0e3d24; color: #e7f0e9; padding: 64px 0; }
.security-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.security-points { list-style: none; margin: 0; padding: 0; }
.security-points li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid rgba(231, 240, 233, 0.14); font-size: 15px; color: #cfe2d4; }
.security-points li:last-child { border-bottom: none; }
.security-points li::before {
  content: "verified_user" / "";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 1, "wght" 500;
  position: absolute;
  left: 0;
  top: 16px;
  color: #7fd96c;
  font-size: 19px;
}
.security-points strong { color: #ffffff; }

.cta { padding: 80px 0; text-align: center; }
.cta p { color: var(--ink-soft); margin-bottom: 26px; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; background: var(--surface); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--ink-faint); flex-wrap: wrap; }

/* ---------- Auth pages ---------- */

.auth-wrap { display: flex; justify-content: center; padding: 56px 24px 80px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  width: 100%;
  max-width: 420px;
}
.auth-card-wide { max-width: 560px; }
.auth-card h1 { font-size: 26px; }
.auth-sub { color: var(--ink-faint); font-size: 15px; margin-bottom: 22px; }
.auth-alt { font-size: 14px; margin-top: 18px; text-align: center; }
.portal-identity { text-align: center; margin-bottom: 22px; }
.portal-identity .brand-mark-lg { margin-bottom: 14px; }
.portal-identity h1 { margin-bottom: 2px; }
.portal-identity .auth-sub { margin-bottom: 0; }
.page-portal-login { background: var(--bg); }
.page-auth .site-header { margin-bottom: 0; }

/* ---------- App shell (merchant + portal) ---------- */

.app-nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-nav-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}
.app-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.app-brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; flex: none; }
.brand-logo-lg { width: 56px; height: 56px; border-radius: 14px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .ms { font-size: 22px; vertical-align: -0.3em; }
.app-links { display: flex; gap: 4px; flex: 1; }
.app-links a {
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.app-links a:hover { color: var(--ink); background: var(--neutral-bg); text-decoration: none; }
.app-links a.active { color: var(--brand); background: var(--tint); font-weight: 700; }
.app-links .nav-signout, .app-links .portal-link-mobile { display: none; }
.app-nav-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { font-size: 13.5px; color: var(--ink-faint); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-link { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .app-nav-actions { display: none; }
  .app-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 10px 16px 16px;
    z-index: 30;
  }
  .app-links.open { display: flex; }
  .app-links a { padding: 12px 14px; font-size: 15.5px; }
  .app-links .portal-link-mobile { display: block; color: var(--brand); }
  .app-links .nav-signout { display: block; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
  .app-links .nav-signout .btn { width: 100%; text-align: left; font-size: 15.5px; padding: 12px 14px; }
}

.app-main { padding: 34px 24px 70px; }
.app-main-narrow { max-width: 620px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin-bottom: 4px; }
.page-sub { color: var(--ink-soft); font-size: 15px; margin: 0; }

.layout-2col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { display: flex; flex-direction: column; gap: 3px; padding: 20px; }
.stat-card label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); margin: 0; }
.stat-card strong { font-size: 19px; }
.stat-card em { font-style: normal; font-size: 13px; color: var(--ink-faint); }

/* Payment method cards */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pm-card { position: relative; }
.pm-card-default { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.pm-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pm-type { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.pm-type .ms { color: var(--brand); }
.pm-card-num { font-size: 21px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; }
.pm-card-meta { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 13px; margin-bottom: 16px; }
.pm-card-actions { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }

.hosted-fields { min-height: 120px; }
.hosted-fields iframe { width: 100%; border: none; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.pager-page { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }

.search-row { display: flex; gap: 10px; margin-bottom: 20px; }
.search-row input { max-width: 380px; }
.inline-import { display: flex; gap: 8px; align-items: center; }
.inline-import input { width: 190px; font-size: 13.5px; padding: 7px 10px; }

/* ---------- Portal activation block ---------- */

.activate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.activate-divider::before, .activate-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.activate-block summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand);
  padding: 6px 0;
}
.activate-block[open] summary { margin-bottom: 8px; }
.activate-block .hint { margin-bottom: 14px; }

/* ---------- New components ---------- */

.flash-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  border: 1px dashed currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  cursor: copy;
}
.code-input { font-size: 24px; letter-spacing: 8px; text-align: center; font-weight: 700; }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-row input[type="color"] { width: 52px; height: 36px; padding: 2px; border-radius: 8px; cursor: pointer; }
.logo-preview { margin-bottom: 12px; }
.logo-preview img {
  max-height: 72px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: var(--surface);
}
input[type="file"] { padding: 8px; font-size: 14px; }
.table-search input { max-width: 230px; font-size: 14px; padding: 8px 10px; }
.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.filter-row select { width: auto; padding: 7px 10px; font-size: 14px; }
.filter-label { margin: 0; font-size: 13px; color: var(--ink-faint); }
.table-clickable tbody tr, .row-clickable { cursor: pointer; }
.row-link { color: inherit; }
.row-link:hover { text-decoration: none; }
.mt-card { margin-top: 22px; }
.muted-link { color: var(--ink-faint); font-size: 13px; }
.role-form select { width: auto; padding: 6px 10px; font-size: 13.5px; }

/* ---------- Error page ---------- */

.error-wrap { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 24px; }
.error-card { text-align: center; max-width: 420px; }
.error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--brand);
}
.error-card h1 { font-size: 24px; }
.error-card p { color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .login-card { justify-self: stretch; max-width: none; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .security-inner { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .site-links { display: none; }
}

@media (max-width: 600px) {
  .feature-grid, .steps, .stat-grid { grid-template-columns: 1fr; }
  .mock-tabs { display: none; }
  .mock-stats { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr 1fr; row-gap: 2px; }
  .app-nav-inner { gap: 12px; }
  .page-head { flex-direction: column; }
  .table { display: block; overflow-x: auto; }
  .search-row { flex-direction: column; }
  .search-row input { max-width: none; }
  .table-search input { max-width: none; }
}

/* ---------- Clean-finance additions ---------- */

.center-hint { text-align: center; margin-top: 10px; }
.nested-block { margin-top: 12px; padding-left: 4px; }
.login-card .activate-block { margin-top: 14px; }
.login-card .activate-block summary { font-size: 13.5px; }
.cta { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Brand guide additions ---------- */

.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-info { background: var(--info-bg); color: var(--info-ink); }

/* Tabular figures for money and data tables */
.table, .stat-card strong, .pm-card-num, .detail-list dd, .mock-stat strong, .mock-row {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* PayPortico logo lockup */
.pp-logo { display: inline-flex; align-items: center; gap: 10px; }
.pp-logo-icon { width: 30px; height: 30px; flex: none; display: block; }
.pp-logo-word { font-weight: 650; font-size: 19px; letter-spacing: -0.015em; line-height: 1; }
.pp-logo-pay { color: var(--ink); }
.pp-logo-portico { color: #2ca01c; }
.app-brand .pp-logo-word { font-size: 16.5px; }
.app-brand .pp-logo-icon { width: 28px; height: 28px; }
.brand-suffix {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-faint);
  font-weight: 550;
  font-size: 14px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .pp-logo-icon { width: 20px; height: 20px; }
.footer-brand .pp-logo-word { font-size: 14.5px; }
.footer-copy { color: var(--ink-faint); font-size: 13px; }

/* White-labeled portal footer credit (guide 8.6) */
.powered-by {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 18px 16px 26px;
}
