  /* Live transactions — hero panel
     ─────────────────────────────────────────────────
     Dark glass panel mirroring the rest of the design system. Renders a fixed
     stack of recent transactions; new rows fade in at the top while the
     bottom row fades out every ~9s. Status pills carry the visual hierarchy:
     PAID (green), AUTHORIZED (blue), PENDING (muted slate), REFUNDED (amber).
     Generic, representative data only — no real PANs, no real merchants.
  */

  .sc-hero {
    position: relative;
    margin: 4px 0 56px;
    isolation: isolate;
  }

  .sc-stage {
    position: relative;
    border-radius: 22px;
    padding: 44px 48px;
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.6fr);
    gap: 48px;
    align-items: center;
    background:
      radial-gradient(closest-side at 80% 20%, rgba(44,135,214,0.10), transparent 70%),
      linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.30) 100%);
    border: 1px solid rgba(255,255,255,0.65);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow:
      0 24px 60px -28px rgba(15,42,68,0.25),
      inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
  }
  .sc-copy { position: relative; z-index: 2; max-width: 460px; min-width: 0; }
  .sc-copy h1 {
    font-size: 38px; font-weight: 700; letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0 0 16px; line-height: 1.1;
    text-wrap: balance;
  }
  .sc-copy .lede {
    font-size: 16px; line-height: 1.55; color: var(--ink-600);
    margin: 0;
    text-wrap: pretty;
  }

  /* Dark inner panel — the "live" component */
  .sc-panel {
    position: relative;
    border-radius: 18px;
    padding: 26px 28px 28px;
    min-width: 0;
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(44,135,214,0.10), transparent 60%),
      linear-gradient(180deg, #0b1f33 0%, #07182a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
      0 30px 60px -24px rgba(7,24,42,0.55),
      inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
    color: #d6e2ee;
  }
  .sc-panel::before {
    /* subtle scanline-ish noise — purely aesthetic */
    content: "";
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
    pointer-events: none;
  }

  .sc-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 14px;
  }
  .sc-title {
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(214,226,238,0.65);
  }
  .sc-title .dot {
    color: rgba(214,226,238,0.35);
    margin: 0 8px;
  }
  .sc-live {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #2dd4a8;
  }
  .sc-live .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: #2dd4a8;
    box-shadow: 0 0 0 0 rgba(45,212,168,0.55);
    animation: sc-pulse 1.8s ease-out infinite;
  }
  @keyframes sc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(45,212,168,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(45,212,168,0); }
    100% { box-shadow: 0 0 0 0 rgba(45,212,168,0); }
  }

  /* Fixed-height list — size is locked so incoming/outgoing rows can't
     reflow the panel. Height = 5 rows (68px) + 4 gaps (14px) = 396px. */
  .sc-list {
    --row-h: 68px;
    --row-gap: 14px;
    --row-count: 5;
    position: relative;
    height: calc(var(--row-h) * var(--row-count) + var(--row-gap) * (var(--row-count) - 1));
    list-style: none; margin: 0; padding: 0;
  }

  .sc-row {
    /* Absolutely positioned within the fixed-height list so reordering —
       and the enter/exit animations — never affect the panel's height. */
    position: absolute;
    left: 0; right: 0;
    height: var(--row-h, 68px);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 96px;
    align-items: center;
    gap: 16px;
    padding: 0 16px 0 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: rgba(255,255,255,0.018);
    /* Transform-only transitions — no layout properties animate. */
    transition:
      transform 0.55s cubic-bezier(0.22, 0.85, 0.28, 1),
      opacity 0.45s ease;
    will-change: transform, opacity;
  }

  /* Entry / exit are pure transform+opacity — no layout shifts. */
  .sc-row.enter-from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  .sc-row.exit-to    { opacity: 0; transform: translateY(12px) scale(0.985); }

  /* Brand mark for each payment method. Background is the brand color,
     foreground is a small wordmark / glyph rendered in CSS. */
  .sc-brand {
    width: 38px; height: 26px;
    border-radius: 5px;
    display: grid; place-items: center;
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  }
  .sc-brand.visa       { background: #1a1f71; letter-spacing: 0.06em; }
  .sc-brand.mastercard { background: #0a0a0a; padding: 0; position: relative; }
  .sc-brand.mastercard::before,
  .sc-brand.mastercard::after {
    content: "";
    position: absolute;
    width: 13px; height: 13px;
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
  }
  .sc-brand.mastercard::before { background: #eb001b; left: 7px; }
  .sc-brand.mastercard::after  { background: #f79e1b; right: 7px; mix-blend-mode: screen; }
  .sc-brand.amex       { background: #2e77bb; letter-spacing: 0.04em; }
  .sc-brand.applepay   { background: #000; font-size: 10px; letter-spacing: -0.01em; }
  .sc-brand.googlepay  { background: #fff; color: #3c4043; font-size: 9px; }
  .sc-brand.paypal     { background: #003087; font-size: 9px; letter-spacing: 0; }
  .sc-brand.paypal .py { color: #009cde; }

  .sc-meta {
    min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
  }
  .sc-meta .id {
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    font-size: 12.5px; font-weight: 500;
    color: rgba(214,226,238,0.95);
    letter-spacing: 0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sc-meta .sub {
    font-size: 12px;
    color: rgba(214,226,238,0.55);
    letter-spacing: 0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 8px;
  }
  .sc-meta .sub .pan {
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    color: rgba(214,226,238,0.42);
    letter-spacing: 0.03em;
  }
  .sc-meta .sub .dot {
    color: rgba(214,226,238,0.25);
  }

  .sc-amount {
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    font-size: 15px; font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    text-align: right;
    white-space: nowrap;
  }
  .sc-amount .ccy {
    font-size: 11px;
    color: rgba(214,226,238,0.45);
    margin-left: 4px;
    font-weight: 500;
  }

  .sc-pill {
    font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    white-space: nowrap;
    justify-self: end;
  }
  .sc-pill .pip {
    width: 5px; height: 5px; border-radius: 50%;
    flex-shrink: 0;
  }
  .sc-pill.paid {
    background: rgba(45,212,168,0.14);
    color: #2dd4a8;
    border: 1px solid rgba(45,212,168,0.25);
  }
  .sc-pill.paid .pip { background: #2dd4a8; }
  .sc-pill.authorized {
    background: rgba(96,165,250,0.14);
    color: #7fb6ff;
    border: 1px solid rgba(96,165,250,0.28);
  }
  .sc-pill.authorized .pip { background: #7fb6ff; }
  .sc-pill.pending {
    background: rgba(255,255,255,0.05);
    color: rgba(214,226,238,0.78);
    border: 1px solid rgba(255,255,255,0.10);
  }
  .sc-pill.pending .pip {
    background: rgba(214,226,238,0.55);
    animation: sc-blink 1.4s ease-in-out infinite;
  }
  .sc-pill.refunded {
    background: rgba(245,178,98,0.13);
    color: #f5b262;
    border: 1px solid rgba(245,178,98,0.28);
  }
  .sc-pill.refunded .pip { background: #f5b262; }
  @keyframes sc-blink {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
  }

  /* Soft top/bottom mask so rows fade against the panel edges */
  .sc-list-wrap {
    position: relative;
    mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    padding: 6px 0 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .sc-row, .sc-row.enter-from, .sc-row.exit-to { transition: none; }
    .sc-live .pulse, .sc-pill.pending .pip { animation: none; }
  }

  @media (max-width: 1180px) {
    .sc-stage { grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.45fr); gap: 36px; padding: 38px 38px; }
    .sc-copy h1 { font-size: 34px; }
    .sc-row { grid-template-columns: 42px minmax(0, 1fr) auto 90px; gap: 14px; }
  }
  @media (max-width: 980px) {
    .sc-stage { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
    .sc-copy h1 { font-size: 32px; }
    .sc-panel { padding: 22px 18px 22px; }
    .sc-list { --row-h: 64px; --row-gap: 10px; }
    .sc-row { grid-template-columns: 38px minmax(0, 1fr) auto 88px; padding: 0 12px; gap: 12px; }
  }
  @media (max-width: 560px) {
    .sc-row { grid-template-columns: 36px minmax(0, 1fr) 84px; gap: 10px; }
    .sc-amount { display: none; }
  }

/* ── Second Chance redesign — panel full-width below the text,
   horizontal rows with status icon + meta + amount + pill ─────── */

/* Hero fills the first screen so the next section sits below the fold */
.sc-hero {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  margin: 0 0 56px;
}
.sc-hero .sc-stage { width: 100%; }

/* Two-column hero stage: text on the left, transactions panel on the right.
   Panel gets the bigger share so 4 wide rows fit comfortably. */
.sc-stage {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.6fr);
  gap: 28px;
  padding: 32px 32px;
  align-items: center;
}
.sc-copy { text-align: left; max-width: none; margin: 0; }
.sc-list {
  --row-h: 60px;
  --row-gap: 12px;
  --row-count: 4;
}
.sc-row { height: 60px; }
.sc-panel { padding: 18px 22px 20px; }
.sc-head { padding-bottom: 12px; margin-bottom: 10px; }

/* About uses a wider main column so the 2-col hero has breathing room */
body[data-page='about'] .main { max-width: 1100px; }
.sc-copy {
  text-align: center;
  margin: 0 auto;
  max-width: 640px;
}
.sc-copy .lede { margin-left: auto; margin-right: auto; }
.sc-panel {
  width: 100%;
  max-width: none;
}

/* New row layout: brand chip | meta single-line | amount | pill */
.sc-row {
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 0 18px;
}

/* Most recent row only gets the teal active border */
.sc-row:first-child {
  border-color: rgba(45,212,168,0.40);
  background: rgba(45,212,168,0.05);
}

/* Status icon square — replaces the brand mark */
.sc-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans, 'DM Sans', -apple-system, sans-serif);
  flex-shrink: 0;
  line-height: 1;
}
.sc-icon.paid {
  background: #2dd4a8;
  color: #052b25;
}
.sc-icon.authorized {
  background: rgba(127,182,255,0.14);
  color: #7fb6ff;
  border: 1px solid rgba(127,182,255,0.28);
}
.sc-icon.pending {
  background: rgba(255,255,255,0.04);
  color: rgba(214,226,238,0.65);
  border: 1px solid rgba(255,255,255,0.08);
}
.sc-icon.refunded {
  background: rgba(245,178,98,0.14);
  color: #f5b262;
  border: 1px solid rgba(245,178,98,0.28);
}

/* Single-line meta: order id · method · pan (override original column flex) */
.sc-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  color: rgba(214,226,238,0.95);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.sc-meta > span { line-height: 1; }
.sc-meta .sep { color: rgba(214,226,238,0.30); }
.sc-meta .pan { color: rgba(214,226,238,0.55); }

.sc-amount {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px; font-weight: 600;
  color: #fff;
  text-align: right;
  white-space: nowrap;
  margin-right: 4px;
  letter-spacing: 0.01em;
}

/* Pills — slightly bigger than the original to match the new horizontal row */
.sc-pill { padding: 7px 14px; font-size: 10.5px; letter-spacing: 0.16em; }

@media (max-width: 720px) {
  .sc-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 0 12px; gap: 10px; }
  .sc-amount { display: none; }
}
