/* =========================================================
   CloudPay POS · posproject
   Full demo stylesheet — POS terminal + merchant portal
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-700: #05603a;
  --green-600: #067647;
  --green-500: #12b76a;
  --green-100: #dcfae6;
  --green-50: #ecfdf3;
  --ink: #0f1f18;
  --ink-2: #1a2b22;
  --ink-3: #33453b;
  --muted: #667a6f;
  --muted-2: #98ada3;
  --line: #e3ebe5;
  --line-soft: #edf3ef;
  --bg: #f4faf6;
  --card: #ffffff;
  --green: #12b76a;
  --green-dark: #067647;
  --green-bg: #ecfdf3;
  --red: #f04438;
  --red-dark: #b42318;
  --red-bg: #fef3f2;
  --amber: #f79009;
  --amber-dark: #b54708;
  --amber-bg: #fffaeb;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 24, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 31, 24, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 31, 24, 0.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f1f18;
  background: #04100a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.mode-pos {
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 16% 8%, rgba(7, 148, 85, 0.26), transparent 62%),
    radial-gradient(760px 540px at 88% 88%, rgba(18, 183, 106, 0.09), transparent 60%),
    radial-gradient(600px 500px at 60% 20%, rgba(18, 183, 106, 0.08), transparent 70%),
    #04100a;
}

body.mode-pos::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 78%);
}

body.mode-merchant {
  background: #f5faf7;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-xs {
  width: 13px;
  height: 13px;
}

::selection {
  background: rgba(18, 183, 106, 0.22);
}

/* ============ boot ============ */
.boot-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: #04100a;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #12b76a, #067647);
  box-shadow: 0 16px 40px rgba(7, 148, 85, 0.45);
}

.boot-mark svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.boot-screen p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.72);
}

/* ============ shared buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(180deg, #12b76a 0%, #067647 100%);
  color: #fff;
  border-radius: 13px;
  height: 52px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  width: 100%;
  box-shadow: 0 8px 18px rgba(7, 148, 85, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #17b26a 0%, #067647 100%);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.995);
}

.btn-primary:disabled {
  background: #b9e6cc;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-light {
  background: #fff;
  color: #0f1f18;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.btn-light:hover {
  background: #ecfdf3;
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d7e8dd;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #067647;
  font-size: 12px;
  font-weight: 600;
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.text-link:hover {
  text-decoration: underline;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.pill-blue {
  background: rgba(18, 183, 106, 0.16);
  color: #6ce9a6;
  border: 1px solid rgba(18, 183, 106, 0.22);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.35px;
  color: #98ada3;
}

.eyebrow-dark {
  color: #7f9a86;
}

/* =========================================================
   POS stage (desktop chrome)
   ========================================================= */
.pos-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(280px, 330px);
  align-items: center;
  gap: 34px;
  gap: clamp(24px, 3.4vw, 58px);
  padding: 26px 36px;
  padding: 26px clamp(22px, 3.5vw, 64px);
}

.stage-panel {
  color: #e7f2eb;
  max-width: 340px;
}

.stage-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #12b76a, #067647);
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 148, 85, 0.38);
}

.brand-tile svg {
  width: 22px;
  height: 22px;
}

.brand-tile-lg {
  width: 45px;
  height: 45px;
  border-radius: 14px;
}

.brand-tile-lg svg {
  width: 26px;
  height: 26px;
}

.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.boot-mark .brand-mark {
  width: 30px;
  height: 30px;
}

.brand-tile-lg .brand-mark {
  width: 26px;
  height: 26px;
}

.merchant-logo .brand-mark {
  width: 23px;
  height: 23px;
}

.side-brand .brand-tile .brand-mark {
  width: 19px;
  height: 19px;
}

.portal-topbar .brand-tile .brand-mark {
  width: 17px;
  height: 17px;
}

.stage-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
}

.stage-brand-name span {
  color: #75e0a7;
  font-weight: 600;
}

.stage-brand-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #7f9587;
}

.stage-title {
  font-size: 32px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -1.1px;
  color: #fff;
}

.stage-title em {
  font-style: normal;
  background: linear-gradient(100deg, #6ce9a6, #a6f4c5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stage-copy {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #8ea898;
}

.stage-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.stage-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #c6d8cc;
  line-height: 1.45;
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #32d583;
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.12);
  flex: none;
}

.stage-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stage-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
  font-size: 10.5px;
  color: #637d6c;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2edb8b;
  box-shadow: 0 0 0 4px rgba(46, 219, 139, 0.12);
}

.device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.device {
  height: calc(100vh - 90px);
  height: min(820px, calc(100vh - 90px));
  aspect-ratio: 0.53;
  min-height: 560px;
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(150deg, #1b2b21, #08130d 45%, #142019);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.device::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 160px;
  width: 3px;
  height: 62px;
  border-radius: 0 4px 4px 0;
  background: #22352a;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: #f4faf6;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.device-caption {
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: #61786b;
}

/* right column */
.demo-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.demo-card + .demo-card {
  margin-top: 14px;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.demo-card h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
}

.demo-card p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #8ea898;
}

.demo-card p strong {
  color: #cde6d7;
  font-weight: 600;
}

.test-cards {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.test-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #dfeee5;
  font-size: 11px;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}

.test-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.test-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 22px;
  border-radius: 5px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
  flex: none;
  overflow: hidden;
}

.test-brand.visa {
  background: #1a1f71;
  color: #fff;
}

.test-brand.mc {
  background: #fff;
  color: #eb001b;
  position: relative;
  overflow: hidden;
}

.test-brand.mc::after {
  content: "";
  position: absolute;
  right: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f79e1b;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.test-brand.amex {
  background: #006fcf;
  color: #fff;
}

.test-num {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1px;
  color: #c8e2d2;
  margin-left: auto;
  white-space: nowrap;
}

.test-outcome {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.test-outcome.ok {
  background: #32d583;
}

.test-outcome.no {
  background: #f97066;
}

.demo-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #799380;
  font-size: 10.5px;
  line-height: 1.55;
}

.demo-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.demo-card-soft {
  background: rgba(255, 255, 255, 0.028);
}

.demo-steps {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #aec6b8;
}

.demo-steps li span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 9px;
  color: #5a7a69;
  width: 18px;
}

.demo-card .text-link {
  margin-top: 16px;
  color: #6ce9a6;
  font-size: 11.5px;
}

/* =========================================================
   POS app
   ========================================================= */
.statusbar {
  flex: 0 0 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 22px;
  background: linear-gradient(180deg, #067647, #067647);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 20;
}

.status-time {
  font-variant-numeric: tabular-nums;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.pos-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 55% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #f6fbf8 0%, #f3f9f5 100%);
  position: relative;
}

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-body::-webkit-scrollbar {
  display: none;
}

.screen-body.flat {
  padding: 0 0 10px;
}

.app-head {
  position: relative;
  flex: none;
  padding: 14px 54px 10px;
  text-align: center;
}

.app-head h1 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.35px;
  color: #0f1f18;
}

.app-head p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: #667a6f;
  letter-spacing: 0.05px;
}

.manual-screen .app-head p {
  font-size: 10px;
  white-space: nowrap;
}

.app-back {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #33453b;
  transition: background 0.15s ease;
}

.app-back:hover {
  background: rgba(15, 31, 24, 0.05);
}

.app-back .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.app-settings {
  position: absolute;
  right: 12px;
  top: 11px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ecfdf3;
  border: 1px solid #d3f8e2;
  color: #067647;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.app-settings:active {
  background: #d3f8e2;
}

.app-settings .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.page-head {
  padding: 20px 20px 8px;
  flex: none;
}

.page-head h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-head p {
  margin-top: 3px;
  font-size: 11.5px;
  color: #667a6f;
  line-height: 1.4;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #067647;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(7, 148, 85, 0.22);
}

.mini-btn .icon {
  width: 13px;
  height: 13px;
}

.mini-btn:active {
  transform: translateY(1px);
}

/* --- summary --- */
.summary-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(227, 235, 229, 0.95);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.025);
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-row.due {
  margin-top: 7px;
  padding-bottom: 7px;
}

.summary-row.due > span:first-child {
  font-size: 12px;
  font-weight: 600;
  color: #33453b;
}

.summary-row.due strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.55px;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
}

.summary-row.fee > span {
  font-size: 11px;
  color: #667a6f;
  font-variant-numeric: tabular-nums;
}

.summary-card.compact {
  padding: 13px 15px;
}

.summary-card.compact .summary-row.due {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf3ef;
}

.summary-card.compact .summary-row.due strong {
  font-size: 15px;
  color: #067647;
  letter-spacing: -0.2px;
}

.summary-card.compact .summary-row.fee {
  padding-top: 8px;
}

.summary-card.compact .summary-row.fee > span:last-child {
  color: #667a6f;
}

.section-label {
  margin: 14px 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475a4e;
}

.section-help {
  margin: -4px 2px 10px;
  font-size: 10px;
  line-height: 1.4;
  color: #667a6f;
}

/* --- calculator-style sales screen --- */
.order-summary {
  background: #f3f2f0;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  padding: 18px 14px 16px;
  text-align: center;
}

.order-summary .summary-title {
  font-size: 12px;
  color: #3c3c3a;
  margin-bottom: 8px;
}

.order-summary .summary-amount-label {
  font-size: 12px;
  color: #3c3c3a;
}

.order-summary .summary-amount {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 4px 0 12px;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.order-summary .summary-fee {
  font-size: 11px;
  color: #4a4a46;
}

/* --- keypad --- */
.keypad-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(227, 235, 229, 0.7);
  border-radius: 16px;
  padding: 4px 5px;
  overflow: hidden;
}

.keypad-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 22c2.6 3.6 6.4 6.4 10 7-3.6.6-7.4 3.4-10 7-2.6-3.6-6.4-6.4-10-7 3.6-.6 7.4-3.4 10-7Z' fill='%23067647' fill-opacity='.045'/%3E%3Cpath d='M14 48c1.6 2.2 3.9 3.9 6 4.2-2.1.3-4.4 2-6 4.3-1.6-2.3-3.9-4-6-4.3 2.1-.3 4.4-2 6-4.2Z' fill='%23067647' fill-opacity='.04'/%3E%3C/svg%3E");
  background-size: 64px 64px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}

.key {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 14px 0;
  font-size: 21.5px;
  font-weight: 500;
  color: #0f1f18;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background 0.1s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.key:hover {
  background: rgba(18, 183, 106, 0.05);
}

.key:active,
.key.is-pressed {
  background: #d3f8e2;
  transform: scale(0.97);
}

.key-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #475a4e;
}

.key-ghost {
  pointer-events: none;
  visibility: hidden;
}

.amount-confirm {
  margin-top: 12px;
}

.sales-screen {
  background: #fff;
}

.sales-screen .screen-body {
  display: flex;
  flex-direction: column;
  padding-top: 52px;
}

.sales-screen .section-label {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1b;
}

.sales-screen .section-help {
  margin-top: -3px;
  margin-bottom: 10px;
  font-size: 10px;
  color: #555;
}

.sales-screen .keypad-card {
  flex: 1;
  display: flex;
  min-height: 300px;
  background: #f3f2f0;
  border: 0;
  border-radius: 6px;
  padding: 8px;
  box-shadow: none;
}

.sales-screen .keypad-card::before {
  display: none;
}

.sales-screen .amount-keypad {
  flex: 1;
  grid-template-rows: repeat(4, minmax(54px, 1fr));
  gap: 6px;
}

.sales-screen .amount-keypad .key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 10px;
  background: #fbfbfa;
  font-size: 28px;
  font-weight: 500;
  color: #1d1d1b;
}

.sales-screen .amount-keypad .key:hover {
  background: #f1f7f3;
}

.sales-screen .amount-keypad .key:active,
.sales-screen .amount-keypad .key.is-pressed {
  background: #d3f8e2;
}

.sales-screen .amount-keypad .key-ghost {
  background: transparent;
}

.sales-screen .amount-keypad .key-sub {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #333;
}

.sales-screen .amount-confirm {
  height: 56px;
  margin-top: 12px;
  border-radius: 4px;
  background: #0aa84f;
  box-shadow: none;
  font-size: 17px;
  font-weight: 500;
}

.sales-screen .amount-confirm:hover {
  background: #089443;
}

.sales-screen .lock-note {
  margin-top: 9px;
  color: #8b8b86;
}

.lock-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 9px 0 2px;
  font-size: 10px;
  color: #98ada3;
  text-align: center;
  line-height: 1.35;
}

.lock-note .icon {
  width: 11px;
  height: 11px;
  flex: none;
}

/* --- bottom nav --- */
.bottom-nav {
  flex: 0 0 62px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e8f0ea;
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 15;
  padding-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #98ada3;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn .icon {
  width: 21px;
  height: 21px;
}

.nav-btn:hover {
  color: #667a6f;
}

.nav-btn.active {
  color: #067647;
}

/* --- payment method screen --- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.method-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e4ece6;
  border-radius: 13px;
  padding: 11px 13px;
  min-height: 64px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.method-card:hover {
  border-color: #b9e6cc;
}

.method-card:active {
  transform: scale(0.985);
}

.method-card.selected {
  border-color: #32d583;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
}

.method-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #475a4e;
  display: grid;
  place-items: center;
  flex: none;
}

.method-icon .icon {
  width: 17px;
  height: 17px;
}

.method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.method-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #0f1f18;
  line-height: 1.2;
}

.method-sub {
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: -0.05px;
  color: #98ada3;
}

.method-check {
  width: 18px;
  height: 18px;
  display: none;
  place-items: center;
  color: #067647;
  flex: none;
  margin-left: auto;
}

.method-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.method-card.selected .method-check {
  display: grid;
}

.method-card.disabled {
  opacity: 0.42;
  pointer-events: none;
}

.flow-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel {
  flex: 0 0 86px;
  height: 52px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  color: #33453b;
  background: transparent;
}

.btn-cancel:hover {
  background: rgba(15, 31, 24, 0.045);
}

.flow-actions .btn-primary {
  flex: 1;
}

/* --- manual entry --- */
.field-label {
  margin: 0 0 5px 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: #475a4e;
}

.field {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e5ede7;
  background: #f3f8f4;
  padding: 0 11px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.55px;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  overflow: hidden;
  white-space: nowrap;
}

.field.focused {
  background: #fff;
  border-color: #32d583;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.11);
}

.field.placeholder {
  color: #b3bfb7;
  letter-spacing: 1.4px;
  font-weight: 400;
}

.field.invalid {
  border-color: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.09);
}

.field-value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-help {
  min-height: 13px;
  margin: 4px 2px 3px;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.3;
  color: #f04438;
  font-weight: 500;
}

.field-help.ok {
  color: #667a6f;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 8px;
}

.manual-screen .screen-body {
  display: flex;
  flex-direction: column;
}

.manual-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.manual-card .keypad {
  margin-top: 1px;
}

.manual-keypad-card {
  flex: 1;
  display: flex;
  min-height: 200px;
  margin-top: 8px;
}

.manual-keypad-card .keypad {
  flex: 1;
  grid-template-rows: repeat(4, minmax(42px, 1fr));
}

.manual-card .key {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manual-confirm {
  margin-top: 9px;
}

/* --- terminal simulation screens --- */
.terminal-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(227, 235, 229, 0.9);
  border-radius: 16px;
  padding: 20px 18px 18px;
  margin-top: 4px;
  text-align: center;
}

.terminal-visual {
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.terminal-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.terminal-copy {
  margin: 6px auto 0;
  max-width: 270px;
  font-size: 11px;
  line-height: 1.55;
  color: #667a6f;
}

.amount-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 13px;
  border-radius: 99px;
  background: #ecfdf3;
  color: #067647;
  font-size: 11px;
  font-weight: 600;
}

.amount-chip strong {
  font-size: 14px;
  letter-spacing: -0.2px;
}

.insert-anim {
  position: relative;
  width: 148px;
  height: 108px;
}

.insert-anim .slot {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 124px;
  height: 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2b22, #0f1f18);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.insert-anim .slot::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 7px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.insert-anim .insert-card {
  position: absolute;
  left: 34px;
  bottom: 25px;
  width: 80px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #12b76a, #067647);
  box-shadow: 0 10px 24px rgba(7, 148, 85, 0.35);
  animation: cardInsert 2.6s ease-in-out infinite;
}

.insert-anim .insert-card::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffd678, #d6a13b);
  opacity: 0.9;
}

.insert-anim .insert-card::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 9px;
  width: 40px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.tap-anim {
  position: relative;
  width: 120px;
  height: 112px;
  display: grid;
  place-items: center;
}

.tap-phone {
  width: 66px;
  height: 100px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a2b22, #0f1f18);
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(15, 31, 24, 0.25);
}

.tap-phone::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  inset: 6px;
  border-radius: 9px;
  background: linear-gradient(160deg, #12b76a, #05603a);
}

.tap-phone::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 38px;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.32);
}

.tap-ring {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(18, 183, 106, 0.28);
  animation: tapPulse 2.2s ease-out infinite;
}

.tap-ring:nth-child(2) {
  animation-delay: 0.7s;
}

.tap-ring:nth-child(3) {
  animation-delay: 1.4s;
}

.cash-anim,
.offline-anim {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #dcfae6, #c7f5d9);
  color: #067647;
}

.cash-anim .icon,
.offline-anim .icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}

.sim-panel {
  margin-top: 13px;
  padding: 11px;
  border: 1px dashed #c8d4cb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.sim-panel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #98ada3;
  margin-bottom: 8px;
}

.sim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.btn-sim {
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3ebe5;
  font-size: 10.5px;
  font-weight: 600;
  color: #33453b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-sim:hover {
  background: #f7faf8;
}

.btn-sim .icon {
  width: 12px;
  height: 12px;
}

.btn-sim.approve {
  color: #067647;
  border-color: #abefc6;
  background: #f6fef9;
}

.btn-sim.decline {
  color: #b42318;
  border-color: #fecdca;
  background: #fffbfa;
}

.terminal-actions {
  margin-top: 16px;
}

/* --- processing overlay --- */
.pay-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 16, 10, 0.26);
  backdrop-filter: blur(2.5px);
  animation: fadeIn 0.18s ease;
}

.pay-modal {
  width: 100%;
  max-width: 268px;
  padding: 28px 22px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 60px rgba(15, 31, 24, 0.2);
  text-align: center;
  animation: modalPop 0.22s ease;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(7, 148, 85, 0.16);
  border-top-color: #067647;
  animation: spin 0.8s linear infinite;
}

.pay-modal-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.15px;
  color: #0f1f18;
}

.pay-modal-sub {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #667a6f;
}

.pay-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.pay-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5d1c8;
  animation: dotBlink 1.2s ease infinite;
}

.pay-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.pay-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.auth-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #a6f4c5;
  background: #ecfdf3;
  text-align: left;
}

.auth-strip .auth-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d1fadf;
  color: #067647;
  display: grid;
  place-items: center;
  flex: none;
}

.auth-strip .auth-check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.auth-strip-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #067647;
  line-height: 1.3;
}

.auth-strip-code {
  font-size: 10px;
  color: #05603a;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* --- result --- */
.result-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 28px 22px;
  overflow-y: auto;
  scrollbar-width: none;
}

.result-body::-webkit-scrollbar {
  display: none;
}

.result-success {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-shield {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12b76a;
  margin-bottom: 18px;
}

.result-shield .icon {
  width: 72px;
  height: 72px;
  stroke: none;
}

.result-success .result-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.result-success .result-amount {
  font-size: 34px;
  margin-bottom: 0;
}

.success-actions {
  width: 100%;
  margin-top: 84px;
}

.success-done {
  height: 56px;
  border-radius: 12px;
  font-size: 15px;
}

.success-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.success-secondary-btn {
  height: 50px;
  border-radius: 10px;
  border: 1px solid #e3ebe5;
  background: #f1f5f2;
  color: #33453b;
  font-size: 11.5px;
  font-weight: 600;
}

.success-secondary-btn:active {
  background: #e8f0ea;
}

.result-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  position: relative;
}

.result-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  bottom: -7px;
  left: -7px;
  inset: -7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.06;
}

.result-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.result-icon.success {
  background: #ecfdf3;
  color: #12b76a;
}

.result-icon.declined {
  background: #fef3f2;
  color: #f04438;
}

.result-label {
  font-size: 11px;
  color: #667a6f;
  margin-bottom: 4px;
}

.result-amount {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.9px;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
  margin-bottom: 17px;
}

.result-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #0f1f18;
  margin-bottom: 7px;
}

.result-sub {
  font-size: 11.5px;
  line-height: 1.55;
  color: #667a6f;
  max-width: 292px;
}

.print-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 19px 0 17px;
  font-size: 11.5px;
  font-weight: 600;
  color: #33453b;
  padding: 7px 10px;
  border-radius: 8px;
}

.print-link:hover {
  background: rgba(15, 31, 24, 0.045);
}

.print-link .icon {
  width: 14px;
  height: 14px;
}

.result-actions {
  width: 100%;
  margin-top: 18px;
}

.result-actions .btn-primary {
  height: 50px;
}

.cancel-txn {
  margin-top: 15px;
  font-size: 12px;
  font-weight: 700;
  color: #1a2b22;
  padding: 8px 14px;
  border-radius: 9px;
}

.cancel-txn:hover {
  background: rgba(15, 31, 24, 0.045);
}

/* --- bills --- */
.bills-back {
  margin: 0 0 7px -1px;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 10.5px;
}

.bills-back:hover {
  background: rgba(18, 183, 106, 0.08);
  text-decoration: none;
}

.bills-summary {
  margin: 0 20px 12px;
  border-radius: 15px;
  padding: 15px 16px;
  background: linear-gradient(115deg, #067647 0%, #12b76a 60%, #32d583 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 148, 85, 0.22);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bills-summary .label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.bills-summary .value {
  margin-top: 5px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.bills-summary .count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.chips {
  display: flex;
  gap: 7px;
  padding: 0 20px 10px;
}

.chip {
  padding: 6px 11px;
  border-radius: 99px;
  background: #ecf3ee;
  color: #475a4e;
  font-size: 10px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: #e2ece5;
}

.chip.active {
  background: #067647;
  color: #fff;
}

.bill-list {
  padding: 0 18px 14px;
}

.bill-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 7px;
}

.bill-row .bill-item {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.bill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e8f0ea;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bill-delete {
  width: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #fecdca;
  border-radius: 12px;
  background: #fff6f5;
  color: #b42318;
  -webkit-tap-highlight-color: transparent;
}

.bill-delete:active {
  background: #fee4e2;
}

.bill-delete .icon {
  width: 18px;
  height: 18px;
}

.bill-item:hover {
  border-color: #bfe8d1;
  background: #fff;
}

.bill-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #475a4e;
  display: grid;
  place-items: center;
  flex: none;
}

.bill-icon .icon {
  width: 17px;
  height: 17px;
}

.bill-main {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.bill-method {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f1f18;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-meta {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: #98ada3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
  flex: none;
  white-space: nowrap;
}

.bill-amount {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
}

.bill-right .status-pill {
  margin-top: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 46px 24px;
  color: #667a6f;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ecfdf3;
  color: #7a9484;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.empty-state-icon .icon {
  width: 27px;
  height: 27px;
}

.empty-state h3 {
  font-size: 13px;
  font-weight: 700;
  color: #33453b;
}

.empty-state p {
  margin-top: 4px;
  font-size: 10.5px;
  color: #98ada3;
  line-height: 1.5;
  max-width: 220px;
}

/* --- manage --- */
.merchant-card {
  margin: 0 20px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid #e8f0ea;
  border-radius: 14px;
  padding: 14px;
}

.merchant-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #12b76a, #067647);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 6px 14px rgba(7, 148, 85, 0.28);
}

.merchant-logo .icon {
  width: 23px;
  height: 23px;
}

.merchant-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.3;
}

.merchant-meta {
  margin-top: 2px;
  font-size: 9.5px;
  color: #98ada3;
}

.settings-stack {
  padding: 0 18px 16px;
}

.settings-card {
  background: #fff;
  border: 1px solid #e8f0ea;
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.settings-title {
  padding: 11px 0 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: #98ada3;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #edf3ef;
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-main {
  min-width: 0;
}

.setting-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a2b22;
  line-height: 1.3;
}

.limit-readout {
  flex: none;
  margin-left: 14px;
  text-align: right;
  font-size: 9.5px;
  line-height: 1.55;
  font-weight: 600;
  color: #33453b;
}

.limit-readout span {
  display: block;
  white-space: nowrap;
}

.setting-sub {
  margin-top: 2px;
  font-size: 9.5px;
  color: #98ada3;
  line-height: 1.4;
}

.segment {
  display: inline-flex;
  background: #edf4ef;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
  flex: none;
}

.segment button {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  color: #667a6f;
  transition: background 0.12s ease, color 0.12s ease;
}

.segment button.active {
  background: #fff;
  color: #067647;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
}

.switch {
  width: 38px;
  height: 23px;
  border-radius: 99px;
  background: #cfd7d1;
  position: relative;
  flex: none;
  transition: background 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 31, 24, 0.2);
}

.switch.on {
  background: #067647;
}

.switch.on::after {
  transform: translateX(15px);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  text-align: left;
  border-top: 1px solid #edf3ef;
}

.link-row:first-of-type {
  border-top: 0;
}

.link-row .link-main {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #1a2b22;
}

.link-row .link-main .icon {
  width: 17px;
  height: 17px;
  color: #667a6f;
}

.link-row .link-chevron {
  width: 15px;
  height: 15px;
  color: #98ada3;
}

.danger-text {
  color: #b42318 !important;
}

.txn-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.txn-danger-actions .text-link {
  font-size: 11px;
}

.app-version {
  text-align: center;
  font-size: 9px;
  color: #aeb9b1;
  padding: 4px 0 12px;
  letter-spacing: 0.2px;
}

/* --- status pills (shared) --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.success {
  background: #ecfdf3;
  color: #067647;
}

.status-pill.declined {
  background: #fef3f2;
  color: #b42318;
}

.status-pill.voided {
  background: #f1f5f2;
  color: #475a4e;
}

.status-pill.pending {
  background: #fffaeb;
  color: #b54708;
}

.status-pill.paid {
  background: #ecfdf3;
  color: #067647;
}

.status-pill.approved {
  background: #ecfdf3;
  color: #067647;
}

/* --- pos toasts --- */
.pos-toast-root {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 74px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  pointer-events: none;
}

#toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

#toast-root .toast {
  max-width: 340px;
  font-size: 11.5px;
  padding: 10px 13px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(15, 31, 24, 0.94);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(15, 31, 24, 0.25);
  animation: toastIn 0.22s ease;
  pointer-events: auto;
}

.toast.toast-warning .icon {
  color: #fec84b;
}

.toast .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: #47cd89;
}

.toast.toast-success .icon {
  color: #6ce9a6;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(4px);
  transition: 0.2s ease;
}

/* =========================================================
   Modals & receipts (in-phone and portal)
   ========================================================= */
.modal-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-layer.portal-layer {
  position: fixed;
  z-index: 300;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(4, 16, 10, 0.46);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.18s ease;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  max-height: 88%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(15, 31, 24, 0.18);
  animation: modalPop 0.22s ease;
  scrollbar-width: none;
}

.modal-card::-webkit-scrollbar {
  display: none;
}

.modal-card.modal-wide {
  max-width: 780px;
}

.modal-card.modal-narrow {
  max-width: 340px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.modal-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.modal-head p {
  margin-top: 3px;
  font-size: 10.5px;
  color: #667a6f;
  line-height: 1.4;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #667a6f;
  flex: none;
  margin: -4px -4px 0 0;
}

.modal-close:hover {
  background: #f1f5f2;
  color: #0f1f18;
}

.modal-close .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.modal-actions .btn {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 12px;
}

.btn-outline {
  background: #fff;
  border: 1px solid #e3ebe5;
  color: #33453b;
}

.btn-outline:hover {
  background: #f7faf8;
}

.btn-danger {
  background: #f04438;
  color: #fff;
}

.btn-danger:hover {
  background: #d92d20;
}

.receipt-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt {
  width: 100%;
  background: #fdfdfc;
  border: 1px dashed #ccd8cf;
  border-radius: 8px;
  padding: 16px 15px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 9.5px;
  line-height: 1.55;
  color: #1a2b22;
  letter-spacing: -0.1px;
}

.receipt .r-center {
  text-align: center;
}

.receipt .r-logo {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #0f1f18;
  color: #fff;
  display: grid;
  place-items: center;
}

.receipt .r-logo .icon {
  width: 18px;
  height: 18px;
}

.receipt .r-brand-logo {
  margin: 0 auto 8px;
  text-align: center;
}

.receipt .r-brand-logo img {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto;
}

.receipt .r-company {
  font-size: 8.5px;
  line-height: 1.5;
  color: #1d2939;
}

.receipt .r-merchant {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.receipt .r-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.receipt .r-copy {
  font-size: 9.5px;
  letter-spacing: 0.6px;
}

.receipt .r-field {
  display: flex;
}

.receipt .r-label {
  flex: 0 0 86px;
  width: 86px;
}

.receipt .r-value {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.receipt .r-amount {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.35;
}

.receipt .r-amount-value {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.receipt .r-signature {
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
}

.receipt .r-sign-line {
  height: 16px;
  border-bottom: 1px solid #1a2b22;
}

.receipt .r-muted {
  color: #667a6f;
  font-size: 8.5px;
}

.receipt .r-strong {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.4px;
}

.receipt .r-dash {
  border-top: 1px dashed #98ada3;
  margin: 7px 0;
}

.receipt .r-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt .r-total {
  font-size: 12px;
  font-weight: 700;
}

.receipt .r-space {
  height: 4px;
}

.receipt-qr {
  width: 62px;
  height: 62px;
  margin: 8px auto 2px;
  background-image:
    linear-gradient(90deg, #0f1f18 50%, transparent 50%),
    linear-gradient(0deg, #0f1f18 50%, transparent 50%);
  background-size: 8px 8px, 8px 8px;
  opacity: 0.85;
  border: 3px solid #fff;
  outline: 1px solid #0f1f18;
}

.receipt-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f2;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 11px;
}

.receipt-tabs button {
  flex: 1;
  padding: 6px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  color: #667a6f;
}

.receipt-tabs button.active {
  background: #fff;
  color: #0f1f18;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
}

/* portal modal variant */
.portal-layer .modal-card {
  max-width: 640px;
  padding: 22px;
}

.modal-txn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.txn-detail-list {
  border: 1px solid #edf3ef;
  border-radius: 11px;
  overflow: hidden;
}

.txn-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 11.5px;
  border-top: 1px solid #edf3ef;
}

.txn-detail-row:first-child {
  border-top: 0;
}

.txn-detail-row span {
  color: #667a6f;
}

.txn-detail-row strong {
  font-weight: 600;
  color: #33453b;
  text-align: right;
  word-break: break-word;
}

.txn-detail-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #98ada3;
  margin: 14px 0 8px;
}

.txn-detail-title:first-child {
  margin-top: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.timeline-item {
  display: flex;
  gap: 9px;
  position: relative;
  padding-bottom: 14px;
  font-size: 10.5px;
  color: #667a6f;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #e3ebe5;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cfd7d1;
  background: #cfd7d1;
  flex: none;
  margin-top: 2px;
}

.timeline-item.done .timeline-dot {
  background: #12b76a;
  box-shadow: 0 0 0 1px #a6f4c5;
}

.timeline-item.fail .timeline-dot {
  background: #f04438;
  box-shadow: 0 0 0 1px #fecdca;
}

.timeline-text strong {
  display: block;
  font-size: 11px;
  color: #33453b;
  font-weight: 600;
}

/* confirm dialog */
.confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.confirm-actions .btn {
  flex: 1;
  height: 42px;
  border-radius: 9px;
  font-size: 12px;
}

/* =========================================================
   Merchant portal
   ========================================================= */
.portal-root {
  min-height: 100vh;
  background: #f5faf7;
}

.portal-shell {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: 244px;
  flex: 0 0 244px;
  background: #08140d;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: none;
}

.portal-sidebar::-webkit-scrollbar {
  display: none;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 26px;
}

.side-brand .brand-tile {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(7, 148, 85, 0.35);
}

.side-brand .brand-tile svg {
  width: 19px;
  height: 19px;
}

.side-brand-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
  line-height: 1.15;
}

.side-brand-sub {
  display: block;
  font-size: 8.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #5f7a6b;
  margin-top: 2px;
  font-weight: 600;
}

.side-section {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #4e6658;
  padding: 0 12px;
  margin: 2px 0 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #93b3a0;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.side-link .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dcebe2;
}

.side-link.active {
  background: #067647;
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 148, 85, 0.3);
}

.side-badge {
  margin-left: auto;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f04438;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.side-new {
  margin-left: auto;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(18, 183, 106, 0.2);
  color: #6ce9a6;
  border: 1px solid rgba(18, 183, 106, 0.3);
}

.side-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 16px 10px;
}

.side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.side-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12b76a, #05603a);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex: none;
  letter-spacing: 0.3px;
}

.side-user-main {
  min-width: 0;
  flex: 1;
}

.side-user-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #e7f2eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-user-role {
  font-size: 8.5px;
  color: #607a6a;
  margin-top: 2px;
}

.side-logout {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #6f8a78;
  flex: none;
}

.side-logout:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.side-logout .icon {
  width: 15px;
  height: 15px;
}

.side-pos-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 12px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9fbcaa;
  font-size: 10.5px;
  font-weight: 500;
}

.side-pos-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.side-pos-link .icon {
  width: 14px;
  height: 14px;
}

.portal-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 58px;
  padding: 0 16px;
  background: #08140d;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
}

.portal-topbar .side-brand {
  padding: 0;
}

.portal-topbar .brand-tile {
  width: 29px;
  height: 29px;
  border-radius: 9px;
}

.portal-topbar .brand-tile svg {
  width: 17px;
  height: 17px;
}

.portal-topbar .side-brand-name {
  font-size: 13.5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #c6d8cc;
}

.topbar-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.portal-main {
  flex: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px 34px 50px;
}

.portal-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.portal-page-head h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #0f1f18;
}

.portal-page-head p {
  margin-top: 5px;
  font-size: 12.5px;
  color: #667a6f;
  line-height: 1.45;
}

.portal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-top: 3px;
  position: relative;
}

.icon-btn {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  border: 1px solid #e3ebe5;
  background: #fff;
  color: #667a6f;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
  position: relative;
}

.icon-btn:hover {
  background: #f7faf8;
  color: #33453b;
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f04438;
  border: 1px solid #fff;
}

.btn-portal {
  height: 37px;
  padding: 0 13px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e3ebe5;
  color: #33453b;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
}

.btn-portal:hover {
  background: #f7faf8;
}

.btn-portal .icon {
  width: 14px;
  height: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8f0ea;
  border-radius: 13px;
  padding: 17px 18px 16px;
  min-height: 108px;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
  overflow: hidden;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #667a6f;
}

.stat-value {
  margin-top: 9px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-delta {
  margin-top: 7px;
  font-size: 10px;
  color: #98ada3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #f4faf6;
  color: #b0bdb4;
  display: grid;
  place-items: center;
}

.stat-icon .icon {
  width: 15px;
  height: 15px;
}

.notice-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e8f0ea;
  border-radius: 11px;
  padding: 11px 15px;
  margin-bottom: 17px;
  font-size: 11.5px;
  color: #475a4e;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
}

.notice-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fffaeb;
  color: #b54708;
  display: grid;
  place-items: center;
  flex: none;
}

.notice-icon .icon {
  width: 11px;
  height: 11px;
}

.notice-banner a {
  color: #067647;
  font-weight: 600;
}

.notice-banner a:hover {
  text-decoration: underline;
}

.notice-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #98ada3;
  flex: none;
}

.notice-close:hover {
  background: #f1f5f2;
}

.notice-close .icon {
  width: 12px;
  height: 12px;
}

.portal-card {
  background: #fff;
  border: 1px solid #e8f0ea;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 13px;
  flex-wrap: wrap;
}

.card-head-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #0f1f18;
}

.card-head-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: #98ada3;
}

.card-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.85fr);
  gap: 15px;
  margin-top: 15px;
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chart-card {
  padding-bottom: 15px;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.seg-tabs {
  display: inline-flex;
  background: #f1f5f2;
  border-radius: 8px;
  padding: 2px;
  gap: 1px;
}

.seg-tabs button {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #667a6f;
}

.seg-tabs button.active {
  background: #fff;
  color: #33453b;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.05);
}

.chart {
  height: 210px;
  margin: 16px 20px 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 12px;
  background-image: linear-gradient(to bottom, #f1f5f2 1px, transparent 1px);
  background-size: 100% 25%;
  background-position: 0 0;
  border-bottom: 1px solid #eff4f0;
}

.bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 2px;
  position: relative;
}

.bar {
  width: 100%;
  border-radius: 4px 4px 1px 1px;
  background: #a6f4c5;
  min-height: 2px;
  transition: background 0.12s ease;
  position: relative;
}

.bar:hover {
  background: #6ce9a6;
}

.bar.hot {
  background: #067647;
}

.bar.hot:hover {
  background: #12b76a;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin: 7px 20px 0;
  font-size: 9px;
  color: #98ada3;
}

.pm-card-body {
  padding: 4px 20px 17px;
}

.pm-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 11px;
  color: #33453b;
}

.pm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.pm-dot.mc {
  background: #eb001b;
}

.pm-dot.visa {
  background: #1a1f71;
}

.pm-dot.unknown {
  background: #98ada3;
}

.pm-pct {
  margin-left: auto;
  font-weight: 600;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
}

.pm-track {
  height: 4px;
  border-radius: 99px;
  background: #f1f5f2;
  margin-top: 5px;
  overflow: hidden;
}

.pm-fill {
  height: 100%;
  border-radius: 99px;
  background: #a6f4c5;
}

.pm-fill.mc {
  background: #f3b3ad;
}

.pm-fill.visa {
  background: #aeb9e8;
}

.pm-fill.unknown {
  background: #cfd7d1;
}

.today-body {
  padding: 4px 20px 17px;
}

.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
}

.today-label {
  font-size: 9.5px;
  color: #98ada3;
}

.today-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #0f1f18;
  font-variant-numeric: tabular-nums;
}

.recent-card {
  margin-top: 15px;
}

.recent-card .card-head {
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: #98ada3;
  pointer-events: none;
}

.search-input {
  height: 34px;
  width: 262px;
  border-radius: 8px;
  border: 1px solid #e3ebe5;
  background: #fff;
  padding: 0 10px 0 31px;
  font-size: 11px;
  color: #0f1f18;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::-webkit-input-placeholder {
  color: #98ada3;
}
.search-input::placeholder {
  color: #98ada3;
}

.search-input:focus {
  border-color: #47cd89;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  min-width: 820px;
}

.data-table thead th {
  text-align: left;
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 600;
  color: #667a6f;
  background: #f9fcf9;
  border-top: 1px solid #edf3ef;
  border-bottom: 1px solid #edf3ef;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #eff4f0;
  color: #33453b;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 0.12s ease;
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

.data-table tbody tr.clickable:hover {
  background: #f7fbf8;
}

.txn-id {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
  color: #33453b;
  width: 142px;
  white-space: nowrap;
  line-height: 1.45;
}

.txn-id .txn-suffix {
  display: block;
}

.merchant-cell {
  min-width: 115px;
  line-height: 1.35;
}

.merchant-cell span {
  display: block;
}

.amount-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #1a2b22;
}

.amount-cell small {
  display: block;
  font-size: 8.5px;
  font-weight: 500;
  color: #98ada3;
  margin-top: 1px;
}

.method-cell {
  white-space: nowrap;
  color: #667a6f;
}

.date-cell {
  white-space: nowrap;
  font-size: 10.5px;
  color: #667a6f;
  font-variant-numeric: tabular-nums;
}

.date-cell small {
  display: block;
  font-size: 9px;
  color: #98ada3;
  margin-top: 1px;
}

.btn-table {
  background: #067647;
  color: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-table:hover {
  background: #05603a;
}

.btn-table.ghost {
  background: #fff;
  border: 1px solid #e3ebe5;
  color: #667a6f;
}

.btn-table.ghost:hover {
  background: #f7faf8;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-select {
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e3ebe5;
  background: #fff;
  padding: 0 28px 0 10px;
  font-size: 11px;
  color: #33453b;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667a6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  cursor: pointer;
}

.status-select:focus {
  border-color: #47cd89;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px 16px;
  flex-wrap: wrap;
}

.table-foot-text {
  font-size: 10.5px;
  color: #98ada3;
}

.pager {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pager button {
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #e3ebe5;
  background: #fff;
  color: #667a6f;
  font-size: 10px;
  font-weight: 600;
}

.pager button:hover:not(:disabled) {
  background: #f7faf8;
  color: #33453b;
}

.pager button.active {
  background: #067647;
  border-color: #067647;
  color: #fff;
}

.pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* settlements */
.sett-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 16px;
}

.sett-summary .stat-card {
  min-height: 96px;
}

.status-pill.lg {
  font-size: 10px;
  padding: 3px 8px;
}

/* reports */
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 16px;
}

.report-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.report-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}

.report-icon.blue {
  background: #ecfdf3;
  color: #067647;
}

.report-icon.green {
  background: #ecfdf3;
  color: #067647;
}

.report-icon.amber {
  background: #fffaeb;
  color: #b54708;
}

.report-icon .icon {
  width: 19px;
  height: 19px;
}

.report-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.report-card p {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.55;
  color: #667a6f;
  flex: 1;
}

.report-card .btn {
  margin-top: 16px;
  height: 36px;
  font-size: 11px;
  border-radius: 8px;
}

.report-card .range-select {
  margin-top: 14px;
  height: 34px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e3ebe5;
  background: #fff;
  padding: 0 10px;
  font-size: 10.5px;
  color: #33453b;
  outline: none;
}

/* settings */
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 15px;
  align-items: start;
}

.form-card {
  padding: 20px;
}

.form-card + .form-card {
  margin-top: 15px;
}

.form-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.form-card .card-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: #98ada3;
  margin-bottom: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 10px;
  font-weight: 600;
  color: #33453b;
}

.form-field input,
.form-field select {
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e3ebe5;
  background: #f9fcf9;
  padding: 0 11px;
  font-size: 11.5px;
  color: #1a2b22;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #47cd89;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
  background: #fff;
}

.form-field input:disabled {
  color: #98ada3;
  background: #f4faf6;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}

.form-actions .btn {
  height: 37px;
  font-size: 11px;
  border-radius: 8px;
}

.settings-list {
  padding: 0 20px;
}

.settings-list .setting-row {
  padding: 13px 0;
}

.save-note {
  font-size: 9.5px;
  color: #98ada3;
  margin-top: 10px;
}

.danger-zone {
  margin-top: 15px;
  padding: 16px 20px;
  border: 1px dashed #fecdca;
  border-radius: 12px;
  background: #fffbfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.danger-zone h4 {
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
}

.danger-zone p {
  margin-top: 3px;
  font-size: 10px;
  color: #b54708;
}

/* flash exchange */
.exchange-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 15px;
  align-items: start;
}

.exchange-card {
  padding: 24px;
}

.exchange-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f4fdf8;
  border: 1px solid #e8f0ea;
  font-size: 11px;
  color: #667a6f;
  margin-bottom: 16px;
}

.exchange-rate strong {
  color: #1a2b22;
  font-size: 12px;
}

.exchange-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.exchange-field label {
  font-size: 10px;
  font-weight: 600;
  color: #33453b;
}

.exchange-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e3ebe5;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  height: 46px;
}

.exchange-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 13px;
  font-size: 16px;
  font-weight: 600;
  color: #0f1f18;
}

.exchange-input-wrap .currency-tag {
  padding: 0 13px;
  font-size: 11px;
  font-weight: 700;
  color: #667a6f;
  border-left: 1px solid #edf3ef;
  height: 100%;
  display: flex;
  align-items: center;
  background: #f9fcf9;
}

.exchange-receive {
  margin-top: 4px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, #ecfdf3, #f3fdf7);
  border: 1px solid #dcfae6;
}

.exchange-receive .label {
  font-size: 9.5px;
  color: #667a6f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exchange-receive .value {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #067647;
}

.exchange-receive .rate {
  margin-top: 4px;
  font-size: 9.5px;
  color: #667a6f;
}

.exchange-steps {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 4px;
}

.exchange-step {
  display: flex;
  gap: 11px;
}

.exchange-step-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #067647;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.exchange-step h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: #1a2b22;
}

.exchange-step p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.5;
  color: #667a6f;
}

/* portal notifications popover */
.notif-pop {
  position: absolute;
  top: 50px;
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #e3ebe5;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(15, 31, 24, 0.18);
  padding: 8px;
  z-index: 120;
  animation: modalPop 0.16s ease;
}

.notif-pop h4 {
  font-size: 11px;
  font-weight: 700;
  padding: 7px 9px;
  color: #1a2b22;
}

.notif-item {
  display: flex;
  gap: 9px;
  padding: 9px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.45;
  color: #667a6f;
}

.notif-item:hover {
  background: #f6faf7;
}

.notif-item strong {
  display: block;
  color: #33453b;
  font-size: 10.5px;
  margin-bottom: 2px;
}

.notif-item .icon {
  width: 15px;
  height: 15px;
  color: #067647;
  margin-top: 1px;
}

/* empty portal */
.portal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 20px;
  color: #98ada3;
  font-size: 11px;
  text-align: center;
}

.portal-empty .icon {
  width: 26px;
  height: 26px;
  color: #bfcac2;
}

/* sidebar scrim (mobile) */
.sidebar-scrim {
  display: none;
}

/* =========================================================
   print
   ========================================================= */
#print-root {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    overflow: visible !important;
  }

  body > *:not(#print-root) {
    display: none !important;
  }

  #print-root {
    display: block !important;
    position: static;
    width: auto;
  }

  #print-root .receipt {
    width: 72mm;
    border: 0;
    padding: 0;
    font-size: 9pt;
    line-height: 1.45;
  }

  #print-root .receipt-qr {
    display: none;
  }

  @page {
    margin: 6mm;
  }
}

/* =========================================================
   animations
   ========================================================= */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dotBlink {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes cardInsert {
  0% {
    transform: translateY(-38px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  55% {
    transform: translateY(14px);
    opacity: 1;
  }
  72% {
    transform: translateY(14px);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

@keyframes tapPulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1320px) {
  .pos-stage {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(250px, 300px);
    gap: 26px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .stage-title {
    font-size: 30px;
  }

  .device {
    height: calc(100vh - 92px);
    height: min(790px, calc(100vh - 92px));
  }
}

@media (max-width: 1120px) {
  .pos-stage {
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  }

  .stage-right {
    display: none;
  }

  .device {
    height: calc(100vh - 94px);
    height: min(800px, calc(100vh - 94px));
  }
}

@media (max-width: 900px) {
  body.mode-pos {
    overflow: auto;
  }

  .pos-stage {
    display: flex;
    justify-content: center;
    padding: 0;
    min-height: 100vh;
  }

  .stage-panel {
    display: none;
  }

  .device {
    height: 100vh;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 520px;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    min-height: 0;
  }

  .device::after {
    display: none;
  }

  .device-screen {
    border-radius: 0;
  }

  .device-caption {
    display: none;
  }

  .device-wrap {
    width: 100%;
    height: 100%;
    gap: 0;
  }

  .statusbar {
    padding-top: 0;
    padding-top: env(safe-area-inset-top, 0px);
    height: 27px;
    height: calc(27px + env(safe-area-inset-top, 0px));
    flex-basis: 27px;
    flex-basis: calc(27px + env(safe-area-inset-top, 0px));
  }

  body.mode-merchant #portal-root {
    background: #f5faf7;
  }
}

@media (max-width: 1100px) {
  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.25);
    z-index: 80;
  }

  .portal-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: rgba(4, 16, 10, 0.42);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .sidebar-scrim.open {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-topbar {
    display: flex;
  }

  .portal-main {
    padding: 24px 22px 44px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid,
  .exchange-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-page-head h1 {
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .portal-main {
    padding: 18px 14px 40px;
  }

  .portal-page-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
  }

  .portal-page-head > div:first-child {
    min-width: 0;
  }

  .portal-page-head h1 {
    font-size: 21px;
  }

  .portal-page-head p {
    font-size: 11.5px;
  }

  .portal-head-actions {
    padding-top: 0;
    margin-left: auto;
  }

  .portal-head-actions .btn-portal[data-action="open-pos"] {
    display: none;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stat-card {
    padding: 13px;
    min-height: 94px;
    border-radius: 11px;
  }

  .stat-label {
    font-size: 10px;
    padding-right: 26px;
  }

  .stat-value {
    font-size: 18px;
    letter-spacing: -0.4px;
    margin-top: 7px;
  }

  .stat-delta {
    font-size: 9px;
    margin-top: 5px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
    top: 11px;
    right: 11px;
  }

  .dash-side {
    grid-template-columns: 1fr;
  }

  .sett-summary {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .card-head {
    padding: 15px 14px 11px;
  }

  .chart-head {
    padding: 15px 14px 0;
  }

  .chart {
    margin: 12px 14px 0;
    height: 170px;
  }

  .chart-axis {
    margin: 6px 14px 0;
  }

  .pm-card-body,
  .today-body {
    padding: 2px 14px 14px;
  }

  .notice-banner {
    font-size: 10.5px;
    padding: 10px 12px;
    align-items: flex-start;
  }

  .notice-banner .notice-close {
    display: none;
  }

  .table-toolbar {
    width: 100%;
  }

  .search-box {
    flex: 1;
    min-width: 150px;
  }

  .search-input {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 16px;
  }

  .settings-list {
    padding: 0 15px;
  }

  .table-foot {
    padding: 12px 14px;
  }

  .dash-grid,
  .recent-card {
    margin-top: 11px;
  }

  .portal-layer .modal-card {
    padding: 17px;
  }

  .modal-txn-grid {
    grid-template-columns: 1fr;
  }

  .notif-pop {
    right: -8px;
    width: 280px;
  }
}

@media (max-width: 380px) {
  .screen-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-head {
    padding-left: 44px;
    padding-right: 44px;
  }

  .app-head h1 {
    font-size: 16.5px;
  }

  .method-card {
    min-height: 58px;
    padding: 10px 11px;
  }

  .key {
    padding: 12px 0;
    font-size: 20px;
  }

  .summary-row.due strong {
    font-size: 19px;
  }

  .page-head,
  .chips,
  .bill-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .merchant-card,
  .bills-summary {
    margin-left: 16px;
    margin-right: 16px;
  }

  .settings-stack {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* landscape POS terminals (like the wide terminal in the reference) */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) {
  .pos-stage {
    display: flex;
    padding: 0;
  }

  .stage-panel {
    display: none;
  }

  .device {
    height: 100vh;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-height: 0;
  }

  .device-screen {
    border-radius: 0;
  }

  .device-caption {
    display: none;
  }

  .device-wrap {
    width: 100%;
    height: 100%;
  }

  .pos-app {
    flex-direction: row;
  }

  .screen {
    order: 2;
  }

  .screen-body {
    padding: 0 28px 10px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
  }

  .bottom-nav {
    order: 1;
    flex: 0 0 72px;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    border-top: 0;
    border-right: 1px solid #e8f0ea;
    padding-bottom: 0;
  }

  .nav-btn {
    gap: 5px;
  }

  .summary-card {
    max-width: none;
  }

  .sales-screen .screen-body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas:
      "label summary"
      "help summary"
      "keypad summary"
      "keypad confirm"
      "keypad note";
    column-gap: 22px;
    row-gap: 8px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 28px 10px;
  }

  .sales-screen .section-label {
    grid-area: label;
    margin: 2px 2px 0;
  }

  .sales-screen .section-help {
    grid-area: help;
    margin: 0 2px 4px;
  }

  .sales-screen .summary-card {
    grid-area: summary;
    align-self: start;
  }

  .sales-screen .keypad-card {
    grid-area: keypad;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }

  .sales-screen .amount-confirm {
    grid-area: confirm;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .sales-screen .lock-note {
    grid-area: note;
    max-width: none;
    margin: 0;
  }

  .method-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-actions {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .manual-screen .screen-body {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 28px 10px;
  }

  .manual-screen .manual-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas:
      "label keypad"
      "number keypad"
      "help keypad"
      "row keypad"
      "confirm keypad";
    column-gap: 26px;
    row-gap: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    flex: 1;
    margin: 0;
  }

  .manual-screen .manual-card > .field-label:first-child {
    grid-area: label;
  }

  .manual-screen .manual-card > .field[data-field="number"] {
    grid-area: number;
    align-self: start;
  }

  .manual-screen .manual-card > .field-help {
    grid-area: help;
    margin-bottom: 6px;
  }

  .manual-screen .manual-card > .field-row {
    grid-area: row;
    align-self: start;
    margin-top: 2px;
  }

  .manual-screen .manual-keypad-card {
    grid-area: keypad;
    height: 100%;
    min-height: 0;
    margin-top: 0;
  }

  .manual-screen .manual-confirm {
    grid-area: confirm;
    align-self: end;
    margin-top: 10px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-card {
    max-width: 620px;
    margin: 0 auto;
  }

  .result-body {
    padding-top: 10px;
  }

  .modal-card {
    max-width: 460px;
  }
}

/* =========================================================
   Authentication
   ========================================================= */
body.mode-auth {
  overflow: auto;
  background:
    radial-gradient(900px 600px at 18% 8%, rgba(7, 148, 85, 0.28), transparent 62%),
    radial-gradient(700px 520px at 86% 90%, rgba(18, 183, 106, 0.08), transparent 60%),
    #04100a;
}

.auth-root {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 22px 18px;
  padding: max(22px, 4vh) 18px;
  background:
    radial-gradient(900px 600px at 18% 8%, rgba(7, 148, 85, 0.28), transparent 62%),
    radial-gradient(700px 520px at 86% 90%, rgba(18, 183, 106, 0.08), transparent 60%),
    linear-gradient(180deg, #04100a, #05120c);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 12px 0;
}

.auth-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 30px 30px 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 100px rgba(0, 0, 0, 0.48);
}

.auth-card::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #067647, #32d583, #12b76a);
  opacity: 0.9;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.auth-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.45px;
  color: #0f1f18;
  line-height: 1.15;
}

.auth-brand-name span {
  color: #067647;
}

.auth-brand-sub {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #98ada3;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: #0f1f18;
}

.auth-sub {
  margin: 5px 0 20px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #667a6f;
}

.auth-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 10.5px;
  line-height: 1.45;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.auth-field > span {
  font-size: 10.5px;
  font-weight: 600;
  color: #33453b;
}

.auth-field input {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #e3ebe5;
  background: #f9fcf9;
  padding: 0 13px;
  font-size: 13px;
  color: #0f1f18;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-field input:focus {
  border-color: #47cd89;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
}

.auth-field input::-webkit-input-placeholder {
  color: #98ada3;
  font-size: 11.5px;
}
.auth-field input::placeholder {
  color: #98ada3;
  font-size: 11.5px;
}

.auth-hint {
  margin: -2px 0 14px;
  font-size: 9.5px;
  line-height: 1.55;
  color: #98ada3;
}

.auth-hint code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 8.5px;
  background: #f1f5f2;
  border-radius: 4px;
  padding: 1px 4px;
  color: #33453b;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin-top: 7px;
  border-radius: 12px;
  font-size: 13px;
}

.auth-submit:disabled {
  opacity: 0.76;
  cursor: wait;
}

.auth-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex: none;
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 9.5px;
  color: #98ada3;
  text-align: center;
}

.auth-foot .live-dot {
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.12);
}

.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 150px;
  padding: 20px 0 10px;
}

.auth-loading .spinner {
  margin: 0;
}

.auth-loading p {
  font-size: 11px;
  color: #667a6f;
}

/* =========================================================
   Logged-in merchant app (no demo side panels)
   ========================================================= */
body.server-app .stage-panel {
  display: none !important;
}

body.server-app .pos-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
}

body.server-app .device-caption {
  display: none;
}

/* =========================================================
   Master control console
   ========================================================= */
.admin-root {
  min-height: 100vh;
  background: #f5faf7;
}

.admin-side-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 4px 0;
  padding: 12px 11px;
  border-radius: 10px;
  background: rgba(18, 183, 106, 0.09);
  border: 1px solid rgba(18, 183, 106, 0.17);
  color: #6ce9a6;
  font-size: 9.5px;
  line-height: 1.55;
}

.admin-side-note .icon {
  width: 14px;
  height: 14px;
  color: #6ce9a6;
  margin-top: 1px;
  flex: none;
}

.admin-avatar {
  background: linear-gradient(135deg, #12b76a, #05603a) !important;
}

.master-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fec84b;
  background: rgba(247, 144, 9, 0.14);
  border: 1px solid rgba(247, 144, 9, 0.28);
}

.admin-control-card {
  margin-top: 15px;
}

.admin-control-list {
  padding: 0 20px 16px;
}

.admin-control-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid #edf3ef;
}

.admin-control-row:first-child {
  border-top: 0;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #067647;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex: none;
}

.admin-user-cell-sm .admin-user-avatar {
  width: 27px;
  height: 27px;
  font-size: 8.5px;
}

.admin-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f1f18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-sub {
  margin-top: 2px;
  font-size: 9.5px;
  color: #98ada3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-limits {
  margin-top: 2px;
  font-size: 9px;
  color: #98ada3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-code {
  margin-top: 2px;
  font-size: 9px;
  color: #667a6f;
  white-space: nowrap;
}

.admin-user-code strong {
  color: #067647;
  font-size: 11px;
  letter-spacing: 1.2px;
  font-variant-numeric: tabular-nums;
}

.admin-user-code .admin-text-action {
  margin-left: 6px;
  font-size: 9px;
}

.admin-code-state {
  margin-left: 4px;
  color: #b42318;
  font-size: 9px;
  font-weight: 600;
}

.admin-limits-cell {
  min-width: 142px;
  white-space: nowrap;
}

.admin-users-table th,
.admin-users-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.admin-decline-select {
  width: 168px;
  height: 30px;
  padding-left: 8px;
  padding-right: 24px;
  font-size: 9.5px;
  background-position: right 7px center;
}

.admin-limit-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 9.5px;
  line-height: 1.55;
}

.admin-limit-line span {
  font-size: 9px;
  color: #98ada3;
}

.admin-limit-line strong {
  font-weight: 600;
  color: #33453b;
}

.admin-limit-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #edf3ef;
  border-radius: 10px;
  background: #f6faf7;
  font-size: 10.5px;
  color: #667a6f;
}

.admin-limit-today strong {
  font-size: 11px;
  color: #33453b;
  white-space: nowrap;
}

.admin-control-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #33453b;
  white-space: nowrap;
  flex: none;
}

.admin-control-meta small {
  font-size: 9px;
  font-weight: 500;
  color: #98ada3;
}

.admin-pay-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.admin-state {
  font-size: 9.5px;
  font-weight: 600;
  min-width: 48px;
}

.admin-state.enabled {
  color: #067647;
}

.admin-state.disabled {
  color: #b42318;
}

.admin-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid #a6f4c5;
  background: #ecfdf3;
  color: #067647;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-live-chip .live-dot {
  width: 5px;
  height: 5px;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.12);
}

.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 70px 20px;
  text-align: center;
  color: #667a6f;
  font-size: 11px;
}

.admin-loading .spinner {
  margin: 0;
}

.admin-loading p {
  font-size: 11px;
  line-height: 1.5;
  color: #667a6f;
  max-width: 320px;
}

.admin-loading .btn {
  width: auto;
  height: 34px;
  padding: 0 15px;
  font-size: 11px;
}

.admin-error-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fef3f2;
  color: #f04438;
  display: grid;
  place-items: center;
}

.admin-error-icon .icon {
  width: 21px;
  height: 21px;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px 20px;
}

.admin-empty .empty-state-icon {
  margin-bottom: 12px;
}

.admin-empty h3 {
  font-size: 13px;
  font-weight: 700;
  color: #33453b;
}

.admin-empty p {
  margin-top: 4px;
  max-width: 300px;
  font-size: 10.5px;
  line-height: 1.55;
  color: #98ada3;
}

.admin-empty .btn {
  width: auto;
  height: 38px;
  margin-top: 14px;
  padding: 0 16px;
  font-size: 11px;
}

.admin-users-table .admin-table-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-text-action {
  font-size: 9.5px;
  font-weight: 600;
  color: #067647;
  padding: 4px 2px;
  white-space: nowrap;
}

.admin-text-action:hover {
  text-decoration: underline;
}

.admin-text-action.danger {
  color: #b42318;
}

.admin-filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-search-box .search-input {
  width: 220px;
}

.admin-payments-table .admin-user-cell {
  min-width: 145px;
}

.admin-payments-table .btn-table {
  white-space: nowrap;
}

.switch:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* simulator note / single button */
.sim-actions.single {
  grid-template-columns: 1fr;
}

.sim-note {
  margin-top: 8px;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.45;
  color: #98ada3;
}

@media (max-width: 720px) {
  .auth-card {
    padding: 26px 21px 21px;
    border-radius: 20px;
  }

  .auth-card::before {
    left: 21px;
    right: 21px;
  }

  .auth-brand .brand-tile-lg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .auth-brand-name {
    font-size: 16.5px;
  }

  .auth-card h1 {
    font-size: 22px;
  }

  .admin-control-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-control-meta {
    display: none;
  }

  .admin-control-row .admin-user-cell {
    flex-basis: calc(100% - 150px);
  }

  .admin-control-row .btn-table {
    order: 4;
    margin-left: auto;
  }

  .admin-control-list {
    padding: 0 14px 14px;
  }

  .admin-search-box {
    width: 100%;
    flex: 1;
  }

  .admin-search-box .search-input {
    width: 100%;
  }

  .admin-filter-row {
    width: 100%;
  }

  .admin-filter-row .status-select {
    flex: 1;
    min-width: 112px;
  }

  .admin-live-chip {
    display: none;
  }

  .master-chip {
    display: none;
  }
}

/* =========================================================
   Native Android WebView shell
   ========================================================= */
body.native-app {
  background: #04100a;
}

body.native-app.mode-pos {
  overflow: hidden;
}

body.native-app .pos-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  min-height: 100vh;
}

body.native-app .stage-panel,
body.native-app .device-caption {
  display: none !important;
}

body.native-app .device-wrap {
  width: 100%;
  height: 100%;
  gap: 0;
}

body.native-app .device {
  height: 100vh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.native-app .device::after {
  display: none;
}

body.native-app .device-screen {
  border-radius: 0;
}

body.native-app .statusbar {
  padding-top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  height: 27px;
  height: calc(27px + env(safe-area-inset-top, 0px));
  flex-basis: 27px;
  flex-basis: calc(27px + env(safe-area-inset-top, 0px));
}

/* Large portrait tablets get a centered, phone-width POS rather than
   stretching every key across the whole display. */
@media (min-width: 760px) and (orientation: portrait) {
  body.native-app.mode-pos .pos-stage {
    align-items: center;
    background: #04100a;
  }

  body.native-app.mode-pos .device-wrap {
    width: auto;
    height: auto;
  }

  body.native-app.mode-pos .device {
    width: 560px;
    height: 100vh;
    height: min(100dvh, 1040px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  }

  body.native-app.mode-pos .device-screen {
    border-radius: 30px;
  }

  body.native-app.mode-pos .sales-screen .keypad-card {
    max-height: 390px;
  }

  body.native-app.mode-pos .manual-keypad-card {
    max-height: 410px;
  }
}

/* =========================================================
   Login — Flatpay reference layout
   ========================================================= */
body.mode-auth {
  background:
    radial-gradient(900px 620px at 88% 4%, rgba(18, 183, 106, 0.12), transparent 62%),
    linear-gradient(180deg, #f8fdfa 0%, #eef8f2 100%);
}

.auth-root {
  display: block;
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(720px 500px at 92% 2%, rgba(18, 183, 106, 0.1), transparent 60%),
    linear-gradient(180deg, #f8fdfa 0%, #eef8f2 100%);
}

.login-shell {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 36px);
  min-height: calc(100dvh - 36px);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.login-brand {
  display: flex;
  justify-content: flex-end;
  padding: 4px 2px 0;
  flex: none;
}

.login-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 150px;
}

.login-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 150px;
  padding-top: clamp(100px, 23vh, 230px);
}

.login-title {
  margin: 0 0 30px 2px;
  font-size: 30px;
  font-size: clamp(28px, 4.2vh, 34px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.7px;
  color: #0f1f18;
}

.login-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.login-field {
  position: relative;
  border-bottom: 1px solid #c6d8cc;
  transition: border-color 0.15s ease;
}

.login-field + .login-field {
  margin-top: 4px;
}

.login-field:focus-within,
.login-field.is-focused {
  border-bottom-color: #067647;
}

.login-field.has-error {
  border-bottom-color: #d92d20;
}

.login-field input {
  width: 100%;
  height: 56px;
  padding: 0 36px 0 2px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: #0f1f18;
  letter-spacing: 0.1px;
}

.login-field input.login-code {
  letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
}

.login-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 2px 0;
}

.login-code-get {
  flex: none;
  padding: 4px 0;
  color: #067647;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.login-code-get:disabled {
  color: #98ada3;
}

.login-code-status {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  color: #667a6f;
}

.login-code-status.is-expired {
  color: #b42318;
}

.login-field input::-webkit-input-placeholder {
  color: #7c9184;
  font-weight: 400;
}

.login-field input::placeholder {
  color: #7c9184;
  font-weight: 400;
}

.login-field-alert {
  position: absolute;
  right: 4px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d92d20;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.login-eye {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #5f7a69;
}

.login-eye:active {
  background: rgba(18, 183, 106, 0.1);
}

.login-eye .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.login-message {
  margin: 12px 2px 0;
  color: #b42318;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}

.login-submit {
  width: 100%;
  height: 52px;
  margin-top: auto;
  margin-bottom: 4px;
  border-radius: 8px;
  background: #067647;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(6, 118, 71, 0.2);
  transition: background 0.15s ease, transform 0.12s ease;
}

.login-submit .auth-spinner {
  margin-right: 8px;
}

.login-submit:hover {
  background: #05603a;
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.login-main-loading {
  align-items: center;
  justify-content: center;
  padding-top: 0;
  text-align: center;
}

.login-main-loading .spinner {
  margin-bottom: 14px;
}

.login-loading-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: #667a6f;
}

/* =========================================================
   User portal login — dark merchant portal + Flatpay photo
   ========================================================= */
body.user-auth {
  background: #ffffff;
  overflow-x: hidden;
}

body.user-auth .auth-root {
  min-height: 100vh;
  padding: 0;
  background: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.user-login-shell {
  display: -webkit-flex;
  display: flex;
  min-height: 100vh;
  background: #ffffff;
}

.user-login-panel {
  -webkit-flex: 1 1 56%;
  flex: 1 1 56%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 48px 6vw;
  background: #ffffff;
}

.user-login-inner {
  width: 100%;
  max-width: 430px;
}

.user-login-brand {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 32px;
}

.user-login-mark {
  width: 40px;
  height: 40px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #12b76a, #067647);
  box-shadow: 0 8px 18px rgba(6, 118, 71, 0.18);
}

.user-login-mark img {
  display: block;
  width: 22px;
  height: auto;
}

.user-login-brand-name {
  margin-left: 11px;
  color: #0f1f18;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.user-login-badge {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  border: 1px solid #b9e6cc;
  border-radius: 999px;
  padding: 7px 11px;
  background: #ecfdf3;
  color: #067647;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.user-login-badge .icon {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  stroke-width: 1.8;
}

.user-login-title {
  margin-top: 24px;
  font-family: inherit;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.9px;
  color: #0f1f18;
  word-wrap: break-word;
}

.user-login-sub {
  margin: 10px 0 24px;
  color: #667a6f;
  font-size: 12.5px;
  line-height: 1.6;
}

.user-login-form {
  display: block;
}

.user-field {
  margin-bottom: 17px;
}

.user-field label {
  display: block;
  margin: 0 0 8px 1px;
  color: #475467;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.user-field label em {
  color: #12b76a;
  font-style: normal;
}

.user-input.login-field {
  position: relative;
  border: 1px solid #dce7e0;
  border-radius: 10px;
  background: #fbfdfb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-input.login-field.is-focused,
.user-input.login-field:focus-within {
  border-color: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
}

.user-input.login-field.has-error {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.user-input input {
  height: 52px;
  padding: 0 38px 0 40px;
  color: #0f1f18;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.user-input input::-webkit-input-placeholder {
  color: #98ada3;
  font-weight: 400;
}

.user-input input::placeholder {
  color: #98ada3;
  font-weight: 400;
}

.user-input input.login-code {
  padding-left: 40px;
  letter-spacing: 5px;
  font-variant-numeric: tabular-nums;
}

.user-field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: #667a6f;
  pointer-events: none;
}

.user-field-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.user-input .login-eye {
  right: 1px;
  color: #667a6f;
}

.user-input .login-eye:active {
  background: rgba(18, 183, 106, 0.1);
}

.user-input .login-field-alert {
  right: 8px;
}

.user-code-line {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: stretch;
  align-items: stretch;
}

.user-code-line .user-input {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.user-letter-line {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: stretch;
  align-items: stretch;
}

.user-letter-challenge {
  -webkit-flex: 0 0 148px;
  flex: 0 0 148px;
  height: 52px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 0 6px 0 13px;
  border: 1px solid #b9e6cc;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf3, #d3f8e2);
}

.user-letter-code {
  color: #05603a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.user-letter-refresh {
  width: 30px;
  height: 30px;
  flex: none;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #067647;
}

.user-letter-refresh:hover {
  background: rgba(6, 118, 71, 0.08);
}

.user-letter-refresh .icon {
  width: 15px;
  height: 15px;
}

.user-letter-input {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  margin-left: 9px;
}

.user-letter-input input {
  padding-left: 14px;
  padding-right: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.user-letter-input .login-field-alert {
  right: 8px;
}

.user-code-btn {
  width: 124px;
  height: 52px;
  margin-left: 9px;
  padding: 0 6px;
  border: 1px solid #12b76a;
  border-radius: 10px;
  background: #ecfdf3;
  color: #067647;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.user-code-btn:hover {
  background: #d3f8e2;
}

.user-code-btn:active {
  background: #b9e6cc;
}

.user-code-btn:disabled {
  color: #98ada3;
  border-color: #dce7e0;
  background: #f4f8f5;
  opacity: 0.75;
  cursor: wait;
}

.user-login-form .login-code-status {
  -webkit-flex: none;
  flex: none;
  display: block;
  min-height: 15px;
  margin-top: 5px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #067647;
}

.user-login-form .login-code-status.is-expired {
  color: #b42318;
}

.user-login-form .login-message {
  margin: 10px 1px 0;
  color: #b42318;
  font-size: 10.5px;
}

.user-login-submit {
  height: 56px;
  margin-top: 22px;
  margin-bottom: 0;
  border-radius: 10px;
  background: #067647;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.35px;
  box-shadow: 0 8px 20px rgba(6, 118, 71, 0.18);
}

.user-login-submit:hover {
  background: #05603a;
}

.user-login-submit:active {
  background: #054f31;
  box-shadow: 0 4px 12px rgba(6, 118, 71, 0.16);
}

.user-login-submit:disabled {
  background: #d3f8e2;
  color: #98ada3;
  box-shadow: none;
}

.user-login-support {
  margin-top: 26px;
  color: #98ada3;
  font-size: 9.5px;
  letter-spacing: 0.2px;
}

.user-login-support span {
  margin: 0 5px;
  color: #12b76a;
}

.user-login-visual {
  -webkit-flex: 1 1 44%;
  flex: 1 1 44%;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 118, 71, 0.02), rgba(6, 118, 71, 0.34)),
    url("../img/portal-login-photo.jpg") center center / cover no-repeat;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.user-login-loading {
  min-height: 100vh;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #ffffff;
}

.user-login-loading .user-login-brand {
  margin-bottom: 24px;
}

.user-login-loading .spinner {
  border-color: #dce7e0;
  border-top-color: #067647;
  margin-bottom: 14px;
}

.user-login-loading .login-loading-text {
  color: #667a6f;
}

@media (max-width: 900px) {
  .user-login-visual {
    display: none;
  }

  .user-login-panel {
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    padding: 36px 24px;
  }

  .user-login-inner {
    max-width: 430px;
  }
}

@media (max-width: 480px) {
  .user-login-panel {
    padding: 28px 20px;
  }

  .user-login-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .user-login-brand-name {
    font-size: 21px;
  }

  .user-login-title {
    font-size: 31px;
  }

  .user-code-btn {
    width: 111px;
    font-size: 7.5px;
    letter-spacing: 1px;
  }

  .user-login-submit {
    font-size: 9.5px;
    letter-spacing: 1.1px;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .user-login-panel {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .user-login-brand {
    margin-bottom: 20px;
  }

  .user-login-title {
    margin-top: 20px;
    font-size: 35px;
  }

  .user-login-sub {
    margin-bottom: 18px;
  }
}

@media (max-width: 380px) {
  .login-main {
    padding-top: 96px;
    padding-top: clamp(80px, 20vh, 180px);
  }

  .login-field input {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Merchant portal — overview pages from the reference set
   ========================================================= */
.portal-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #d3f8e2;
  border-radius: 10px;
  background: #ecfdf3;
  color: #05603a;
}

.banner-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

.banner-copy {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-size: 11px;
  line-height: 1.45;
}

.banner-copy strong {
  color: #067647;
  font-weight: 700;
}

.banner-copy span {
  color: #476557;
}

.portal-banner a {
  flex: none;
  color: #067647;
  font-size: 10.5px;
  font-weight: 700;
}

.portal-banner a:hover {
  text-decoration: underline;
}

.alert-card {
  margin-bottom: 15px;
}

.alert-list {
  padding: 0 14px 12px;
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 0;
  border-top: 1px solid #edf3ef;
  color: inherit;
}

.alert-row:first-child {
  border-top: 0;
}

.alert-row:hover .alert-action,
.alert-row:hover .alert-count {
  color: #05603a;
}

.alert-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #ecfdf3;
  color: #067647;
}

.alert-icon .icon {
  width: 15px;
  height: 15px;
}

.alert-main {
  min-width: 0;
  flex: 1;
}

.alert-main strong {
  display: block;
  overflow: hidden;
  color: #0f1f18;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #98ada3;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-count {
  flex: none;
  color: #067647;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.alert-action {
  flex: none;
  padding: 5px 9px;
  border: 1px solid #b9e6cc;
  border-radius: 6px;
  color: #067647;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.settlement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 14px;
  border-top: 1px solid #edf3ef;
}

.settlement-actions .btn {
  height: 34px;
  font-size: 10px;
}

.mini-progress {
  padding: 13px 14px 15px;
}

.mini-progress-head,
.mini-progress-meta,
.exchange-progress-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-progress-head strong {
  color: #0f1f18;
  font-size: 11px;
}

.mini-progress-head span {
  color: #067647;
  font-size: 11px;
  font-weight: 700;
}

.mini-progress-meta {
  margin-top: 7px;
  color: #667a6f;
  font-size: 9.5px;
}

.progress-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3ef;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12b76a, #067647);
}

.portal-empty.compact {
  padding: 15px;
  text-align: center;
}

.portal-empty.compact .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  color: #98ada3;
}

.portal-empty.compact p {
  color: #98ada3;
  font-size: 10px;
}

.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px 14px;
  border: 1px solid #fedf89;
  border-radius: 10px;
  background: #fffaeb;
  color: #93370d;
  font-size: 11px;
  line-height: 1.5;
}

.warning-banner .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.warning-banner strong {
  display: block;
  font-weight: 700;
}

.page-head-actions {
  margin: -6px 0 14px;
}

.progress-card {
  margin-top: 15px;
}

.progress-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 10px;
}

.progress-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-header strong {
  color: #0f1f18;
  font-size: 13px;
}

.progress-header span {
  color: #667a6f;
  font-size: 10px;
}

.progress-card > .progress-header > strong {
  color: #067647;
  font-size: 17px;
}

.progress-card > .progress-header + .progress-track {
  margin: 0 14px 17px;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 8px;
}

.progress-step {
  position: relative;
  padding-top: 30px;
  color: #98ada3;
  font-size: 9.5px;
  line-height: 1.4;
}

.progress-step > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 23px;
  height: 23px;
  border: 1px solid #d0dcd3;
  border-radius: 50%;
  background: #fff;
  color: #98ada3;
  font-size: 10px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

.progress-step strong {
  display: block;
  color: #667a6f;
  font-size: 9.5px;
  font-weight: 600;
}

.progress-step small {
  display: block;
  margin-top: 2px;
  color: #98ada3;
  font-size: 9px;
}

.progress-step.done > span,
.progress-step.current > span {
  border-color: #12b76a;
  background: #12b76a;
  color: #fff;
}

.progress-step.done strong {
  color: #067647;
}

.progress-step.current > span {
  background: #067647;
}

.progress-step.current strong {
  color: #0f1f18;
}

.upload-section-label {
  margin: 15px 14px 7px;
  color: #667a6f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.upload-section-label:first-of-type {
  margin-top: 4px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 14px;
  margin: 0 14px;
  border: 1px dashed #b9c9be;
  border-radius: 10px;
  background: #fbfdfb;
  cursor: pointer;
}

.upload-grid .upload-box {
  margin: 0;
}

.upload-box:hover {
  border-color: #12b76a;
}

.upload-box input[type="file"] {
  display: none;
}

.upload-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ecfdf3;
  color: #067647;
}

.upload-icon .icon {
  width: 15px;
  height: 15px;
}

.upload-copy {
  flex: 1;
  min-width: 0;
}

.upload-box strong {
  display: block;
  color: #33453b;
  font-size: 10.5px;
  font-weight: 600;
}

.upload-box small {
  display: block;
  margin-top: 2px;
  color: #98ada3;
  font-size: 9px;
}

.form-field textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  border: 1px solid #dce7e0;
  border-radius: 8px;
  outline: none;
  background: #fbfdfb;
  color: #1d2939;
  font: inherit;
  resize: vertical;
}

.form-field textarea:focus {
  border-color: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.08);
}

.exchange-rate-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  color: #667a6f;
  font-size: 11px;
}

.exchange-rate-line strong {
  color: #067647;
  font-size: 13px;
  font-weight: 700;
}

.exchange-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.exchange-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exchange-label-row label {
  margin: 0;
}

.exchange-max {
  border: 0;
  background: transparent;
  color: #067647;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.exchange-max:hover {
  text-decoration: underline;
}

.exchange-available {
  margin-top: 6px;
  color: #98ada3;
  font-size: 9.5px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.btn-primary:disabled {
  opacity: 1;
  background: #eef7f1;
  border-color: #dce9e0;
  color: #8aa295;
}

.exchange-activation {
  overflow: hidden;
  border-color: #b9e6cc;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(18, 183, 106, 0.12), transparent 52%),
    #ecfdf3;
}

.activation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
}

.activation-title {
  color: #05603a;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.activation-sub {
  margin-top: 4px;
  color: #476557;
  font-size: 10.5px;
  line-height: 1.5;
}

.activation-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
  color: #667a6f;
  font-size: 10px;
}

.activation-meta strong {
  color: #067647;
  font-size: 18px;
}

.activation-meta small {
  color: #98ada3;
  font-size: 9px;
}

.exchange-activation > .btn {
  width: auto;
  margin: 0 14px 14px;
  height: 36px;
  font-size: 10px;
}

.activation-done {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 14px;
  color: #067647;
  font-size: 11px;
  font-weight: 600;
}

.activation-done .icon {
  width: 16px;
  height: 16px;
}

.wallet-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.wallet-empty-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ecfdf3;
  color: #067647;
}

.wallet-empty-icon .icon {
  width: 17px;
  height: 17px;
}

.wallet-empty > div {
  flex: 1;
  min-width: 0;
}

.wallet-empty strong {
  display: block;
  color: #33453b;
  font-size: 11px;
}

.wallet-empty small {
  display: block;
  margin-top: 2px;
  color: #98ada3;
  font-size: 9.5px;
}

.wallet-empty .btn {
  height: 32px;
  font-size: 9.5px;
}

.exchange-progress {
  padding: 2px 14px 8px;
}

.exchange-progress-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  color: #98ada3;
}

.exchange-progress-row > span {
  width: 21px;
  height: 21px;
  flex: none;
  border: 1px solid #d0dcd3;
  border-radius: 50%;
  color: #98ada3;
  font-size: 9px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.exchange-progress-row strong {
  display: block;
  color: #667a6f;
  font-size: 10px;
  font-weight: 600;
}

.exchange-progress-row small {
  display: block;
  margin-top: 2px;
  color: #98ada3;
  font-size: 9px;
}

.exchange-progress-row.done > span {
  border-color: #12b76a;
  background: #12b76a;
  color: #fff;
}

.exchange-progress-row.done strong {
  color: #067647;
}

.exchange-progress-meter {
  margin: 4px 14px 0;
  padding-top: 9px;
  border-top: 1px solid #edf3ef;
  color: #667a6f;
  font-size: 10px;
}

.exchange-progress-meter strong {
  color: #067647;
}

.portal-notes {
  padding: 13px 14px;
  border: 1px solid #d3f8e2;
  border-radius: 10px;
  background: #f6fdf9;
  color: #476557;
  font-size: 10px;
  line-height: 1.6;
}

.portal-notes h4 {
  margin-bottom: 5px;
  color: #05603a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.portal-notes ul {
  padding-left: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.info-card {
  padding-bottom: 3px;
}

.info-card .txn-detail-list {
  padding: 0 14px;
}

.info-card .save-note {
  margin: 10px 14px 11px;
}

@media (max-width: 900px) {
  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 15px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .alert-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  .alert-action {
    display: none;
  }

  .alert-main strong {
    white-space: normal;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-box {
    margin-left: 12px;
    margin-right: 12px;
  }

  .wallet-empty {
    flex-wrap: wrap;
  }

  .wallet-empty .btn {
    margin-left: 44px;
  }

  .settlement-actions .btn {
    width: 100%;
  }

  .progress-header {
    align-items: flex-start;
  }
}
