/* ==========================================================================
   AexoPe — account + information pages (orders, wallet, profile, referrals,
   about, faq, privacy, terms, contact, reset password).
   Sits on the rc- primitives from recharge.css; tokens come from landing.css.
   ========================================================================== */

/* ------------------------------- page intro ------------------------------- */
.ac-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-5);
}
.ac-intro-txt { min-width: 0; }
.ac-eyebrow {
  margin: 0 0 7px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.ac-h1 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(25px, 4.6vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--navy-800);
}
.ac-h1 span { color: var(--brand-600); }
.ac-sub {
  margin: 9px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--fs-ui);
  line-height: 1.6;
}
.ac-lead { flex: none; }

/* wallet pill in the sticky bar */
.ac-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--tap);
  padding: 0 15px;
  border-radius: var(--r-full);
  background: var(--ok-bg);
  border: 1px solid #b8f0d5;
  color: var(--accent-700);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.ac-wallet b { font-weight: 800; }

/* at the bar's own compact width the word "Wallet" drops, the balance stays */
@media (max-width: 559.98px) {
  .ac-wallet { padding: 0 11px; gap: 0; font-size: 0; }
  .ac-wallet > i { display: none; }
  .ac-wallet b { font-size: var(--fs-sm); }
}

/* ------------------------------ account nav ------------------------------ */
.ac-nav {
  display: flex;
  gap: 9px;
  margin: 0 0 var(--sp-5);
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ac-nav::-webkit-scrollbar { display: none; }
.ac-navlink {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 17px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh-xs);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ac-navlink i { font-size: 14px; }
.ac-navlink:hover { color: var(--brand-700); border-color: var(--brand-100); text-decoration: none; }
.ac-navlink:active { transform: scale(.98); }
.ac-navlink.is-on {
  color: #fff;
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
}
.ac-navlink:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* --------------------------------- layout -------------------------------- */
.ac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}
.ac-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; min-width: 0; }
.ac-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; min-width: 0; }

/* ----------------------------- summary tiles ----------------------------- */
.ac-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ac-stat {
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.ac-stat b {
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.ac-stat span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.ac-stat--ok b { color: var(--accent-700); }
.ac-stat--bad b { color: var(--danger-2); }

/* balance hero */
.ac-bal {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(420px 220px at 88% -20%, rgba(52, 227, 155, .5), transparent 62%),
    linear-gradient(118deg, #05337e 0%, #0a63b8 52%, #0a8f7e 100%);
  box-shadow: var(--sh-lg);
}
.ac-bal-txt { min-width: 0; }
.ac-bal-txt span { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.ac-bal-txt b {
  display: block;
  margin-top: 4px;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(30px, 6.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.ac-bal p { margin: 6px 0 0; max-width: 40ch; font-size: var(--fs-sm); color: rgba(255, 255, 255, .86); line-height: 1.55; }

/* --------------------------------- table --------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.ac-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.ac-tools .rc-tabs { flex: 1 1 auto; margin-bottom: 0; }
.ac-tools .rc-tabs:last-child { padding-bottom: 0; }
.rc-tab span {
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: var(--r-full);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.rc-tab.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }

.ac-search {
  flex: 0 1 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--ctrl-h);
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ac-search:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--ring); }
.ac-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  font-size: var(--fs-input);
  color: var(--ink);
}
.ac-search input:focus { outline: none; }
.ac-search input::-webkit-search-cancel-button { cursor: pointer; }

.ac-count { margin: 14px 0 0; color: var(--muted-2); font-size: var(--fs-xs); font-weight: 600; }

.ac-receipt {
  /* holds the absolutely positioned .sr-only label so the scrolling table clips it */
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  margin: -9px 0;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-700);
  font-size: 15px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ac-receipt:hover { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-800); text-decoration: none; }
.ac-receipt:active { transform: scale(.94); }

/* session notices rendered by the route as a line of HTML */
.ac-notice { margin-bottom: var(--sp-4); grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; border-style: solid; }
.ac-notice i { font-size: 18px; }
.ac-notice.is-ok { background: var(--ok-bg); border-color: #b8f0d5; color: var(--accent-700); }
.ac-notice.is-bad { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-2); }
.ac-notice.is-wait { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

.ac-bal-act { flex: none; background: #fff; border-color: transparent; color: var(--brand-800); box-shadow: var(--sh-md); }
.ac-bal-act:hover { background: #fff; color: var(--brand-700); }

.ac-tablewrap {
  margin: 0 -6px;
  padding: 0 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.ac-table caption { display: none; }
.ac-table th {
  /* keeps any absolutely positioned label inside the scroller's clip box */
  position: relative;
  padding: 0 12px 11px;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ac-table td {
  padding: 13px 12px;
  vertical-align: middle;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-table tbody tr:hover td { background: var(--brand-050); }
.ac-table .ac-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-table .ac-id { font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-table .ac-desc { min-width: 190px; }
.ac-table .ac-desc b { display: block; color: var(--navy-800); font-weight: 700; }
.ac-table .ac-desc span { color: var(--muted); font-size: var(--fs-xs); }

/* status chip */
.ac-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}
.ac-pill--ok { background: var(--ok-bg); color: var(--accent-700); }
.ac-pill--wait { background: var(--warn-bg); color: var(--warn); }
.ac-pill--bad { background: var(--danger-bg); color: var(--danger-2); }

/* ------------------------------ ledger rows ------------------------------ */
.ac-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.ac-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}
.ac-item-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 16px;
  background: var(--brand-050);
  color: var(--brand-700);
}
.ac-item-ico--in { background: var(--ok-bg); color: var(--accent-600); }
.ac-item-ico--out { background: var(--danger-bg); color: var(--danger-2); }
/* referrer rows show an initial instead of a glyph */
.ac-item-ico--name { font-family: Poppins, Inter, sans-serif; font-size: 17px; font-weight: 800; }
.ac-item-txt { min-width: 0; }
.ac-item-txt b { display: block; color: var(--navy-800); font-size: var(--fs-ui); font-weight: 700; }
.ac-item-txt span { color: var(--muted); font-size: var(--fs-xs); }
.ac-item-amt { text-align: right; font-variant-numeric: tabular-nums; }
.ac-item-amt b { display: block; font-family: Poppins, Inter, sans-serif; font-size: var(--fs-ui); font-weight: 800; color: var(--navy-800); }
/* :not([class]) so the running-balance line is styled without pulling the status pill onto muted colours */
.ac-item-amt > span:not([class]) { font-size: var(--fs-xs); color: var(--muted-2); }
.ac-item-amt .ac-pill { margin-top: 7px; }
.ac-item--in .ac-item-amt b { color: var(--accent-700); }
.ac-item--out .ac-item-amt b { color: var(--danger-2); }

/* reveals the older half of a long statement without a page reload */
.ac-item[hidden], .ac-table tr[hidden] { display: none; }
.ac-more[hidden] { display: none; }
.ac-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap);
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--brand-700);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ac-more:hover { background: var(--brand-050); border-color: var(--brand-100); }

/* ------------------------------ top-up form ------------------------------- */
.ac-topup { display: grid; gap: 14px; }
.ac-topup .rc-chip { flex: 1 1 auto; text-align: center; }
.ac-topup .rc-continue { width: 100%; }

/* ------------------------------- prose pages ------------------------------ */
/* The body copy is stored as raw HTML in the database, so every element that
   can come back from a biller/admin editor is reset onto the AexoPe scale. */
.ac-prose { color: var(--ink-2); font-size: var(--fs-ui); line-height: 1.72; }
.ac-prose > :first-child { margin-top: 0; }
.ac-prose h1, .ac-prose h2, .ac-prose h3, .ac-prose h4 {
  margin: 28px 0 10px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--navy-800);
}
.ac-prose h1 { font-size: clamp(23px, 4vw, 30px); }
.ac-prose h2 { font-size: clamp(20px, 3.4vw, 25px); }
.ac-prose h3 { font-size: clamp(18px, 2.8vw, 21px); }
.ac-prose h4 { font-size: var(--fs-ui); }
.ac-prose p { margin: 0 0 15px; }
.ac-prose b, .ac-prose strong { color: var(--navy-800); font-weight: 700; }
.ac-prose a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ac-prose a:hover { color: var(--brand-500); }
.ac-prose ul, .ac-prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; }
.ac-prose li { padding-left: 2px; }
.ac-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.ac-prose hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.ac-prose blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--brand-400);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--brand-050);
  color: var(--ink-2);
}
.ac-prose table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.ac-prose table th, .ac-prose table td {
  padding: 11px 13px;
  text-align: left;
  border: 1px solid var(--line);
}
.ac-prose table th { background: var(--brand-050); color: var(--navy-800); font-weight: 700; }

/* contact details, referral code */
.ac-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--brand-050);
  border: 1.5px dashed var(--brand-100);
}
.ac-code b { font-family: Poppins, Inter, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: .06em; color: var(--brand-700); }
.ac-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--tap);
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--brand-700);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ac-copy:hover { background: var(--brand-050); border-color: var(--brand-100); }
.ac-copy:active { transform: scale(.97); }
.ac-copy.is-done { color: #fff; background: var(--accent-600); border-color: transparent; }

/* account facts */
.ac-dl { display: grid; margin: 0; }
.ac-dl > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ac-dl > div:first-child { padding-top: 0; }
.ac-dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.ac-dl dt { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.ac-dl dd { margin: 0; color: var(--navy-800); font-size: var(--fs-ui); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* form actions */
.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-5);
}
.ac-actions .rc-continue { min-width: 210px; }

/* standalone pages that sit outside the account tabs */
.ac-solo { max-width: 480px; margin: 0 auto; }
.ac-solo .rc-continue { width: 100%; }
.ac-solo-note { margin: 14px auto 0; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.ac-solo-note a { color: var(--brand-700); font-weight: 600; text-decoration: none; }
.ac-solo-note a:hover { text-decoration: underline; }

/* rail cards */
.ac-sec-first { margin-top: 0; }
.ac-rail-note { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.ac-rail-note a { color: var(--brand-700); font-weight: 600; overflow-wrap: anywhere; }
.ac-code + .ac-rail-note { margin: 12px 0 14px; }
.rc-continue--block { display: flex; width: 100%; }
.ac-links a { color: var(--brand-700); font-weight: 600; text-decoration: none; }
.ac-links a:hover { text-decoration: underline; }
.ac-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--brand-800);
  font-size: var(--fs-ui);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ac-ghost:hover { color: var(--brand-700); border-color: var(--brand-100); background: var(--brand-050); text-decoration: none; }

/* notices that come out of $_SESSION as prebuilt alert HTML */
.ac-msg :is(.alert, .alert-success, .alert-danger) {
  margin: 0 0 var(--sp-4);
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.55;
}
.ac-msg .alert-success { border-color: #b8f0d5; background: var(--ok-bg); color: var(--accent-700); }
.ac-msg .alert-danger { border-color: var(--danger-line); background: var(--danger-bg); color: var(--danger-2); }
.ac-msg a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------- footer -------------------------------- */
.ac-foot {
  margin-top: clamp(28px, 5vw, 52px);
  padding: clamp(22px, 4vw, 34px) var(--gutter);
  background: #fff;
  border-top: 1px solid var(--line);
}
.ac-foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  text-align: center;
}
.ac-foot-brand { display: inline-flex; min-height: var(--tap); align-items: center; }
.ac-foot-brand img { height: 28px; width: auto; }
.ac-foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.ac-foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ac-foot-links a:hover { color: var(--brand-700); background: var(--brand-050); text-decoration: none; }
.ac-foot-fine { margin: 0; color: var(--muted-2); font-size: var(--fs-xs); }

/* ------------------------------ wide layouts ----------------------------- */
@media (min-width: 720px) {
  .ac-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ac-foot-inner { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; }
  .ac-foot-inner .ac-foot-links { justify-content: flex-end; }
  .ac-foot-fine { text-align: right; }
}

@media (min-width: 1080px) {
  .ac-grid { grid-template-columns: minmax(0, 1.32fr) minmax(min(340px, 32%), .68fr); gap: var(--sp-6); }
  .ac-rail { position: sticky; top: calc(var(--bar-h) + 18px); }
}

/* ------------------------------ narrow fixes ----------------------------- */
/* Below 620 the order table reflows into labelled cards — a horizontal
   scrollbar across eight columns is unusable on a phone. */
@media (max-width: 619.98px) {
  /* the four status filters become a two-by-two grid; a sideways strip would
     hide "In progress" and "Failed" behind a scroll the user cannot see */
  .ac-tools .rc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
  .ac-tools .rc-tab { justify-content: center; padding: 0 8px; white-space: normal; }
  .ac-tools .ac-search { flex: 1 1 100%; }
  .ac-tablewrap { margin: 0; overflow: visible; }
  .ac-table thead { display: none; }
  .ac-table, .ac-table tbody, .ac-table tr, .ac-table td { display: block; width: 100%; }
  .ac-table tbody tr {
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: var(--sh-xs);
  }
  .ac-table tbody tr:last-child { margin-bottom: 0; }
  .ac-table tbody tr:hover td { background: transparent; }
  .ac-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-2);
    text-align: left;
  }
  .ac-table td:last-child { border-bottom: 0; }
  .ac-table td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
  .ac-table .ac-num, .ac-table .ac-id { text-align: right; }
  .ac-table .ac-desc b, .ac-table .ac-desc span { display: inline; }
  .ac-item { grid-template-columns: 38px minmax(0, 1fr); row-gap: 6px; }
  .ac-item-ico { width: 38px; height: 38px; font-size: 15px; }
  .ac-item-amt { grid-column: 2; text-align: left; }
}

@media (max-width: 559.98px) {
  /* a sideways strip hides two of the four destinations on a phone, so the nav
     becomes a two-by-two grid of full-width pills instead */
  .ac-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
  .ac-navlink { width: 100%; justify-content: center; padding: 0 10px; }
  .ac-intro { align-items: flex-start; }
  .ac-lead { flex: 1 1 100%; }
  .ac-bal { padding: 18px; }
  .ac-actions > * { flex: 1 1 100%; }
}

@media (max-width: 430px) {
  .ac-stats { grid-template-columns: minmax(0, 1fr); }
  .ac-code { flex-direction: column; align-items: stretch; }
  .ac-copy { justify-content: center; }
  .ac-dl dd { text-align: left; }
}

/* ------------------------------ motion prefs ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ac-navlink, .ac-copy, .ac-ghost, .ac-foot-links a, .ac-table tbody tr { transition: none; }
  .ac-more { transition: none; }
  .ac-navlink:active, .ac-copy:active { transform: none; }
}
