/* —— Merchant + Admin portals —— */
.portal .side-nav { align-content: start; }
.portal .main {
  align-content: start;
  max-width: 1180px;
  width: 100%;
  gap: 1.25rem;
}
.portal .main > h2 { margin-bottom: 0; }
.portal .main > h2 + p { margin-top: -0.6rem; max-width: 60ch; }

.page-head { display: grid; gap: 0.35rem; margin-bottom: 0.25rem; }
.page-head h2 { margin: 0; }
.page-head p { max-width: 60ch; }
.page-kicker {
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal) !important;
  margin: 0;
}

.portal .panel { border-radius: 18px; padding: 1.35rem 1.4rem; }
.portal .panel.stack { gap: 0.9rem; }
.portal .panel > .btn,
.portal .panel.stack > .btn { justify-self: start; min-width: 180px; }
.portal .main > .stack > .btn,
.portal .main > .btn { justify-self: start; min-width: 180px; }

.portal .btn-primary {
  background: linear-gradient(145deg, #00395d, #002a45);
  box-shadow: 0 8px 20px rgba(0, 57, 93, 0.22);
}
.portal .btn-primary:hover { background: linear-gradient(145deg, #007eb6, #00395d); }
.portal .btn { padding: 0.8rem 1.25rem; border-radius: 12px; }
.portal .btn:hover { transform: translateY(-1px); }

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}
@media (max-width: 640px) { .inline-form { grid-template-columns: 1fr; } }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 840px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { display: grid; gap: 0.35rem; position: relative; overflow: hidden; }
.kpi::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.14), transparent 70%);
  transition: transform 400ms var(--ease);
}
.kpi:hover::after { transform: scale(1.4); }
.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.kpi-small { font-size: 1.05rem; word-break: break-all; }
.kpi-sub { font-size: 0.82rem; color: var(--mist); }
.kpi-accent {
  background: linear-gradient(145deg, #007eb6, #00395d) !important;
  border-color: transparent !important;
}
.kpi-accent .kpi-label, .kpi-accent .kpi-sub { color: rgba(255, 255, 255, 0.75); }
.kpi-accent .kpi-value { color: #fff; }
.kpi-grid .kpi:nth-child(2) { animation-delay: 60ms; }
.kpi-grid .kpi:nth-child(3) { animation-delay: 120ms; }
.kpi-grid .kpi { animation: rise 520ms var(--ease) both; }

.portal .qr-box {
  aspect-ratio: auto;
  min-height: 220px;
  max-width: 520px;
  border-radius: 18px;
  border-style: dashed;
  color: var(--mist);
}
.portal .table { background: #fff; border-radius: 14px; overflow: hidden; }

@media (max-width: 900px) {
  .portal .side {
    padding: 1rem 1rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .portal .side-label { display: none; }
  .portal .side-brand { margin-bottom: 0.65rem; }
  .portal .side-nav {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .portal .side-nav a { flex-shrink: 0; padding: 0.55rem 0.8rem; }
  .portal .side-foot { display: none; }
  .portal .main { padding: 1.4rem 1.1rem 2rem; }
}

/* —— Setup page fixes —— */
.setup-block .btn-signal { background: var(--teal); color: #fff; }
.setup-block .btn-signal:hover { background: #006a9e; }
.setup-block .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.setup-block pre { white-space: pre-wrap; word-break: break-all; }
.setup-block code { word-break: break-all; }

/* —— Landing additions —— */
.lp-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  animation: rise 600ms var(--ease) both;
}
.lp-nav-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.lp-nav .brand { color: #fff; font-size: 1.3rem; }
.lp-nav .brand span { color: #7fd6f7; }
.lp-nav-links { display: flex; align-items: center; gap: 0.35rem; }
.lp-nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.lp-nav-links a:not(.btn):hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lp-nav-links .btn-signal { background: #fff; color: var(--ink); padding: 0.6rem 1rem; }
.lp-nav-links .btn-signal:hover { background: #e8f3f9; }
@media (max-width: 720px) { .lp-nav-links a:not(.btn) { display: none; } }
@media (max-width: 960px) {
  .lp-hero-inner { padding-top: 6rem; }
  .lp-eyebrow { white-space: normal; }
}

.lp-copy .lp-brand { display: none; }
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d9f2fc;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.lp-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7fd6f7, #b3e6fa, #00aeef);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.lp-mock-card .pill { white-space: nowrap; }
.lp-mock-recent { padding: 0 0.85rem 1.2rem; }
.lp-mock-recent-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.lp-mock-recent-title span { color: var(--teal); }
.lp-mock-txn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  animation: txnIn 600ms var(--ease) both;
}
.lp-mock-txn:nth-child(2) { animation-delay: 700ms; }
.lp-mock-txn:nth-child(3) { animation-delay: 900ms; }
.lp-mock-txn:nth-child(4) { animation-delay: 1100ms; }
@keyframes txnIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
.lp-mock-txn i {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e5f4fb; color: var(--teal);
  font-style: normal; font-weight: 700; font-size: 0.78rem;
  flex-shrink: 0;
}
.lp-mock-txn div { flex: 1; min-width: 0; }
.lp-mock-txn strong { display: block; font-size: 0.8rem; }
.lp-mock-txn small { font-size: 0.68rem; color: var(--mist); }
.lp-mock-txn b { font-family: var(--font-display); font-size: 0.82rem; }
.lp-mock-txn b.in { color: var(--teal); }

.lp-toast {
  position: absolute;
  z-index: 3;
  left: -70px;
  bottom: 70px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: toastIn 700ms var(--ease) 1.4s both, floatPhone 5s var(--ease) 2.1s infinite alternate;
}
.lp-toast i {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #00aeef, #007eb6);
  color: #fff; font-style: normal; font-weight: 700;
}
.lp-toast strong { display: block; font-size: 0.85rem; }
.lp-toast small { font-size: 0.72rem; color: var(--mist); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 960px) { .lp-toast { left: 50%; transform: translateX(-50%); bottom: -24px; animation: toastIn 700ms var(--ease) 1.4s both; } }

.lp-section {
  background: #f4f6f9;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.lp-wrap { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.lp-section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.lp-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-feature {
  background: #fff;
  border-radius: 22px;
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.lp-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 126, 182, 0.2);
  box-shadow: 0 24px 50px rgba(0, 126, 182, 0.12);
}
.lp-feature .lp-ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: #e5f4fb; color: var(--teal);
  margin-bottom: 1.2rem;
}
.lp-feature .lp-ico svg { width: 24px; height: 24px; }
.lp-feature h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 900px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  counter-increment: step;
  padding: 1.6rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lp-step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #7fd6f7;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}
.lp-step h3 { color: #fff; }
.lp-step p { color: rgba(244, 250, 248, 0.7); }
.lp-dark {
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(0, 174, 239, 0.2), transparent 55%),
    linear-gradient(160deg, #001c30, #00395d 60%, #002640);
  color: #fff;
}
.lp-dark .lp-section-head h2 { color: #fff; }
.lp-dark .lp-section-head p { color: rgba(244, 250, 248, 0.7); }

.lp-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.25rem 2.5rem;
  border-radius: 26px;
  background: linear-gradient(135deg, #007eb6, #00395d);
  color: #fff;
  box-shadow: 0 30px 70px rgba(0, 126, 182, 0.28);
}
.lp-cta h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lp-cta p { color: rgba(255, 255, 255, 0.78); margin-top: 0.35rem; }
.lp-cta .btn-signal { background: #fff; color: var(--ink); padding: 0.95rem 1.4rem; }
.lp-footer {
  background: #f4f6f9;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}
.lp-footer .lp-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.lp-footer p { font-size: 0.88rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.lp-grid .reveal:nth-child(2), .lp-steps .reveal:nth-child(2) { transition-delay: 90ms; }
.lp-grid .reveal:nth-child(3), .lp-steps .reveal:nth-child(3) { transition-delay: 180ms; }

/* Pay amount centering */
.pay-amount-row { justify-content: center; }
.pay-amount-row input { field-sizing: content; min-width: 3ch; max-width: 80%; }
