:root {
  --bg: #dce8de;
  --panel: #f8fbf7;
  --panel-soft: #e7f0e7;
  --panel-gloss: rgba(255, 255, 255, .24);
  --line: #afc3b2;
  --text: #102016;
  --muted: #455a4c;
  --accent: #25a45a;
  --accent-dark: #18783f;
  --accent-soft: #e4f5e8;
  --accent-mist: rgba(37, 164, 90, .08);
  --success: #17824f;
  --warning: #b57816;
  --danger: #b43d42;
  --shadow: 0 20px 44px rgba(18, 42, 25, .13);
  --shadow-tight: 0 12px 28px rgba(18, 42, 25, .11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #d6e3d8 0%, #cddccf 100%) !important;
  color: var(--text);
}

button, input, select { font: inherit; }
button:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}
button {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

button:hover {
  transform: translateY(-1px);
}

.private-beta-page {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(20, 184, 166, .12), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, .10), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef6fb 100%);
}

.private-beta-mode .private-beta-page {
  display: grid;
}

.private-beta-mode .page-shell,
.private-beta-mode .setup-dashboard-page,
.private-beta-mode .modal,
.private-beta-mode .setup-analysis-modal,
.private-beta-mode .review-center-help-modal,
.private-beta-mode .setup-start-over-modal {
  display: none !important;
}

.private-beta-mode {
  min-height: 100vh;
  background: #f8fafc !important;
}

.private-beta-hero {
  width: min(100%, 760px);
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 64px 42px 38px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.private-beta-brand {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.private-beta-copy {
  display: grid;
  gap: 14px;
}

.private-beta-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.private-beta-copy h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .95;
  color: #0f172a;
  letter-spacing: 0;
}

.private-beta-copy p:last-child {
  max-width: 560px;
  margin: 0 auto;
  color: #475569;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 650;
}

.private-beta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.private-beta-primary,
.private-beta-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.private-beta-primary:hover,
.private-beta-secondary:hover {
  transform: translateY(-1px);
}

.private-beta-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 16px 32px rgba(37, 99, 235, .20);
}

.private-beta-secondary {
  color: #0f172a;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(148, 163, 184, .40);
}

.private-beta-contact {
  color: #2563eb;
  font-weight: 750;
  text-decoration: none;
}

.private-beta-contact:hover {
  text-decoration: underline;
}

.private-beta-hero footer {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 640px) {
  .private-beta-page {
    padding: 18px;
  }

  .private-beta-hero {
    min-height: calc(100vh - 36px);
    padding: 42px 22px 28px;
  }

  .private-beta-copy h1 {
    font-size: 48px;
  }

  .private-beta-copy p:last-child {
    font-size: 17px;
  }

  .private-beta-actions,
  .private-beta-primary,
  .private-beta-secondary {
    width: 100%;
  }
}

.page-shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 16px 18px 22px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(175, 195, 178, .64);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(18, 42, 25, .09);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 18%;
  background: linear-gradient(180deg, var(--panel-gloss), rgba(255, 255, 255, 0));
  pointer-events: none;
  display: none !important;
}

.surface-flash {
  animation: surfaceFlash .32s ease;
}

.selected-wallet-flash {
  animation: selectedWalletFlash 1.1s ease-in-out 3;
}

@keyframes surfaceFlash {
  0% {
    box-shadow: 0 0 0 rgba(37, 164, 90, 0);
    transform: translateY(0);
  }
  45% {
    box-shadow: 0 14px 30px rgba(37, 164, 90, .16);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: var(--shadow-tight);
    transform: translateY(0);
  }
}

@keyframes selectedWalletFlash {
  0% {
    border-color: rgba(190, 45, 45, .35);
    box-shadow: 0 0 0 0 rgba(190, 45, 45, 0), 0 12px 26px rgba(18, 42, 25, .10);
  }
  38% {
    border-color: rgba(190, 45, 45, .96);
    box-shadow: 0 0 0 6px rgba(190, 45, 45, .18), 0 16px 32px rgba(190, 45, 45, .14);
  }
  100% {
    border-color: rgba(190, 45, 45, .35);
    box-shadow: 0 0 0 0 rgba(190, 45, 45, 0), 0 12px 26px rgba(18, 42, 25, .10);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 42px;
  min-height: 346px;
  padding: 22px 30px 18px;
  align-items: start;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .88), transparent 36%),
    linear-gradient(180deg, rgba(252, 253, 252, .94), rgba(242, 247, 243, .92)) !important;
  position: relative;
}

.hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 0;
  position: relative;
}

.hero-section {
  gap: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 860px;
}

.hero-actions .primary-btn,
.hero-actions .secondary-btn,
.hero-actions .method-btn {
  min-height: 44px;
  padding: 10px 18px;
}

.hero-kicker {
  justify-self: start;
  width: fit-content;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(228, 245, 232, .92);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-callout {
  font-size: 48px;
  font-weight: 950;
  line-height: .95;
  color: var(--accent-dark);
}

.pill, .step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* SmartCard Home Logo Button */
.smartcard-home-logo {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 248, 242, 0.98), rgba(227, 239, 229, 0.98));
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(18, 42, 25, 0.08);
  cursor: pointer;
  z-index: 3;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.smartcard-home-logo:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 16px 30px rgba(18, 42, 25, 0.12);
}

.smartcard-home-logo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(37, 164, 90, 0.96), rgba(24, 120, 63, 0.98));
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.smartcard-home-logo__text {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.smartcard-home-logo__arrow {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
}

.smartcard-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 0;
  padding: 8px 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smartcard-logo:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.hero .smartcard-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid rgba(37, 164, 90, .22);
  border-radius: 14px;
  background: rgba(238, 248, 241, .82);
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.hero .smartcard-logo::before {
  content: "★";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(180deg, #24a65d, #13773e);
  color: #fff;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    0 8px 18px rgba(24, 120, 63, .18);
}

.hero .smartcard-logo:hover {
  background: rgba(232, 248, 237, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  transform: none;
}

h1 {
  max-width: 600px;
  margin: 0 0 2px;
  font-size: 46px;
  line-height: .98;
  letter-spacing: 0;
  color: #0f1f15 !important;
}

.hero-headline-accent {
  display: block;
  color: var(--accent-dark);
}

h2 { margin: 8px 0 6px; font-size: 28px; color: #0f1f15 !important; }
h3 { margin: 8px 0; font-size: 22px; color: #0f1f15 !important; }
h4 { margin: 8px 0 16px; font-size: 17px; }
p { line-height: 1.55; }
.muted { color: #30463a; }
.small { font-size: 12px; }

.hero p {
  max-width: 590px;
  margin: 0;
  font-size: 16px;
  color: #1c2e24 !important;
  opacity: 1 !important;
}

.hero-actions {
  display: grid;
  grid-template-columns: 150px 250px 240px;
  align-items: center;
  gap: 12px 18px;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
}

.hero-actions #heroUploadBtn {
  grid-column: 1 / -1;
  justify-self: start;
  width: 440px;
  min-width: 0;
  min-height: 52px;
  font-size: 16px;
  box-shadow: 0 18px 34px rgba(24, 120, 63, .2);
}

.hero-actions .secondary-btn,
.hero-actions .connect-soon-btn {
  width: 100%;
  min-width: 150px;
  min-height: 48px;
  padding-inline: 18px;
  border-color: rgba(210, 221, 212, .92) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 10px 18px rgba(18, 42, 25, .05);
}

.hero-actions #heroDemoBtn {
  grid-column: 1;
}

.hero-actions #heroManualBtn {
  grid-column: 2;
}

.hero-actions #heroConnectBtn {
  grid-column: 3;
}

.hero-actions .connect-soon-btn {
  min-width: 240px;
}

.hero-actions #heroUploadBtn::before {
  content: "↗";
  margin-right: 9px;
  font-weight: 950;
}

.hero-action-divider {
  grid-column: 1 / -1;
  width: 440px;
  text-align: center;
  max-width: 440px;
  position: relative;
  color: #647568;
  font-size: 13px;
  font-weight: 850;
  margin: 0 0 -2px;
}

.hero-action-divider::before,
.hero-action-divider::after {
  content: "";
  display: inline-block;
  width: 150px;
  height: 1px;
  margin: 0 14px 3px;
  background: rgba(175, 195, 178, .62);
}

.hero-support-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  color: #6a7a6e;
  font-size: 13px;
  font-weight: 800;
}

.hero-text-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #2d6f47;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 0;
  padding: 0;
  text-decoration: none;
}

.hero-text-link:hover,
.hero-text-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  outline: none;
  transform: none;
}

#heroSubheadline {
  max-width: 600px;
}

.hero-side {
  display: grid;
  gap: 0;
  align-content: start;
  align-self: center;
}

.hero-summary-card {
  padding: 0;
  border: 1px solid rgba(175, 195, 178, .56);
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 16px 36px rgba(18, 42, 25, .10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-box, .summary-box, .chart-box, .headline-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #f3f7f3 !important;
  position: relative;
  overflow: hidden;
}

.hero-box::after, .summary-box::after, .chart-box::after, .headline-box::after, .empty-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  display: none !important;
}

.hero-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 104px;
  padding: 20px 22px 20px 94px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, .54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .68),
    0 10px 22px rgba(39, 82, 49, .05);
}

.hero-box:first-child {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.hero-box:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.hero-box::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(228, 245, 232, .95);
  color: var(--accent-dark);
  font-size: 25px;
  font-weight: 900;
  transform: translateY(-50%);
}

.hero-box:nth-child(1)::before { content: "▭"; }
.hero-box:nth-child(2)::before { content: "□"; }
.hero-box:nth-child(3)::before { content: "↗"; }

.hero-box:hover, .summary-box:hover, .chart-box:hover, .headline-box:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 14px 28px rgba(39, 82, 49, .10);
}

.hero-wallet-summary {
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hero-wallet-summary:hover,
.hero-wallet-summary:focus-visible {
  background: rgba(244, 251, 246, .82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 16px 30px rgba(39, 82, 49, .12);
  outline: none;
}

.hero-box-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-box-label {
  color: #0e1712 !important;
  font-size: 16px;
  font-weight: 950;
}

.hero-value {
  margin-top: 0;
  font-size: 24px;
  font-weight: 950;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

.hero-value-text {
  max-width: 170px;
  color: var(--accent-dark);
  font-size: 16px;
  line-height: 1.15;
  white-space: normal;
}

.hero-trust::before {
  content: "🔒";
  margin-right: 8px;
}

.hero-rate-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  color: var(--ink);
  --progress: 0;
  animation: rewardRateIn .34s ease both;
}

.hero-box.reward-rate-card {
  align-items: center;
  min-height: 134px;
  padding: 20px 22px;
  overflow: hidden;
}

.hero-box.reward-rate-card::before {
  display: none;
  content: none;
}

.hero-box.reward-rate-card > .hero-box-copy {
  display: none;
}

.reward-rate-glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(239, 252, 244, .46)),
    rgba(255, 255, 255, .34);
  border: 1px solid rgba(255, 255, 255, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -1px 0 rgba(35, 120, 74, .08),
    0 18px 38px rgba(39, 82, 49, .13);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.reward-rate-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  position: relative;
  z-index: 1;
  text-align: left;
  overflow-wrap: anywhere;
}

.reward-rate-copy.is-empty {
  align-content: center;
  min-height: 58px;
}

.reward-rate-title,
.reward-rate-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
}

.reward-rate-current {
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.reward-rate-optimal {
  color: var(--green-700);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
}

.reward-rate-delta,
.reward-rate-optimized {
  color: var(--green);
  font-weight: 950;
}

.reward-rate-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  z-index: 1;
  justify-self: end;
  border-radius: 50%;
  background:
    conic-gradient(#168a45 calc(var(--progress) * 1%), rgba(22, 138, 69, .14) 0),
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 14px 28px rgba(27, 118, 67, .18),
    0 0 0 1px rgba(22, 138, 69, .12);
}

.reward-rate-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 6px 14px rgba(22, 78, 45, .08);
}

.reward-rate-ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: transparent;
  line-height: 1;
}

.reward-rate-ring-value {
  color: var(--green-700);
  font-size: 18px;
  font-weight: 950;
}

.reward-rate-ring-inner span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.landing-how-it-works {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 18px 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .76), transparent 38%),
    linear-gradient(180deg, rgba(253, 254, 253, .88), rgba(244, 249, 245, .84));
}

.landing-how-it-works h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.landing-how-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.landing-how-row article {
  display: grid;
  grid-template-columns: 32px 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.landing-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.landing-step-icon,
.empty-preview-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(228, 245, 232, .94);
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 900;
}

.landing-how-row strong,
.empty-preview-benefits strong {
  display: block;
  color: #102016;
  font-size: 14px;
  font-weight: 950;
}

.landing-how-row span:not(.landing-step-number):not(.landing-step-icon),
.empty-preview-benefits span:not(.empty-preview-icon) {
  display: block;
  margin-top: 4px;
  color: #30463a;
  font-size: 13px;
  line-height: 1.35;
}

.landing-step-arrow {
  color: #93a59a;
  font-size: 22px;
  text-align: center;
}

@keyframes rewardRateIn {
  from {
    opacity: 0;
    transform: scale(.98) translateY(3px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.workspace {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  align-items: start;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 12px;
  height: fit-content;
  max-height: none;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .78), transparent 38%),
    linear-gradient(180deg, rgba(253, 254, 253, .94), rgba(241, 247, 242, .96));
  box-shadow: 0 12px 28px rgba(18, 42, 25, .07);
}

.wallet-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wallet-panel-copy {
  max-width: 330px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
}

.wallet-builder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 8px;
}

.browse-cards-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin: 7px 4px 0 auto;
  min-height: 28px;
  padding: 2px 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 950;
  box-shadow: none !important;
}

.wallet-clear-top {
  min-height: 28px;
  padding: 2px 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
  box-shadow: none !important;
}

.wallet-panel-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 21px;
}

.wallet-panel-title span {
  color: #536456;
  font-size: 13px;
  font-weight: 700;
}

.main {
  display: grid;
  gap: 18px;
  align-self: start;
  align-content: start;
  height: auto;
}

.main.upload-analysis-tight {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 0 !important;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fefefd;
  color: var(--text);
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fefefd;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.field-label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 800;
}

.search-wrap { position: relative; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 8;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fefefd;
  box-shadow: var(--shadow);
}

.search-result {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.search-result:hover, .search-result.active { background: var(--accent-soft); }

.card-library {
  display: grid;
  gap: 7px;
  height: 236px;
  max-height: 236px;
  margin-top: 8px;
  padding-right: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height .2s ease;
}

.card-library.card-library-expanded {
  height: 236px;
  max-height: 236px;
}

.library-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 249, 244, .96));
  color: var(--text);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.library-card:hover {
  border-color: rgba(37, 164, 90, .45);
  box-shadow: 0 10px 24px rgba(39, 82, 49, .08);
}

.library-card.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(228, 245, 232, .96), rgba(236, 248, 239, .98));
  box-shadow: 0 10px 24px rgba(37, 164, 90, .12);
}

.library-card-main,
.wallet-card-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.library-card-title {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.12;
}

.library-card-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
}

.library-card-add {
  flex: 0 0 auto;
  min-width: 18px;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font: inherit;
}

.admin-panel textarea {
  resize: vertical;
}

.wallet {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(175, 195, 178, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 12px 26px rgba(18, 42, 25, .10);
}

.inset {
  background: linear-gradient(180deg, rgba(234, 242, 234, .98), rgba(226, 236, 227, .99));
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.wallet-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wallet-row {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(175, 195, 178, .96);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 253, 252, .98), rgba(236, 243, 236, .98));
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.wallet-row:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 164, 90, .45);
  box-shadow: 0 14px 24px rgba(20, 48, 29, .10);
}

.card-thumb {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 48px;
  height: 34px;
  padding: 5px 7px;
  border-radius: 9px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -10px 22px rgba(0, 0, 0, .16),
    0 10px 20px rgba(19, 34, 24, .16);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  isolation: isolate;
}

.card-thumb-fallback::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 9px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  z-index: 1;
}

.card-thumb-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .34), transparent 24px),
    linear-gradient(140deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
  z-index: 0;
}

.card-thumb-logo {
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(175, 195, 178, .72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(238, 246, 240, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    0 10px 20px rgba(19, 34, 24, .12);
}

.card-thumb-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.card-thumb-logo-citi,
.card-thumb-logo-amex {
  border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(135deg, #1477d4, #0757a7);
}

.card-thumb-logo-amex {
  background: linear-gradient(135deg, #1798e6, #006bb6);
}

.card-thumb-logo-chase {
  border-color: rgba(21, 34, 44, .2);
  background: linear-gradient(135deg, #27323d, #090d12);
}

.card-thumb-logo-boa,
.card-thumb-logo-capitalone {
  background: linear-gradient(180deg, #fff, #f4f7f5);
}

.library-card:hover .card-thumb,
.wallet-row:hover .card-thumb {
  transform: translateY(-1px) scale(1.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -10px 22px rgba(0, 0, 0, .16),
    0 13px 24px rgba(19, 34, 24, .20);
}

.card-thumb-top,
.card-thumb-bottom {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-thumb-top {
  align-self: flex-end;
  max-width: 26px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: .92;
  text-align: right;
  text-transform: uppercase;
}

.card-thumb-bottom {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.card-thumb.brand-amex-gold { background: linear-gradient(135deg, #caa66b, #8a6427 55%, #4e3815); }
.card-thumb.brand-amex-platinum { background: linear-gradient(135deg, #b7d8e3, #5e91a9 58%, #2d5870); }
.card-thumb.brand-amex-blue { background: linear-gradient(135deg, #62d1cf, #1498a8 52%, #0a5f76); }
.card-thumb.brand-visa { background: linear-gradient(135deg, #456ef0, #233f9f 56%, #12245e); }
.card-thumb.brand-mastercard { background: linear-gradient(135deg, #f0a35f, #db5a2c 52%, #7c2818); }
.card-thumb.brand-citi { background: linear-gradient(135deg, #55a8ff, #2367c9 54%, #133b83); }
.card-thumb.brand-costco { background: linear-gradient(135deg, #3d83e6, #1762b6 48%, #d13c4b); }
.card-thumb.brand-discover { background: linear-gradient(135deg, #f7b25f, #d76f2c 52%, #71301e); }
.card-thumb.brand-bank { background: linear-gradient(135deg, #7b8790, #4e5b64 54%, #283138); }
.card-thumb.brand-boa { background: linear-gradient(135deg, #2c6dd2, #274b9f 46%, #c13d4b); }
.card-thumb.brand-target { background: linear-gradient(135deg, #ff6863, #d72835 52%, #8f1421); }
.card-thumb.brand-apple {
  background: linear-gradient(135deg, #f3f5f7, #d7dfe5);
  color: #25333b;
}
.card-thumb.brand-wells { background: linear-gradient(135deg, #db544c, #b9232b 54%, #6f141a); }
.card-thumb.brand-paypal { background: linear-gradient(135deg, #31a7ee, #1967c8 52%, #153f8f); }
.card-thumb.brand-amazon { background: linear-gradient(135deg, #44515d, #232f3e 54%, #101822); }
.card-thumb.brand-verizon { background: linear-gradient(135deg, #595959, #2a2a2a 54%, #111); }
.card-thumb.brand-usbank { background: linear-gradient(135deg, #4d7cd2, #254e9b 52%, #b42d3a); }
.card-thumb.brand-capitalone { background: linear-gradient(135deg, #ee4c65, #334fb4 55%, #16275f); }
.card-thumb.brand-chase { background: linear-gradient(135deg, #2f6fd5, #163f88 54%, #082552); }

.wallet-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.32;
}

.wallet-card-top-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.wallet-card-thumb-wrap {
  padding-top: 1px;
  flex: 0 0 auto;
  margin-right: 4px;
}

.wallet-card-thumb-wrap .card-thumb {
  width: 48px;
  height: 34px;
}

.wallet-card-title {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
  word-break: normal;
  overflow-wrap: break-word;
}

.wallet-card-meta {
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.28;
  word-break: normal;
  overflow-wrap: break-word;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
}

.wallet-actions .ghost-btn {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .84);
  white-space: nowrap;
}

.wallet-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.wallet-actions, .method-row, .action-row, .upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ghost-btn, .link-btn, .secondary-btn, .primary-btn, .method-btn {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease;
}

.primary-btn,
.primary-btn.method-btn,
button.primary-btn {
  background-color: #1f8b4b !important;
  color: #ffffff !important;
  border: 1px solid #166f3d !important;
  opacity: 1 !important;
}

.primary-btn:hover,
.primary-btn.method-btn:hover,
button.primary-btn:hover {
  background-color: #176f3b !important;
  color: #ffffff !important;
  border-color: #145f34 !important;
  opacity: 1 !important;
}

.primary-btn:focus,
.primary-btn:focus-visible,
.primary-btn:active {
  background-color: #145f34 !important;
  color: #ffffff !important;
  border-color: #104a28 !important;
  opacity: 1 !important;
}

.primary-btn:active {
  background-color: #145f34 !important;
  color: #ffffff !important;
}

.secondary-btn,
.method-btn {
  background: #ffffff !important;
  color: #102016 !important;
  border: 1px solid #b5cbb9 !important;
}

.secondary-btn:hover,
.ghost-btn:hover,
.link-btn:hover,
.method-btn:hover {
  background: #e6efe8 !important;
  color: #102016 !important;
  border-color: rgba(175, 195, 178, .98);
  box-shadow: 0 8px 16px rgba(18, 42, 25, .06);
}

.secondary-btn:focus-visible,
.ghost-btn:focus-visible,
.link-btn:focus-visible,
.method-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 164, 90, .12);
}

.secondary-btn:active,
.ghost-btn:active,
.link-btn:active,
.method-btn:active {
  transform: translateY(0);
  background: #e7eee7;
}

.method-btn.active {
  background: #e8f2e8;
  border-color: rgba(37, 164, 90, .26);
}

.tertiary-like {
  border-color: rgba(200, 217, 193, .9);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 18px rgba(39, 82, 49, .06);
}

.connect-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 164, 90, .08);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.empty-state-card {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .76), transparent 38%),
    linear-gradient(180deg, rgba(253, 254, 253, .92), rgba(244, 249, 245, .88)) !important;
  border-color: rgba(175, 195, 178, .62);
  box-shadow: 0 14px 30px rgba(18, 42, 25, .07);
}

.empty-state-inner {
  display: grid;
  gap: 10px;
  max-width: none;
  text-align: center;
  align-content: start;
  justify-items: center;
  width: 100%;
  padding-top: 0;
}

.empty-state-label {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(228, 245, 232, .9);
  color: #1a5f39;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.empty-state-inner h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  color: #102016;
  font-weight: 950;
}

.empty-state-inner p {
  margin: 0;
  max-width: 620px;
  color: #1c2e24 !important;
  opacity: 1 !important;
}

.empty-actions-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  padding-top: 0;
}

.empty-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.empty-actions-primary {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.empty-actions-secondary {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.empty-action-divider {
  color: #68776c;
  font-size: 13px;
  font-weight: 850;
}

.empty-actions-primary .primary-btn {
  min-width: 320px;
}

.empty-actions-secondary .secondary-btn,
.empty-actions-secondary .method-btn,
.empty-actions-secondary .connect-soon-btn {
  min-width: 230px;
}

.empty-actions .method-btn {
  min-height: 42px;
  padding: 9px 16px;
  box-shadow: 0 8px 18px rgba(18, 42, 25, .08);
}

.empty-actions .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  margin-right: 10px;
  font-size: 16px;
  line-height: 1;
}

.empty-actions .method-btn.active {
  box-shadow: 0 12px 24px rgba(37, 164, 90, .2);
}

.empty-actions .secondary-like {
  box-shadow: 0 8px 16px rgba(18, 42, 25, .08);
}

.empty-actions .demo-like {
  background: linear-gradient(180deg, rgba(37, 164, 90, .96), rgba(25, 125, 66, .98)) !important;
  border-color: rgba(24, 120, 63, .92) !important;
  color: #f7fff9 !important;
  box-shadow: 0 14px 26px rgba(24, 120, 63, .18);
}

.empty-actions .demo-like:hover {
  background: linear-gradient(180deg, rgba(42, 176, 98, .98), rgba(27, 132, 71, .98)) !important;
}

.hero-trust {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.workflow-bridge {
  margin-top: 0;
  color: #5d7063;
}

.upload-trust-line {
  font-size: 12px;
  line-height: 1.4;
  color: #5f6f63;
  text-align: center;
  margin-top: 2px;
}

.empty-conversion-section {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
  justify-self: center;
}

.empty-preview-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 18px;
}

.empty-preview-benefits article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
}

.how-it-works-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.how-it-works-row article {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid rgba(37, 164, 90, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  text-align: left;
}

.how-it-works-row strong {
  color: #153624;
  font-size: 13px;
  font-weight: 950;
}

.how-it-works-row span {
  color: #435549;
  font-size: 12px;
  line-height: 1.35;
}

.empty-value-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-value-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(37, 164, 90, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #214131;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.empty-preview-copy {
  justify-self: center;
  max-width: 660px !important;
  color: #1c2e24 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.empty-preview-intro {
  justify-self: center;
  max-width: 640px !important;
  color: #214131 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.empty-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(184, 205, 178, .62);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(234, 246, 238, .78), rgba(225, 240, 230, .72));
}

.empty-preview-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 0;
  color: #43624f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.empty-preview-card {
  min-height: 126px;
  padding: 24px 28px;
  border: 0;
  border-right: 1px solid rgba(184, 205, 178, .52);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.empty-preview-card:last-child {
  border-right: 0;
}

.empty-preview-label {
  color: #46584d;
  font-size: 12px;
  font-weight: 800;
}

.empty-preview-value {
  margin-top: 9px;
  font-size: 27px;
  font-weight: 950;
  color: var(--accent-dark);
  line-height: 1;
}

.empty-preview-trust {
  align-self: end;
  color: #f4b400;
  font-size: 16px;
  font-weight: 900;
}

.empty-preview-trust span {
  margin-left: 12px;
  color: #405446;
  font-size: 13px;
  font-weight: 700;
}

.empty-preview-foot,
.empty-preview-meta,
.empty-preview-feedback {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
}

.empty-preview-foot,
.empty-preview-meta {
  color: #435549;
}

.empty-preview-feedback {
  color: #204a31;
  font-weight: 800;
}

.empty-preview-bar-group {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.empty-preview-bar-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #435549;
}

.empty-preview-bar-rail {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(223, 234, 221, .95), rgba(233, 240, 231, .95));
  box-shadow: inset 0 1px 2px rgba(28, 45, 32, .08);
}

.empty-preview-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #25a45a, #7ed393);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.empty-preview-bar.fill-wide { width: 78%; }
.empty-preview-bar.fill-mid { width: 52%; }
.empty-preview-bar.fill-short { width: 31%; }

/* Homepage reference redesign */
body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .56), transparent 34%),
    linear-gradient(180deg, #e3eee5 0%, #d9e8dc 100%) !important;
}

.page-shell {
  max-width: 1480px;
  padding: 4px 34px 22px;
}

.card {
  border-radius: 10px;
  border-color: rgba(174, 195, 180, .7);
  box-shadow: 0 10px 24px rgba(24, 48, 32, .08);
}

.hero {
  grid-template-columns: minmax(0, 1fr) 468px;
  grid-template-rows: auto auto;
  gap: 26px 56px;
  min-height: 0;
  padding: 26px 32px 12px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .95), transparent 35%),
    linear-gradient(180deg, rgba(254, 255, 254, .98), rgba(246, 251, 247, .95)) !important;
}

.hero-copy {
  gap: 12px;
}

.hero .smartcard-logo {
  min-height: 48px;
  padding: 8px 14px 8px 8px;
  border-radius: 13px;
  background: rgba(232, 246, 237, .78);
  color: #12823f;
  font-size: 23px;
}

.hero-kicker {
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(32, 143, 74, .36);
  background: rgba(231, 247, 236, .88);
  color: #12723b;
  font-size: 14px;
  font-weight: 950;
}

h1 {
  max-width: 650px;
  margin-top: 4px;
  font-size: 48px;
  line-height: .92;
  font-weight: 950;
}

.hero-headline-accent {
  color: #10823f;
}

.hero p {
  max-width: 610px;
  font-size: 16px;
  line-height: 1.45;
}

.hero-privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin-top: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(174, 195, 180, .78);
  border-radius: 9px;
  background: rgba(250, 254, 251, .72);
}

.hero-privacy-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.hero-privacy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #118242;
}

.hero-privacy-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-privacy-grid strong {
  display: block;
  color: #111b15;
  font-size: 14px;
  font-weight: 950;
}

.hero-privacy-grid span:not(.hero-privacy-icon) {
  display: block;
  margin-top: 4px;
  color: #1d2d23;
  font-size: 13px;
  line-height: 1.32;
}

.hero-actions {
  grid-template-columns: 144px 254px 282px;
  gap: 10px 16px;
  margin-top: 0;
}

.hero-actions #heroUploadBtn {
  width: 400px;
  min-height: 49px;
  border-radius: 21px;
  font-size: 15px;
}

.hero-actions .secondary-btn,
.hero-actions .connect-soon-btn {
  min-height: 45px;
  border-radius: 18px;
  color: #0d1511 !important;
  font-weight: 950;
}

.hero-action-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 400px;
  max-width: 400px;
  justify-self: start;
  text-align: center;
}

.hero-action-divider::before,
.hero-action-divider::after {
  flex: 1 1 0;
  width: auto;
  max-width: 174px;
  margin: 0;
}

.hero-after-upload {
  max-width: 750px;
  padding: 13px 16px;
  border: 1px solid rgba(174, 195, 180, .72);
  border-radius: 8px;
  background: rgba(250, 254, 251, .74);
}

.hero-after-title {
  color: #128242;
  font-size: 14px;
  font-weight: 950;
}

.hero-after-title::before {
  content: "✣";
  margin-right: 8px;
}

.hero-after-upload p {
  max-width: none;
  margin: 3px 0 6px;
  font-size: 13px;
}

.hero-after-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #122018;
  font-size: 13px;
  line-height: 1.35;
}

.hero-after-points span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border: 1px solid rgba(18, 130, 66, .72);
  border-radius: 50%;
  color: #128242;
  font-size: 11px;
  font-weight: 950;
}

.hero-issuer-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 750px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(174, 195, 180, .7);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.hero-issuer-strip span {
  color: #101a14;
  font-size: 12px;
  font-weight: 900;
}

.hero-issuer-strip img {
  display: block;
  max-width: 84px;
  max-height: 20px;
  object-fit: contain;
}

.hero-issuer-strip strong {
  color: #161f1a;
  font-size: 16px;
  line-height: 1;
}

.hero-issuer-strip .issuer-more-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(24, 120, 63, .22);
  border-radius: 999px;
  background: rgba(228, 245, 232, .82);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.hero-right-rail {
  grid-column: 2;
  display: grid;
  gap: 26px;
  align-self: start;
  margin-top: 94px;
}

.hero-summary-card {
  align-self: start;
  margin-top: 0;
  border-radius: 20px;
}

.hero-box {
  min-height: 112px;
  padding-left: 94px;
  padding-right: 24px;
}

.hero-box-label {
  font-size: 17px;
}

.hero-value-text {
  max-width: 165px;
  color: #10813f;
  font-size: 16px;
}

.reward-rate-title {
  color: #27382e;
  font-size: 13px;
  font-weight: 700;
}

.hero-reward-note {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 84px;
  padding: 18px 24px;
  border: 1px solid rgba(174, 195, 180, .7);
  border-radius: 15px;
  background: rgba(250, 254, 251, .74);
  box-shadow: 0 10px 22px rgba(24, 48, 32, .06);
}

.hero-reward-trophy {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(226, 244, 232, .96);
  font-size: 24px;
}

.hero-reward-note strong {
  color: #122018;
  font-size: 16px;
  line-height: 1.25;
}

.hero-reward-note strong span {
  color: #118242;
}

.landing-how-it-works {
  margin-top: 10px;
  padding: 8px 26px 12px;
  border-radius: 10px;
}

.workspace {
  grid-template-columns: 438px minmax(0, 1fr);
  margin-top: 10px;
  align-items: stretch;
}

.sidebar {
  border-radius: 10px;
  padding: 15px 16px 13px;
  align-self: stretch;
}

.main {
  gap: 10px;
  align-self: stretch;
  grid-template-rows: 1fr;
}

.empty-state-card {
  height: 100%;
  min-height: 334px;
  padding: 14px 24px 12px;
  border-radius: 10px;
  align-items: stretch;
}

.empty-state-inner {
  align-content: space-between;
  min-height: 100%;
}

.sidebar .wallet-panel-top {
  margin-bottom: 8px;
}

.sidebar .search-wrap input {
  min-height: 46px;
}

.sidebar .card-library {
  height: 220px;
  max-height: 220px;
  gap: 6px;
  margin-top: 8px;
}

.sidebar .card-library.card-library-expanded {
  height: 220px;
  max-height: 220px;
}

.sidebar .library-card {
  min-height: 49px;
  padding: 6px 10px;
  border-radius: 13px;
}

.empty-state-inner h2 {
  font-size: 22px;
}

.empty-state-inner p {
  font-size: 14px;
}

.empty-preview-benefits {
  margin-top: 10px;
  gap: 28px;
}

.empty-preview-benefits article {
  grid-template-columns: 50px minmax(0, 1fr);
}

.empty-preview-icon {
  width: 48px;
  height: 48px;
}

.empty-preview-strip {
  margin-top: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(240, 249, 243, .86), rgba(232, 244, 236, .82));
}

.empty-preview-disclaimer {
  justify-self: start;
  margin-top: 0;
  color: #426550;
  font-size: 12px;
  font-weight: 750;
}

.empty-preview-card {
  min-height: 94px;
  padding: 16px 24px;
  text-align: center;
}

.empty-preview-label {
  font-size: 13px;
  font-weight: 950;
}

.empty-preview-value {
  font-size: 29px;
}

.empty-preview-merchant {
  margin-top: 8px;
  color: #0f1f15;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
}

.empty-preview-meta,
.empty-preview-feedback,
.empty-preview-foot {
  color: #1c2e24;
  font-size: 13px;
}

.empty-preview-feedback {
  color: #118242;
}

.empty-preview-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  color: #31443a;
  font-size: 12px;
  font-weight: 800;
}

.empty-preview-trust span {
  position: relative;
  margin: 0;
  color: #31443a;
  font-size: 12px;
  font-weight: 800;
}

.empty-preview-trust span:not(:first-child)::before {
  content: "•";
  position: absolute;
  left: -11px;
  color: #7b8d81;
}

.empty-preview-trust .trust-lock::before {
  content: "🔒";
  position: static;
  margin-right: 6px;
  color: inherit;
  font-size: 12px;
}

.empty-preview-merchant {
  margin-top: 9px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.empty-preview-nudge {
  justify-self: center;
  color: #5b6c60 !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.step-card, .status-card, .results-section {
  padding: 18px;
  animation: softAppear .18s ease;
  background: #e3ece5 !important;
}

.upload-panel-compact {
  align-self: stretch;
  width: 100%;
  height: auto !important;
  min-height: 0;
}

.upload-panel-compact .upload-empty-space,
.upload-panel-compact .upload-preview-placeholder {
  display: none !important;
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(236, 244, 237, .98), rgba(228, 239, 230, .96)) !important;
  border-color: rgba(175, 195, 178, .96);
}

.demo-banner-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.demo-banner-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 164, 90, .1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.card-load-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 29, 221, .18);
  border-radius: 8px;
  background: rgba(244, 241, 255, .78);
  color: #273755;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.status-text {
  white-space: pre-line;
}

.voice-guide-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.voice-guide-prompt,
.voice-guide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(175, 195, 178, .96);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 248, 243, .96), rgba(252, 253, 252, .98));
  box-shadow: 0 12px 24px rgba(39, 82, 49, .06);
}

.voice-guide-prompt {
  position: sticky;
  top: 10px;
  z-index: 12;
  scroll-margin-top: 12px;
}

.voice-guide-copy {
  min-width: 0;
}

.voice-guide-eyebrow {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.voice-guide-title {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.voice-guide-actions,
.voice-guide-controls {
  flex-wrap: wrap;
}

.voice-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-guide-actions .primary-btn,
.voice-guide-actions .secondary-btn {
  min-height: 38px;
  padding: 8px 14px;
}

.voice-guide-controls {
  justify-content: flex-start;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(231, 243, 234, .98), rgba(247, 251, 248, .98));
}

.demo-guide-continue-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-color: rgba(24, 120, 63, .26);
  color: var(--accent-dark);
  font-weight: 900;
}

.demo-guide-continue-pulse {
  animation: demoGuideContinuePulse 1s ease-in-out 3;
}

@keyframes demoGuideContinuePulse {
  0%, 100% {
    box-shadow: none;
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(37, 164, 90, .16);
    transform: translateY(-1px);
  }
}

.voice-guide-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 164, 90, .1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.demo-hook,
.demo-complete {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(175, 195, 178, .96);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 247, 241, .98), rgba(252, 253, 252, .98));
  box-shadow: 0 14px 28px rgba(39, 82, 49, .07);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}

.demo-hook.visible,
.demo-complete.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-hook {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: #12301d;
}

.demo-hook strong {
  color: var(--accent-dark);
  font-size: 24px;
}

.demo-complete-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  color: #12301d;
}

.demo-complete-sub {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-complete .primary-btn {
  margin-top: 12px;
}

 .guide-focus {
   position: relative;
   background: rgba(254, 226, 226, 0.85); /* stronger red tint */
   border: 2px solid rgba(220, 38, 38, 0.85) !important;
   box-shadow:
     0 0 0 4px rgba(220, 38, 38, 0.15),
     0 24px 48px rgba(220, 38, 38, 0.18);
   transform: scale(1.01);
   transition: all 200ms ease;
 }

.guide-focus::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid rgba(220, 38, 38, 0.35);
  border-radius: inherit;
  pointer-events: none;
  animation: guidePulseStrong 1.4s ease-out infinite;
}

.guide-button-focus {
  border-color: rgba(220, 38, 38, 0.72) !important;
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.16),
    0 16px 34px rgba(220, 38, 38, 0.16);
  transition: all 180ms ease;
}

.guide-kpi-focus {
  background: rgba(254, 226, 226, 0.65);
  border: 2px solid rgba(220, 38, 38, 0.6) !important;
  box-shadow:
    0 0 0 3px rgba(220, 38, 38, 0.12),
    0 16px 32px rgba(220, 38, 38, 0.14);
  animation: guideKpiGlowStrong 1.15s ease-in-out infinite;
}

.guide-number-pulse {
  animation: guideNumberPulse .9s ease;
  transform-origin: center;
}

.guide-action-plan-glow {
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.1),
    0 18px 32px rgba(239, 68, 68, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.summary-grid,
.smartcard-plan-card,
.action-plan-card,
.results-dashboard {
  scroll-margin-top: 96px;
}

.results-dashboard.guide-result-focus {
  transform: none;
  background: rgba(254, 226, 226, 0.42);
  border-color: rgba(220, 38, 38, 0.82);
}

@keyframes guidePulse {
  0% {
    opacity: .95;
    transform: scale(.99);
  }
  70% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@keyframes guidePulseStrong {
  0% {
    opacity: 1;
    transform: scale(0.98);
  }
  60% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes guideKpiGlow {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .34),
      0 12px 22px rgba(39, 82, 49, .08);
  }
  40% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .4),
      0 18px 30px rgba(37, 164, 90, .18);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .34),
      0 12px 22px rgba(39, 82, 49, .08);
  }
}

@keyframes guideKpiGlowStrong {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
  40% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
}

@keyframes guideNumberPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.04);
    filter: brightness(1.04);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.insight-box {
  margin-bottom: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 205, 187, .84);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(226, 241, 230, .96), rgba(255, 255, 255, .96));
}

.ai-insights-box {
  margin: 10px 0 14px;
}

.ai-insights-card {
  padding: 16px 18px;
  border: 1px solid rgba(37, 164, 90, .24);
  border-radius: 16px;
  background: #f7fbf6;
  box-shadow: 0 12px 24px rgba(39, 82, 49, .07);
}

.ai-insights-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.ai-eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-insights-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.ai-loss-pill {
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(180, 61, 66, .08);
  color: #8f2530;
  text-align: right;
}

.ai-loss-pill span {
  font-size: 11px;
  font-weight: 900;
}

.ai-loss-pill strong {
  font-size: 24px;
  line-height: 1;
}

.ai-recommendation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ai-recommendation-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(175, 195, 178, .74);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
}

.ai-confidence {
  width: fit-content;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.ai-confidence.high {
  background: rgba(37, 164, 90, .12);
  color: #1d6b43;
}

.ai-confidence.medium {
  background: rgba(181, 120, 22, .12);
  color: #765112;
}

.ai-confidence.low {
  background: rgba(180, 61, 66, .12);
  color: #8f2530;
}

.ai-recommendation-item > div:first-child {
  display: grid;
  gap: 3px;
}

.ai-recommendation-item strong,
.ai-recommendation-item span {
  overflow-wrap: anywhere;
}

.ai-recommendation-item span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.ai-recommendation-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.attention-flash {
  animation: smartcardAttentionFlash 1.25s ease-in-out 4;
}

.live-insights.attention-flash {
  animation: smartcardLiveInsightFlash 1.25s ease-in-out 4;
}

@keyframes smartcardAttentionFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 45, 45, 0);
    border-color: rgba(190, 45, 45, 0.25);
  }
  40% {
    box-shadow: 0 0 0 6px rgba(190, 45, 45, 0.16);
    border-color: rgba(190, 45, 45, 0.75);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(190, 45, 45, 0);
    border-color: rgba(190, 45, 45, 0.25);
  }
}

.review-attention-active {
  animation: reviewAttentionActive 1.45s ease-in-out infinite;
}

.tx-card.review-attention-active .transaction-review-panel:not(.resolved),
.tx-card.review-attention-active .channel-confirm-box:not(.resolved),
.tx-card.review-attention-active [data-apply-duplicate-choice] {
  animation: reviewPanelAttention 1.45s ease-in-out infinite;
}

@keyframes reviewAttentionActive {
  0%, 100% {
    border-color: rgba(190, 45, 45, .24);
    box-shadow: 0 10px 24px rgba(20, 28, 56, .07);
  }
  50% {
    border-color: rgba(220, 38, 38, .82);
    box-shadow:
      0 0 0 4px rgba(220, 38, 38, .11),
      0 18px 38px rgba(220, 38, 38, .16);
  }
}

@keyframes reviewPanelAttention {
  0%, 100% {
    border-color: rgba(180, 98, 45, .22);
    box-shadow: 0 8px 18px rgba(20, 28, 56, .06);
  }
  50% {
    border-color: rgba(220, 38, 38, .62);
    box-shadow:
      0 0 0 4px rgba(220, 38, 38, .08),
      0 14px 28px rgba(220, 38, 38, .12);
  }
}

@keyframes smartcardLiveInsightFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 45, 45, 0);
    border-color: rgba(190, 45, 45, 0.18);
  }
  40% {
    box-shadow: 0 0 0 5px rgba(190, 45, 45, 0.13);
    border-color: rgba(190, 45, 45, 0.65);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(190, 45, 45, 0);
    border-color: rgba(190, 45, 45, 0.18);
  }
}

.step-card h2 {
  margin-top: 0;
}

.step-card p {
  margin-top: 4px;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(37, 164, 90, .45);
  border-radius: 14px;
  background: rgba(228, 245, 232, .7);
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.file-input-label:hover {
  border-color: rgba(37, 164, 90, .75);
  background: rgba(228, 245, 232, .96);
  box-shadow: 0 8px 18px rgba(37, 164, 90, .1);
}

#replaceFileBtn {
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  box-shadow: none;
}

.file-input-label input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-name {
  color: var(--muted);
}

.selected-file-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px !important;
  padding: 7px 11px;
  border: 1px solid rgba(175, 195, 178, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.how-it-works {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(175, 195, 178, .8);
  border-radius: 14px;
  background: rgba(248, 251, 247, .62);
}

.how-it-works h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.privacy-section {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(175, 195, 178, .78);
  border-radius: 16px;
  background: rgba(248, 251, 247, .72);
  color: var(--muted);
}

.privacy-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.privacy-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.privacy-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #738078;
  font-size: 13px;
  font-weight: 800;
}

.privacy-actions .hero-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(228, 245, 232, .78);
  color: #217044;
  font-size: 13px;
  font-weight: 900;
}

.privacy-actions .hero-text-link:hover,
.privacy-actions .hero-text-link:focus-visible {
  background: rgba(214, 239, 221, .95);
  color: var(--accent-dark);
  text-decoration: none;
}

.privacy-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding-left: 18px;
}

.privacy-section a {
  color: var(--accent-dark);
  font-weight: 800;
}
.hidden { display: none !important; }
.manual-category-note.hidden { display: none; }
.status-text.error { color: var(--danger); }
.status-text.warning { color: var(--warning); }

.analysis-loading-card {
  overflow: hidden;
  border-color: rgba(37, 164, 90, .22);
  background:
    radial-gradient(circle at top left, rgba(215, 247, 224, .72), transparent 38%),
    linear-gradient(145deg, rgba(249, 255, 251, .94), rgba(238, 248, 241, .86)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 20px 46px rgba(18, 88, 45, .14);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
}

.analysis-loading-card h3 {
  margin-bottom: 6px;
}

.analysis-loading-card .status-text {
  display: grid;
  gap: 8px;
  margin: 0;
}

.analysis-loading-subtitle,
.analysis-loading-reassurance {
  color: #2f4d3a;
  font-size: 14px;
  line-height: 1.35;
}

.analysis-loading-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 950;
}

.analysis-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(37, 164, 90, .36);
  animation: analysisPulseDot 1.2s ease-in-out infinite;
}

.analysis-loading-meta {
  justify-self: start;
  padding: 4px 9px;
  border: 1px solid rgba(37, 164, 90, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #536658;
  font-size: 12px;
  font-weight: 850;
}

.analysis-loading-reassurance {
  color: #59695e;
  font-size: 13px;
  font-weight: 750;
}

.analysis-error-card {
  border-color: rgba(190, 18, 60, .22);
  background: linear-gradient(145deg, rgba(255, 247, 247, .96), rgba(255, 255, 255, .92)) !important;
}

.statement-mismatch-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.inline-fix-btn {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
}

.status-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(37, 164, 90, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 2px rgba(20, 83, 45, .08);
}

.status-progress-bar {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(90deg, #168a45, #25a45a, #8de3a4);
  transition: width .24s ease;
}

.status-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .55) 45%, transparent 80%);
  transform: translateX(-100%);
  animation: analysisProgressShimmer 1.25s linear infinite;
}

@keyframes analysisPulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 164, 90, .32);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 7px rgba(37, 164, 90, 0);
  }
}

@keyframes analysisProgressShimmer {
  to {
    transform: translateX(100%);
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.big-number {
  margin-top: 4px;
  font-size: 46px;
  font-weight: 950;
  line-height: 1;
}

.summary-highlight {
  background: linear-gradient(180deg, rgba(37, 164, 90, .16), rgba(255, 255, 255, .96));
  box-shadow: 0 14px 30px rgba(37, 164, 90, .16);
}

.summary-highlight .big-number {
  font-size: 58px;
  color: var(--accent-dark);
}

.headline-box {
  margin: 16px 0;
  background: var(--panel-soft);
}

.results-dashboard {
  border: 1px solid rgba(184, 205, 187, .54);
  border-radius: 16px;
  padding: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.headline-box .title {
  font-size: 22px;
  font-weight: 900;
}

.merchant-loss-host {
  margin: 0 0 16px;
}

.action-plan-host {
  margin: 14px 0 16px;
}

.action-plan-card {
  padding: 16px;
  border: 1px solid rgba(37, 164, 90, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 248, 240, .96), rgba(255, 255, 255, .9));
  box-shadow: 0 12px 24px rgba(39, 82, 49, .07);
}

.action-plan-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.action-plan-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.action-plan-card-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(175, 195, 178, .68);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: #193923;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.action-plan-card-item span {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #1f8b4b;
  color: #fff;
  font-weight: 950;
}

.smartcard-plan {
  margin: 14px 0 16px;
}

.smartcard-plan-card {
  padding: 18px;
  border: 1px solid rgba(37, 164, 90, .2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 249, 242, .98), rgba(255, 255, 255, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .44),
    0 16px 28px rgba(39, 82, 49, .08);
}

.smartcard-plan-card.plan-needs-review {
  border-color: rgba(180, 98, 45, .3);
  background: linear-gradient(135deg, rgba(255, 249, 239, .98), rgba(255, 255, 255, .94));
}

.smartcard-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.smartcard-plan-eyebrow {
  color: #1f7a46;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.smartcard-plan-card h3 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.smartcard-plan-sub {
  margin-top: 5px;
  color: #35513f;
  font-size: 14px;
  font-weight: 750;
}

.smartcard-plan-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.smartcard-plan-status.is-loss {
  background: rgba(190, 48, 58, .09);
  color: #a42a35;
}

.smartcard-plan-status.is-good {
  background: rgba(37, 164, 90, .12);
  color: #1d6b43;
}

.smartcard-plan-status.is-review {
  background: rgba(180, 98, 45, .12);
  color: #8e4f1f;
}

.plan-review-note {
  width: 100%;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(180, 98, 45, .22);
  border-radius: 12px;
  background: rgba(255, 246, 234, .8);
  color: #6b4a27;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.plan-review-note:hover {
  border-color: rgba(180, 98, 45, .4);
  background: rgba(255, 244, 225, .95);
}

.plan-action-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(37, 164, 90, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 248, 240, .9), rgba(255, 255, 255, .74));
}

.plan-action-panel h4 {
  margin: 0;
  color: #102016;
  font-size: 16px;
  font-weight: 950;
}

.plan-action-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #193923;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.plan-tile {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(175, 195, 178, .72);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
}

.plan-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plan-value {
  margin-top: 6px;
  color: #102016;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.12;
}

.plan-value.loss {
  color: #b8323f;
}

.plan-value.gain {
  color: #1f7a46;
}

.plan-copy {
  margin-top: 8px;
  color: #294333;
  font-size: 13px;
  line-height: 1.35;
}

.plan-math {
  margin-top: 8px;
  color: #4b6353;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.plan-impact-line {
  margin-top: 8px;
  color: #b8323f;
  font-size: 13px;
  font-weight: 950;
}

.plan-impact-line.gain {
  color: #1f7a46;
}

.plan-why {
  margin-top: 8px;
  color: #294333;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.plan-section-title {
  margin-top: 14px;
  color: #102016;
  font-size: 14px;
  font-weight: 950;
}

.plan-category-breakdown {
  margin-top: 14px;
}

.plan-category-breakdown h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.plan-category-summary {
  max-width: 860px;
  margin: 0 0 12px;
  color: #294333;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.plan-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-category-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(175, 195, 178, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: #294333;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.plan-category-item strong {
  color: #102016;
  font-size: 14px;
}

.plan-category-item .loss {
  color: #b8323f;
  font-weight: 950;
}

.plan-category-item .gain {
  color: #1f7a46;
  font-weight: 950;
}

.plan-action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.plan-action {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 164, 90, .18);
  border-radius: 12px;
  background: rgba(236, 248, 240, .72);
  color: #193923;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.plan-action span {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #1f8b4b;
  color: #fff;
  font-size: 12px;
}

.plan-trust-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.plan-trust-note {
  padding: 7px 10px;
  border: 1px solid rgba(175, 195, 178, .68);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #3d5547;
  font-size: 12px;
  font-weight: 800;
}

.tx-coach-detail {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(175, 195, 178, .68);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: #294333;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.merchant-loss-card {
  padding: 18px;
  border: 1px solid rgba(200, 217, 193, .7);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 250, 245, .94), rgba(255, 255, 255, .88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 12px 24px rgba(39, 82, 49, .06);
}

.merchant-loss-header {
  display: grid;
  gap: 4px;
}

.merchant-loss-summary {
  margin-top: 4px;
  color: #1d6b43;
  font-size: 13px;
  font-weight: 800;
}

.merchant-loss-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.merchant-loss-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(175, 195, 178, .72);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  text-align: left;
}

.merchant-loss-row:hover {
  border-color: rgba(37, 164, 90, .22);
  box-shadow: 0 10px 22px rgba(39, 82, 49, .08);
}

.merchant-loss-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.merchant-loss-amount {
  font-size: 15px;
  font-weight: 900;
  color: var(--danger);
  white-space: nowrap;
}

.merchant-loss-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.recommendation-box {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid rgba(200, 217, 193, .7);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(228, 245, 232, .9), rgba(255, 255, 255, .8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 12px 24px rgba(39, 82, 49, .06);
}

.action-plan-box h3 {
  margin-top: 0;
  font-size: 24px;
}

.recommendation-box ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.recommendation-box li {
  line-height: 1.45;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 14px;
  align-items: center;
  padding: 2px 0;
}

.bar-label {
  margin-bottom: 7px;
  font-weight: 800;
  text-transform: capitalize;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.bar-rail {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #dfeadd, #e7efe5);
  box-shadow: inset 0 1px 2px rgba(28, 45, 32, .08);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #24a259, #6fcc84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  position: relative;
}

.bar-fill::after,
.earned-fill::after,
.missed-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.bar-value {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.wide-chart {
  grid-column: 1 / -1;
}

.top-misses {
  display: grid;
  gap: 10px;
}

.top-miss-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  min-width: 0;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 217, 193, .65);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 8px 18px rgba(39, 82, 49, .05);
}

.top-miss-row > div:first-child {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 3px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.top-miss-row strong,
.top-miss-row b {
  display: block;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.top-miss-row small,
.top-miss-row .muted,
.top-miss-row .top-miss-meta {
  display: block;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.top-miss-value {
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
  justify-self: end;
  align-self: start;
  padding-top: 2px;
  white-space: nowrap;
}

.split-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: center;
  padding: 4px 0;
}

.split-bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8eee4, #edf2ea);
  box-shadow: inset 0 1px 2px rgba(28, 45, 32, .08);
}

.earned-fill {
  height: 100%;
  background: linear-gradient(90deg, #1f9d5a, #6bcc89);
  position: relative;
}

.missed-fill {
  height: 100%;
  background: linear-gradient(90deg, #d65d62, #ee8c84);
  position: relative;
}

.split-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.earned-dot,
.missed-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
}

.earned-dot { background: var(--success); }
.missed-dot { background: var(--danger); }

.transactions-list {
  display: grid;
  gap: 10px;
}

.transactions-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.transactions-alert-unresolved {
  cursor: pointer;
}

.transactions-alert-unresolved:hover {
  border-color: rgba(180, 98, 45, .38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 10px 20px rgba(94, 61, 26, .08);
}

.transactions-alert-unresolved {
  border: 1px solid rgba(180, 98, 45, .22);
  background: rgba(250, 242, 233, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.transactions-alert-resolved {
  border: 1px solid rgba(37, 164, 90, .18);
  background: rgba(232, 245, 236, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.transactions-alert-optional {
  border: 1px solid rgba(72, 99, 142, .16);
  background: rgba(242, 247, 252, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
}

.transactions-review-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

.transactions-review-pill.unresolved {
  border: 1px solid rgba(180, 98, 45, .18);
  background: rgba(180, 98, 45, .12);
  color: #8e4f1f;
}

.transactions-review-pill.resolved {
  border: 1px solid rgba(37, 164, 90, .18);
  background: rgba(37, 164, 90, .12);
  color: #166f3d;
}

.transactions-review-pill.optional {
  border: 1px solid rgba(72, 99, 142, .16);
  background: rgba(72, 99, 142, .10);
  color: #30486d;
}

.transactions-alert-copy {
  min-width: 0;
  line-height: 1.45;
  color: #244033;
  font-size: 13px;
}

.transactions-alert-copy strong {
  display: block;
  margin-bottom: 2px;
}

.transactions-alert-summary {
  margin-top: 6px;
  color: #6b4a27;
  font-size: 12px;
  font-weight: 700;
}

.transactions-alert-warning {
  color: #8a4b0f;
}

.batch-review-bar {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 2px solid rgba(28, 112, 62, .34);
  border-radius: 16px;
  background: rgba(246, 253, 248, .96);
  box-shadow:
    0 22px 54px rgba(20, 48, 29, .24),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px);
}

.batch-review-bar-complete {
  border-color: rgba(181, 120, 22, .58);
  background: linear-gradient(180deg, rgba(255, 249, 235, .98), rgba(255, 243, 215, .96));
  box-shadow:
    0 24px 60px rgba(116, 73, 13, .28),
    0 0 0 4px rgba(181, 120, 22, .12);
}

.batch-review-bar-complete .batch-review-bar-copy strong {
  color: #783f08;
}

.batch-review-bar-complete .batch-review-bar-copy span {
  color: #5f4727;
}

.batch-review-bar-loading {
  border-color: rgba(28, 112, 62, .46);
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.62) 48%, rgba(255,255,255,0) 100%),
    rgba(246, 253, 248, .98);
  background-size: 220% 100%, auto;
  animation: batchReviewLoading 1.15s linear infinite;
}

.batch-review-bar-loading .batch-review-bar-copy strong::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(22, 111, 61, .28);
  border-top-color: #166f3d;
  border-radius: 999px;
  vertical-align: -2px;
  animation: batchReviewSpinner .75s linear infinite;
}

.batch-review-bar-pulse {
  animation: batchReviewPulse 1.05s ease-in-out 3;
}

@keyframes batchReviewPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 22px 54px rgba(20, 48, 29, .24);
  }
  50% {
    transform: translateY(-3px);
    box-shadow:
      0 28px 68px rgba(181, 83, 22, .35),
      0 0 0 6px rgba(181, 120, 22, .18);
  }
}

@keyframes batchReviewLoading {
  from { background-position: 180% 0, 0 0; }
  to { background-position: -60% 0, 0 0; }
}

@keyframes batchReviewSpinner {
  to { transform: rotate(360deg); }
}

.batch-review-bar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #244033;
  line-height: 1.25;
}

.batch-review-bar-copy strong {
  font-size: 14px;
  font-weight: 900;
}

.batch-review-bar-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.batch-review-bar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.batch-review-bar-actions .primary-btn,
.batch-review-bar-actions .secondary-btn {
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

body.has-batch-review-bar {
  padding-bottom: 92px;
}

.manual-review {
  margin-top: 18px;
}

.manual-review {
  display: none !important;
}

.manual-rows {
  display: grid;
  gap: 10px;
}

.manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.manual-row > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

@keyframes softAppear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.manual-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 140px 220px 180px auto;
  gap: 10px;
  align-items: center;
}

.tx-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1.3fr) minmax(120px, .6fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(175, 195, 178, .55);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(20, 48, 29, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.tx-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 164, 90, .22);
  box-shadow: 0 10px 22px rgba(20, 48, 29, .08);
}

.tx-card-updated {
  animation: txRefresh .28s ease;
}

.tx-card-recovered {
  animation: txRecovered .34s ease;
  border-color: rgba(37, 164, 90, .3);
}

.tx-card-needs-review {
  border-color: rgba(180, 98, 45, .18);
}

.tx-ui-needs_input {
  border-color: rgba(180, 61, 66, .3);
  background: linear-gradient(180deg, rgba(255, 250, 250, .98), rgba(252, 241, 241, .94));
}

.tx-ui-suggested {
  border-color: rgba(181, 120, 22, .32);
  background: linear-gradient(180deg, rgba(255, 252, 243, .98), rgba(250, 244, 229, .95));
}

.tx-ui-locked {
  border-color: rgba(37, 164, 90, .22);
}

.tx-card-neutral {
  border-color: rgba(95, 112, 128, .18);
  background: linear-gradient(180deg, rgba(252, 253, 254, .98), rgba(246, 249, 251, .96));
}

.tx-card-confirmed {
  border-color: rgba(37, 164, 90, .24);
  background: linear-gradient(180deg, rgba(247, 252, 248, .98), rgba(238, 247, 240, .96));
}

.tx-card-review-saved {
  border-color: rgba(37, 164, 90, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 12px 24px rgba(37, 164, 90, .10);
}

.tx-card-pending {
  border-color: rgba(37, 164, 90, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 14px 28px rgba(37, 164, 90, .12);
}

@keyframes txRefresh {
  from {
    transform: translateY(4px);
    opacity: .82;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes txRecovered {
  0% {
    transform: translateY(6px);
    box-shadow: 0 0 0 rgba(37, 164, 90, 0);
    background: rgba(231, 247, 236, .9);
  }
  45% {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 164, 90, .18);
    background: rgba(220, 243, 228, .96);
  }
  100% {
    transform: translateY(0);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .3),
      0 10px 24px rgba(39, 82, 49, .06);
  }
}

.tx-main,
.tx-side,
.tx-channel,
.tx-compare,
.tx-review-row {
  display: grid;
  align-content: start;
  min-width: 0;
}

.tx-main {
  min-width: 240px;
}

.tx-channel {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.tx-channel-empty {
  min-height: 1px;
}

.tx-side {
  justify-items: end;
  text-align: right;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tx-compare {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(175, 195, 178, .5);
  border-radius: 12px;
  background: rgba(248, 251, 247, .72);
}

.tx-compare-item {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tx-compare-better .tx-card-name {
  color: var(--accent-dark);
}

.tx-label,
.tx-impact-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tx-card-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.tx-rate {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tx-arrow {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.tx-impact-value {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.tx-impact-value.is-good {
  color: var(--success);
}

.tx-impact-value.is-missed {
  color: var(--danger);
}

.tx-impact-value.is-review {
  color: #8e4f1f;
}

.tx-review-row {
  grid-column: 1 / -1;
  gap: 8px;
}

.tx-merchant-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.tx-merchant {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.tx-meta {
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.online-bonus-note {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(181, 120, 22, .2);
  border-radius: 12px;
  background: rgba(255, 248, 231, .78);
  color: #5f4215;
  line-height: 1.35;
}

.online-bonus-note-title {
  font-size: 12px;
  font-weight: 900;
}

.online-bonus-note-copy,
.online-bonus-note-details {
  font-size: 12px;
  font-weight: 700;
}

.online-bonus-note-details summary {
  display: inline-flex;
  color: #b83232;
  cursor: pointer;
  font-size: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.online-bonus-note-details summary:hover,
.online-bonus-note-details summary:focus-visible {
  color: #8f2424;
}

.online-bonus-note-details span {
  display: block;
  margin-top: 4px;
  color: #6b5535;
}

.tx-feedback {
  margin-top: 9px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tx-feedback.good {
  color: var(--success);
}

.tx-feedback.missed {
  color: var(--danger);
}

.tx-feedback.review {
  color: #8e4f1f;
}

.tx-feedback.neutral {
  color: #5b6c7c;
}

.reward-limited-note {
  margin-top: 6px;
  color: #5f6f63;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(95, 111, 99, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #3c5142;
  font-size: 12px;
  font-weight: 800;
}

.confidence-light {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.confidence-badge-high {
  border-color: rgba(37, 164, 90, .24);
  background: rgba(228, 245, 232, .78);
  color: #1d6b43;
}

.confidence-badge-medium {
  border-color: rgba(181, 120, 22, .28);
  background: rgba(255, 247, 226, .82);
  color: #7b5415;
}

.confidence-badge-low {
  border-color: rgba(180, 61, 66, .26);
  background: rgba(255, 237, 238, .84);
  color: #8f2530;
}

.confirm-if-wrong {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tune-category-btn {
  justify-self: end;
  width: fit-content;
  margin-top: 6px;
  padding: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.tune-category-btn:hover {
  transform: none;
  text-decoration: underline;
}

.tx-card-tuning {
  border-color: rgba(37, 164, 90, .26);
}

.tx-category-confirm,
.transaction-review-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(60, 100, 70, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.tx-category-label {
  color: #193923;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.tx-category-message {
  color: #334a3a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tx-category-confirm.resolved,
.transaction-review-panel.resolved {
  border-color: rgba(37, 164, 90, .2);
  background: linear-gradient(135deg, rgba(226, 244, 232, .98), rgba(241, 249, 243, .98));
}

.tx-saved-local-note {
  color: #527062;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tx-duplicate-note {
  margin-top: 6px;
  color: #765112;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.tx-change-saved-choice {
  justify-self: start;
  margin-top: 2px;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
}

.tx-apply-duplicates-btn {
  justify-self: start;
  min-height: 34px;
  margin-top: 4px;
  padding: 7px 11px;
  font-size: 12px;
}

.tx-duplicate-action-required {
  border-color: rgba(180, 61, 66, .42);
  background: linear-gradient(135deg, #fff4f4, #ffecec);
  color: #9f3034;
  box-shadow: 0 8px 18px rgba(180, 61, 66, .16);
}

.tx-duplicate-action-required:hover,
.tx-duplicate-action-required:focus-visible {
  border-color: rgba(150, 38, 43, .58);
  background: #f8dddd;
  color: #84282c;
  box-shadow: 0 0 0 4px rgba(180, 61, 66, .12), 0 10px 20px rgba(180, 61, 66, .18);
}

.tx-category-error {
  color: #8e4f1f;
  font-size: 12px;
  font-weight: 800;
}

.tx-category-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tx-category-select,
.tx-custom-category,
.manual-custom-category {
  min-width: 180px;
  flex: 1 1 180px;
}

.custom-category-input::placeholder {
  color: rgba(40, 55, 45, 0.45);
}

.tx-status-pill,
.channel-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(180, 61, 66, .16);
  border-radius: 999px;
  background: rgba(180, 61, 66, .08);
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.tx-status-pill-confirmed {
  border-color: rgba(37, 164, 90, .16);
  background: rgba(37, 164, 90, .12);
  color: #166f3d;
}

.tx-status-pill-neutral {
  border-color: rgba(95, 112, 128, .18);
  background: rgba(95, 112, 128, .10);
  color: #51606f;
}

.tx-status-pill-good {
  border-color: rgba(37, 164, 90, .16);
  background: rgba(37, 164, 90, .12);
  color: #166f3d;
}

.tx-status-pill-missed {
  border-color: rgba(180, 61, 66, .18);
  background: rgba(180, 61, 66, .10);
  color: var(--danger);
}

.tx-status-pill-review {
  border-color: rgba(181, 120, 22, .22);
  background: rgba(181, 120, 22, .10);
  color: #765112;
}

.tx-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tx-saved-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(37, 164, 90, .18);
  border-radius: 999px;
  background: rgba(37, 164, 90, .12);
  color: #166f3d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.channel-confirm-box {
  width: 100%;
  min-width: 0;
  padding: 12px 14px 13px;
  border: 1px solid rgba(180, 61, 66, .14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(180, 61, 66, .08), rgba(255, 249, 246, .92));
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.channel-confirm-box.pending {
  border-color: rgba(37, 164, 90, .22);
  background: linear-gradient(135deg, rgba(226, 242, 231, .96), rgba(241, 248, 243, .98));
  box-shadow: 0 10px 22px rgba(37, 164, 90, .08);
}

.channel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
}

.channel-text {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.channel-subtext {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.channel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.channel-btn {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(180, 61, 66, .2);
  border-radius: 999px;
  background: #fff;
  color: #8e2d31;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, opacity .18s ease;
}

.channel-btn.selected,
.channel-btn:hover {
  border-color: rgba(140, 42, 47, .34);
  background: #f6ecec;
  box-shadow: 0 8px 16px rgba(140, 42, 47, .10);
}

.channel-btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.channel-btn.selected {
  background: #f1e1e1;
}

.channel-btn.guide-button-focus {
  background: #eef8f1;
  color: #145f34;
}

.channel-remember {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.channel-remember input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.channel-confirm-box.resolved {
  border-color: rgba(37, 164, 90, .2);
  background: linear-gradient(135deg, rgba(226, 244, 232, .98), rgba(241, 249, 243, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.channel-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.channel-trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 164, 90, .12);
  color: #166f3d;
  font-size: 11px;
  font-weight: 900;
}

.channel-trust-pill-memory {
  background: rgba(22, 111, 61, .1);
  color: #145f34;
}

.channel-resolved-title {
  color: #145f34;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.channel-impact-message,
.tx-micro-message {
  margin-top: 8px;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  animation: rewardRecovered .28s ease;
}

.channel-impact-message {
  margin-top: 6px;
}

@keyframes rewardRecovered {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.channel-resolved-note {
  margin-top: 6px;
  color: #2b4737;
  font-size: 12px;
  line-height: 1.4;
}

.big-number.metric-updated {
  animation: metricPulse .38s ease;
}

@keyframes metricPulse {
  0% {
    color: #145f34;
    transform: scale(1);
  }
  45% {
    color: #1f8b4b;
    transform: scale(1.04);
  }
  100% {
    color: inherit;
    transform: scale(1);
  }
}

.tx-best-label {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.tx-best-card {
  max-width: 240px;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
}

.tie-note {
  margin-top: 4px;
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

body.has-batch-review-bar .toast-host {
  bottom: 108px;
}

.app-toast {
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 164, 90, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 249, 240, .96));
  box-shadow: 0 16px 30px rgba(39, 82, 49, .14);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.app-toast-attention {
  min-width: 280px;
  border-color: rgba(181, 120, 22, .4);
  background: linear-gradient(180deg, rgba(255, 249, 235, .98), rgba(255, 242, 218, .98));
  box-shadow:
    0 18px 38px rgba(116, 73, 13, .22),
    0 0 0 3px rgba(181, 120, 22, .10);
  color: #3d2f16;
  animation: toastAttentionPulse .9s ease-in-out 2;
}

@keyframes toastAttentionPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .38);
}

.modal-content {
  position: relative;
  max-width: 680px;
  margin: 12vh auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(161, 171, 218, .55);
  border-radius: 999px;
  background: #fff;
  color: #071026;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(20, 28, 56, .08);
}

.modal-close-btn:hover,
.modal-close-btn:focus-visible {
  border-color: rgba(63, 29, 221, .38);
  color: #3f1ddd;
  outline: none;
}

.feedback-modal-content {
  max-width: 560px;
  background: linear-gradient(145deg, rgba(246, 253, 248, .98), rgba(255, 255, 255, .96));
}

.how-it-works-modal-content {
  max-width: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(91, 55, 235, .13), transparent 34%),
    radial-gradient(circle at bottom right, rgba(17, 171, 97, .12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
  border-color: rgba(161, 171, 218, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 30px 78px rgba(40, 28, 128, .2);
}

.how-it-works-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.modal-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #3f1ddd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.how-it-works-modal-header h3 {
  margin: 0 0 8px;
  color: #071026;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 950;
}

.how-it-works-modal-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.how-it-works-modal-steps article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(161, 171, 218, .58);
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 30px rgba(40, 28, 128, .08);
}

.how-it-works-modal-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3f1ddd, #6c4df3);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(63, 29, 221, .22);
}

.how-it-works-modal-steps strong {
  color: #071026;
  font-size: 17px;
  font-weight: 950;
}

.how-it-works-modal-steps p {
  margin: 0;
  color: #30405f;
  font-size: 14px;
  line-height: 1.42;
}

.how-it-works-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.bank-waitlist-modal-content {
  max-width: 540px;
  background:
    radial-gradient(circle at top left, rgba(208, 244, 218, .55), transparent 42%),
    linear-gradient(145deg, rgba(249, 255, 251, .98), rgba(255, 255, 255, .96));
  border-color: rgba(177, 211, 185, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 28px 70px rgba(16, 45, 25, .22);
}

.bank-waitlist-header {
  display: grid;
  gap: 8px;
}

.bank-waitlist-header .coming-soon-badge {
  justify-self: start;
}

.bank-waitlist-header h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 950;
}

.bank-waitlist-support {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.bank-waitlist-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.bank-waitlist-success {
  padding: 9px 11px;
  border: 1px solid rgba(37, 164, 90, .24);
  border-radius: 12px;
  background: rgba(232, 248, 238, .82);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.bank-waitlist-trust {
  color: #5d6e62;
  font-size: 12px;
  font-weight: 800;
}

.bank-waitlist-actions {
  margin-top: 18px;
}

.feedback-modal-header h3 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 950;
}

.feedback-form {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.feedback-form .field-label {
  margin: 6px 0 0;
}

.feedback-error {
  padding: 10px 12px;
  border: 1px solid rgba(187, 58, 69, .28);
  border-radius: 12px;
  background: rgba(254, 226, 226, .75);
  color: var(--danger);
  font-weight: 750;
}

.feedback-actions {
  justify-content: flex-end;
}

.config-form {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.config-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.config-option input {
  width: auto;
  min-height: auto;
}

@media (max-width: 1100px) {
  .hero, .workspace, .summary-grid, .charts-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-rows: auto;
  }

  .hero-right-rail,
  .hero-summary-card,
  .hero-reward-note {
    grid-column: 1;
    margin-top: 0;
  }

  .hero-privacy-grid {
    grid-template-columns: 1fr;
  }

  .landing-how-row {
    grid-template-columns: 1fr;
  }

  .landing-step-arrow {
    display: none;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-category-grid {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }
  h1 { font-size: 34px; }
  .hero-callout { font-size: 46px; }
  .hero-box {
    min-height: 0;
    border-radius: 16px;
  }
  .hero-box.reward-rate-card {
    min-height: 104px;
  }
  .tx-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .tx-main,
  .tx-compare,
  .tx-channel,
  .tx-review-row,
  .tx-side {
    grid-column: 1;
    grid-row: auto;
  }

  .tx-side,
  .tx-best-label,
  .tx-best-card,
  .tie-note {
    justify-items: start;
    text-align: left;
    max-width: 100%;
  }

  .tx-compare {
    grid-template-columns: 1fr;
  }

  .tx-arrow {
    display: none;
  }

  .smartcard-home-logo {
    position: static;
    margin-bottom: 8px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .empty-state-card {
    min-height: auto;
    padding: 22px 24px 24px;
  }
}

@media (max-width: 640px) {
  .page-shell { padding: 10px; }
  .hero, .step-card, .status-card, .results-section, .sidebar { padding: 18px; }
  .hero {
    gap: 16px;
  }
  .hero-privacy-grid,
  .hero-after-upload,
  .hero-issuer-strip {
    max-width: 100%;
  }
  .hero-after-points {
    display: grid;
    gap: 8px;
  }
  .hero-reward-note {
    align-items: flex-start;
  }
  h1 { font-size: 42px; }
  .hero-callout { font-size: 44px; }
  .big-number { font-size: 40px; }
  .hero-rate-display {
    grid-template-columns: 1fr;
    align-items: flex-start;
    justify-items: start;
    white-space: normal;
  }
  .reward-rate-current {
    font-size: 22px;
  }
  .reward-rate-optimal {
    font-size: 15px;
  }
  .reward-rate-ring {
    width: 76px;
    height: 76px;
    justify-self: start;
  }
  .reward-rate-ring::before {
    inset: 7px;
  }
  .reward-rate-ring-inner {
    width: 56px;
    height: 56px;
  }
  .upload-row, .tx-card, .bar-row, .manual-row, .manual-entry-row {
    grid-template-columns: 1fr;
  }
  .how-it-works ol,
  .privacy-section ul {
    grid-template-columns: 1fr;
  }
  .smartcard-plan-header,
  .action-plan-card-list,
  .plan-action-strip {
    grid-template-columns: 1fr;
  }
  .smartcard-plan-header {
    display: grid;
  }
  .ai-insights-header,
  .ai-recommendation-list {
    grid-template-columns: 1fr;
  }
  .ai-loss-pill {
    justify-self: start;
    text-align: left;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .smartcard-plan-status {
    justify-self: start;
  }
  .wallet-actions {
    justify-content: flex-start;
    min-width: 0;
  }
  .empty-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .empty-actions .method-btn {
    width: 100%;
  }
  .demo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .voice-guide-prompt,
  .voice-guide-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .voice-guide-controls {
    position: sticky;
    top: max(10px, env(safe-area-inset-top));
    z-index: 30;
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }
  .voice-guide-actions {
    width: 100%;
  }
  .voice-guide-actions .primary-btn,
  .voice-guide-actions .secondary-btn,
  .voice-guide-controls .secondary-btn {
    flex: 1 1 0;
    width: 100%;
    min-height: 44px;
  }
  .empty-preview-strip {
    grid-template-columns: 1fr;
  }
  .empty-preview-benefits {
    grid-template-columns: 1fr;
  }
  .empty-preview-card {
    border-right: 0;
    border-bottom: 1px solid rgba(184, 205, 178, .52);
  }
  .empty-preview-card:last-child {
    border-bottom: 0;
  }
  .how-it-works-row {
    grid-template-columns: 1fr;
  }
  .empty-value-chips {
    justify-content: stretch;
  }
  .empty-value-chips span {
    justify-content: center;
    width: 100%;
    white-space: normal;
  }
  .connect-soon-btn {
    justify-content: center;
  }
  .hero-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .hero-support-actions {
    align-items: center;
    flex-direction: row;
  }
  .hero-actions #heroUploadBtn,
  .hero-actions .method-btn {
    flex-basis: auto;
    min-width: 0;
    width: 100%;
  }
  .hero-support-actions {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }
  .privacy-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .privacy-actions {
    flex-wrap: wrap;
  }
  .hero-action-divider {
    align-self: center;
    max-width: 100%;
  }
  .hero-action-divider::before,
  .hero-action-divider::after {
    width: 80px;
  }
  .hero-box {
    align-items: start;
  }
  .hero-value {
    text-align: left;
  }
  .split-bar-row {
    grid-template-columns: 1fr;
  }
  .split-values {
    justify-content: flex-start;
  }
  .transactions-alert {
    grid-template-columns: 1fr;
  }
  .batch-review-bar {
    align-items: stretch;
    flex-direction: column;
    width: auto;
    padding: 12px;
  }
  .batch-review-bar-actions {
    justify-content: stretch;
  }
  .batch-review-bar-actions .primary-btn,
  .batch-review-bar-actions .secondary-btn {
    flex: 1 1 160px;
  }
  body.has-batch-review-bar {
    padding-bottom: 146px;
  }
  .tx-card {
    gap: 14px;
  }
  .toast-host {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }
  body.has-batch-review-bar .toast-host {
    bottom: 158px;
  }
  .app-toast {
    max-width: none;
    min-width: 0;
  }
  .tx-side {
    grid-column: 1;
    grid-row: auto;
  }
  .tx-best-card {
    text-align: left;
  }
  .channel-head {
    align-items: start;
  }
  .channel-buttons {
    flex-wrap: nowrap;
  }
  .channel-btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .tx-best-label, .tx-best-card, .tie-note, .bar-value {
    text-align: left;
  }
}

.guide-arrow-hint {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.guide-arrow {
  font-size: 22px;
  color: #dc2626;
  animation: arrowBounce 0.8s infinite;
}

.guide-text {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* Smooth bounce */
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Pulse effect */
.guide-pulse {
  animation: pulseGlow 1.2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.library-card.wallet-locked,
#cardSearch.wallet-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-panel {
  margin-top: 14px;
}

.admin-updates {
  display: grid;
  gap: 10px;
}

.admin-update-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-update-head,
.admin-update-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-update-card pre {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 11px;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .empty-actions-primary .primary-btn,
  .empty-actions-secondary .secondary-btn,
  .empty-actions-secondary .method-btn,
  .empty-actions-secondary .connect-soon-btn {
    min-width: 100%;
  }

  .empty-actions-secondary {
    width: 100%;
  }

  .empty-actions-stack {
    width: 100%;
  }
}

#middleUploadCta,
#manualMethodBtn,
#connectMethodBtn,
#connectBankBtn,
.method-btn,
.method-btn * {
  pointer-events: auto !important;
}

#uploadPanel.upload-panel-compact {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  align-self: stretch !important;
  width: 100% !important;
  padding-bottom: 18px !important;
  margin-bottom: 12px !important;
}

#uploadPanel.upload-panel-compact .upload-empty-space,
#uploadPanel.upload-panel-compact .upload-preview-placeholder,
#uploadPanel.upload-panel-compact .empty-preview-strip,
#uploadPanel.upload-panel-compact .upload-spacer,
#uploadPanel.upload-panel-compact .panel-spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#statusCard.status-card-tight,
#statusCard:not(.hidden) {
  width: 100% !important;
  min-height: 0 !important;
}

/* Keep landing workspace cards aligned as one row. */
.workspace > .sidebar,
.workspace > .main {
  align-self: stretch;
}

.workspace > .sidebar {
  height: auto;
}

/* Prevent oversized empty panels */
.card, .step-card {
  min-height: 0;
}

/* SmartCard365 reference landing redesign */
:root {
  --bg: #fbfcff;
  --panel: #ffffff;
  --panel-soft: #f7f8ff;
  --line: #dfe4f2;
  --text: #090f24;
  --muted: #31405c;
  --accent: #4b31d8;
  --accent-dark: #3517b7;
  --accent-soft: #f0edff;
  --success: #11a769;
  --shadow: 0 22px 44px rgba(20, 28, 56, .11);
  --shadow-tight: 0 12px 28px rgba(20, 28, 56, .09);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 20% 8%, rgba(76, 49, 216, .06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 50%, #ffffff 100%) !important;
  color: var(--text);
}

.page-shell {
  max-width: 1500px;
  padding: 22px 34px 26px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 58px;
  margin-bottom: 58px;
  position: relative;
  z-index: 30;
}

.brand-mark,
.preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #071026;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 31;
}

.brand-mark:hover { transform: none; }

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: linear-gradient(145deg, #5c45ec, #2a16a2);
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18);
}

.brand-icon-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.site-nav a,
.site-nav .nav-link-button,
.preview-card a,
.info-panel a,
.info-panel .text-link-button {
  color: #060b1f;
  text-decoration: none;
  font-weight: 850;
}

.text-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.text-link-button:hover,
.text-link-button:focus-visible {
  color: #3f1ddd;
  text-decoration: underline;
  outline: none;
}

.site-nav a,
.site-nav .nav-link-button {
  font-size: 15px;
}

.site-nav .nav-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}

.site-nav a:hover,
.site-nav .nav-link-button:hover,
.site-nav a:focus-visible,
.site-nav .nav-link-button:focus-visible {
  color: #3f1ddd;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-btn,
.secondary-btn {
  border-radius: 8px !important;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-btn {
  border: 1px solid #4e34db !important;
  background: linear-gradient(180deg, #5438e2, #4024cb) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(63, 36, 203, .22);
}

.secondary-btn {
  border: 1px solid #cfd6ea !important;
  background: #fff !important;
  color: #101733 !important;
  box-shadow: 0 8px 18px rgba(20, 28, 56, .05);
}

.nav-login,
.nav-cta {
  min-width: 96px;
  min-height: 50px;
  padding: 0 24px;
}

.nav-cta { min-width: 168px; }

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 610px) minmax(620px, 1fr);
  align-items: center;
  gap: 46px;
  min-height: 730px;
  padding: 0 24px 44px;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.hero-copy {
  display: grid;
  gap: 24px;
  align-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0edff;
  color: #3218c8;
  font-size: 16px;
  font-weight: 900;
}

.hero-kicker img {
  display: block;
  width: 242px;
  height: auto;
}

.kicker-icon,
.trust-row svg,
.preview-nav svg,
.guest-box svg,
.opportunity-row svg,
.preview-foot svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

.hero-callout { color: var(--accent); }

h1,
.hero h1 {
  max-width: 640px;
  margin: 0;
  color: #081029 !important;
  font-size: 76px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: #30405f !important;
  font-size: 21px;
  line-height: 1.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #0e1830;
  font-size: 13px;
  font-weight: 850;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-row svg {
  color: #11a769;
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 580px;
}

.method-card {
  position: relative;
  display: grid;
  gap: 13px;
  align-content: start;
  grid-template-rows: auto auto minmax(48px, auto) minmax(62px, 1fr) 44px 18px;
  min-height: 335px;
  padding: 42px 18px 20px;
  border: 1px solid #dfe4f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(18, 27, 58, .08);
  text-align: center;
}

.method-featured {
  border-color: #5a3cef;
  box-shadow: 0 16px 30px rgba(64, 36, 203, .13);
}

.method-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: 115px;
  padding: 7px 10px;
  border-radius: 0 0 5px 5px;
  background: #4d31dc;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.method-icon {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f0edff;
  color: #3f24cb;
  font-size: 34px;
  line-height: 1;
}

.method-icon img {
  display: block;
  width: 45px;
  height: 44px;
  object-fit: contain;
}

.method-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-card h3 {
  margin: 0;
  color: #091026 !important;
  font-size: 18px;
  line-height: 1.35;
}

.method-card p {
  margin: 0;
  color: #293754;
  font-size: 12px;
  line-height: 1.55;
}

.method-card button {
  grid-row: 5;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
}

.method-card small {
  grid-row: 6;
  color: #3f24cb;
  font-weight: 800;
}

.sample-analysis {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 580px;
  color: #0c1430;
}

.hero-text-link {
  color: #2915c4;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 920px !important;
  border: 1px solid #d8deed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15, 23, 48, .14);
  overflow: hidden;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 16px;
  background: linear-gradient(180deg, #071226, #051025);
  color: #fff;
}

.preview-brand {
  margin-bottom: 22px;
  color: #fff;
  font-size: 18px;
}

.reference-sidebar-brand {
  display: block;
  width: 116px;
  height: auto;
}

.preview-brand .brand-icon {
  width: 24px;
  height: 24px;
  font-size: 13px;
  stroke-width: 2.6;
}

.preview-brand .brand-icon-img {
  width: 27px;
  height: 27px;
}

.preview-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 15px 13px;
  border-radius: 7px;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 850;
}

.preview-nav svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
}

.preview-nav.active { background: #4d31dc; }

.guest-box {
  display: grid;
  gap: 12px;
  margin-top: 240px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.88);
  font-size: 12px;
}

.guest-box strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guest-box button {
  min-height: 46px;
  padding: 0 12px;
  font-size: 12px;
}

.preview-main {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  padding: 28px 16px 0;
  background: #fbfcff;
}

.preview-head,
.preview-foot,
.opportunity-row,
.annual-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-head h2 {
  margin: 0;
  color: #0a1026 !important;
  font-size: 18px;
}

.preview-head span,
.preview-foot {
  color: #263554;
  font-size: 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kpi-card,
.preview-card,
.security-band,
.press-strip,
.info-panel,
.cta-panel {
  border: 1px solid #dde3f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(19, 29, 61, .08);
}

.kpi-card {
  display: grid;
  gap: 12px;
  min-height: 172px;
  padding: 24px 20px;
}

.kpi-card span,
.kpi-card small,
.preview-card p,
.preview-card span,
.transactions-mini,
.breakdown-mini li {
  color: #263554;
  font-size: 12px;
}

.kpi-card strong {
  color: #081029;
  font-size: 34px;
  line-height: 1;
}

.kpi-card small { color: #0a9f61; font-weight: 850; }

.score-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.score-card span { grid-column: 1 / -1; }
.score-card small { color: #101733; font-size: 17px; }

.score-card em {
  grid-column: 1;
  align-self: start;
  margin-top: -5px;
  color: #0a9f61;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.score-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(#10a979 0 82%, #edf1f8 82% 100%);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #fff;
}

.preview-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.preview-card {
  display: grid;
  gap: 15px;
  min-height: 225px;
  padding: 24px 20px;
}

.preview-card h3 {
  margin: 0;
  color: #101733 !important;
  font-size: 13px;
}

.opportunity-row strong {
  color: #0b1128;
  font-size: 20px;
}

.opportunity-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dining-icon-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.credit-card-art {
  display: grid;
  align-content: space-between;
  width: 132px;
  height: 76px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(42, 121, 255, .18), transparent 45%),
    linear-gradient(145deg, #020b23, #062f83 60%, #020814);
  color: #fff;
  font-size: 9px;
  box-shadow: 0 10px 18px rgba(8, 20, 54, .18);
}

.credit-card-art span {
  justify-self: end;
  color: #fff;
  font-weight: 950;
}

.annual-value strong { font-size: 22px; }

.transactions-mini span {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f6;
}

.donut {
  justify-self: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(#1e6be3 0 28%, #11bd7e 28% 50%, #ff8748 50% 68%, #8e54df 68% 84%, #d7dded 84%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: #fff;
}

.breakdown-mini {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.breakdown-mini h3 { grid-column: 1 / -1; }
.breakdown-mini ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}
.blue { background: #1e6be3; }
.green { background: #11bd7e; }
.orange { background: #ff8748; }
.violet { background: #8e54df; }

.preview-foot {
  min-height: 72px;
  margin: 0 -16px;
  padding: 0 22px;
  border-top: 1px solid #dfe4f2;
  background: #fff;
}

.preview-foot span,
.preview-foot strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-foot img {
  width: 58px;
  height: auto;
}

.preview-foot strong img {
  width: 111px;
}

.security-band {
  margin-top: 26px;
  padding: 0;
  overflow: hidden;
}

.reference-section-img {
  display: block;
  width: 100%;
  height: auto;
}

.security-band h2 {
  margin: 0 0 32px;
  text-align: center;
  color: #0a1026 !important;
  font-size: 28px;
}

.title-lock-img {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  vertical-align: -4px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr)) minmax(430px, 1.45fr) minmax(185px, .7fr);
  align-items: center;
  gap: 0;
}

.security-grid article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 18px;
  min-height: 112px;
  padding: 10px 28px;
  border-right: 1px solid #dfe4f2;
}

.security-svg,
.security-logo-img {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  color: #4b31d8;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-logo-img {
  object-fit: contain;
  stroke: none;
}

.security-grid strong {
  color: #081029;
  font-size: 18px;
  line-height: 1.18;
}

.security-grid p {
  margin: 0;
  color: #34425e;
  font-size: 15px;
  line-height: 1.55;
}

.cert-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 92px;
  border: 1px solid #dfe4f2;
  border-radius: 8px;
  overflow: hidden;
}

.cert-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  border-right: 1px solid #dfe4f2;
  color: #12203d;
  font-weight: 900;
  text-align: center;
  padding: 8px 4px;
  position: relative;
}

.cert-strip strong {
  color: #111936;
  font-size: 15px;
  line-height: 1;
}

.cert-strip small {
  color: #6a768d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.cert-strip span:last-child { border-right: 0; }

.cert-strip img {
  display: block;
  width: min(104px, 100%);
  height: 66px;
  object-fit: contain;
}

.plaid-secure {
  border-right: 0 !important;
  grid-template-columns: 1fr !important;
  gap: 6px;
}

.plaid-secure small {
  color: #3218c8;
  font-weight: 900;
}

.plaid-logo-img {
  display: block;
  width: 154px;
  height: auto;
  margin: 2px 0 4px;
}

.press-strip {
  display: block;
  min-height: 0;
  margin-top: 34px;
  overflow: hidden;
}

.press-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: inherit;
  padding: 18px 24px;
  color: #16213d;
  font-size: 14px;
}

.press-strip > div + div { border-left: 1px solid #dfe4f2; }
.rating-side {
  color: #111936 !important;
  font-size: 16px !important;
}

.stars {
  color: #3218c8;
  font-size: 28px;
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(49, 24, 200, .12);
}

.press-side {
  color: #111936 !important;
  font-size: 16px !important;
  gap: 28px !important;
}

.press-side img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.landing-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1.25fr;
  gap: 32px;
  margin-top: 48px;
}

.info-panel,
.cta-panel {
  padding: 34px 44px;
}

.info-panel h2,
.cta-panel h2 {
  margin: 0 0 28px;
  color: #0b1128 !important;
  font-size: 24px;
}

.timeline-step,
.check-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 6px 18px;
  margin-bottom: 28px;
}

.timeline-step span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5a3cef, #4326cf);
  color: #fff;
  font-weight: 950;
}

.timeline-step strong,
.check-item strong {
  color: #101733;
  font-size: 17px;
}

.timeline-step p,
.check-item p,
.cta-panel p {
  margin: 0;
  color: #30405f;
  font-size: 15px;
  line-height: 1.55;
}

.check-item span {
  grid-row: 1 / 3;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #12a86a;
  border-radius: 50%;
  color: #12a86a;
  font-weight: 950;
}

.check-item strong,
.check-item p {
  grid-column: 2;
  min-width: 0;
}

.check-item p {
  max-width: 410px;
}

.cta-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(77,49,220,.13), transparent 38%),
    linear-gradient(135deg, #fff, #f2f0ff);
}

.cta-panel h2 {
  max-width: 390px;
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.1;
}

.cta-panel p {
  max-width: 360px;
  font-size: 18px;
}

.cta-panel > button {
  width: 340px;
  min-height: 68px;
  margin: 28px 0 16px;
  font-size: 18px;
}

.cta-panel > span {
  color: #33425f;
  font-size: 15px;
}

.guest-callout {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 18px;
  width: 100%;
  margin-top: 40px;
  padding: 25px 30px;
  border: 1px solid #cdd4ef;
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  text-align: left;
}

.guest-callout span {
  grid-row: 1 / 3;
  color: #3f24cb;
  font-size: 45px;
  line-height: 1;
}

.guest-callout strong { color: #101733; }

.privacy-section {
  margin: 34px 0 0;
  padding: 0 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  color: #263554;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-header {
  justify-content: center;
}

.privacy-header h2,
.privacy-actions,
.privacy-section ul {
  display: none;
}

.privacy-section::before {
  content: "";
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-right: 7px;
  background: url("logos/security-shield-file.svg") center / contain no-repeat;
}

.privacy-section::after {
  content: "SmartCard365 is an independent service and is not affiliated with any bank, card issuer, or payment network.";
  font-size: 15px;
}

.btn-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-flow-steps {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #dfe4f2;
  border-radius: 8px;
  background: #fbfcff;
}

.upload-flow-steps h3 {
  margin: 0 0 10px;
  color: #071026;
  font-size: 14px;
}

.upload-flow-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upload-flow-steps li {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #30405f;
  font-size: 11px;
}

.upload-flow-steps li strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4f2fe0;
  color: #fff;
  font-size: 12px;
}

.save-report-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cfd7ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f8f7ff);
  box-shadow: 0 12px 28px rgba(20, 28, 56, .08);
}

.demo-try-now-prompt {
  border-color: rgba(63, 29, 221, .28);
  background: linear-gradient(135deg, #ffffff, #f4f1ff);
  box-shadow:
    0 18px 40px rgba(63, 29, 221, .14),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

.demo-try-now-pulse {
  animation: demoTryNowPulse 1.1s ease-in-out 3;
}

@keyframes demoTryNowPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 18px 40px rgba(63, 29, 221, .14),
      inset 0 1px 0 rgba(255, 255, 255, .8);
  }
  50% {
    transform: translateY(-2px);
    box-shadow:
      0 24px 54px rgba(63, 29, 221, .24),
      0 0 0 4px rgba(63, 29, 221, .12),
      inset 0 1px 0 rgba(255, 255, 255, .9);
  }
}

.save-report-prompt strong {
  color: #071026;
  font-size: 18px;
}

.save-report-prompt p {
  margin: 4px 0 0;
  color: #30405f;
}

.save-report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace {
  display: none;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-top: 40px;
}

body.workspace-unlocked .workspace {
  display: grid;
}

.workspace .card {
  border-radius: 8px;
  border-color: #dfe4f2;
  background: #fff;
  box-shadow: var(--shadow-tight);
}

.step-card,
.status-card,
.results-section {
  border: 1px solid #dfe4f2;
  background: #fff !important;
  box-shadow: var(--shadow-tight);
}

.step-card#uploadPanel,
#manualPanel,
#connectPanel {
  background: linear-gradient(180deg, #ffffff, #fbfcff) !important;
}

.upload-flow-steps,
.live-insights,
.smartcard-plan-card,
.action-plan-card,
.results-dashboard {
  background: #fff !important;
  border-color: #dfe4f2;
  box-shadow: 0 12px 28px rgba(20, 28, 56, .07);
}

.smartcard-plan-card.plan-needs-review {
  background: #fffaf2 !important;
  border-color: rgba(181, 120, 22, .28);
}

.smartcard-plan-eyebrow {
  color: #3f1ddd;
}

.smartcard-plan-sub {
  color: #30405f;
}

.sidebar,
.main {
  min-width: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    grid-column: 1 / -1;
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .dashboard-preview {
    min-height: 760px;
  }
  .security-grid,
  .landing-info-grid,
  .press-strip {
    grid-template-columns: 1fr;
  }
  .security-grid article,
  .press-strip > div + div {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid #dfe4f2;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 14px 24px;
  }
  .site-header {
    gap: 18px;
    margin-bottom: 34px;
  }
  .brand-mark {
    font-size: 20px;
  }
  .nav-login { display: none; }
  .nav-cta {
    min-width: 132px;
    padding: 0 12px;
  }
  .hero {
    min-height: 0;
    padding: 0 0 30px;
  }
  h1,
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 17px;
  }
  .method-cards,
  .kpi-grid,
  .preview-card-grid,
  .workspace {
    grid-template-columns: 1fr;
  }
  .dashboard-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .preview-sidebar {
    display: none;
  }
  .breakdown-mini {
    grid-template-columns: 1fr;
  }
  .security-band,
  .info-panel,
  .cta-panel {
    padding: 28px 20px;
  }
  .cert-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cta-panel h2 {
    font-size: 30px;
  }
  .cta-panel > button {
    width: 100%;
  }
}

/* New design handoff */
.page-shell {
  max-width: 1536px;
  padding: 14px 44px 22px;
}

.site-header {
  margin-bottom: 34px;
}

.brand-mark {
  font-size: 26px;
  cursor: pointer;
  pointer-events: auto;
}

.brand-icon-img {
  width: 39px;
  height: 39px;
  display: block;
  flex: 0 0 auto;
}

.site-nav {
  gap: 42px;
}

.site-nav a,
.site-nav .nav-link-button {
  font-size: 14px;
}

.hero {
  grid-template-columns: minmax(560px, 650px) minmax(690px, 792px);
  gap: 40px;
  align-items: start;
  min-height: 0;
  padding: 0 0 26px;
}

.hero-copy {
  padding-top: 56px;
  gap: 19px;
}

.hero-kicker {
  min-height: 28px;
  padding: 5px 12px;
  background: #f0edff;
  border: 1px solid rgba(75, 49, 216, .08);
  font-size: 14px;
}

.hero h1,
h1 {
  max-width: 640px;
  font-size: 58px;
  line-height: 1.03;
}

.hero h1 span {
  display: block;
  color: #3f1ddd;
}

.hero p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.48;
}

.trust-row {
  gap: 36px;
  font-size: 12px;
}

.method-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 608px;
  gap: 12px;
}

.method-card {
  min-height: 212px;
  gap: 8px;
  padding: 27px 10px 12px;
  grid-template-rows: auto auto auto minmax(52px, 1fr) 44px auto;
}

.method-card h3 {
  font-size: 13px;
  line-height: 1.24;
}

.method-card p {
  font-size: 10px;
  line-height: 1.45;
}

.method-icon {
  width: 44px;
  height: 44px;
}

.method-icon svg {
  width: 25px;
  height: 25px;
}

.method-ribbon {
  min-width: 92px;
  padding: 5px 8px;
  font-size: 10px;
}

.method-card button {
  width: min(124px, 100%);
  min-height: 44px;
  font-size: 11px;
  align-self: end;
  justify-self: center;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
}

.method-card small {
  font-size: 11px;
}

.guest-availability {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 608px;
  color: #071026;
  font-size: 12px;
}

.guest-availability strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #071026;
  font-size: 13px;
}

.guest-availability strong svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #3420d6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-availability span {
  color: #233250;
}

.guest-availability .hero-text-link {
  font-size: inherit;
}

.dashboard-preview {
  display: block;
  position: relative;
  align-self: end;
  margin-top: 0;
  margin-bottom: 52px;
  min-height: 0 !important;
  padding: 0;
  border-radius: 11px;
  box-shadow: 0 20px 44px rgba(15, 23, 48, .13);
  overflow: hidden;
}

.dashboard-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 54px rgba(15, 23, 48, .16);
}

.dashboard-click-zone,
.dashboard-account-zone {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-click-zone {
  inset: 0;
}

.dashboard-account-zone {
  left: 2.5%;
  bottom: 7%;
  width: 22%;
  height: 8%;
  z-index: 2;
}

.dashboard-click-zone:focus-visible,
.dashboard-account-zone:focus-visible {
  outline: 3px solid rgba(63, 29, 221, .45);
  outline-offset: -3px;
}

.reference-dashboard-img {
  display: block;
  width: 100%;
  height: auto;
}

.metric-hook {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.security-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #dfe4f2;
  background: #fff;
  box-shadow: 0 20px 44px rgba(20, 28, 56, .08);
}

.security-band article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 8px 18px;
  border-right: 1px solid #dfe4f2;
}

.security-band article:last-child {
  border-right: 0;
}

.security-band strong {
  color: #081029;
  font-size: 12px;
  line-height: 1.25;
}

.security-band p {
  grid-column: 2;
  margin: 0;
  color: #30405f;
  font-size: 10px;
  line-height: 1.45;
}

.security-band .hero-text-link {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  color: #3f1ddd;
  font-size: 10px;
  font-weight: 950;
}

.trust-card-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #3f1ddd;
  font-weight: 950;
}

.trust-card-img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.plaid-mark-img {
  width: 34px;
  height: 34px;
}

.landing-info-grid {
  grid-template-columns: 1.15fr .8fr 1.35fr;
  gap: 12px;
  margin-top: 14px;
}

.support-section {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.8fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid #dfe4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 28, 56, .07);
}

.support-section-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}

.support-section-copy span {
  color: #3f1ddd;
  font-size: 11px;
  font-weight: 900;
}

.support-section h2,
.support-section p {
  margin: 0;
}

.support-section h2 {
  color: #081029;
  font-size: 22px;
}

.support-section p {
  color: #30405f;
  font-size: 13px;
  line-height: 1.5;
}

.support-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-action-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #dfe4f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  color: #081029;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 24px rgba(20, 28, 56, .05);
}

.support-action-card:hover,
.support-action-card:focus-visible {
  border-color: rgba(63, 29, 221, .32);
  box-shadow: 0 16px 30px rgba(63, 29, 221, .1);
  outline: none;
  transform: translateY(-1px);
}

.support-action-card strong {
  font-size: 14px;
  font-weight: 950;
}

.support-action-card span {
  color: #30405f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.support-section-highlight {
  animation: actionCardsPulse 1.6s ease;
}

.nav-target-red-flash {
  animation: navTargetRedFlash 1.8s ease-in-out;
}

.hero,
.security-band,
.landing-info-grid,
.workspace,
.support-section {
  scroll-margin-top: 112px;
}

@keyframes navTargetRedFlash {
  0%, 100% {
    box-shadow: 0 16px 34px rgba(20, 28, 56, .07);
    outline: 0 solid transparent;
  }
  18%, 52%, 86% {
    box-shadow: 0 0 0 4px rgba(224, 36, 36, .28), 0 18px 38px rgba(224, 36, 36, .2);
    outline: 3px solid rgba(224, 36, 36, .82);
    outline-offset: 4px;
  }
  34%, 68% {
    box-shadow: 0 0 0 2px rgba(224, 36, 36, .12), 0 16px 34px rgba(20, 28, 56, .07);
    outline: 1px solid rgba(224, 36, 36, .35);
    outline-offset: 2px;
  }
}

.action-cards-highlight {
  animation: actionCardsPulse 1.6s ease;
}

@keyframes actionCardsPulse {
  0%, 100% { filter: none; }
  35% { filter: drop-shadow(0 0 18px rgba(63, 29, 221, .24)); }
}

.info-panel,
.cta-panel {
  min-height: 206px;
  padding: 18px 22px;
}

.how-panel {
  display: grid;
  align-content: space-between;
}

.how-steps-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, .85fr);
  align-items: start;
  gap: 8px;
}

.how-steps-row > i {
  align-self: center;
  color: #8c97ad;
  font-style: normal;
  font-size: 24px;
}

.how-panel .timeline-step {
  grid-template-columns: 30px minmax(0, 1fr);
  margin-bottom: 0;
}

.how-panel .timeline-step span {
  width: 27px;
  height: 27px;
  font-size: 13px;
}

.info-panel h2,
.cta-panel h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

.timeline-step strong,
.check-item strong {
  font-size: 12px;
}

.timeline-step p,
.check-item p,
.cta-panel p {
  font-size: 11px;
  line-height: 1.38;
}

.how-panel .timeline-step p {
  max-width: 175px;
}

.check-item {
  grid-template-columns: 22px 1fr;
  gap: 2px 10px;
  margin-bottom: 9px;
}

.check-item span {
  width: 17px;
  height: 17px;
  font-size: 11px;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(220px, 255px);
  column-gap: 18px;
  row-gap: 0;
  justify-items: start;
  align-items: center;
  align-content: center;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(135deg, #4f2fe0, #684cf2);
  color: #fff;
}

.cta-panel h2 {
  grid-column: 1;
  max-width: 360px;
  color: #fff !important;
  font-size: 25px;
  line-height: 1.12;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-panel p {
  grid-column: 1;
  max-width: 380px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-panel > button {
  grid-column: 1;
  width: 204px;
  min-height: 36px;
  margin: 18px 0 8px;
  background: #fff !important;
  color: #3f1ddd !important;
  border-color: #fff !important;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.cta-panel > span {
  grid-column: 1;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  width: 204px;
  margin-left: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-art-img {
  grid-column: 2;
  grid-row: 1 / span 4;
  position: relative;
  right: auto;
  top: auto;
  width: 250px;
  height: auto;
  justify-self: end;
  align-self: center;
}

@media (max-width: 1180px) {
  .landing-info-grid,
  .how-steps-row {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-copy {
    justify-items: center;
    text-align: center;
  }
  .method-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 620px;
  }
  .dashboard-preview {
    max-width: 792px;
    width: 100%;
    margin-top: 0;
    justify-self: center;
  }
  .how-steps-row > i {
    display: none;
  }
  .cta-art-img {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 16px;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 14px 16px 22px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    margin-bottom: 24px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    order: 3;
  }

  .site-nav a,
  .site-nav .nav-link-button {
    font-size: 12px;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-login,
  .nav-cta {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 18px;
  }

  .hero-copy {
    padding-top: 18px;
    justify-items: center;
    text-align: center;
  }

  .hero h1,
  h1 {
    max-width: 680px;
    font-size: 48px;
  }

  .hero p {
    max-width: 620px;
    font-size: 16px;
  }

  .trust-row {
    justify-content: center;
    gap: 12px 20px;
  }

  .method-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 620px;
  }

  .dashboard-preview {
    max-width: 792px;
    width: 100%;
    margin-top: 0;
    justify-self: center;
  }

  .security-band {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .security-band article {
    border-right: 0;
    border-bottom: 1px solid #dfe4f2;
  }

  .security-band article:last-child {
    border-bottom: 0;
  }

  .support-section,
  .save-report-prompt {
    display: grid;
    justify-items: start;
  }

  .support-section {
    grid-template-columns: 1fr;
  }

  .support-actions-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-info-grid {
    grid-template-columns: 1fr;
  }

  .info-panel,
  .cta-panel {
    min-height: 0;
  }

  .how-steps-row {
    grid-template-columns: 1fr;
  }

  .how-steps-row > i {
    display: none;
  }

  .how-panel .timeline-step p {
    max-width: none;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    min-height: 360px;
    padding: 24px;
  }

  .cta-panel h2,
  .cta-panel p {
    grid-column: 1;
    max-width: 100%;
  }

  .cta-art-img {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    right: auto;
    top: auto;
    width: min(280px, 100%);
    justify-self: center;
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 12px 10px 18px;
  }

  .brand-mark {
    font-size: 22px;
  }

  .brand-icon-img {
    width: 32px;
    height: 32px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .nav-login,
  .nav-cta {
    flex: 1;
    min-width: 0;
    max-width: 180px;
    padding: 0 10px;
    font-size: 13px;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .hero h1,
  h1 {
    font-size: 38px;
  }

  .hero h1 span {
    display: inline;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-kicker {
    font-size: 12px;
    max-width: 100%;
  }

  .method-cards {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 0;
    padding: 30px 16px 14px;
  }

  .guest-availability {
    max-width: 320px;
  }

  .dashboard-preview {
    border-radius: 8px;
  }

  .upload-flow-steps ol {
    grid-template-columns: 1fr;
  }

  .info-panel,
  .cta-panel {
    padding: 18px 16px;
  }

  .timeline-step {
    grid-template-columns: 36px 1fr;
  }

  .cta-panel h2 {
    font-size: 28px;
  }

  .cta-panel > button,
  .cta-panel > span {
    width: 100%;
  }
}

/* Final post-analysis cleanup: keep the workspace aligned with the white landing design. */
body.workspace-unlocked .page-shell {
  overflow-x: hidden;
}

body.workspace-unlocked .workspace {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.workspace-unlocked .sidebar,
body.workspace-unlocked .main {
  min-width: 0;
  max-width: 100%;
}

body.workspace-unlocked .sidebar {
  align-self: start !important;
  height: auto !important;
}

body.workspace-unlocked .main {
  display: grid;
  gap: 16px;
  overflow: visible;
}

body.workspace-unlocked .step-card,
body.workspace-unlocked .status-card,
body.workspace-unlocked .results-section,
body.workspace-unlocked .demo-banner,
body.workspace-unlocked .smartcard-plan-card,
body.workspace-unlocked .plan-action-panel,
body.workspace-unlocked .action-plan-card,
body.workspace-unlocked .results-dashboard,
body.workspace-unlocked .live-insights,
body.workspace-unlocked .tx-card,
body.workspace-unlocked .tx-compare,
body.workspace-unlocked .channel-confirm-box,
body.workspace-unlocked .tx-category-confirm,
body.workspace-unlocked .manual-review,
body.workspace-unlocked .top-miss-row,
body.workspace-unlocked .summary-box,
body.workspace-unlocked .chart-box,
body.workspace-unlocked .headline-box {
  border-color: #dfe4f2 !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(20, 28, 56, .07) !important;
}

body.workspace-unlocked .status-card,
body.workspace-unlocked .demo-banner,
body.workspace-unlocked .results-section {
  border-radius: 8px !important;
}

body.workspace-unlocked .smartcard-plan-eyebrow,
body.workspace-unlocked .ai-eyebrow {
  color: #3f1ddd !important;
}

body.workspace-unlocked .smartcard-plan-sub,
body.workspace-unlocked .plan-action-panel,
body.workspace-unlocked .plan-action-panel ul {
  color: #30405f !important;
}

body.workspace-unlocked .summary-highlight {
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(20, 28, 56, .07) !important;
}

body.workspace-unlocked .transactions-list,
body.workspace-unlocked .smartcard-plan,
body.workspace-unlocked .summary-grid,
body.workspace-unlocked .charts-grid {
  max-width: 100%;
  overflow: visible;
}

body.workspace-unlocked .results-section,
body.workspace-unlocked .tx-card,
body.workspace-unlocked .transactions-alert,
body.workspace-unlocked .batch-review-bar {
  overflow: visible !important;
}

body.workspace-unlocked .smartcard-plan-card,
body.workspace-unlocked .tx-card {
  border-radius: 8px !important;
}

body.workspace-unlocked .tx-card {
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.12fr) minmax(112px, .45fr);
}

body.workspace-unlocked .save-report-prompt.demo-try-now-prompt {
  border-color: rgba(63, 29, 221, .28) !important;
  background: linear-gradient(135deg, #fff, #f4f1ff) !important;
  box-shadow: 0 18px 40px rgba(63, 29, 221, .14) !important;
}

@media (max-width: 1180px) {
  body.workspace-unlocked .workspace {
    grid-template-columns: 1fr !important;
  }

  body.workspace-unlocked .tx-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .modal-content.how-it-works-modal-content {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow-y: auto;
    padding: 18px;
  }

  .how-it-works-modal-header {
    gap: 12px;
  }

  .how-it-works-modal-steps {
    grid-template-columns: 1fr;
  }

  .how-it-works-modal-steps article {
    min-height: 0;
  }

  .how-it-works-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .how-it-works-actions .primary-btn,
  .how-it-works-actions .secondary-btn {
    width: 100%;
  }
}

/* Final fintech polish and review-attention behavior. Keep this block last. */
body.workspace-unlocked {
  --workspace-surface: linear-gradient(135deg, #ffffff 0%, #fbfcff 54%, #f5f2ff 100%);
  --workspace-surface-strong: linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #f1edff 100%);
  --workspace-line: rgba(161, 171, 218, .5);
  --workspace-glow: 0 18px 42px rgba(55, 38, 166, .09);
}

body.workspace-unlocked .card,
body.workspace-unlocked .step-card,
body.workspace-unlocked .status-card,
body.workspace-unlocked .results-section,
body.workspace-unlocked .demo-banner,
body.workspace-unlocked .smartcard-plan-card,
body.workspace-unlocked .plan-action-panel,
body.workspace-unlocked .action-plan-card,
body.workspace-unlocked .results-dashboard,
body.workspace-unlocked .live-insights,
body.workspace-unlocked .tx-card,
body.workspace-unlocked .tx-compare,
body.workspace-unlocked .channel-confirm-box,
body.workspace-unlocked .tx-category-confirm,
body.workspace-unlocked .manual-review,
body.workspace-unlocked .top-miss-row,
body.workspace-unlocked .summary-box,
body.workspace-unlocked .chart-box,
body.workspace-unlocked .headline-box {
  border-color: var(--workspace-line) !important;
  background: var(--workspace-surface) !important;
  box-shadow: var(--workspace-glow) !important;
}

body.workspace-unlocked #selectedWalletPanel,
body.workspace-unlocked .wallet,
body.workspace-unlocked .wallet-row,
body.workspace-unlocked .wallet-cards > *,
body.workspace-unlocked .upload-flow-steps,
body.workspace-unlocked .save-report-prompt {
  border-color: rgba(161, 171, 218, .46) !important;
  background: var(--workspace-surface-strong) !important;
  box-shadow: 0 14px 30px rgba(55, 38, 166, .075) !important;
}

body.workspace-unlocked .live-insights {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.98) 50%, rgba(242,238,255,.95) 100%) !important;
}

body.workspace-unlocked .smartcard-plan-eyebrow,
body.workspace-unlocked .transactions-alert-copy strong,
body.workspace-unlocked .wallet-panel-title,
body.workspace-unlocked .wallet h3 {
  color: #091026 !important;
}

body.workspace-unlocked .smartcard-plan-eyebrow {
  color: #3f1ddd !important;
}

body.workspace-unlocked .plan-action-panel,
body.workspace-unlocked .plan-action-panel ul,
body.workspace-unlocked .live-insights,
body.workspace-unlocked .wallet,
body.workspace-unlocked .wallet-row {
  color: #273755 !important;
}

body.workspace-unlocked .transactions-alert-unresolved,
body.workspace-unlocked .transactions-alert[data-review-apply-bar],
body.workspace-unlocked [data-review-apply-bar] {
  background: linear-gradient(135deg, #fffaf4 0%, #fff 48%, #f7f4ff 100%) !important;
  border-color: rgba(181, 120, 22, .32) !important;
}

body.workspace-unlocked .batch-review-bar {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,241,255,.96)) !important;
  border-color: rgba(63, 29, 221, .32) !important;
  box-shadow: 0 24px 64px rgba(55, 38, 166, .22) !important;
}

.review-attention-active {
  outline: 0 solid rgba(220, 38, 38, 0);
  outline-offset: 0;
  will-change: transform, filter, outline-color, outline-offset;
  animation: reviewAttentionActiveFinal 1.35s ease-in-out infinite !important;
}

.tx-card.review-attention-active .transaction-review-panel:not(.resolved),
.tx-card.review-attention-active .channel-confirm-box:not(.resolved),
.tx-card.review-attention-active [data-apply-duplicate-choice],
.transactions-alert.review-attention-active,
.batch-review-bar.review-attention-active {
  outline: 0 solid rgba(220, 38, 38, 0);
  outline-offset: 0;
  will-change: transform, filter, outline-color, outline-offset;
  animation: reviewAttentionActiveFinal 1.35s ease-in-out infinite !important;
}

.attention-flash {
  outline: 0 solid rgba(220, 38, 38, 0);
  outline-offset: 0;
  will-change: transform, filter, outline-color, outline-offset;
  animation: smartcardAttentionFlashFinal 1.25s ease-in-out 4 !important;
}

@keyframes reviewAttentionActiveFinal {
  0%, 100% {
    outline-color: rgba(220, 38, 38, .16);
    outline-width: 0;
    outline-offset: 0;
    filter: none;
    transform: translateY(0);
  }
  50% {
    outline-color: rgba(220, 38, 38, .9);
    outline-width: 4px;
    outline-offset: 4px;
    filter: drop-shadow(0 12px 20px rgba(220, 38, 38, .18));
    transform: translateY(-1px);
  }
}

@keyframes smartcardAttentionFlashFinal {
  0%, 100% {
    outline-color: rgba(220, 38, 38, .16);
    outline-width: 0;
    outline-offset: 0;
    filter: none;
    transform: translateY(0);
  }
  38%, 72% {
    outline-color: rgba(220, 38, 38, .92);
    outline-width: 4px;
    outline-offset: 5px;
    filter: drop-shadow(0 14px 22px rgba(220, 38, 38, .2));
    transform: translateY(-1px);
  }
}

/* Inset alert rings: keep every side visible inside wide analysis cards. */
.review-attention-active,
.attention-flash,
.tx-card.review-attention-active .transaction-review-panel:not(.resolved),
.tx-card.review-attention-active .channel-confirm-box:not(.resolved),
.tx-card.review-attention-active [data-apply-duplicate-choice],
.transactions-alert.review-attention-active,
.batch-review-bar.review-attention-active {
  position: relative;
  outline: none !important;
  outline-offset: 0 !important;
  animation: none !important;
}

.review-attention-active::after,
.attention-flash::after,
.tx-card.review-attention-active .transaction-review-panel:not(.resolved)::after,
.tx-card.review-attention-active .channel-confirm-box:not(.resolved)::after,
.tx-card.review-attention-active [data-apply-duplicate-choice]::after,
.transactions-alert.review-attention-active::after,
.batch-review-bar.review-attention-active::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  box-sizing: border-box;
  border: 4px solid rgba(220, 38, 38, .9);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .65),
    0 0 0 2px rgba(220, 38, 38, .08),
    0 18px 42px rgba(220, 38, 38, .16);
  opacity: 0;
  pointer-events: none;
  animation: smartcardInsetReviewPulse 1.35s ease-in-out infinite !important;
}

.attention-flash::after {
  animation: smartcardInsetAttentionFlash 1.25s ease-in-out 4 !important;
}

.live-insights.attention-flash::after {
  border-color: rgba(220, 38, 38, .86);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .68),
    0 0 0 2px rgba(220, 38, 38, .08),
    0 16px 34px rgba(220, 38, 38, .14);
}

@keyframes smartcardInsetReviewPulse {
  0%, 100% {
    opacity: .18;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(.996);
  }
}

@keyframes smartcardInsetAttentionFlash {
  0%, 100% {
    opacity: .12;
    transform: scale(1);
  }
  38%, 72% {
    opacity: 1;
    transform: scale(.996);
  }
}

/* Cross-browser and responsive hardening. Keep this compatibility layer last. */
html {
  min-width: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: rgba(63, 29, 221, .16);
}

button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.link-btn,
.method-btn,
.nav-link-button {
  touch-action: manipulation;
}

input,
select,
textarea,
button {
  -webkit-appearance: none;
  appearance: none;
}

select {
  -webkit-appearance: menulist;
  appearance: auto;
  max-width: 100%;
  min-height: 40px;
}

input[type="file"] {
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
  min-height: 44px;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
}

.page-shell,
.site-header,
.hero,
.landing-info-grid,
.security-band,
.workspace,
.sidebar,
.main,
.step-card,
.status-card,
.results-section,
.smartcard-plan-card,
.results-dashboard,
.tx-card,
.modal-content {
  min-width: 0;
}

.hero,
.workspace,
.landing-info-grid,
.security-band,
.method-cards,
.summary-grid,
.charts-grid,
.transactions-list,
.support-actions-grid {
  max-width: 100%;
}

.hero-preview,
.dashboard-card,
.preview-card,
.cta-panel,
.results-section,
.smartcard-plan-card,
.tx-card,
.save-report-prompt {
  overflow-wrap: anywhere;
}

.dashboard-card,
.dashboard-img,
.hero-dashboard-img {
  height: auto;
  max-width: 100%;
}

.modal {
  z-index: 2000;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop {
  position: fixed;
}

.modal-content {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@supports (height: 100dvh) {
  .modal-content {
    max-height: calc(100dvh - 48px);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel,
  .batch-review-bar,
  .app-toast,
  .voice-guide-controls {
    background: rgba(255, 255, 255, .97) !important;
  }
}

@supports not (overflow-wrap: anywhere) {
  .hero,
  .tx-card,
  .smartcard-plan-card,
  .wallet-row,
  .method-card,
  .support-action-card {
    word-break: break-word;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: start;
  }

  .hero {
    grid-template-columns: 1fr !important;
  }

  .hero-copy,
  .hero-preview,
  .dashboard-preview,
  .dashboard-card {
    max-width: 100%;
  }

  .dashboard-preview {
    align-self: auto;
    margin-bottom: 0;
  }

  .security-band {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.workspace-unlocked .workspace,
  .workspace {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .batch-review-bar {
    grid-template-columns: 1fr !important;
    align-items: stretch;
    width: calc(100vw - 24px);
    left: 12px;
    right: 12px;
  }

  .batch-review-bar-actions {
    width: 100%;
  }

  .batch-review-bar-actions button {
    flex: 1 1 160px;
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  body {
    background: #fff !important;
  }

  .page-shell {
    width: 100%;
    padding: 10px 12px 18px !important;
  }

  .site-header {
    gap: 14px;
  }

  .brand-mark {
    font-size: 24px;
    max-width: 100%;
  }

  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .nav-actions button {
    flex: 1 1 0;
    min-height: 48px;
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 0 !important;
  }

  .hero h1,
  h1 {
    font-size: clamp(42px, 13vw, 58px) !important;
    line-height: .98;
  }

  .hero-subtitle,
  .hero-copy p,
  .info-panel p,
  .support-section p {
    font-size: 16px;
    line-height: 1.5;
  }

  .method-cards,
  .landing-info-grid,
  .support-actions-grid,
  .security-band,
  .summary-grid,
  .charts-grid,
  .plan-grid,
  .results-dashboard,
  .how-it-works-modal-steps {
    grid-template-columns: 1fr !important;
  }

  .method-card,
  .support-action-card,
  .step-card,
  .status-card,
  .results-section,
  .sidebar,
  .smartcard-plan-card,
  .tx-card {
    border-radius: 12px;
  }

  .method-card,
  .support-action-card,
  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .link-btn {
    min-height: 48px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px !important;
  }

  .upload-row,
  .manual-entry-row,
  .manual-row,
  .transactions-alert,
  .save-report-prompt {
    grid-template-columns: 1fr !important;
  }

  .upload-row button,
  .manual-entry-row button,
  .save-report-prompt button {
    width: 100%;
  }

  .tx-card {
    padding: 18px 14px;
  }

  .tx-compare,
  .channel-confirm-box,
  .tx-category-confirm {
    width: 100%;
  }

  .modal-content {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 32px);
    margin: 16px auto !important;
    padding: 18px !important;
    border-radius: 16px;
  }

  @supports (height: 100dvh) {
    .modal-content {
      max-height: calc(100dvh - 32px);
    }
  }
}

@media (max-width: 420px) {
  .nav-actions,
  .hero-trust-row,
  .batch-review-bar-actions,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .security-band article,
  .wallet-row,
  .summary-box {
    padding-inline: 14px;
  }

  .modal-close-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
