@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --mp-bg: #f6f7f9;
  --mp-surface: #ffffff;
  --mp-ink: #1a1d21;
  --mp-ink-soft: #3a3f47;
  --mp-muted: #8b929c;
  --mp-muted-2: #a0a7b1;
  --mp-border: #e8eaef;
  --mp-border-soft: #f0f1f4;
  /* Enovepay brand accents from logo */
  --mp-blue: #2E97F7;
  --mp-blue-hover: #1f86e6;
  --mp-blue-soft: #e8f4fe;
  --mp-lime: #86E243;
  --mp-lime-hover: #78d436;
  --mp-lime-soft: #eefbe3;
  --mp-forest: #0d0d0d;
  --mp-forest-2: #1a1a1a;
  --mp-teal-bar: #9ec8f0;
  --mp-teal-bar-active: #2E97F7;
  --mp-danger: #ef5b6b;
  --mp-danger-soft: #fde8eb;
  --mp-warning: #f5a524;
  --mp-warning-soft: #fff4e0;
  --mp-success: #86E243;
  --mp-success-soft: #eefbe3;
  --mp-radius: 20px;
  --mp-radius-md: 16px;
  --mp-radius-sm: 12px;
  --mp-sidebar: 248px;
  --mp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-vertical-menu-width: 248px;
  --bs-vertical-menu-bg: #ffffff;
  --bs-topbar-bg: transparent;
  --bs-sidebar-menu-item-color: #4b5563;
  --bs-sidebar-menu-item-icon-color: #6b7280;
  --bs-sidebar-menu-sub-item-color: #6b7280;
}

html body.merchant-portal,
body.merchant-portal {
  background: var(--mp-bg) !important;
  font-family: var(--mp-font) !important;
  color: var(--mp-ink);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.merchant-portal *,
body.merchant-portal *::before,
body.merchant-portal *::after {
  font-family: inherit;
}

body.merchant-portal h1,
body.merchant-portal h2,
body.merchant-portal h3,
body.merchant-portal h4,
body.merchant-portal h5,
body.merchant-portal h6,
body.merchant-portal .card-title,
body.merchant-portal .menu-item,
body.merchant-portal .btn,
body.merchant-portal .form-control,
body.merchant-portal .dropdown-item,
body.merchant-portal .nav-link,
body.merchant-portal th,
body.merchant-portal td,
body.merchant-portal label,
body.merchant-portal .text-muted,
body.merchant-portal input,
body.merchant-portal select,
body.merchant-portal textarea {
  font-family: var(--mp-font) !important;
}

/* ========== Sidebar ========== */
body.merchant-portal .vertical-menu {
  background: var(--mp-surface) !important;
  border-right: 1px solid var(--mp-border) !important;
  width: var(--mp-sidebar) !important;
  box-shadow: none !important;
  z-index: 1005;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible !important; /* allow edge toggle + flyouts */
}

body.merchant-portal .navbar-brand-box {
  background: transparent !important;
  padding: 0.65rem 0.85rem 0 !important;
  text-align: left !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 0 !important;
  height: auto !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 2 !important;
}

body.merchant-portal .mp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--mp-ink) !important;
  min-width: 0;
  overflow: hidden;
}

body.merchant-portal .mp-brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
}

body.merchant-portal .mp-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

body.merchant-portal .mp-brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--mp-ink);
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Collapse tab sits on the sidebar edge */
body.merchant-portal .mp-sidebar-toggle {
  position: absolute;
  top: 0.75rem;
  right: -13px;
  z-index: 1010;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.merchant-portal .mp-sidebar-toggle:hover {
  background: var(--mp-lime);
  border-color: var(--mp-lime);
  color: var(--mp-ink);
}

body.merchant-portal .mp-sidebar-toggle i {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.28s ease;
}

body.merchant-portal .mp-sidebar-toggle-close {
  display: none;
}

body.merchant-portal .vertical-menu-btn {
  display: none !important;
}

body.merchant-portal .mp-mobile-bar {
  display: none;
}

body.merchant-portal .mp-sidebar-open {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: #fff;
  box-shadow: none;
  color: var(--mp-ink);
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  padding: 0;
}

body.merchant-portal .mp-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.35);
  backdrop-filter: blur(2px);
  z-index: 1004;
  pointer-events: none;
}

body.merchant-portal.mp-sidebar-mobile-open .mp-sidebar-backdrop {
  pointer-events: auto;
}

body.merchant-portal .sidebar-menu-scroll {
  height: calc(100vh - 48px) !important;
  overflow-x: hidden !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.merchant-portal .sidebar-menu-scroll .simplebar-content {
  padding-top: 0 !important;
}

body.merchant-portal #sidebar-menu {
  padding: 10px 0.75rem 1rem !important;
  margin-top: 0 !important;
}

body.merchant-portal #sidebar-menu .metismenu {
  margin-top: 0 !important;
  padding: 0 !important;
}

body.merchant-portal #sidebar-menu .menu-title {
  color: var(--mp-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem 0.25rem !important;
  margin: 0 !important;
  opacity: 1 !important;
  background: transparent !important;
  white-space: nowrap;
  overflow: hidden;
}

body.merchant-portal #sidebar-menu .metismenu > li.menu-title:first-child {
  padding-top: 0.2rem !important;
}

body.merchant-portal #sidebar-menu .metismenu > li > a {
  border-radius: 12px !important;
  padding: 0.65rem 0.8rem !important;
  color: var(--mp-ink-soft) !important;
  font-weight: 500 !important;
  margin: 0 0 2px !important;
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

body.merchant-portal #sidebar-menu .menu-item {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.18s ease;
}

body.merchant-portal .main-content,
body.merchant-portal .footer {
  transition: margin-left 0.28s cubic-bezier(0.22, 1, 0.36, 1), left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.merchant-portal .main-content {
  margin-left: var(--mp-sidebar) !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

/* ----- Collapsed desktop rail ----- */
body.merchant-portal.mp-sidebar-collapsed {
  --mp-sidebar: 72px;
}

body.merchant-portal.mp-sidebar-collapsed .vertical-menu {
  width: 72px !important;
  z-index: 3000 !important; /* flyouts above main content */
}

body.merchant-portal.mp-sidebar-collapsed .navbar-brand-box {
  justify-content: center;
  padding: 0.65rem 0.4rem 0 !important;
}

body.merchant-portal.mp-sidebar-collapsed .mp-brand {
  justify-content: center;
}

body.merchant-portal.mp-sidebar-collapsed .mp-brand-name,
body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .menu-title,
body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .menu-item,
body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li > a.has-arrow::after,
body.merchant-portal.mp-sidebar-collapsed .mp-sidebar-promo {
  display: none !important;
}

body.merchant-portal.mp-sidebar-collapsed #sidebar-menu {
  padding: 0.1rem 0.45rem 1rem;
}

body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li > a {
  justify-content: center !important;
  padding: 0.7rem 0 !important;
  gap: 0 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li > a i,
body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li > a .nav-icon {
  margin: 0 !important;
  font-size: 1.25rem !important;
  pointer-events: none; /* clicks go to the <a> */
}

body.merchant-portal.mp-sidebar-collapsed .mp-sidebar-toggle {
  top: 0.95rem;
}

body.merchant-portal.mp-sidebar-collapsed .mp-sidebar-toggle i {
  transform: rotate(180deg);
}

/* Keep submenus fully inert when collapsed unless explicitly opened */
body.merchant-portal.mp-sidebar-collapsed #sidebar-menu ul.sub-menu {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li {
  position: relative;
}

body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li.mp-flyout-open > ul.sub-menu {
  display: block !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: calc(100% + 8px) !important;
  top: 0 !important;
  min-width: 190px;
  width: auto !important;
  height: auto !important;
  z-index: 3100 !important;
  margin: 0 !important;
  padding: 0.45rem !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid var(--mp-border) !important;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.14) !important;
  overflow: visible !important;
}

/* Allow collapsed flyouts to escape SimpleBar clipping */
body.merchant-portal.mp-sidebar-collapsed .sidebar-menu-scroll,
body.merchant-portal.mp-sidebar-collapsed .sidebar-menu-scroll .simplebar-wrapper,
body.merchant-portal.mp-sidebar-collapsed .sidebar-menu-scroll .simplebar-mask,
body.merchant-portal.mp-sidebar-collapsed .sidebar-menu-scroll .simplebar-offset,
body.merchant-portal.mp-sidebar-collapsed .sidebar-menu-scroll .simplebar-content-wrapper,
body.merchant-portal.mp-sidebar-collapsed .sidebar-menu-scroll .simplebar-content {
  overflow: visible !important;
}

body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .metismenu > li.mp-flyout-open > ul.sub-menu li a {
  display: block !important;
  padding: 0.55rem 0.85rem !important;
  margin: 2px 0 !important;
  pointer-events: auto !important;
}

body.merchant-portal #sidebar-menu .metismenu > li > a i,
body.merchant-portal #sidebar-menu .metismenu > li > a .nav-icon {
  font-size: 1.15rem !important;
  color: #7a8490 !important;
  min-width: 1.25rem;
  text-align: center;
}

body.merchant-portal #sidebar-menu .metismenu > li > a:hover {
  background: #f3f4f6 !important;
  color: var(--mp-ink) !important;
}

body.merchant-portal #sidebar-menu .metismenu > li > a:hover .nav-icon {
  color: var(--mp-ink) !important;
}

/* Leaf item active */
body.merchant-portal #sidebar-menu .metismenu > li.mm-active > a:not(.has-arrow),
body.merchant-portal #sidebar-menu .metismenu > li > a.active:not(.has-arrow) {
  background: var(--mp-lime) !important;
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
}

body.merchant-portal #sidebar-menu .metismenu > li.mm-active > a:not(.has-arrow) .nav-icon,
body.merchant-portal #sidebar-menu .metismenu > li > a.active:not(.has-arrow) .nav-icon {
  color: var(--mp-ink) !important;
}

/* Open parent with children */
body.merchant-portal #sidebar-menu .metismenu > li.mm-active > a.has-arrow {
  background: #f3f5f4 !important;
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
}

body.merchant-portal #sidebar-menu .metismenu > li.mm-active > a.has-arrow .nav-icon {
  color: var(--mp-blue) !important;
}

body.merchant-portal #sidebar-menu .metismenu > li.mm-active > a::before,
body.merchant-portal #sidebar-menu ul li.mm-active > a::before {
  display: none !important;
  content: none !important;
}

/* Chevron */
body.merchant-portal #sidebar-menu .metismenu > li > a.has-arrow::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  right: 0.85rem !important;
  top: 50% !important;
  width: 0.45rem !important;
  height: 0.45rem !important;
  border-right: 1.5px solid #9aa3ad !important;
  border-bottom: 1.5px solid #9aa3ad !important;
  transform: translateY(-65%) rotate(45deg) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
  margin: 0 !important;
  float: none !important;
  font-family: inherit !important;
}

body.merchant-portal #sidebar-menu .metismenu > li.mm-active > a.has-arrow::after {
  transform: translateY(-35%) rotate(225deg) !important;
  border-color: var(--mp-blue) !important;
}

body.merchant-portal #sidebar-menu .metismenu > li > a,
body.merchant-portal #sidebar-menu .metismenu > li > a .menu-item,
body.merchant-portal #sidebar-menu .menu-title,
body.merchant-portal #sidebar-menu ul li ul.sub-menu li a {
  font-family: var(--mp-font) !important;
}

body.merchant-portal #sidebar-menu .menu-item {
  margin-left: 0 !important;
  font-size: 0.9rem !important;
  font-weight: inherit !important;
}

/* Sub-menu panel */
body.merchant-portal #sidebar-menu ul li ul.sub-menu,
body.merchant-portal #sidebar-menu .metismenu .sub-menu {
  background: #f7f8fa !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 14px !important;
  padding: 0.4rem !important;
  margin: 0.15rem 0 0.55rem 0.35rem !important;
  list-style: none !important;
  box-shadow: none !important;
}

body.merchant-portal #sidebar-menu ul li ul.sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.merchant-portal #sidebar-menu ul li ul.sub-menu li a,
body.merchant-portal #sidebar-menu .metismenu .sub-menu li a {
  display: block !important;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  font-family: var(--mp-font) !important;
  color: #5f6b76 !important;
  border-radius: 10px !important;
  margin: 2px 0 !important;
  background: transparent !important;
  border: none !important;
  line-height: 1.3 !important;
  position: relative !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

/* No bullet dots on sub-menu items */
body.merchant-portal #sidebar-menu ul li ul.sub-menu li a::before,
body.merchant-portal #sidebar-menu .metismenu .sub-menu li a::before {
  display: none !important;
  content: none !important;
}

body.merchant-portal #sidebar-menu ul li ul.sub-menu li a:hover {
  color: var(--mp-ink) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

body.merchant-portal #sidebar-menu ul li ul.sub-menu li a.active,
body.merchant-portal #sidebar-menu ul li ul.sub-menu li.mm-active > a,
body.merchant-portal #sidebar-menu .metismenu .sub-menu li a.active {
  color: var(--mp-ink) !important;
  background: var(--mp-lime) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.merchant-portal #sidebar-menu ul li ul.sub-menu li a.active::before,
body.merchant-portal #sidebar-menu ul li ul.sub-menu li.mm-active > a::before,
body.merchant-portal #sidebar-menu .metismenu .sub-menu li a.active::before {
  display: none !important;
  content: none !important;
}

body.merchant-portal #sidebar-menu ul li ul.sub-menu ul.sub-menu {
  margin-left: 0.5rem !important;
  background: #eef1f4 !important;
}

body.merchant-portal .mp-sidebar-promo {
  margin: 1rem 0.9rem 1.25rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 18px;
  background: var(--mp-forest);
  color: #fff;
  position: relative;
  overflow: hidden;
}

body.merchant-portal .mp-sidebar-promo::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(198, 241, 74, 0.12);
  top: -28px;
  right: -20px;
}

body.merchant-portal .mp-sidebar-promo h6 {
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  position: relative;
}

body.merchant-portal .mp-sidebar-promo p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0 0 0.95rem;
  position: relative;
}

body.merchant-portal .mp-sidebar-promo .btn {
  background: var(--mp-lime) !important;
  border: none !important;
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.95rem !important;
  font-size: 0.78rem !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.merchant-portal .vertical-menu > .btn-block,
body.merchant-portal .right-bar,
body.merchant-portal .rightbar-overlay {
  display: none !important;
}

/* ========== Topbar / header ========== */
body.merchant-portal #page-topbar {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  left: var(--mp-sidebar) !important;
  right: 0;
  position: absolute !important;
  height: auto !important;
  z-index: 2;
}

body.merchant-portal #page-topbar .navbar-header {
  background: transparent !important;
  height: auto !important;
  padding: 0.85rem 1.75rem 0 !important;
  justify-content: flex-end;
}

body.merchant-portal .main-content {
  margin-left: var(--mp-sidebar) !important;
}

body.merchant-portal .page-content {
  padding: 1.1rem 1.75rem 5.5rem !important;
  background:
    radial-gradient(1200px 480px at 12% -8%, rgba(46, 151, 247, 0.07), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(134, 226, 67, 0.08), transparent 50%),
    var(--mp-bg) !important;
  min-height: calc(100vh - 60px);
}

body.merchant-portal .mp-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.35rem;
  padding-top: 0.35rem;
  position: relative;
  z-index: 30;
  isolation: isolate;
}

body.merchant-portal .mp-page-head h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 0.2rem;
  color: var(--mp-ink);
  line-height: 1.15;
}

body.merchant-portal .mp-page-head p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

body.merchant-portal .mp-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

/* Native header menus (no Bootstrap JS dependency) */
body.merchant-portal .mp-menu {
  position: relative;
  display: inline-block;
}

body.merchant-portal .mp-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

body.merchant-portal .mp-menu > summary::-webkit-details-marker {
  display: none;
}

body.merchant-portal .mp-menu > summary::marker {
  content: "";
}

body.merchant-portal .mp-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 200px;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  z-index: 2000;
}

body.merchant-portal .mp-menu-panel a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--mp-ink) !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
}

body.merchant-portal .mp-menu-panel a:hover {
  background: #f5f7f9;
  color: var(--mp-ink) !important;
}

body.merchant-portal .mp-menu-label {
  padding: 0.45rem 0.8rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mp-muted);
  border-bottom: 1px solid var(--mp-border-soft);
  margin-bottom: 0.25rem;
}

body.merchant-portal .mp-logout-form {
  margin: 0;
}

body.merchant-portal .mp-logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--mp-danger) !important;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--mp-font);
  cursor: pointer;
}

body.merchant-portal .mp-logout-btn:hover {
  background: var(--mp-danger-soft) !important;
}

body.merchant-portal .mp-menu-user > summary.header-item.user {
  height: auto !important;
  min-height: 0 !important;
}

body.merchant-portal .mp-search {
  position: relative;
  min-width: 240px;
}

body.merchant-portal .mp-search-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.merchant-portal .mp-search-page > .row {
  --bs-gutter-y: 1rem;
}

body.merchant-portal .mp-search input {
  border: 1px solid var(--mp-border);
  border-radius: 999px;
  background: var(--mp-surface);
  padding: 0.62rem 4.4rem 0.62rem 2.45rem;
  font-size: 0.86rem;
  width: 100%;
  outline: none;
  color: var(--mp-ink);
  box-shadow: none;
}

body.merchant-portal .mp-search input::placeholder {
  color: var(--mp-muted-2);
}

body.merchant-portal .mp-search input:focus {
  border-color: #d5d9e0;
  box-shadow: 0 0 0 3px rgba(198, 241, 74, 0.2);
}

body.merchant-portal .mp-search .bx-search {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-muted);
  font-size: 1rem;
}

body.merchant-portal .mp-search > .bx,
body.merchant-portal .mp-search > i.bx {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  color: #6b7280 !important;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 1;
  display: inline-block;
}

body.merchant-portal .mp-search kbd {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f3f4f6;
  border: 1px solid var(--mp-border);
  border-radius: 7px;
  font-size: 0.65rem;
  padding: 0.18rem 0.42rem;
  color: var(--mp-muted);
  font-weight: 600;
  font-family: var(--mp-font);
}

body.merchant-portal .btn,
body.merchant-portal .btn-sm {
  font-family: var(--mp-font) !important;
}

body.merchant-portal .btn-primary,
body.merchant-portal .btn-mp-primary,
body.merchant-portal .btn-success:not(.btn-sm) {
  background: var(--mp-lime) !important;
  border-color: var(--mp-lime) !important;
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  padding: 0.55rem 1.1rem !important;
}

body.merchant-portal .btn-mp-primary:hover,
body.merchant-portal .btn-primary:hover,
body.merchant-portal .btn-success:not(.btn-sm):hover {
  background: var(--mp-lime-hover) !important;
  border-color: var(--mp-lime-hover) !important;
  color: var(--mp-ink) !important;
}

body.merchant-portal .btn-outline-secondary,
body.merchant-portal .btn-mp-ghost,
body.merchant-portal .btn-light {
  border: 1px solid var(--mp-border) !important;
  background: var(--mp-surface) !important;
  color: var(--mp-ink-soft) !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  padding: 0.55rem 1rem !important;
}

body.merchant-portal .btn-dark {
  background: var(--mp-forest) !important;
  border-color: var(--mp-forest) !important;
  border-radius: 999px !important;
}

body.merchant-portal .btn-info,
body.merchant-portal .btn-danger,
body.merchant-portal .btn-warning,
body.merchant-portal .btn-secondary {
  border-radius: 999px !important;
}

/* Datatable Back Home links used dropdown-toggle without a menu — hide broken caret */
body.merchant-portal .dropdown:not(:has(.dropdown-menu)) > a.btn.dropdown-toggle::after,
body.merchant-portal a.btn.mp-btn-back.dropdown-toggle::after,
body.merchant-portal a.btn.mp-btn-back::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  margin: 0 !important;
}

body.merchant-portal a.btn.mp-btn-back,
body.merchant-portal .dropdown:not(:has(.dropdown-menu)) > a.btn.dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

body.merchant-portal a.btn.mp-btn-back .bx,
body.merchant-portal a.btn.mp-btn-back .mdi,
body.merchant-portal .dropdown:not(:has(.dropdown-menu)) > a.btn .bx,
body.merchant-portal .dropdown:not(:has(.dropdown-menu)) > a.btn .mdi {
  font-size: 1.05rem;
  line-height: 1;
}

body.merchant-portal .header-item.user,
body.merchant-portal button.header-item.user {
  background: var(--mp-surface) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 999px !important;
  padding: 0.25rem 0.65rem 0.25rem 0.25rem !important;
  height: auto !important;
  width: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

body.merchant-portal .header-item.user::after,
body.merchant-portal button.header-item.user::after {
  display: none !important;
  content: none !important;
  border: none !important;
}

body.merchant-portal .header-item.user .mp-avatar {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

body.merchant-portal .user-name {
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
  font-size: 0.86rem !important;
  font-family: var(--mp-font) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.15rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.merchant-portal .user-name .bx {
  font-size: 1rem !important;
  color: var(--mp-muted) !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* ========== Cards / surfaces ========== */
body.merchant-portal .card {
  border: 1px solid var(--mp-border) !important;
  border-radius: var(--mp-radius) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03) !important;
  background: var(--mp-surface) !important;
  margin-bottom: 0 !important;
}

body.merchant-portal .card-body {
  padding: 1.25rem 1.35rem !important;
}

body.merchant-portal .card-title {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--mp-ink) !important;
  font-size: 1rem !important;
}

body.merchant-portal .mp-stat-card {
  padding: 1.35rem 1.45rem !important;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.merchant-portal .mp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07) !important;
}

body.merchant-portal .mp-stat-card.mp-stat-hero {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(134, 226, 67, 0.28), transparent 55%),
    radial-gradient(320px 160px at 0% 100%, rgba(46, 151, 247, 0.22), transparent 50%),
    linear-gradient(145deg, #141414 0%, #0d0d0d 55%, #121212 100%) !important;
  border-color: #0d0d0d !important;
  color: #fff;
}

/* Premium credit-card style — portfolio card */
body.merchant-portal .mp-stat-card.mp-card-premium {
  min-height: 200px;
  padding: 1.5rem 1.55rem 1.3rem !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(ellipse 90% 70% at 100% -10%, rgba(134, 226, 67, 0.32), transparent 55%),
    radial-gradient(ellipse 80% 60% at -5% 110%, rgba(46, 151, 247, 0.38), transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(155deg, #243044 0%, #121826 32%, #0c101a 58%, #15101c 82%, #0a0d14 100%) !important;
  box-shadow:
    0 22px 50px rgba(8, 12, 24, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset !important;
  overflow: hidden;
  color: #fff;
}

body.merchant-portal .mp-stat-card.mp-card-premium:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    0 28px 56px rgba(8, 12, 24, 0.48),
    0 2px 0 rgba(255, 255, 255, 0.1) inset !important;
}

body.merchant-portal .mp-card-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
}

body.merchant-portal .mp-card-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

body.merchant-portal .mp-card-orb-a {
  width: 140px;
  height: 140px;
  right: -36px;
  top: -48px;
  background: radial-gradient(circle, rgba(134, 226, 67, 0.35) 0%, transparent 70%);
}

body.merchant-portal .mp-card-orb-b {
  width: 160px;
  height: 160px;
  left: -50px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(46, 151, 247, 0.4) 0%, transparent 70%);
}

body.merchant-portal .mp-card-shine {
  position: absolute;
  inset: -50% -30% auto auto;
  width: 75%;
  height: 160%;
  background: linear-gradient(
    118deg,
    transparent 34%,
    rgba(255, 255, 255, 0.04) 46%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(134, 226, 67, 0.08) 54%,
    transparent 66%
  );
  transform: rotate(16deg);
  pointer-events: none;
  animation: mp-card-gleam 7s ease-in-out infinite;
}

@keyframes mp-card-gleam {
  0%, 100% { opacity: 0.4; transform: rotate(16deg) translateX(0); }
  50% { opacity: 0.95; transform: rotate(16deg) translateX(-12%); }
}

body.merchant-portal .mp-card-chip {
  position: absolute;
  top: 1.4rem;
  left: 1.55rem;
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, #f3e2b0 0%, #d4af37 28%, #f7ebc8 48%, #b8860b 72%, #e8d48b 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  z-index: 1;
}

body.merchant-portal .mp-card-chip::before {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border: 1px solid rgba(90, 60, 10, 0.4);
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 30%, rgba(90, 60, 10, 0.28) 31%, rgba(90, 60, 10, 0.28) 33%, transparent 34%),
    linear-gradient(90deg, transparent 48%, rgba(90, 60, 10, 0.28) 49%, rgba(90, 60, 10, 0.28) 51%, transparent 52%),
    linear-gradient(90deg, transparent 66%, rgba(90, 60, 10, 0.28) 67%, rgba(90, 60, 10, 0.28) 69%, transparent 70%),
    linear-gradient(0deg, transparent 42%, rgba(90, 60, 10, 0.28) 43%, rgba(90, 60, 10, 0.28) 57%, transparent 58%);
}

body.merchant-portal .mp-card-contactless {
  position: absolute;
  top: 1.4rem;
  left: 4.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.2rem;
  line-height: 1;
  transform: rotate(90deg);
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(46, 151, 247, 0.35));
}

body.merchant-portal .mp-stat-card.mp-card-premium .mp-stat-label {
  margin-top: 2.45rem;
  color: rgba(255, 255, 255, 0.72) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

body.merchant-portal .mp-stat-card.mp-card-premium .mp-stat-value {
  font-size: 2.05rem;
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.045em;
}

body.merchant-portal .mp-stat-card.mp-card-premium .mp-stat-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  margin-top: 2.15rem;
  backdrop-filter: blur(8px);
}

body.merchant-portal .mp-stat-card.mp-card-premium .mp-stat-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.62) !important;
}

body.merchant-portal .mp-pill-on-dark {
  background: rgba(134, 226, 67, 0.2) !important;
  color: #b8f06a !important;
  border: 1px solid rgba(134, 226, 67, 0.25);
}

body.merchant-portal .mp-card-brand {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.merchant-portal .mp-card-link {
  display: block;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

body.merchant-portal .mp-card-link:hover,
body.merchant-portal .mp-card-link:focus {
  color: inherit !important;
  text-decoration: none !important;
}

body.merchant-portal .mp-card-link:focus-visible .mp-card-premium {
  outline: 2px solid var(--mp-lime);
  outline-offset: 3px;
}

body.merchant-portal .mp-stat-card.mp-stat-soft {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
}

body.merchant-portal .mp-stat-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(134, 226, 67, 0.18);
  filter: blur(8px);
  pointer-events: none;
}

body.merchant-portal .mp-stat-card.mp-stat-hero .mp-stat-label,
body.merchant-portal .mp-stat-card.mp-stat-hero .mp-stat-foot {
  color: rgba(255, 255, 255, 0.62) !important;
}

body.merchant-portal .mp-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.merchant-portal .mp-stat-icon-lime {
  background: var(--mp-lime-soft);
  color: #3d7a12;
}

body.merchant-portal .mp-stat-hero .mp-stat-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(4px);
}

body.merchant-portal .mp-stat-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--mp-muted);
  margin-bottom: 0.55rem;
}

body.merchant-portal .mp-stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
  color: var(--mp-ink);
}

body.merchant-portal .mp-stat-hero .mp-stat-value {
  color: #fff !important;
}

body.merchant-portal .mp-stat-card.mp-stat-hero .mp-trend {
  background: rgba(134, 226, 67, 0.22);
  color: var(--mp-lime);
}

body.merchant-portal .mp-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(46, 151, 247, 0.14);
  color: var(--mp-blue);
  line-height: 1;
}

body.merchant-portal .mp-stat-card:not(.mp-stat-hero) .mp-trend.up {
  background: var(--mp-lime-soft);
  color: #3d7a12;
}

body.merchant-portal .mp-trend.down {
  background: var(--mp-danger-soft);
  color: var(--mp-danger);
}

body.merchant-portal .mp-stat-foot {
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin-top: 0.9rem;
  font-weight: 400;
}

/* Tables */
body.merchant-portal .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  margin-bottom: 0;
}

body.merchant-portal .table > :not(caption) > * > * {
  padding: 0.85rem 0.65rem;
  border-bottom-color: var(--mp-border-soft);
  vertical-align: middle;
}

body.merchant-portal .table thead th {
  color: var(--mp-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--mp-border) !important;
  background: transparent !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.75rem !important;
}

body.merchant-portal .table tbody tr:hover {
  background: #fafbfc;
}

body.merchant-portal .table tbody tr:last-child td {
  border-bottom: none !important;
}

body.merchant-portal .mp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

body.merchant-portal .mp-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c9cfd8;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}

body.merchant-portal .mp-check:checked {
  background: var(--mp-forest);
  border-color: var(--mp-forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

body.merchant-portal .mp-status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

body.merchant-portal .mp-status.paid {
  color: var(--mp-success);
  background: var(--mp-success-soft);
  border-color: #c8ebd6;
}

body.merchant-portal .mp-status.pending {
  color: #c47a0a;
  background: var(--mp-warning-soft);
  border-color: #f5dfb0;
}

body.merchant-portal .mp-status.failed {
  color: var(--mp-danger);
  background: var(--mp-danger-soft);
  border-color: #f7c5cb;
}

/* Grid status pills — success & failed share the same shape; only colors differ */
body.merchant-portal span.btn.btn-sm.btn-success,
body.merchant-portal span.btn-sm.btn-success,
body.merchant-portal .btn.btn-sm.btn-success,
body.merchant-portal .btn-sm.btn-success {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.28rem 0.75rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  font-family: var(--mp-font) !important;
  line-height: 1.2 !important;
  border: 1px solid #c8ebd6 !important;
  background: #e8f7ee !important;
  color: #2f9e5b !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
}

body.merchant-portal span.btn.btn-sm.btn-danger,
body.merchant-portal span.btn-sm.btn-danger,
body.merchant-portal .btn.btn-sm.btn-danger,
body.merchant-portal .btn-sm.btn-danger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.28rem 0.75rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  font-family: var(--mp-font) !important;
  line-height: 1.2 !important;
  border: 1px solid #f7c5cb !important;
  background: #fde8eb !important;
  color: #ef5b6b !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
}

body.merchant-portal .btn-sm.btn-warning,
body.merchant-portal span.btn-sm.btn-warning {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.28rem 0.75rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  font-family: var(--mp-font) !important;
  line-height: 1.2 !important;
  border: 1px solid #f5dfb0 !important;
  background: var(--mp-warning-soft) !important;
  color: #c47a0a !important;
  box-shadow: none !important;
  height: auto !important;
  pointer-events: none;
}

/* Forms / grids (kartik etc.) */
body.merchant-portal .form-control,
body.merchant-portal .form-select,
body.merchant-portal .select2-container--default .select2-selection--single {
  border-radius: 12px !important;
  border-color: var(--mp-border) !important;
  font-family: var(--mp-font) !important;
}

body.merchant-portal .kv-grid-table,
body.merchant-portal .grid-view table {
  border-color: var(--mp-border) !important;
}

/* Flat light-grey headers / filter row (kill Kartik metallic gradient) */
body.merchant-portal .kv-table-header,
body.merchant-portal .kv-table-footer,
body.merchant-portal .kv-grid-table thead,
body.merchant-portal .grid-view table thead,
body.merchant-portal .kv-grid-table thead tr,
body.merchant-portal .grid-view table thead tr,
body.merchant-portal .kv-grid-table thead th,
body.merchant-portal .kv-grid-table thead td,
body.merchant-portal .grid-view table thead th,
body.merchant-portal .grid-view table thead td,
body.merchant-portal .kv-grid-table tr.filters,
body.merchant-portal .kv-grid-table tr.filters > th,
body.merchant-portal .kv-grid-table tr.filters > td,
body.merchant-portal .grid-view table tr.filters,
body.merchant-portal .grid-view table tr.filters > th,
body.merchant-portal .grid-view table tr.filters > td {
  background: #f4f5f7 !important;
  background-image: none !important;
}

body.merchant-portal .kv-grid-table thead th,
body.merchant-portal .grid-view table thead th {
  color: var(--mp-ink-soft) !important;
  border-bottom-color: var(--mp-border) !important;
}

body.merchant-portal .kv-grid-table tr.filters .form-control,
body.merchant-portal .grid-view table tr.filters .form-control {
  background: #fff !important;
}

body.merchant-portal .pagination .page-link {
  border-radius: 10px !important;
  border-color: var(--mp-border);
  color: var(--mp-ink-soft) !important;
  margin: 0 3px;
  padding: 0.55rem 0.95rem !important;
  min-width: 2.4rem;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  line-height: 1.2;
}

body.merchant-portal .pagination .page-link svg.icon,
body.merchant-portal .pagination .page-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

body.merchant-portal .pagination .page-item.active .page-link {
  background: var(--mp-blue) !important;
  border-color: var(--mp-blue) !important;
  color: #fff !important;
}

body.merchant-portal .pagination .page-item.disabled .page-link {
  padding: 0.55rem 0.95rem !important;
}

/* GridView / Kartik "Showing 1-8 of 8 items" */
body.merchant-portal .grid-view .summary,
body.merchant-portal .kv-grid-wrapper .summary,
body.merchant-portal .kv-panel-before .summary,
body.merchant-portal .kv-panel-after .summary,
body.merchant-portal div.summary,
body.merchant-portal .mp-grid-summary {
  display: block;
  margin: 0 !important;
  padding: 1rem 1.15rem !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  color: var(--mp-muted) !important;
}

body.merchant-portal .grid-view .summary b,
body.merchant-portal .kv-grid-wrapper .summary b,
body.merchant-portal div.summary b,
body.merchant-portal .mp-grid-summary b {
  color: var(--mp-ink-soft);
  font-weight: 600;
}

body.merchant-portal .grid-view .pagination,
body.merchant-portal .kv-panel-after .pagination,
body.merchant-portal .grid-view > .pagination {
  padding: 0.35rem 1.15rem 1rem !important;
  margin: 0 !important;
}

body.merchant-portal .alert {
  border-radius: var(--mp-radius-sm);
  font-weight: 500;
}

body.merchant-portal .alert-success {
  background: var(--mp-lime-soft);
  border-color: var(--mp-lime);
  color: #2f6b0f;
}

body.merchant-portal .alert-danger {
  background: var(--mp-danger-soft);
  border-color: #f7c5cb;
  color: #b42337;
}

body.merchant-portal .footer {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--mp-muted);
  margin-left: 0 !important;
  width: 100% !important;
  padding: 0.85rem 1.75rem 1.35rem !important;
  font-size: 0.8rem;
  z-index: 1;
}

body.merchant-portal a {
  color: var(--mp-blue) !important;
  text-decoration: none;
}

body.merchant-portal a:hover {
  color: var(--mp-blue-hover) !important;
}

body.merchant-portal .mp-segment-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf0f3;
  margin: 1.1rem 0 1.2rem;
}

body.merchant-portal .mp-segment-bar > span {
  display: block;
  height: 100%;
}

body.merchant-portal .mp-segment-bar .seg-hatch {
  background: repeating-linear-gradient(
    -45deg,
    #d7dde4,
    #d7dde4 3px,
    #e9edf1 3px,
    #e9edf1 6px
  );
}

body.merchant-portal .mp-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--mp-ink-soft);
  border-bottom: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-legend-row:last-of-type {
  border-bottom: none;
}

body.merchant-portal .mp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

body.merchant-portal .mp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--mp-ink) !important;
}

body.merchant-portal .mp-gauge-wrap {
  position: relative;
  height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.merchant-portal .mp-gauge-center {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* ========== Aesthetic: dashboard & balances ========== */
@keyframes mp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.merchant-portal .mp-reveal {
  animation: mp-rise 0.55s ease both;
  animation-delay: calc(var(--d, 0) * 0.07s);
}

body.merchant-portal .mp-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.25rem;
}

body.merchant-portal .mp-eyebrow.light {
  color: rgba(255, 255, 255, 0.55);
}

body.merchant-portal .mp-pill-live {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--mp-lime-soft);
  color: #3d7a12;
}

body.merchant-portal .mp-pill-live.alt {
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
}

body.merchant-portal .mp-stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.12rem 0.45rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: rgba(134, 226, 67, 0.22);
  color: var(--mp-lime);
  font-weight: 700;
  font-size: 0.72rem;
}

body.merchant-portal .mp-stat-chip.soft {
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
}

body.merchant-portal .mp-panel {
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.merchant-portal .mp-panel:hover {
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06) !important;
}

body.merchant-portal .mp-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.merchant-portal .mp-panel-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--mp-ink) !important;
  margin: 0;
}

body.merchant-portal .mp-panel-metric {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mp-ink);
  line-height: 1.15;
}

body.merchant-portal .mp-panel-sub {
  font-size: 0.75rem;
  color: var(--mp-muted);
  margin-top: 0.15rem;
}

body.merchant-portal .mp-chart {
  min-height: 250px;
}

body.merchant-portal .mp-chart-donut {
  min-height: 210px;
}

body.merchant-portal .mp-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-empty i {
  font-size: 1.75rem;
  color: var(--mp-muted-2);
  display: block;
  margin-bottom: 0.55rem;
}

body.merchant-portal .mp-empty p {
  margin: 0;
  font-size: 0.9rem;
}

body.merchant-portal .mp-legend-meta {
  color: var(--mp-muted);
  font-size: 0.8rem;
}

body.merchant-portal .mp-legend-meta strong {
  color: var(--mp-ink);
}

body.merchant-portal .mp-ticket-mix {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.merchant-portal .mp-ticket-mix-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.merchant-portal .mp-ticket-mix-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-ticket-mix-meta {
  font-size: 0.82rem;
  color: var(--mp-muted);
  white-space: nowrap;
}

body.merchant-portal .mp-ticket-mix-meta strong {
  color: var(--mp-ink);
  font-weight: 700;
}

body.merchant-portal .mp-ticket-mix-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--mp-border-soft);
  overflow: hidden;
}

body.merchant-portal .mp-ticket-mix-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}

body.merchant-portal .mp-row-name {
  color: var(--mp-ink) !important;
  font-weight: 600 !important;
  font-size: 0.9rem;
}

body.merchant-portal .mp-row-amount {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mp-ink);
}

body.merchant-portal .mp-table tbody tr {
  transition: background 0.15s ease;
}

body.merchant-portal .mp-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.merchant-portal .mp-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.65rem;
  border-radius: 14px;
  transition: background 0.15s ease;
}

body.merchant-portal .mp-wallet-row:hover {
  background: #f7f9fb;
}

body.merchant-portal .mp-wallet-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent, #2E97F7) 14%, white);
  flex-shrink: 0;
  overflow: hidden;
}

body.merchant-portal .mp-wallet-mark img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

body.merchant-portal .mp-wallet-code {
  font-weight: 700;
  color: var(--mp-ink);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

body.merchant-portal .mp-wallet-meta {
  font-size: 0.72rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-wallet-amt {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--mp-ink);
}

/* Balances page */
body.merchant-portal .mp-balances {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

body.merchant-portal .mp-balance-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.85rem;
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(134, 226, 67, 0.3), transparent 55%),
    radial-gradient(420px 200px at 0% 100%, rgba(46, 151, 247, 0.25), transparent 50%),
    linear-gradient(135deg, #121212 0%, #0d0d0d 60%, #171717 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(13, 13, 13, 0.18);
  position: relative;
  overflow: hidden;
}

body.merchant-portal .mp-balance-hero-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0.15rem 0 0.4rem;
  line-height: 1.05;
  color: #ffffff !important;
}

body.merchant-portal .mp-balance-hero .mp-eyebrow {
  color: rgba(255, 255, 255, 0.55) !important;
}

body.merchant-portal .mp-balance-hero-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.9rem;
  max-width: 28rem;
}

body.merchant-portal .mp-balance-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
}

body.merchant-portal .mp-balance-hero-stat {
  min-width: 150px;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.merchant-portal .mp-balance-hero-stat .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

body.merchant-portal .mp-balance-hero-stat strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff !important;
}

body.merchant-portal .mp-balance-hero-stat .meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

body.merchant-portal .mp-balance-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.merchant-portal .mp-balance-section-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

body.merchant-portal .mp-currency-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--mp-border);
  border-radius: 20px;
  padding: 1.25rem 1.3rem 1.15rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: mp-rise 0.5s ease both;
  animation-delay: calc(var(--d, 0) * 0.04s + 0.12s);
}

body.merchant-portal .mp-currency-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #2E97F7), transparent 80%);
}

body.merchant-portal .mp-currency-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent, #2E97F7) 35%, #e8eaef);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
}

body.merchant-portal .mp-currency-card.payout::before {
  background: linear-gradient(90deg, var(--accent, #86E243), transparent 80%);
}

body.merchant-portal .mp-currency-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

body.merchant-portal .mp-currency-flag {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent, #2E97F7) 12%, white);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

body.merchant-portal .mp-currency-flag img {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.merchant-portal .mp-currency-flag .fallback-code {
  display: none;
  font-weight: 700;
  color: var(--accent, #2E97F7);
}

body.merchant-portal .mp-currency-flag.fallback img {
  display: none;
}

body.merchant-portal .mp-currency-flag.fallback .fallback-code {
  display: inline;
}

body.merchant-portal .mp-currency-code {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--mp-ink);
}

body.merchant-portal .mp-currency-account {
  font-size: 0.78rem;
  color: var(--mp-muted);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.merchant-portal .mp-currency-amount {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--mp-ink);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

body.merchant-portal .mp-currency-amount span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mp-muted);
  margin-left: 0.25rem;
  letter-spacing: 0;
}

body.merchant-portal .mp-currency-usd {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mp-blue);
  margin-bottom: 1.1rem;
}

body.merchant-portal .mp-currency-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
}

body.merchant-portal .mp-currency-split-item {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: var(--mp-bg);
  border: 1px solid var(--mp-border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

body.merchant-portal .mp-currency-split-item.inbound {
  background: var(--mp-blue-soft);
  border-color: color-mix(in srgb, var(--mp-blue) 16%, var(--mp-border-soft));
}

body.merchant-portal .mp-currency-split-item.outbound {
  background: var(--mp-lime-soft);
  border-color: color-mix(in srgb, var(--mp-lime) 22%, var(--mp-border-soft));
}

body.merchant-portal .mp-currency-split-item .label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
}

body.merchant-portal .mp-currency-split-item strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mp-ink);
  line-height: 1.25;
}

body.merchant-portal .mp-currency-split-item strong span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mp-muted);
  margin-left: 0.12rem;
}

body.merchant-portal .mp-currency-split-item .usd {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-currency-foot-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

body.merchant-portal .mp-currency-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mp-border-soft);
  font-size: 0.75rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-currency-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  color: var(--mp-ink) !important;
}

body.merchant-portal .mp-currency-cta:hover {
  color: var(--mp-blue) !important;
}

@media (max-width: 419.98px) {
  body.merchant-portal .mp-currency-split {
    grid-template-columns: 1fr;
  }

  body.merchant-portal .mp-currency-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.merchant-portal .mp-link-arrow .bx {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

body.merchant-portal .mp-link-arrow:hover .bx {
  transform: translateX(2px);
}

@media (max-width: 992px) {
  html,
  body.merchant-portal {
    overflow-x: hidden;
    max-width: 100%;
  }

  body.merchant-portal.mp-sidebar-mobile-open {
    overflow: hidden;
  }

  body.merchant-portal .vertical-menu-btn {
    display: none !important;
  }

  body.merchant-portal .mp-mobile-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1006;
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 0.75rem 0;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border-bottom: 1px solid var(--mp-border);
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  }

  body.merchant-portal .mp-mobile-bar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    text-decoration: none !important;
    color: var(--mp-ink) !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.03em;
  }

  body.merchant-portal .mp-mobile-bar-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  body.merchant-portal .mp-mobile-bar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.merchant-portal .mp-sidebar-open {
    display: inline-flex;
  }

  body.merchant-portal .mp-sidebar-toggle {
    display: inline-flex;
    right: 0.75rem;
    top: 0.75rem;
  }

  body.merchant-portal .mp-sidebar-toggle-collapse {
    display: none;
  }

  body.merchant-portal .mp-sidebar-toggle-close {
    display: inline;
    font-size: 1.25rem;
  }

  /* Theme hides .vertical-menu with display:none below 992px — keep it as an off-canvas drawer */
  body.merchant-portal .vertical-menu {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s ease;
    width: min(280px, 86vw) !important;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2) !important;
    overflow: hidden !important;
    z-index: 1010 !important;
    visibility: visible !important;
  }

  body.merchant-portal .vertical-menu .navbar-brand-box {
    display: flex !important;
    padding-right: 2.75rem !important;
  }

  body.merchant-portal.mp-sidebar-mobile-open .vertical-menu {
    transform: translateX(0);
  }

  body.merchant-portal .mp-sidebar-backdrop {
    z-index: 1008;
  }

  body.merchant-portal.mp-sidebar-mobile-open .mp-sidebar-backdrop {
    display: block;
  }

  body.merchant-portal.mp-sidebar-collapsed {
    --mp-sidebar: 248px;
  }

  body.merchant-portal.mp-sidebar-collapsed .vertical-menu {
    width: min(280px, 86vw) !important;
  }

  body.merchant-portal.mp-sidebar-collapsed .mp-brand-name,
  body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .menu-title,
  body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .menu-item,
  body.merchant-portal.mp-sidebar-collapsed .mp-sidebar-promo {
    display: block !important;
  }

  body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .menu-item {
    display: inline !important;
  }

  body.merchant-portal.mp-sidebar-collapsed #sidebar-menu ul.sub-menu {
    display: none !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .mm-show {
    display: block !important;
  }

  body.merchant-portal.mp-sidebar-collapsed #sidebar-menu .menu-title {
    padding: 0.85rem 0.75rem 0.3rem !important;
  }

  body.merchant-portal.mp-sidebar-collapsed .mp-sidebar-promo {
    display: block !important;
    margin: 1rem 0.9rem 1.25rem !important;
    padding: 1.15rem 1.1rem 1.2rem !important;
  }

  body.merchant-portal #page-topbar,
  body.merchant-portal .main-content,
  body.merchant-portal .footer {
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.merchant-portal .page-content {
    padding: calc(4.65rem + env(safe-area-inset-top, 0px)) 0.9rem 5rem !important;
  }

  body.merchant-portal .mp-panel-head {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  body.merchant-portal .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
  }

  body.merchant-portal .mp-balance-hero {
    padding: 1.35rem 1.25rem;
  }

  body.merchant-portal .mp-page-head {
    padding-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  body.merchant-portal .mp-page-head h1 {
    font-size: 1.4rem;
  }

  body.merchant-portal .mp-page-head p {
    font-size: 0.84rem;
  }

  body.merchant-portal .mp-page-actions {
    width: 100%;
  }

  body.merchant-portal .mp-page-actions .btn {
    min-height: 38px;
  }

  body.merchant-portal .mp-grid,
  body.merchant-portal .kv-grid-container,
  body.merchant-portal .grid-view,
  body.merchant-portal .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.merchant-portal .table,
  body.merchant-portal .kv-grid-table,
  body.merchant-portal .grid-view table {
    min-width: 640px;
  }

  body.merchant-portal .footer {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    text-align: center;
  }
}

/* Collection Insights */
body.merchant-portal .mp-currency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.merchant-portal .mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f4f5f7;
  border: 1px solid var(--mp-border);
  font-size: 0.75rem;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip, var(--mp-blue));
}

body.merchant-portal .mp-chip strong {
  color: var(--mp-ink);
  font-weight: 600;
}

body.merchant-portal .mp-volume-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 16rem;
}

body.merchant-portal .mp-volume-menu > summary #mp-volume-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.merchant-portal .mp-volume-menu .mp-menu-panel {
  left: 0;
  right: auto;
  min-width: 12.5rem;
  max-height: 18rem;
  overflow-y: auto;
}

body.merchant-portal .mp-volume-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mp-ink);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

body.merchant-portal .mp-volume-option:hover {
  background: #f5f7f9;
}

body.merchant-portal .mp-volume-option.is-active {
  background: #eef6ff;
  color: var(--mp-ink);
  font-weight: 600;
}

body.merchant-portal .mp-insights-today-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-insights-today-stats .ok {
  color: #3d7a12;
}

body.merchant-portal .mp-insights-today-stats .bad {
  color: #b42337;
}

body.merchant-portal .mp-country-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
}

body.merchant-portal .mp-country-toggle {
  appearance: none;
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-ink-soft);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--mp-font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.merchant-portal .mp-country-toggle:hover {
  border-color: #c9d4e0;
  background: #f7f8fa;
}

body.merchant-portal .mp-country-toggle.is-active {
  background: var(--mp-blue);
  border-color: var(--mp-blue);
  color: #fff;
}

body.merchant-portal .mp-country-count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
}

body.merchant-portal .mp-country-toggle.is-active .mp-country-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.merchant-portal .mp-insights-table .mp-country-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

body.merchant-portal .mp-insights-table .mp-country-row.is-active {
  background: var(--mp-blue-soft) !important;
}

body.merchant-portal .mp-country-name {
  display: block;
  font-weight: 600;
  color: var(--mp-ink);
}

body.merchant-portal .mp-country-code {
  font-size: 0.72rem;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
}

body.merchant-portal .mp-pill-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-pill-soft.ok {
  background: var(--mp-lime-soft);
  color: #3d7a12;
}

body.merchant-portal .mp-pill-soft.bad {
  background: var(--mp-danger-soft);
  color: #b42337;
}

body.merchant-portal .mp-fail-panel {
  background: #f7f8fa;
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  min-height: 220px;
}

body.merchant-portal .mp-fail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

body.merchant-portal .mp-fail-head > i {
  font-size: 1.35rem;
  color: var(--mp-danger);
  opacity: 0.85;
}

body.merchant-portal .mp-fail-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--mp-ink);
}

body.merchant-portal .mp-fail-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.merchant-portal .mp-fail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.65rem;
  align-items: center;
}

body.merchant-portal .mp-fail-reason {
  grid-column: 1 / 2;
  font-size: 0.8rem;
  color: var(--mp-ink-soft);
  line-height: 1.35;
}

body.merchant-portal .mp-fail-count {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mp-ink);
}

body.merchant-portal .mp-fail-bar {
  grid-column: 1 / 2;
  height: 6px;
  border-radius: 999px;
  background: #e8eaef;
  overflow: hidden;
}

body.merchant-portal .mp-fail-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mp-danger);
  opacity: 0.75;
}

body.merchant-portal .mp-fail-empty {
  text-align: center;
  padding: 1.75rem 0.5rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-fail-empty i {
  font-size: 1.75rem;
  color: var(--mp-lime);
  display: block;
  margin-bottom: 0.4rem;
}

body.merchant-portal .mp-fail-empty p {
  margin: 0;
  font-size: 0.85rem;
}

/* Withdrawal history */
body.merchant-portal .mp-wd-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.6rem;
  border-radius: 20px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(134, 226, 67, 0.28), transparent 55%),
    radial-gradient(420px 200px at 0% 100%, rgba(46, 151, 247, 0.28), transparent 50%),
    linear-gradient(145deg, #141414 0%, #0d0d0d 55%, #121212 100%);
  color: #fff;
}

body.merchant-portal .mp-wd-hero-title {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

body.merchant-portal .mp-wd-hero-sub {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

body.merchant-portal .mp-wd-hero .btn-mp-primary {
  background: #86E243 !important;
  border-color: #86E243 !important;
  color: #0d0d0d !important;
  font-weight: 700;
}

body.merchant-portal .mp-wd-hero .btn-mp-primary:hover {
  background: #78d436 !important;
  border-color: #78d436 !important;
  color: #0d0d0d !important;
}

body.merchant-portal .mp-wd-view {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.merchant-portal .mp-wd-view-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
}

body.merchant-portal .mp-wd-view-hero-meta strong {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

body.merchant-portal .mp-wd-sla-wrap {
  margin-top: 1.25rem;
}

body.merchant-portal .mp-wd-sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
}

body.merchant-portal .mp-wd-sla-badge i {
  font-size: 1.15rem;
}

body.merchant-portal .mp-wd-sla-badge.is-fast {
  color: #15803d !important;
  background: #ecfdf3;
  border-color: rgba(21, 128, 61, 0.28);
}

body.merchant-portal .mp-wd-sla-badge.is-fast i {
  color: #16a34a !important;
  filter: none;
}

body.merchant-portal .mp-wd-sla-badge.is-pending {
  color: #6b7280 !important;
  background: #f3f4f6;
  border-color: var(--mp-border);
}

body.merchant-portal .mp-wd-sla-badge.is-slow {
  color: #dc2626 !important;
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.28);
}

body.merchant-portal .mp-wd-sla-badge.is-slow i {
  color: #dc2626 !important;
}

body.merchant-portal .mp-wd-ccy {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--mp-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mp-ink);
}

body.merchant-portal .mp-wd-usdt {
  font-weight: 700;
  color: var(--mp-ink);
}

body.merchant-portal .mp-wd-date {
  display: block;
  font-weight: 600;
  color: var(--mp-ink);
}

body.merchant-portal .mp-wd-time {
  display: block;
  font-size: 0.75rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-status-link {
  text-decoration: none !important;
}

body.merchant-portal .mp-status-link:hover .mp-status {
  filter: brightness(0.97);
}

/* ========== Initiate / confirm settlement ========== */
body.merchant-portal .mp-settle {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

body.merchant-portal .mp-settle .mp-wd-hero {
  align-items: stretch;
}

body.merchant-portal .mp-settle-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

body.merchant-portal .mp-settle-hero-stat {
  min-width: 148px;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.merchant-portal .mp-settle-hero-stat .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

body.merchant-portal .mp-settle-hero-stat strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

body.merchant-portal .mp-settle-hero-stat .meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
}

body.merchant-portal .mp-settle-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.95rem 1.15rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-md);
}

body.merchant-portal .mp-settle-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

body.merchant-portal .mp-settle-address > i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.merchant-portal .mp-settle-address .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.15rem;
}

body.merchant-portal .mp-settle-address strong {
  display: block;
  color: var(--mp-ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  word-break: break-all;
}

body.merchant-portal .mp-settle-address .meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-settle-address .meta a {
  color: var(--mp-blue);
  font-weight: 600;
  text-decoration: none;
}

body.merchant-portal .mp-settle-address .meta a:hover {
  text-decoration: underline;
}

body.merchant-portal .mp-settle-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.25rem 1.25rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  border-top: 3px solid var(--accent, var(--mp-blue));
  box-shadow: none;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

body.merchant-portal .mp-settle-card:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
  transform: translateY(-1px);
}

body.merchant-portal .mp-settle-card.state-ready {
  background:
    linear-gradient(180deg, rgba(134, 226, 67, 0.05), transparent 42%),
    var(--mp-surface);
}

body.merchant-portal .mp-settle-card.state-pending {
  background:
    linear-gradient(180deg, rgba(245, 165, 36, 0.06), transparent 42%),
    var(--mp-surface);
}

body.merchant-portal .mp-settle-card.state-variance {
  background:
    linear-gradient(180deg, rgba(239, 91, 107, 0.07), transparent 42%),
    var(--mp-surface);
}

body.merchant-portal .mp-settle-rate-compare {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--mp-muted);
  font-weight: 500;
}

body.merchant-portal .mp-settle-rate-compare.is-warn {
  color: #b45309;
  font-weight: 600;
}

body.merchant-portal .mp-settle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

body.merchant-portal .mp-settle-ccy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

body.merchant-portal .mp-settle-flag {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid var(--mp-border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

body.merchant-portal .mp-settle-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.merchant-portal .mp-settle-ccy strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mp-ink);
  line-height: 1.2;
}

body.merchant-portal .mp-settle-ccy span {
  display: block;
  font-size: 0.8rem;
  color: var(--mp-muted);
  margin-top: 0.1rem;
}

body.merchant-portal .mp-settle-fast {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9f9d4, #d4f0a8);
  color: #2f6b0f;
  border: 1px solid rgba(134, 226, 67, 0.65);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.merchant-portal .mp-settle-fast i {
  font-size: 1.1rem;
  color: #5fbf1d;
  filter: drop-shadow(0 0 4px rgba(134, 226, 67, 0.55));
}

body.merchant-portal .mp-settle-payout {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-settle-payout .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.2rem;
}

body.merchant-portal .mp-settle-payout strong {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--mp-ink);
  line-height: 1.1;
}

body.merchant-portal .mp-settle-payout small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-muted);
  letter-spacing: 0;
}

body.merchant-portal .mp-settle-payout-empty {
  color: var(--mp-muted) !important;
  letter-spacing: 0.08em;
}

body.merchant-portal .mp-settle-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

body.merchant-portal .mp-settle-metrics > div {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid var(--mp-border-soft);
  min-width: 0;
}

body.merchant-portal .mp-settle-metrics span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.2rem;
}

body.merchant-portal .mp-settle-metrics strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mp-ink);
  letter-spacing: -0.015em;
  word-break: break-word;
}

body.merchant-portal .mp-settle-card-foot {
  margin-top: auto;
  padding-top: 0.15rem;
}

body.merchant-portal .mp-settle-cta {
  width: 100%;
  justify-content: center !important;
  border-radius: 12px !important;
  padding: 0.7rem 1rem !important;
}

body.merchant-portal .mp-settle-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

body.merchant-portal .mp-settle-note > i {
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

body.merchant-portal .mp-settle-note strong {
  display: block;
  font-size: 0.9rem;
  color: var(--mp-ink);
  margin-bottom: 0.12rem;
}

body.merchant-portal .mp-settle-note span {
  display: block;
  font-size: 0.82rem;
  color: var(--mp-ink-soft);
  line-height: 1.4;
}

body.merchant-portal .mp-settle-note a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-blue);
  text-decoration: none;
}

body.merchant-portal .mp-settle-note a:hover {
  text-decoration: underline;
}

body.merchant-portal .mp-settle-note.pending {
  background: var(--mp-warning-soft);
  border-color: #f5dfb0;
}

body.merchant-portal .mp-settle-note.pending > i {
  color: #c47a0a;
}

body.merchant-portal .mp-settle-note.setup {
  background: var(--mp-blue-soft);
  border-color: #cfe6fb;
}

body.merchant-portal .mp-settle-note.setup > i {
  color: var(--mp-blue);
}

body.merchant-portal .mp-settle-note.variance {
  background: #fff7ed;
  border-color: #fed7aa;
}

body.merchant-portal .mp-settle-note.variance > i {
  color: #c2410c;
}

body.merchant-portal .mp-settle-note.blocked {
  background: #f3f4f6;
  border-color: var(--mp-border);
}

body.merchant-portal .mp-settle-note.blocked > i {
  color: var(--mp-muted);
}

/* Confirm settlement */
body.merchant-portal .mp-settle-confirm {
  max-width: 960px;
  margin: 0 auto;
}

body.merchant-portal .mp-settle-confirm-hero {
  width: 100%;
}

body.merchant-portal .mp-settle-confirm-usdt {
  text-align: right;
  min-width: 140px;
}

body.merchant-portal .mp-settle-confirm-usdt .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

body.merchant-portal .mp-settle-confirm-usdt strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
  margin: 0.15rem 0;
}

body.merchant-portal .mp-settle-confirm-usdt .meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

body.merchant-portal .mp-settle-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

body.merchant-portal .mp-settle-confirm-item {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid var(--mp-border-soft);
  min-width: 0;
}

body.merchant-portal .mp-settle-confirm-item span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.3rem;
}

body.merchant-portal .mp-settle-confirm-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mp-ink);
  letter-spacing: -0.015em;
  word-break: break-word;
}

body.merchant-portal .mp-settle-confirm-address {
  margin-bottom: 1.25rem;
}

body.merchant-portal .mp-settle-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: #fafbfc;
  cursor: pointer;
  margin: 0;
}

body.merchant-portal .mp-settle-check input {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  accent-color: var(--mp-lime);
  flex-shrink: 0;
}

body.merchant-portal .mp-settle-check strong {
  display: block;
  font-size: 0.9rem;
  color: var(--mp-ink);
  margin-bottom: 0.2rem;
}

body.merchant-portal .mp-settle-check em {
  display: block;
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--mp-ink-soft);
  word-break: break-all;
  line-height: 1.4;
}

body.merchant-portal .mp-settle-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 767.98px) {
  body.merchant-portal .mp-settle-metrics {
    grid-template-columns: 1fr;
  }

  body.merchant-portal .mp-settle-confirm-grid {
    grid-template-columns: 1fr;
  }

  body.merchant-portal .mp-settle-confirm-usdt {
    text-align: left;
  }

  body.merchant-portal .mp-settle-confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.merchant-portal .mp-settle-confirm-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

body.merchant-portal .mp-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 1rem 0.25rem 0.35rem;
  border-top: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-grid-summary {
  margin: 0;
  padding: 0.35rem 0.15rem !important;
  font-size: 0.84rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-grid .filters input.form-control,
body.merchant-portal .mp-grid .filters select.form-control,
body.merchant-portal .mp-grid .filters .form-control {
  border-radius: 10px !important;
  font-size: 0.8rem;
  min-height: 36px;
  background: #fff !important;
}

/* ========== Auth (login / otp / forgot) ========== */
body.mp-auth {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1d21;
  -webkit-font-smoothing: antialiased;
  background: #f6f7f9;
}

body.mp-auth a {
  color: #2E97F7;
  text-decoration: none;
}

body.mp-auth a:hover {
  color: #1f86e6;
}

.mp-auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 42vw) 1fr;
  min-height: 100vh;
}

.mp-auth-brand {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  color: #fff;
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
}

.mp-auth-brand-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.mp-auth-brand-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(46, 151, 247, 0.38);
  animation: mp-auth-drift 12s ease-in-out infinite alternate;
}

.mp-auth-brand-glow-b {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: rgba(134, 226, 67, 0.28);
  animation: mp-auth-drift 14s ease-in-out infinite alternate-reverse;
}

.mp-auth-brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 15%, transparent 70%);
  pointer-events: none;
}

.mp-auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: calc(100vh - 3.75rem);
}

.mp-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff !important;
  text-decoration: none !important;
  width: fit-content;
}

.mp-auth-logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-auth-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mp-auth-logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mp-auth-hero {
  margin: auto 0;
  padding: 2.5rem 0;
  animation: mp-auth-rise 0.7s ease both;
}

.mp-auth-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(134, 226, 67, 0.9);
}

.mp-auth-headline {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #fff;
}

.mp-auth-tagline {
  margin: 0;
  max-width: 18rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 400;
}

.mp-auth-brand-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  padding-top: 1rem;
}

.mp-auth-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f6f7f9;
}

.mp-auth-main-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(46, 151, 247, 0.08), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(134, 226, 67, 0.07), transparent 50%);
  pointer-events: none;
}

.mp-auth-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.mp-auth-card {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 20px;
  padding: 1.85rem 1.75rem 1.7rem;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
}

.mp-auth-enter {
  animation: mp-auth-rise 0.55s ease 0.08s both;
}

.mp-auth-card-head {
  margin-bottom: 1.45rem;
}

.mp-auth-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b929c;
}

.mp-auth-title {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1d21;
}

.mp-auth-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #8b929c;
}

.mp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mp-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mp-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mp-auth-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3a3f47;
}

.mp-auth-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2E97F7 !important;
}

.mp-auth-link:hover {
  color: #1f86e6 !important;
}

.mp-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mp-auth-input-wrap > i {
  position: absolute;
  left: 0.9rem;
  font-size: 1.05rem;
  color: #a0a7b1;
  pointer-events: none;
  z-index: 1;
}

.mp-auth-input {
  width: 100%;
  height: 48px;
  border: 1px solid #e8eaef;
  border-radius: 12px;
  background: #fff;
  padding: 0 2.75rem 0 2.55rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1d21;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-auth-input::placeholder {
  color: #b0b6bf;
}

.mp-auth-input:hover {
  border-color: #d5dae3;
}

.mp-auth-input:focus {
  outline: none;
  border-color: #2E97F7;
  box-shadow: 0 0 0 4px rgba(46, 151, 247, 0.14);
}

.mp-auth-input-otp {
  letter-spacing: 0.35em;
  font-weight: 600;
  text-align: center;
  padding-left: 2.55rem;
  padding-right: 1rem;
}

.mp-auth-eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #8b929c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
}

.mp-auth-eye:hover {
  color: #3a3f47;
  background: #f4f5f7;
}

.mp-auth-eye i {
  font-size: 1.15rem;
}

.mp-auth-submit {
  margin-top: 0.35rem;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #86E243;
  color: #0d0d0d;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(134, 226, 67, 0.28);
}

.mp-auth-submit:hover {
  background: #78d436;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(134, 226, 67, 0.34);
}

.mp-auth-submit:active {
  transform: translateY(0);
}

.mp-auth-foot {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8b929c;
}

.mp-auth-alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  animation: mp-auth-rise 0.4s ease both;
}

.mp-auth-alert-success {
  background: #eefbe3;
  border: 1px solid #86E243;
  color: #2f6b0f;
}

.mp-auth-alert-error {
  background: #fde8eb;
  border: 1px solid #f7c5cb;
  color: #b42337;
}

@keyframes mp-auth-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mp-auth-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 14px) scale(1.06); }
}

@media (max-width: 900px) {
  .mp-auth-shell {
    grid-template-columns: 1fr;
  }

  .mp-auth-brand {
    min-height: auto;
    padding: 1.35rem 1.35rem 1.5rem;
  }

  .mp-auth-brand-inner {
    min-height: auto;
  }

  .mp-auth-hero {
    padding: 1.5rem 0 0.75rem;
  }

  .mp-auth-headline {
    font-size: 2rem;
  }

  .mp-auth-tagline {
    max-width: none;
    font-size: 0.95rem;
  }

  .mp-auth-brand-foot {
    display: none;
  }

  .mp-auth-main {
    padding: 1.25rem 1rem 2rem;
    align-items: flex-start;
  }

  .mp-auth-card {
    padding: 1.5rem 1.25rem 1.4rem;
  }
}

/* ========== My Account ========== */
body.merchant-portal .mp-account {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.merchant-portal .mp-account-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: none !important;
  margin-bottom: 0;
  background:
    linear-gradient(135deg, rgba(46, 151, 247, 0.06), transparent 42%),
    linear-gradient(225deg, rgba(134, 226, 67, 0.08), transparent 38%),
    var(--mp-surface);
}

body.merchant-portal .mp-account-hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 180px at 12% 0%, rgba(46, 151, 247, 0.12), transparent 60%),
    radial-gradient(420px 160px at 96% 20%, rgba(134, 226, 67, 0.14), transparent 55%);
}

body.merchant-portal .mp-account-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.45rem 1.5rem 1.5rem;
}

body.merchant-portal .mp-account-identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 320px;
}

body.merchant-portal .mp-account-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(145deg, #2E97F7 0%, #1a6fc0 55%, #0d0d0d 130%);
  box-shadow: 0 10px 24px rgba(46, 151, 247, 0.28);
}

body.merchant-portal .mp-account-identity-text {
  min-width: 0;
}

body.merchant-portal .mp-account-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.35rem;
}

body.merchant-portal .mp-account-org {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mp-ink);
  line-height: 1.2;
}

body.merchant-portal .mp-account-meta,
body.merchant-portal .mp-account-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.88rem;
}

body.merchant-portal .mp-account-contact-line {
  margin-top: 0.55rem;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-account-contact-line i {
  color: var(--mp-muted-2);
  font-size: 0.95rem;
}

body.merchant-portal .mp-account-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9cfd8;
  display: inline-block;
}

body.merchant-portal .mp-account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

body.merchant-portal .mp-account-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 0.55rem 0.95rem !important;
}

body.merchant-portal .mp-account-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

body.merchant-portal .mp-account-nav {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-md);
  padding: 0.55rem;
  box-shadow: none !important;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.merchant-portal .mp-account-nav-item {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  color: var(--mp-ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

body.merchant-portal .mp-account-nav-item i {
  font-size: 1.1rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-account-nav-item:hover {
  background: var(--mp-blue-soft);
  color: var(--mp-ink);
}

body.merchant-portal .mp-account-nav-item.is-active {
  background: var(--mp-forest);
  color: #fff;
}

body.merchant-portal .mp-account-nav-item.is-active i {
  color: var(--mp-lime);
}

body.merchant-portal .mp-account-panels {
  min-width: 0;
}

body.merchant-portal .mp-account-panel {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: none !important;
  padding: 1.35rem 1.45rem 1.5rem;
}

body.merchant-portal .mp-account-panel[hidden] {
  display: none !important;
}

body.merchant-portal .mp-account-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-account-panel-sub {
  margin: 0.25rem 0 0;
  color: var(--mp-muted);
  font-size: 0.88rem;
  max-width: 42rem;
}

body.merchant-portal .mp-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

body.merchant-portal .mp-account-field {
  background: #f8f9fb;
  border: 1px solid var(--mp-border-soft);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  min-width: 0;
}

body.merchant-portal .mp-account-field-wide {
  grid-column: 1 / -1;
}

body.merchant-portal .mp-account-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.35rem;
}

body.merchant-portal .mp-account-value {
  display: block;
  color: var(--mp-ink);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  word-break: break-word;
  line-height: 1.35;
}

body.merchant-portal .mp-account-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}

body.merchant-portal .mp-account-masked {
  letter-spacing: 0.12em !important;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-account-link {
  color: var(--mp-blue);
  text-decoration: none;
  font-weight: 600;
}

body.merchant-portal .mp-account-link:hover {
  color: var(--mp-blue-hover);
  text-decoration: underline;
}

body.merchant-portal .mp-account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

body.merchant-portal .mp-account-metric {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 1rem;
  background: var(--mp-surface);
}

body.merchant-portal .mp-account-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.merchant-portal .mp-account-metric-icon.soft {
  background: var(--mp-lime-soft);
  color: #4f9d1f;
}

body.merchant-portal .mp-account-metric-icon.alt {
  background: #f3f4f6;
  color: var(--mp-ink);
}

body.merchant-portal .mp-account-metric-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--mp-ink);
  line-height: 1.2;
}

body.merchant-portal .mp-account-metric-hint {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--mp-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

body.merchant-portal .mp-account-cred-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.merchant-portal .mp-account-cred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  background: #fafbfc;
}

body.merchant-portal .mp-account-cred-main {
  min-width: 0;
  flex: 1 1 220px;
}

body.merchant-portal .mp-account-notify-status {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

body.merchant-portal .mp-account-notify-status.is-on {
  background: var(--mp-success-soft);
  border-color: #c8ebd6;
}

body.merchant-portal .mp-account-notify-status.is-off {
  background: var(--mp-warning-soft);
  border-color: #f5dfb0;
}

body.merchant-portal .mp-account-notify-status strong {
  display: block;
  color: var(--mp-ink);
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

body.merchant-portal .mp-account-notify-status p {
  margin: 0;
  color: var(--mp-ink-soft);
  font-size: 0.86rem;
}

body.merchant-portal .mp-account-notify-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

body.merchant-portal .mp-account-notify-status.is-on .mp-account-notify-dot {
  background: #2f9e5b;
  box-shadow: 0 0 0 4px rgba(47, 158, 91, 0.18);
}

body.merchant-portal .mp-account-notify-status.is-off .mp-account-notify-dot {
  background: #c47a0a;
  box-shadow: 0 0 0 4px rgba(196, 122, 10, 0.16);
}

body.merchant-portal .mp-account-notify-actions {
  margin-top: 1.1rem;
}

@media (max-width: 991.98px) {
  body.merchant-portal .mp-account-layout {
    grid-template-columns: 1fr;
  }

  body.merchant-portal .mp-account-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.45rem;
    -webkit-overflow-scrolling: touch;
  }

  body.merchant-portal .mp-account-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.merchant-portal .mp-account-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  body.merchant-portal .mp-account-hero-body {
    padding: 1.2rem 1.15rem 1.25rem;
  }

  body.merchant-portal .mp-account-org {
    font-size: 1.25rem;
  }

  body.merchant-portal .mp-account-grid {
    grid-template-columns: 1fr;
  }

  body.merchant-portal .mp-account-panel {
    padding: 1.15rem 1.1rem 1.25rem;
  }
}

/* ========== Performance Insights ========== */
body.merchant-portal .mp-perf {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.merchant-portal .mp-perf > .mp-wd-hero {
  margin-bottom: 1rem;
}

body.merchant-portal .mp-perf-hero-net {
  text-align: right;
  min-width: 150px;
}

body.merchant-portal .mp-perf-hero-net .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

body.merchant-portal .mp-perf-hero-net strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1.1;
  margin: 0.15rem 0;
}

body.merchant-portal .mp-perf-hero-net strong.up {
  color: var(--mp-lime);
}

body.merchant-portal .mp-perf-hero-net strong.down {
  color: #ff8f9a;
}

body.merchant-portal .mp-perf-hero-net .meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
}

body.merchant-portal a.mp-perf-card {
  display: block;
  height: 100%;
  padding: 1.2rem 1.25rem;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
}

body.merchant-portal a.mp-perf-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mp-blue);
}

body.merchant-portal a.mp-perf-card.payouts::before {
  background: var(--mp-lime);
}

body.merchant-portal a.mp-perf-card.settlements::before {
  background: var(--mp-forest);
}

body.merchant-portal a.mp-perf-card:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
  transform: translateY(-2px);
  color: inherit !important;
}

body.merchant-portal .mp-perf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

body.merchant-portal .mp-perf-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-size: 1.2rem;
}

body.merchant-portal a.mp-perf-card.payouts .mp-perf-icon {
  background: var(--mp-lime-soft);
  color: #4f9d1f;
}

body.merchant-portal a.mp-perf-card.settlements .mp-perf-icon {
  background: #f3f4f6;
  color: var(--mp-ink);
}

body.merchant-portal .mp-perf-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--mp-ink);
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

body.merchant-portal .mp-perf-foot {
  font-size: 0.84rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-perf-foot strong {
  color: var(--mp-ink);
  font-weight: 700;
}

body.merchant-portal .mp-perf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--mp-muted);
  font-weight: 600;
}

body.merchant-portal .mp-perf-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.merchant-portal .mp-perf-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

body.merchant-portal .mp-perf-avg {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.merchant-portal .mp-perf-avg-ring {
  width: 140px;
  height: 140px;
  margin: 0.25rem auto 0.35rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(134, 226, 67, 0.2), transparent 55%),
    linear-gradient(145deg, #f7faf3, #eef6ff);
  border: 1px solid var(--mp-border);
}

body.merchant-portal .mp-perf-avg-ring strong {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--mp-ink);
  line-height: 1;
}

body.merchant-portal .mp-perf-avg-ring span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mp-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

body.merchant-portal .mp-perf-avg > p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--mp-ink-soft);
  line-height: 1.5;
  text-align: center;
}

body.merchant-portal .mp-perf-avg code {
  font-size: 0.78rem;
  background: #f3f4f6;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-perf-bullets {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.merchant-portal .mp-perf-bullets li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-perf-bullets span {
  font-size: 0.8rem;
  color: var(--mp-muted);
  font-weight: 600;
}

body.merchant-portal .mp-perf-bullets strong {
  font-size: 0.95rem;
  color: var(--mp-ink);
  letter-spacing: -0.015em;
}

body.merchant-portal a.mp-perf-card,
body.merchant-portal a.mp-perf-card:hover,
body.merchant-portal a.mp-perf-card:focus {
  color: inherit !important;
}

/* ========== Report issue modal ========== */
body.merchant-portal .modal {
  z-index: 4050 !important;
}

body.merchant-portal .modal-backdrop {
  z-index: 4040 !important;
}

body.merchant-portal .mp-trx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--mp-border);
}

body.merchant-portal .mp-report-modal .modal-dialog {
  max-width: 520px;
  z-index: 4051;
  pointer-events: auto;
}

body.merchant-portal .mp-report-modal .modal-content {
  border: 1px solid var(--mp-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16) !important;
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

body.merchant-portal .mp-report-modal .modal-header {
  border-bottom: 1px solid var(--mp-border-soft);
  padding: 1.15rem 1.35rem 0.95rem;
  align-items: flex-start;
}

body.merchant-portal .mp-report-modal .modal-title {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--mp-ink);
}

body.merchant-portal .mp-report-modal .modal-body {
  padding: 1.1rem 1.35rem 1.35rem;
}

body.merchant-portal .mp-report-ref {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-report-ref span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mp-muted);
}

body.merchant-portal .mp-report-ref strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mp-ink);
  word-break: break-all;
}

body.merchant-portal .mp-report-hint {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--mp-blue-soft);
  color: var(--mp-ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

body.merchant-portal .mp-report-hint i {
  color: var(--mp-blue);
  font-size: 1.15rem;
  margin-top: 0.05rem;
}

body.merchant-portal .mp-report-form .mp-report-field {
  margin-bottom: 0.9rem;
}

body.merchant-portal .mp-report-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mp-ink-soft);
}

body.merchant-portal .mp-report-form .form-control,
body.merchant-portal .mp-report-form select.form-control {
  border-radius: 12px !important;
  border: 1px solid var(--mp-border) !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
  background: #fff !important;
}

body.merchant-portal .mp-report-form .form-control:focus {
  border-color: rgba(46, 151, 247, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(46, 151, 247, 0.12) !important;
}

body.merchant-portal .mp-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

body.merchant-portal .mp-report-upload .hint,
body.merchant-portal .mp-report-upload .help-block {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--mp-muted);
}

body.merchant-portal .mp-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mp-border-soft);
}

@media (max-width: 575.98px) {
  body.merchant-portal .mp-report-grid {
    grid-template-columns: 1fr;
  }

  body.merchant-portal .mp-report-actions {
    flex-direction: column-reverse;
  }

  body.merchant-portal .mp-report-actions .btn {
    width: 100%;
  }
}

/* —— API Health —— */
body.merchant-portal .mp-health {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
body.merchant-portal .mp-health > .mp-wd-hero,
body.merchant-portal .mp-health > .mp-health-stats,
body.merchant-portal .mp-health > .mp-reveal {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 0 0 auto;
}
body.merchant-portal .mp-health > .mp-reveal > .card {
  margin: 0 !important;
}
body.merchant-portal .mp-health-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
body.merchant-portal .mp-health-stats.mp-health-stats-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 991.98px) {
  body.merchant-portal .mp-health-stats,
  body.merchant-portal .mp-health-stats.mp-health-stats-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  body.merchant-portal .mp-health-stats,
  body.merchant-portal .mp-health-stats.mp-health-stats-5 {
    grid-template-columns: 1fr;
  }
}
body.merchant-portal .mp-health-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}
body.merchant-portal .mp-health-hero-meta strong {
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.03em;
}
body.merchant-portal .mp-health-hero-meta .meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}
body.merchant-portal .mp-health-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.merchant-portal .mp-health-pill.good { background: #ecfdf3; color: #15803d; }
body.merchant-portal .mp-health-pill.watch { background: #fff7ed; color: #c2410c; }
body.merchant-portal .mp-health-pill.bad { background: #fef2f2; color: #dc2626; }
body.merchant-portal .mp-wd-hero .mp-health-pill.good { background: rgba(134,226,67,0.2); color: #86E243; }
body.merchant-portal .mp-wd-hero .mp-health-pill.watch { background: rgba(251,146,60,0.2); color: #fdba74; }
body.merchant-portal .mp-wd-hero .mp-health-pill.bad { background: rgba(248,113,113,0.2); color: #fca5a5; }

body.merchant-portal .mp-health-stat {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
body.merchant-portal .mp-health-stat span {
  display: block;
  color: var(--mp-muted);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}
body.merchant-portal .mp-health-stat strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
body.merchant-portal .mp-health-stat strong.ok { color: #16a34a; }
body.merchant-portal .mp-health-stat strong.bad { color: #dc2626; }
body.merchant-portal .mp-health-stat strong.warn { color: #ea580c; }

body.merchant-portal .mp-health-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--mp-muted);
}
body.merchant-portal .mp-health-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
body.merchant-portal .mp-health .dot,
body.merchant-portal .mp-health-legend .dot,
body.merchant-portal .mp-health-dots .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9ca3af;
}
body.merchant-portal .mp-health .dot.success { background: #22c55e; }
body.merchant-portal .mp-health .dot.failed { background: #ef4444; }
body.merchant-portal .mp-health .dot.pending { background: #9ca3af; }
body.merchant-portal .mp-health .dot.overstayed { background: #f97316; }

body.merchant-portal .mp-health-card {
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 0.95rem;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.merchant-portal .mp-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1199.98px) {
  body.merchant-portal .mp-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  body.merchant-portal .mp-health-grid {
    grid-template-columns: 1fr;
  }
}
body.merchant-portal .mp-health-card:hover {
  border-color: #c8d0db;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
body.merchant-portal .mp-health-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0;
}
body.merchant-portal .mp-health-card header strong {
  display: block;
  font-size: 1rem;
}
body.merchant-portal .mp-health-card header .meta {
  display: block;
  color: var(--mp-muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}
body.merchant-portal .mp-health-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0;
}
body.merchant-portal .mp-health-metrics span {
  display: block;
  font-size: 0.68rem;
  color: var(--mp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.merchant-portal .mp-health-metrics strong {
  font-size: 0.86rem;
}
body.merchant-portal .mp-health-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid #f3f4f6;
}
body.merchant-portal .mp-health-open {
  align-self: flex-start;
  margin-top: 0.15rem;
}
body.merchant-portal .mp-health-modal .modal-body {
  padding-top: 0.5rem;
}
body.merchant-portal .mp-health-modal .dot {
  width: 0.65rem;
  height: 0.65rem;
}
body.merchant-portal .mp-health-fail-panel {
  margin-top: 0;
  padding: 1rem;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid var(--mp-border);
  height: 100%;
}
body.merchant-portal .mp-health-fail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}
body.merchant-portal .mp-health-fail-chart-wrap {
  padding: 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mp-border);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
body.merchant-portal .mp-health-fail-chart {
  flex: 1 1 auto;
  min-height: 200px;
}
body.merchant-portal .mp-health-fail-chart-empty {
  margin: auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mp-muted);
}
@media (max-width: 991.98px) {
  body.merchant-portal .mp-health-fail-layout {
    grid-template-columns: 1fr;
  }
}
body.merchant-portal .mp-health-fail-rate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
body.merchant-portal .mp-health-fail-reason {
  font-size: 0.92rem;
  color: var(--mp-ink);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.45;
  word-break: break-word;
}
body.merchant-portal .mp-health-fail-meta {
  font-size: 0.8rem;
  color: var(--mp-muted);
  line-height: 1.5;
}
body.merchant-portal .mp-health-fail-meta .ok { color: #16a34a; }
body.merchant-portal .mp-health-fail-meta .bad { color: #dc2626; }

/* Recent collections dashboard */
body.merchant-portal .mp-recent-amt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: 10px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
body.merchant-portal .mp-recent-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--mp-muted);
  margin-top: 0.12rem;
}
body.merchant-portal .mp-recent-response {
  max-width: none;
  font-size: 0.82rem;
  color: var(--mp-ink);
  line-height: 1.35;
  word-break: break-word;
}
body.merchant-portal .mp-table th.mp-col-response,
body.merchant-portal .mp-table td.mp-col-response {
  width: 42%;
  min-width: 220px;
}

/* Profile / password */
body.merchant-portal .mp-profile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
body.merchant-portal .mp-profile > .mp-wd-hero {
  margin: 0;
}
body.merchant-portal .mp-profile-hero,
body.merchant-portal .mp-password-card {
  border-radius: 18px;
}
body.merchant-portal .mp-password-meter {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 0.45rem;
}
body.merchant-portal .mp-password-meter > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.2s ease, background 0.2s ease;
}
body.merchant-portal .mp-password-hint {
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin-top: 0.35rem;
}
body.merchant-portal .mp-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 767.98px) {
  body.merchant-portal .mp-profile-grid { grid-template-columns: 1fr; }
}

/* Transaction detail */
body.merchant-portal .mp-trx-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: none;
}
body.merchant-portal .mp-trx-detail > .mp-wd-hero {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 0 0 auto;
}
body.merchant-portal .mp-trx-detail > .card,
body.merchant-portal .mp-trx-detail > .mp-panel {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  flex: 0 0 auto;
}
body.merchant-portal .mp-trx-detail .mp-trx-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}
body.merchant-portal .mp-trx-detail .mp-trx-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--mp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
body.merchant-portal .mp-trx-detail .mp-trx-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}
body.merchant-portal .mp-trx-detail .mp-trx-response {
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--mp-border);
}
@media (max-width: 767.98px) {
  body.merchant-portal .mp-trx-detail .mp-trx-kv { grid-template-columns: 1fr; }
}

/* —— Team users —— */
body.merchant-portal .mp-users {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
body.merchant-portal .mp-users > .mp-wd-hero,
body.merchant-portal .mp-users > .card,
body.merchant-portal .mp-users > .row {
  margin: 0;
  position: relative;
  z-index: 1;
}
body.merchant-portal .mp-users-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
body.merchant-portal .mp-users-link,
body.merchant-portal .mp-users-cell-link {
  color: inherit;
  text-decoration: none;
}
body.merchant-portal .mp-users-link:hover .mp-row-name,
body.merchant-portal .mp-users-row:hover {
  cursor: pointer;
}
body.merchant-portal .mp-users-row:hover td {
  background: #f8fafc;
}
body.merchant-portal .mp-users-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
body.merchant-portal .mp-users-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}
body.merchant-portal .mp-users-you {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--mp-lime-soft, #ecfdf3);
  color: #3d7a12;
  vertical-align: middle;
}
body.merchant-portal .mp-users-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
body.merchant-portal .mp-users-flag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: lowercase;
  background: #f3f4f6;
  color: #4b5563;
}
body.merchant-portal .mp-users-row-inactive {
  opacity: 0.72;
}
body.merchant-portal .mp-users-danger {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
body.merchant-portal .mp-users-danger:hover {
  background: #fef2f2 !important;
}
body.merchant-portal .mp-users-role-block {
  margin-top: 1.25rem;
}
body.merchant-portal .mp-users-role-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 575.98px) {
  body.merchant-portal .mp-users-role-cards { grid-template-columns: 1fr; }
}
body.merchant-portal .mp-users-role-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.merchant-portal .mp-users-role-card:hover {
  border-color: #c8d0db;
}
body.merchant-portal .mp-users-role-card.is-selected {
  border-color: #86E243;
  background: linear-gradient(180deg, rgba(134, 226, 67, 0.08), #fff 55%);
  box-shadow: 0 0 0 1px rgba(134, 226, 67, 0.35);
}
body.merchant-portal .mp-users-role-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.merchant-portal .mp-users-role-title {
  font-weight: 700;
  color: var(--mp-ink);
  letter-spacing: -0.02em;
}
body.merchant-portal .mp-users-role-desc {
  font-size: 0.8rem;
  color: var(--mp-muted);
  line-height: 1.4;
}
body.merchant-portal .mp-users-perms {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid var(--mp-border);
}
body.merchant-portal .mp-users-perm-grid .form-group,
body.merchant-portal .mp-users-perm-grid .mb-3 {
  margin-bottom: 0.45rem !important;
}
body.merchant-portal .mp-users-steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--mp-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
body.merchant-portal .mp-users-steps li + li {
  margin-top: 0.55rem;
}

/* —— Error page —— */
body.mp-error-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(134, 226, 67, 0.18), transparent 55%),
    radial-gradient(420px 200px at 0% 100%, rgba(46, 151, 247, 0.18), transparent 50%),
    linear-gradient(145deg, #141414 0%, #0d0d0d 55%, #121212 100%);
  font-family: var(--mp-font);
}
body.mp-error-page .mp-error-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
body.mp-error-page .mp-error-card {
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem 1.6rem 1.35rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}
body.mp-error-page .mp-error-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  text-decoration: none;
  color: var(--mp-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.mp-error-page .mp-error-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
body.mp-error-page .mp-error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.mp-error-page .mp-error-title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mp-ink);
}
body.mp-error-page .mp-error-copy {
  margin: 0 0 1.25rem;
  color: var(--mp-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
body.mp-error-page .mp-error-debug {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--mp-border);
  color: var(--mp-ink-soft);
  font-size: 0.8rem;
  text-align: left;
  word-break: break-word;
}
body.mp-error-page .mp-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
body.mp-error-page .mp-error-foot {
  margin: 1.35rem 0 0;
  font-size: 0.75rem;
  color: var(--mp-muted);
}

/* Welcome / non-finance dashboard */
body.merchant-portal .mp-welcome-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body.merchant-portal .mp-welcome-card-head h3 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mp-ink);
}
body.merchant-portal .mp-welcome-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
@media (min-width: 576px) {
  body.merchant-portal .mp-welcome-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
body.merchant-portal .mp-welcome-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

/* Profile security + TOTP setup */
body.merchant-portal .mp-security-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mp-border);
}
body.merchant-portal .mp-security-item:last-of-type {
  border-bottom: 0;
}
body.merchant-portal .mp-security-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
body.merchant-portal .mp-security-item-copy strong {
  font-size: 0.92rem;
  color: var(--mp-ink);
}
body.merchant-portal .mp-security-item-copy > span:not(.mp-security-badge) {
  font-size: 0.8rem;
  color: var(--mp-muted);
  line-height: 1.35;
}
body.merchant-portal .mp-security-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.15rem 0 0.1rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
body.merchant-portal .mp-security-badge.on {
  background: #ecfdf3;
  color: #15803d;
}
body.merchant-portal .mp-security-badge.off {
  background: #fff7ed;
  color: #c2410c;
}
body.merchant-portal .mp-totp-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
body.merchant-portal .mp-totp-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
body.merchant-portal .mp-totp-step-num {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eff6ff;
  color: var(--mp-blue, #2E97F7);
}
body.merchant-portal .mp-totp-step strong {
  display: block;
  font-size: 0.92rem;
  color: var(--mp-ink);
}
body.merchant-portal .mp-totp-step p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--mp-muted);
}
body.merchant-portal .mp-totp-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--mp-border);
  margin-bottom: 1rem;
}
body.merchant-portal .mp-totp-qr-wrap img {
  border-radius: 8px;
  background: #fff;
}
body.merchant-portal .mp-totp-secret p {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.85rem;
  color: var(--mp-muted);
}
body.merchant-portal .mp-totp-secret-code {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px dashed var(--mp-border);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  max-width: 100%;
}
body.merchant-portal .mp-totp-secret-code code {
  font-size: 0.85rem;
  color: var(--mp-ink);
  word-break: break-all;
  text-align: left;
}
body.merchant-portal .mp-totp-secret-code i {
  color: var(--mp-muted);
}
body.merchant-portal .mp-totp-copied {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #15803d;
  font-weight: 600;
}
body.merchant-portal .mp-totp-code-input {
  letter-spacing: 0.35em;
  font-size: 1.35rem !important;
  font-weight: 700;
  text-align: center;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}
body.merchant-portal .mp-totp-done {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
body.merchant-portal .mp-totp-done-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  color: #15803d;
  font-size: 1.6rem;
}
body.merchant-portal .mp-totp-done h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}
body.merchant-portal .mp-totp-done p {
  color: var(--mp-muted);
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
}

/* Month in review (Wrapped-style fullscreen modal) */
body.merchant-portal.mp-month-review-page {
  --wrap-ink: #07141f;
  --wrap-ink-2: #0c2233;
  --wrap-lime: #86E243;
  --wrap-sky: #5ec8ff;
  --wrap-cream: #f7faf5;
  --px: 0px;
  --py: 0px;
  overflow: hidden !important;
}
body.merchant-portal.mp-month-review-page .page-content {
  padding: 0 !important;
  min-height: 100vh;
}
body.merchant-portal.mp-month-review-page .container-fluid {
  max-width: none;
  padding: 0;
}
body.merchant-portal.mp-month-review-page .footer,
body.merchant-portal.mp-month-review-page .alert,
body.merchant-portal.mp-month-review-page .mp-sidebar-open,
body.merchant-portal.mp-month-review-page .mp-mobile-bar,
body.merchant-portal.mp-month-review-page .vertical-menu,
body.merchant-portal.mp-month-review-page .mp-sidebar-backdrop {
  display: none !important;
}
body.merchant-portal.mp-month-review-page .main-content {
  margin-left: 0 !important;
  z-index: auto;
}

body.merchant-portal .mp-wrap-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10980;
  background: rgba(4, 12, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mp-wrap-fade-in 0.35s ease both;
}
body.merchant-portal .mp-wrap {
  --px: 0px;
  --py: 0px;
  position: fixed;
  inset: 0;
  z-index: 10990;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #040d14 0%, var(--wrap-ink) 42%, #0a1c2c 100%);
  color: var(--wrap-cream);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-shadow: none;
  isolation: isolate;
  animation: mp-wrap-modal-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mp-wrap-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mp-wrap-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
body.merchant-portal .mp-wrap-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
body.merchant-portal .mp-wrap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform 0.4s ease-out;
  animation: mp-wrap-drift 14s ease-in-out infinite alternate;
}
body.merchant-portal .mp-wrap-orb-a {
  width: 55vw; height: 55vw; max-width: 520px; max-height: 520px;
  left: -12%; top: -18%;
  background: rgba(46, 151, 247, 0.38);
}
body.merchant-portal .mp-wrap-orb-b {
  width: 45vw; height: 45vw; max-width: 420px; max-height: 420px;
  right: -10%; top: 8%;
  background: rgba(134, 226, 67, 0.28);
  animation-delay: -4s;
}
body.merchant-portal .mp-wrap-orb-c {
  width: 40vw; height: 40vw; max-width: 360px; max-height: 360px;
  left: 30%; bottom: -18%;
  background: rgba(94, 200, 255, 0.18);
  animation-delay: -8s;
}
body.merchant-portal .mp-wrap-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes mp-wrap-drift {
  from { transform: translate3d(calc(var(--px) - 12px), calc(var(--py) + 8px), 0) scale(1); }
  to { transform: translate3d(calc(var(--px) + 18px), calc(var(--py) - 14px), 0) scale(1.08); }
}

body.merchant-portal .mp-wrap-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem 0.5rem;
}
body.merchant-portal .mp-wrap-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(243,247,242,0.62);
}
body.merchant-portal .mp-wrap-brand-mark {
  width: 0.55rem; height: 0.55rem;
  border-radius: 999px;
  background: var(--wrap-lime);
  box-shadow: 0 0 0 4px rgba(134,226,67,0.15);
}
body.merchant-portal .mp-wrap-segments {
  display: flex;
  gap: 0.28rem;
  min-width: 0;
}
body.merchant-portal .mp-wrap-segment {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
body.merchant-portal .mp-wrap-segment > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--wrap-sky), var(--wrap-lime));
  border-radius: inherit;
}
body.merchant-portal .mp-wrap-segment.is-done > i { width: 100% !important; transition: none !important; }
body.merchant-portal .mp-wrap-exit {
  width: 2rem; height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  font-size: 1.2rem;
}
body.merchant-portal .mp-wrap-exit:hover { color: #fff; background: rgba(255,255,255,0.12); }

body.merchant-portal .mp-wrap-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100%;
  outline: none;
}
body.merchant-portal .mp-wrap-slide {
  position: absolute;
  inset: 0;
  padding: clamp(3.4rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3.25rem) 5.8rem;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(28px, 0, 0) scale(0.98);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}
body.merchant-portal .mp-wrap-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
body.merchant-portal .mp-wrap-slide.is-enter-left { animation: mp-wrap-in-left 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
body.merchant-portal .mp-wrap-slide.is-enter-right { animation: mp-wrap-in-right 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mp-wrap-in-right {
  from { opacity: 0; transform: translate3d(40px, 8px, 0) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes mp-wrap-in-left {
  from { opacity: 0; transform: translate3d(-40px, 8px, 0) scale(0.97); }
  to { opacity: 1; transform: none; }
}

body.merchant-portal .mp-wrap-slide-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
}
body.merchant-portal .mp-wrap-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  width: min(100%, 52rem);
}
body.merchant-portal .mp-wrap-split-reliability {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  width: min(100%, 58rem);
  gap: 1.75rem 2rem;
}
body.merchant-portal .mp-wrap-split-money {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  align-items: start;
  width: min(100%, 56rem);
  gap: 1.75rem 2rem;
}
body.merchant-portal .mp-wrap-ring-inline {
  margin: 1.1rem 0 0;
}
body.merchant-portal .mp-wrap-country-rates {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  max-height: min(58vh, 420px);
  overflow: auto;
}
body.merchant-portal .mp-wrap-country-rates-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 250, 245, 0.55);
  margin-bottom: 0.85rem;
}
body.merchant-portal .mp-wrap-country-rates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
body.merchant-portal .mp-wrap-country-rates-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
body.merchant-portal .mp-wrap-country-rates-top strong {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
}
body.merchant-portal .mp-wrap-country-rates-top em {
  font-style: normal;
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}
body.merchant-portal .mp-wrap-country-rates-top em.tone-good,
body.merchant-portal .mp-wrap-bar > i.tone-good { color: #c6f58a; }
body.merchant-portal .mp-wrap-country-rates-top em.tone-ok { color: #9fdfff; }
body.merchant-portal .mp-wrap-country-rates-top em.tone-low { color: #fda4a4; }
body.merchant-portal .mp-wrap-bar > i.tone-good {
  background: linear-gradient(90deg, #5ec8ff, var(--wrap-lime));
}
body.merchant-portal .mp-wrap-bar > i.tone-ok {
  background: linear-gradient(90deg, #3b82f6, #5ec8ff);
}
body.merchant-portal .mp-wrap-bar > i.tone-low {
  background: linear-gradient(90deg, #f97316, #f87171);
}
body.merchant-portal .mp-wrap-country-rates-meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: rgba(247, 250, 245, 0.48);
}
body.merchant-portal .mp-wrap-country-rates-empty {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(247, 250, 245, 0.6);
}
body.merchant-portal .mp-wrap [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.merchant-portal .mp-wrap [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

body.merchant-portal .mp-wrap-kicker {
  font-family: Syne, Manrope, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wrap-lime);
  margin-bottom: 0.85rem;
  text-shadow: 0 0 24px rgba(134, 226, 67, 0.35);
}
body.merchant-portal .mp-wrap-headline,
body.merchant-portal .mp-wrap h1.mp-wrap-headline,
body.merchant-portal .mp-wrap h2.mp-wrap-headline {
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #ffffff !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(134, 226, 67, 0.18);
}
body.merchant-portal .mp-wrap-line { display: block; color: inherit; }
body.merchant-portal .mp-wrap-line-accent {
  background: linear-gradient(110deg, #ffffff 12%, #d8f7a8 48%, var(--wrap-lime) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 8px 24px rgba(134, 226, 67, 0.28));
}
body.merchant-portal .mp-wrap-headline-sm {
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  max-width: 16ch;
  line-height: 1.12;
  letter-spacing: -0.015em;
  background: linear-gradient(115deg, #ffffff 0%, #f3f7f2 40%, #c8f28a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 10px 28px rgba(134, 226, 67, 0.35));
}
body.merchant-portal .mp-wrap-eyebrow-line {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(247, 250, 245, 0.8);
}
body.merchant-portal .mp-wrap-stat {
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.15rem 0 0.85rem;
  background: linear-gradient(120deg, #ffffff 4%, #e8f9c8 55%, var(--wrap-lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 30px rgba(134, 226, 67, 0.22));
}
body.merchant-portal .mp-wrap-stat-sm {
  font-size: clamp(2rem, 6vw, 3.4rem);
  max-width: 18ch;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
body.merchant-portal .mp-wrap-stat small {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(247, 250, 245, 0.78);
  margin-left: 0.12em;
  vertical-align: baseline;
}
body.merchant-portal .mp-wrap-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.45;
  color: rgba(243,247,242,0.78);
}
body.merchant-portal .mp-wrap-sub em {
  font-style: normal;
  color: #fff;
  font-weight: 600;
}
body.merchant-portal .mp-wrap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
body.merchant-portal .mp-wrap-chip.up { background: rgba(134,226,67,0.16); color: #c6f58a; }
body.merchant-portal .mp-wrap-chip.down { background: rgba(248,113,113,0.16); color: #fda4a4; }
body.merchant-portal .mp-wrap-chip.neutral { background: rgba(94,200,255,0.14); color: #9fdfff; }

body.merchant-portal .mp-wrap-cover-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
body.merchant-portal .mp-wrap-hint {
  font-size: 0.78rem;
  color: rgba(243,247,242,0.45);
}
body.merchant-portal .mp-wrap-cta {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  background: var(--wrap-lime);
  color: #07141f;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(134,226,67,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.merchant-portal .mp-wrap-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(134,226,67,0.32);
  color: #07141f;
}
body.merchant-portal .mp-wrap-cta.ghost {
  background: rgba(255,255,255,0.04);
  color: var(--wrap-cream);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: none;
}
body.merchant-portal .mp-wrap-cta.ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

body.merchant-portal .mp-wrap-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body.merchant-portal .mp-wrap-floaters span {
  position: absolute;
  width: 0.45rem; height: 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  animation: mp-wrap-float 7s ease-in-out infinite;
}
body.merchant-portal .mp-wrap-floaters span:nth-child(1) { left: 18%; top: 28%; animation-delay: 0s; }
body.merchant-portal .mp-wrap-floaters span:nth-child(2) { left: 72%; top: 22%; width: 0.7rem; height: 0.7rem; background: rgba(134,226,67,0.55); animation-delay: -1.5s; }
body.merchant-portal .mp-wrap-floaters span:nth-child(3) { left: 62%; top: 68%; animation-delay: -3s; }
body.merchant-portal .mp-wrap-floaters span:nth-child(4) { left: 28%; top: 74%; width: 0.35rem; height: 0.35rem; background: rgba(94,200,255,0.7); animation-delay: -2s; }
body.merchant-portal .mp-wrap-floaters span:nth-child(5) { left: 84%; top: 48%; animation-delay: -4s; }
@keyframes mp-wrap-float {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-14px); opacity: 0.9; }
}

body.merchant-portal .mp-wrap-pulse-ring {
  position: absolute;
  right: 8%;
  top: 28%;
  width: min(38vw, 220px);
  height: min(38vw, 220px);
  border-radius: 50%;
  border: 1px solid rgba(134,226,67,0.25);
  box-shadow: 0 0 0 18px rgba(134,226,67,0.05);
  animation: mp-wrap-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes mp-wrap-pulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

body.merchant-portal .mp-wrap-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}
body.merchant-portal .mp-wrap-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
body.merchant-portal .mp-wrap-ring-bg,
body.merchant-portal .mp-wrap-ring-fg {
  fill: none;
  stroke-width: 10;
}
body.merchant-portal .mp-wrap-ring-bg { stroke: rgba(255,255,255,0.08); }
body.merchant-portal .mp-wrap-ring-fg {
  stroke: var(--wrap-lime);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 10px rgba(134,226,67,0.35));
}
body.merchant-portal .mp-wrap-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
}
body.merchant-portal .mp-wrap-ring-label strong {
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.15;
}
body.merchant-portal .mp-wrap-ring-label span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(243,247,242,0.55);
}

body.merchant-portal .mp-wrap-rank {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 28rem;
}
body.merchant-portal .mp-wrap-rank li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}
body.merchant-portal .mp-wrap-rank span {
  width: 1.45rem; height: 1.45rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  background: rgba(134,226,67,0.2); color: var(--wrap-lime);
}
body.merchant-portal .mp-wrap-rank-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
body.merchant-portal .mp-wrap-rank strong { font-size: 0.9rem; color: #fff; }
body.merchant-portal .mp-wrap-rank em { font-style: normal; color: rgba(243,247,242,0.55); font-size: 0.8rem; }
body.merchant-portal .mp-wrap-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
body.merchant-portal .mp-wrap-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wrap-sky), var(--wrap-lime));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.merchant-portal .mp-wrap-chart {
  margin-top: 1.25rem;
  max-width: 40rem;
  border-radius: 18px;
  padding: 0.65rem 0.4rem 0.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

body.merchant-portal .mp-wrap-grid-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 34rem;
  margin: 0.4rem 0 1.1rem;
}
body.merchant-portal .mp-wrap-grid-stats-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 46rem;
}
body.merchant-portal .mp-wrap-card {
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}
body.merchant-portal .mp-wrap-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
}
body.merchant-portal .mp-wrap-card span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243,247,242,0.55);
  margin-bottom: 0.35rem;
}
body.merchant-portal .mp-wrap-card strong {
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  display: block;
  color: #fff;
}
body.merchant-portal .mp-wrap-card-unit {
  font-size: 0.45em;
  font-weight: 600;
  margin-left: 0.15em;
  color: rgba(247, 250, 245, 0.7);
  vertical-align: baseline;
}
body.merchant-portal .mp-wrap-card-duration {
  font-size: clamp(2.35rem, 5.5vw, 3.15rem) !important;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
body.merchant-portal .mp-wrap-card-duration .mp-wrap-card-unit {
  font-size: 0.36em;
  font-weight: 700;
  color: rgba(247, 250, 245, 0.78);
}
body.merchant-portal .mp-wrap-card em {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(243,247,242,0.55);
}

body.merchant-portal .mp-wrap-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.15rem;
}
body.merchant-portal .mp-wrap-objective {
  margin: 0.15rem 0 0;
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(134, 226, 67, 0.18);
}
body.merchant-portal .mp-wrap-compare .mp-wrap-chip {
  margin-top: 0;
}
body.merchant-portal .mp-wrap-rec.tone-up {
  border-color: rgba(134, 226, 67, 0.28);
}
body.merchant-portal .mp-wrap-rec.tone-down {
  border-color: rgba(248, 113, 113, 0.28);
}
body.merchant-portal .mp-wrap-rec.tone-down > i {
  color: #fda4a4;
}
body.merchant-portal .mp-wrap-rec.tone-up > i {
  color: var(--wrap-lime);
}
body.merchant-portal .mp-wrap-recs {
  display: grid;
  gap: 0.75rem;
  max-width: 38rem;
  margin: 0.5rem 0 1.25rem;
}
body.merchant-portal .mp-wrap-rec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
body.merchant-portal .mp-wrap-rec:hover {
  transform: translateX(4px);
  border-color: rgba(134,226,67,0.35);
}
body.merchant-portal .mp-wrap-rec i {
  font-size: 1.4rem;
  color: var(--wrap-lime);
  margin-top: 0.1rem;
}
body.merchant-portal .mp-wrap-rec strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: #fff;
  font-weight: 700;
}
body.merchant-portal .mp-wrap-rec p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(243,247,242,0.7);
}
body.merchant-portal .mp-wrap-finale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
body.merchant-portal .mp-wrap-confidential {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  color: rgba(243,247,242,0.42);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.merchant-portal .mp-wrap-hotzone {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 22%;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 2;
  cursor: pointer;
}
body.merchant-portal .mp-wrap-hotzone.left { left: 0; }
body.merchant-portal .mp-wrap-hotzone.right { right: 0; }

body.merchant-portal .mp-wrap-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(7,20,31,0.9) 45%);
  z-index: 4;
}
body.merchant-portal .mp-wrap-nav-btn {
  width: 2.6rem; height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
body.merchant-portal .mp-wrap-nav-btn:hover:not(:disabled) {
  transform: scale(1.06);
  background: rgba(255,255,255,0.12);
}
body.merchant-portal .mp-wrap-nav-btn:disabled { opacity: 0.35; cursor: default; }
body.merchant-portal .mp-wrap-dots {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
body.merchant-portal .mp-wrap-dot {
  width: 0.45rem; height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.28);
  transition: width 0.25s ease, background 0.25s ease;
}
body.merchant-portal .mp-wrap-dot.is-active {
  width: 1.3rem;
  background: var(--wrap-lime);
}

@media (max-width: 767.98px) {
  body.merchant-portal .mp-wrap-grid-stats,
  body.merchant-portal .mp-wrap-grid-stats-3,
  body.merchant-portal .mp-wrap-split,
  body.merchant-portal .mp-wrap-split-reliability,
  body.merchant-portal .mp-wrap-split-money { grid-template-columns: 1fr; }
  body.merchant-portal .mp-wrap-slide { padding: 3.6rem 1.15rem 6.4rem; }
  body.merchant-portal .mp-wrap-pulse-ring { display: none; }
  body.merchant-portal .mp-wrap-hotzone { width: 28%; }
  body.merchant-portal .mp-wrap-headline { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  body.merchant-portal .mp-wrap-stat { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  body.merchant-portal .mp-wrap-country-rates { max-height: none; }
  body.merchant-portal .mp-wrap-ring-inline { width: 130px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  body.merchant-portal .mp-wrap-orb,
  body.merchant-portal .mp-wrap-floaters span,
  body.merchant-portal .mp-wrap-pulse-ring { animation: none !important; }
  body.merchant-portal .mp-wrap-slide,
  body.merchant-portal .mp-wrap [data-reveal] { transition: none !important; }
}

/* Month review prompt + Insights badge */
body.merchant-portal .mp-nav-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0.25rem 0 0.35rem;
  border-radius: 999px;
  background: #86E243;
  box-shadow: 0 0 0 3px rgba(134, 226, 67, 0.2);
  vertical-align: middle;
}
body.merchant-portal .mp-menu-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #07141f;
  background: #86E243;
}
body.merchant-portal .mp-mr-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 12, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mp-mr-fade 0.28s ease both;
}
body.merchant-portal .mp-mr-modal.is-closing {
  animation: mp-mr-fade-out 0.2s ease both;
}
@keyframes mp-mr-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mp-mr-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
body.merchant-portal .mp-mr-modal-card {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.6rem 1.45rem 1.35rem;
  border-radius: 22px;
  background: linear-gradient(165deg, #0a1a28 0%, #07141f 55%, #0c2233 100%);
  color: #f7faf5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: mp-mr-card-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mp-mr-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
body.merchant-portal .mp-mr-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
body.merchant-portal .mp-mr-modal-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86E243;
  margin-bottom: 0.55rem;
}
body.merchant-portal .mp-mr-modal-card h2 {
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 0.55rem;
  line-height: 1.15;
}
body.merchant-portal .mp-mr-modal-card p {
  margin: 0;
  color: rgba(247, 250, 245, 0.75);
  font-size: 0.95rem;
  line-height: 1.45;
}
body.merchant-portal .mp-mr-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
body.merchant-portal .mp-mr-modal-later {
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f7faf5;
}

/* Profile tabs + login devices */
body.merchant-portal .mp-profile-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  margin: 0.15rem 0 0.35rem;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.04);
  border: 1px solid rgba(16, 24, 40, 0.08);
  align-self: flex-start;
}
body.merchant-portal .mp-profile-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475467;
  text-decoration: none;
}
body.merchant-portal .mp-profile-tab:hover { color: #101828; }
body.merchant-portal .mp-profile-tab.is-active {
  background: #fff;
  color: #101828;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}
body.merchant-portal .mp-profile-hint {
  margin: 0 0 1rem;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.45;
}
body.merchant-portal .mp-login-empty {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(16, 24, 40, 0.03);
  color: #667085;
  font-size: 0.92rem;
}
body.merchant-portal .mp-login-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
body.merchant-portal .mp-login-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
}
body.merchant-portal .mp-login-item.is-latest {
  border-color: rgba(134, 226, 67, 0.45);
  background: rgba(134, 226, 67, 0.06);
}
body.merchant-portal .mp-login-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 40, 0.05);
  color: #344054;
  font-size: 1.15rem;
}
body.merchant-portal .mp-login-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
body.merchant-portal .mp-login-copy strong {
  font-size: 0.95rem;
  color: #101828;
}
body.merchant-portal .mp-login-copy span,
body.merchant-portal .mp-login-copy em {
  font-size: 0.8rem;
  color: #667085;
  font-style: normal;
}
body.merchant-portal .mp-login-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(134, 226, 67, 0.2);
  color: #3f6212;
}

/* ========== Global Stablecoin Settlement ========== */
body.merchant-portal .mp-scs {
  --scs-blue: #2563EB;
  --scs-green: #16a34a;
  --scs-ink: #101828;
  --scs-muted: #667085;
  --scs-card: #f8fafc;
  --scs-border: rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 2rem;
}
body.merchant-portal .mp-scs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.merchant-portal .mp-scs-reveal.is-in {
  opacity: 1;
  transform: none;
}
body.merchant-portal .mp-scs-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.8rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--scs-border);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}
body.merchant-portal .mp-scs-title {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--scs-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
body.merchant-portal .mp-scs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
body.merchant-portal .mp-scs-hero-actions .btn-mp-primary {
  background: var(--scs-blue);
  border-color: var(--scs-blue);
}
body.merchant-portal .mp-scs-hero-actions .btn-mp-primary:hover {
  filter: brightness(0.95);
}
body.merchant-portal .mp-scs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}
body.merchant-portal .mp-scs-pill.success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--scs-green);
}
body.merchant-portal .mp-scs-hero-visual {
  position: relative;
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(145deg, #eff6ff 0%, #f8fafc 55%, #ecfdf5 100%);
  border: 1px solid var(--scs-border);
  overflow: hidden;
}
body.merchant-portal .mp-scs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.7;
  animation: mp-scs-drift 10s ease-in-out infinite alternate;
}
body.merchant-portal .mp-scs-orb-a {
  width: 140px; height: 140px; left: 10%; top: 15%;
  background: rgba(37, 99, 235, 0.35);
}
body.merchant-portal .mp-scs-orb-b {
  width: 120px; height: 120px; right: 8%; bottom: 10%;
  background: rgba(22, 163, 74, 0.28);
  animation-delay: -4s;
}
@keyframes mp-scs-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(12px, -10px); }
}
body.merchant-portal .mp-scs-hero-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--scs-border);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
body.merchant-portal .mp-scs-hero-badge i {
  font-size: 1.5rem;
  color: var(--scs-blue);
}
body.merchant-portal .mp-scs-hero-badge strong {
  display: block;
  font-size: 0.92rem;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-hero-badge span {
  font-size: 0.78rem;
  color: var(--scs-muted);
}
body.merchant-portal .mp-scs-status {
  padding: 1.4rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--scs-border);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}
body.merchant-portal .mp-scs-status-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
body.merchant-portal .mp-scs-status-head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-pulse {
  width: 0.7rem; height: 0.7rem;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.5);
  animation: mp-scs-pulse 2s ease-out infinite;
}
body.merchant-portal .mp-scs-pulse.on {
  background: var(--scs-green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
}
@keyframes mp-scs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}
body.merchant-portal .mp-scs-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
body.merchant-portal .mp-scs-stat {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--scs-card);
  border: 1px solid var(--scs-border);
}
body.merchant-portal .mp-scs-stat span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--scs-muted);
  margin-bottom: 0.35rem;
}
body.merchant-portal .mp-scs-stat strong {
  font-size: 1.02rem;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-section-head {
  margin-bottom: 1rem;
}
body.merchant-portal .mp-scs-section-head h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-section-head p {
  margin: 0;
  color: var(--scs-muted);
}
body.merchant-portal .mp-scs-tree {
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 22px;
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(37, 99, 235, 0.07), transparent 60%),
    #fff;
  border: 1px solid var(--scs-border);
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.05);
}
body.merchant-portal .mp-scs-tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.merchant-portal .mp-scs-tree-customer {
  width: min(100%, 13.5rem);
  min-height: 6.2rem;
  background: linear-gradient(160deg, #eff6ff 0%, #fff 55%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
}
body.merchant-portal .mp-scs-tree-customer em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--scs-muted);
}
body.merchant-portal .mp-scs-tree-customer.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 12px 28px rgba(37, 99, 235, 0.12);
}
body.merchant-portal .mp-scs-tree-stem {
  position: relative;
  width: 2px;
  height: 2rem;
  margin: 0.15rem 0 0;
  background: #dbe3f0;
  overflow: hidden;
  border-radius: 999px;
}
body.merchant-portal .mp-scs-tree-stem.is-moving .mp-scs-particle {
  animation: mp-scs-particle-v 0.9s linear forwards;
}
body.merchant-portal .mp-scs-tree-fork {
  position: relative;
  height: 1.35rem;
  margin: 0 auto 0.85rem;
  width: min(72%, 34rem);
}
body.merchant-portal .mp-scs-tree-fork-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, #86efac, #dbe3f0 50%, #93c5fd);
  border-radius: 999px;
}
body.merchant-portal .mp-scs-tree-fork-left,
body.merchant-portal .mp-scs-tree-fork-right {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #dbe3f0;
  border-radius: 999px;
}
body.merchant-portal .mp-scs-tree-fork-left { left: 0; background: #86efac; }
body.merchant-portal .mp-scs-tree-fork-right { right: 0; background: #93c5fd; }
body.merchant-portal .mp-scs-tree-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
body.merchant-portal .mp-scs-tree-branch {
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--scs-border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.03);
}
body.merchant-portal .mp-scs-path-usdt.mp-scs-tree-branch {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.04), #fff 38%);
}
body.merchant-portal .mp-scs-path-local.mp-scs-tree-branch {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), #fff 38%);
}
body.merchant-portal .mp-scs-tree-branch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
body.merchant-portal .mp-scs-tree-branch-label strong {
  font-size: 0.95rem;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-path-sla {
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
body.merchant-portal .mp-scs-path-sla.instant {
  background: rgba(22, 163, 74, 0.12);
  color: var(--scs-green);
}
body.merchant-portal .mp-scs-path-sla.standard {
  background: rgba(37, 99, 235, 0.1);
  color: var(--scs-blue);
}
body.merchant-portal .mp-scs-path-note {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--scs-muted);
  line-height: 1.4;
}
body.merchant-portal .mp-scs-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.3rem;
}
body.merchant-portal .mp-scs-flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 5.8rem;
  padding: 0.75rem 0.55rem;
  border-radius: 16px;
  background: var(--scs-card);
  border: 1px solid var(--scs-border);
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
body.merchant-portal .mp-scs-flow-node i {
  font-size: 1.25rem;
  color: var(--scs-blue);
}
body.merchant-portal .mp-scs-path-usdt .mp-scs-flow-node i {
  color: var(--scs-green);
}
body.merchant-portal .mp-scs-flow-node span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--scs-ink);
  line-height: 1.3;
}
body.merchant-portal .mp-scs-flow-node.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
body.merchant-portal .mp-scs-path-usdt .mp-scs-flow-node.is-active {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}
body.merchant-portal .mp-scs-flow-node.is-done {
  border-color: rgba(22, 163, 74, 0.28);
}
body.merchant-portal .mp-scs-flow-line {
  position: relative;
  align-self: center;
  height: 2px;
  background: #e2e8f0;
  overflow: hidden;
  border-radius: 999px;
}
body.merchant-portal .mp-scs-particle {
  position: absolute;
  left: -8px;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--scs-blue);
  opacity: 0;
}
body.merchant-portal .mp-scs-path-usdt .mp-scs-particle {
  background: var(--scs-green);
}
body.merchant-portal .mp-scs-tree-stem .mp-scs-particle {
  left: 50%;
  margin-left: -4px;
  top: -8px;
  margin-top: 0;
  background: var(--scs-blue);
}
body.merchant-portal .mp-scs-flow-line.is-moving .mp-scs-particle {
  animation: mp-scs-particle 0.85s linear forwards;
}
@keyframes mp-scs-particle {
  0% { left: -8px; opacity: 0; }
  15% { opacity: 1; }
  100% { left: calc(100% + 4px); opacity: 0; }
}
@keyframes mp-scs-particle-v {
  0% { top: -8px; opacity: 0; }
  15% { opacity: 1; }
  100% { top: calc(100% + 4px); opacity: 0; }
}
@media (max-width: 991.98px) {
  body.merchant-portal .mp-scs-tree-branches { grid-template-columns: 1fr; }
  body.merchant-portal .mp-scs-tree-fork { width: 2px; height: 1.25rem; }
  body.merchant-portal .mp-scs-tree-fork-bar { display: none; }
  body.merchant-portal .mp-scs-tree-fork-left,
  body.merchant-portal .mp-scs-tree-fork-right {
    left: 50%;
    margin-left: -1px;
    right: auto;
    background: #dbe3f0;
  }
  body.merchant-portal .mp-scs-flow {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  body.merchant-portal .mp-scs-flow-line {
    width: 2px;
    height: 22px;
    margin: 0 auto;
  }
  body.merchant-portal .mp-scs-flow-line.is-moving .mp-scs-particle {
    animation-name: mp-scs-particle-v;
    left: 50%;
    margin-left: -4px;
    margin-top: 0;
  }
}
body.merchant-portal .mp-scs-sim .card-body { padding: 1.35rem 1.4rem; }
body.merchant-portal .mp-scs-sim-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}
body.merchant-portal .mp-scs-sim-top label {
  font-weight: 700;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-sim-top strong {
  font-size: 1.35rem;
  color: var(--scs-blue);
}
body.merchant-portal .mp-scs-sim input[type="range"] {
  width: 100%;
  accent-color: var(--scs-blue);
}
body.merchant-portal .mp-scs-sim-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--scs-muted);
  margin-top: 0.25rem;
}
body.merchant-portal .mp-scs-sim-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.15rem 0;
}
body.merchant-portal .mp-scs-sim-steps > div {
  padding: 0.7rem 0.55rem;
  border-radius: 12px;
  background: var(--scs-card);
  border: 1px solid var(--scs-border);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--scs-muted);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
body.merchant-portal .mp-scs-sim-steps > div.is-on {
  color: var(--scs-ink);
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.06);
}
body.merchant-portal .mp-scs-sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
body.merchant-portal .mp-scs-sim-metrics > div {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--scs-card);
  border: 1px solid var(--scs-border);
}
body.merchant-portal .mp-scs-sim-metrics span {
  display: block;
  font-size: 0.75rem;
  color: var(--scs-muted);
  margin-bottom: 0.25rem;
}
body.merchant-portal .mp-scs-sim-metrics strong {
  color: var(--scs-ink);
  font-size: 1.05rem;
}
body.merchant-portal .mp-scs-sim-hash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--scs-border);
  font-size: 0.88rem;
}
body.merchant-portal .mp-scs-sim-hash code {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-sim-hash a {
  color: var(--scs-blue);
  font-weight: 700;
}
body.merchant-portal .mp-scs-preview {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
}
body.merchant-portal .mp-scs-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
body.merchant-portal .mp-scs-preview-card {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--scs-border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.03);
}
body.merchant-portal .mp-scs-preview-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--scs-muted);
  margin-bottom: 0.35rem;
}
body.merchant-portal .mp-scs-preview-card strong {
  font-size: 1.35rem;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-preview-card small {
  color: var(--scs-muted);
  font-weight: 700;
}
body.merchant-portal .mp-scs-preview-list {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--scs-border);
}
body.merchant-portal .mp-scs-preview-list ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
body.merchant-portal .mp-scs-preview-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: var(--scs-card);
  animation: mp-scs-rise 0.6s ease both;
}
body.merchant-portal .mp-scs-preview-list li:nth-child(2) { animation-delay: 0.08s; }
body.merchant-portal .mp-scs-preview-list li:nth-child(3) { animation-delay: 0.16s; }
@keyframes mp-scs-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
body.merchant-portal .mp-scs-preview-list strong { color: var(--scs-green); }
body.merchant-portal .mp-scs-preview-list span { color: var(--scs-ink); font-size: 0.88rem; }
body.merchant-portal .mp-scs-preview-list em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--scs-green);
}
body.merchant-portal .mp-scs-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
body.merchant-portal .mp-scs-benefit {
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--scs-border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
body.merchant-portal .mp-scs-benefit:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}
body.merchant-portal .mp-scs-benefit i {
  font-size: 1.45rem;
  color: var(--scs-blue);
  margin-bottom: 0.55rem;
}
body.merchant-portal .mp-scs-benefit strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-benefit p {
  margin: 0;
  color: var(--scs-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
body.merchant-portal .mp-scs-compare .card-body { padding: 1.2rem 1.3rem; }
body.merchant-portal .mp-scs-compare-head,
body.merchant-portal .mp-scs-compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr;
  gap: 0.75rem;
  align-items: center;
}
body.merchant-portal .mp-scs-compare-head {
  padding-bottom: 0.75rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--scs-border);
  font-size: 0.88rem;
}
body.merchant-portal .mp-scs-compare-head .accent { color: var(--scs-blue); }
body.merchant-portal .mp-scs-compare-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.05);
  font-size: 0.92rem;
}
body.merchant-portal .mp-scs-compare-row span { color: var(--scs-muted); font-weight: 600; }
body.merchant-portal .mp-scs-compare-row em { font-style: normal; color: #475467; }
body.merchant-portal .mp-scs-compare-row strong {
  color: var(--scs-green);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  animation: mp-scs-check 0.5s ease both;
}
@keyframes mp-scs-check {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}
body.merchant-portal .mp-scs-soon {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  background: rgba(37, 99, 235, 0.1);
  color: var(--scs-blue);
}
body.merchant-portal .mp-scs-prog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
body.merchant-portal .mp-scs-prog-card {
  padding: 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--scs-border);
}
body.merchant-portal .mp-scs-prog-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--scs-ink);
  font-weight: 700;
  font-size: 0.9rem;
}
body.merchant-portal .mp-scs-prog-flow i { color: var(--scs-muted); }
body.merchant-portal .mp-scs-prog-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
}
body.merchant-portal .mp-scs-prog-split span {
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  background: var(--scs-card);
  border: 1px solid var(--scs-border);
  text-align: center;
  font-size: 0.75rem;
}
body.merchant-portal .mp-scs-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--scs-blue);
  left: 50%;
  top: 0;
  margin-left: -5px;
  animation: mp-scs-dot 3.5s linear infinite;
}
body.merchant-portal .mp-scs-prog-card:nth-child(2) .mp-scs-dot {
  background: var(--scs-green);
  animation-duration: 4.2s;
}
@keyframes mp-scs-dot {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 10px); opacity: 0; }
}
body.merchant-portal .mp-scs-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
body.merchant-portal .mp-scs-trust-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--scs-border);
}
body.merchant-portal .mp-scs-trust-card i {
  font-size: 1.35rem;
  color: var(--scs-blue);
}
body.merchant-portal .mp-scs-trust-card strong {
  color: var(--scs-ink);
  font-size: 0.95rem;
}
body.merchant-portal .mp-scs-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 1.7rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 45%, #ecfdf5 100%);
  border: 1px solid var(--scs-border);
}
body.merchant-portal .mp-scs-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-cta p {
  margin: 0;
  max-width: 34rem;
  color: var(--scs-muted);
}
body.merchant-portal.mp-scs-modal-open { overflow: hidden; }
body.merchant-portal .mp-scs-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}
body.merchant-portal .mp-scs-modal[hidden] { display: none !important; }
body.merchant-portal .mp-scs-modal-card {
  position: relative;
  width: min(100%, 32rem);
  padding: 1.5rem 1.45rem 1.35rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  animation: mp-scs-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mp-scs-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
body.merchant-portal .mp-scs-modal-card h2 {
  margin: 0.25rem 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-modal-card > p {
  margin: 0 0 1rem;
  color: var(--scs-muted);
  line-height: 1.45;
}
body.merchant-portal .mp-scs-modal-close {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  width: 2rem; height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
}
body.merchant-portal .mp-scs-field {
  margin-bottom: 0.85rem;
}
body.merchant-portal .mp-scs-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--scs-ink);
  margin-bottom: 0.35rem;
}
body.merchant-portal .mp-scs-field input,
body.merchant-portal .mp-scs-field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
}
body.merchant-portal .mp-scs-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  font-size: 0.9rem;
  color: #344054;
}
body.merchant-portal .mp-scs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
body.merchant-portal .mp-scs-success {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}
body.merchant-portal .mp-scs-success-card {
  width: min(100%, 26rem);
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  animation: mp-scs-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.merchant-portal .mp-scs-success-check {
  width: 4rem; height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.12);
  color: var(--scs-green);
  font-size: 2rem;
  animation: mp-scs-pulse 1.6s ease-out infinite;
}
body.merchant-portal .mp-scs-success-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--scs-ink);
}
body.merchant-portal .mp-scs-success-card p {
  margin: 0 0 1.2rem;
  color: var(--scs-muted);
}
@media (max-width: 991.98px) {
  body.merchant-portal .mp-scs-hero,
  body.merchant-portal .mp-scs-preview,
  body.merchant-portal .mp-scs-prog { grid-template-columns: 1fr; }
  body.merchant-portal .mp-scs-status-grid,
  body.merchant-portal .mp-scs-benefits,
  body.merchant-portal .mp-scs-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.merchant-portal .mp-scs-flow {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  body.merchant-portal .mp-scs-flow-line { height: 28px; width: 2px; margin: 0 auto; }
  body.merchant-portal .mp-scs-sim-steps,
  body.merchant-portal .mp-scs-sim-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  body.merchant-portal .mp-scs-status-grid,
  body.merchant-portal .mp-scs-benefits,
  body.merchant-portal .mp-scs-trust,
  body.merchant-portal .mp-scs-preview-grid,
  body.merchant-portal .mp-scs-sim-steps,
  body.merchant-portal .mp-scs-sim-metrics,
  body.merchant-portal .mp-scs-compare-head,
  body.merchant-portal .mp-scs-compare-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.merchant-portal .mp-scs-reveal,
  body.merchant-portal .mp-scs-orb,
  body.merchant-portal .mp-scs-pulse,
  body.merchant-portal .mp-scs-dot,
  body.merchant-portal .mp-scs-particle { animation: none !important; transition: none !important; }
  body.merchant-portal .mp-scs-reveal { opacity: 1; transform: none; }
}

/* Report download generating modal */
body.merchant-portal.mp-report-modal-open { overflow: hidden; }
body.merchant-portal .mp-report-modal {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 12, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.merchant-portal .mp-report-modal.is-open { display: flex; }
body.merchant-portal .mp-report-modal-card {
  position: relative;
  width: min(100%, 24rem);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
}
body.merchant-portal .mp-report-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.05);
  color: #475467;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
body.merchant-portal .mp-report-modal-body { text-align: center; }
body.merchant-portal .mp-report-modal-body.is-hidden { display: none; }
body.merchant-portal .mp-report-modal-body h2 {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #101828;
}
body.merchant-portal .mp-report-modal-body p {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}
body.merchant-portal .mp-report-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.25rem auto 0;
  border-radius: 999px;
  border: 3px solid rgba(16, 24, 40, 0.08);
  border-top-color: #86E243;
  animation: mp-report-spin 0.8s linear infinite;
}
@keyframes mp-report-spin {
  to { transform: rotate(360deg); }
}
body.merchant-portal .mp-report-ready-icon,
body.merchant-portal .mp-report-error-icon {
  font-size: 2.4rem;
  line-height: 1;
}
body.merchant-portal .mp-report-ready-icon { color: #12b76a; }
body.merchant-portal .mp-report-error-icon { color: #f04438; }
body.merchant-portal .mp-report-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.15rem;
}
@media (prefers-reduced-motion: reduce) {
  body.merchant-portal .mp-report-spinner { animation: none; border-top-color: #86E243; }
}

