@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 .vertical-menu-btn {
  display: none !important;
}

body.merchant-portal .mp-sidebar-open {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1010;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
  color: var(--mp-ink);
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

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 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 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;
}

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-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-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-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;
}

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: 991.98px) {
  body.merchant-portal .vertical-menu-btn {
    display: none !important;
  }

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

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

  body.merchant-portal .vertical-menu {
    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;
  }

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

  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;
  }

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

  body.merchant-portal .mp-page-head {
    padding-left: 3.25rem;
  }
}

/* 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-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-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.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--mp-lime-soft);
  color: #4f9d1f;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

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.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-top: 0.85rem;
  border-top: 1px solid var(--mp-border-soft);
}

body.merchant-portal .mp-grid-summary {
  margin: 0;
  font-size: 0.8rem;
  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;
}
