/* ================================================================
   MAPAYER — Advertisement Form & List  v2
   Mega-menu asset selector · Dynamic filters · Dark / Light theme
   Palette : Vert Forêt #1B6B35 | Or #C9A227 | Fond sombre #060E08
   ================================================================ */

/* ─── Keyframes ──────────────────────────────────────────────── */
@keyframes mp-dropdown-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes mp-fade-slide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mp-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
@keyframes mp-pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--mp-gold-glow); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes mp-slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes mp-tick {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

/* ─── Page Section ───────────────────────────────────────────── */
.mp-ad-page {
  padding: 32px 0 64px;
  min-height: 80vh;
  position: relative;
}

/* ─── Top bar ────────────────────────────────────────────────── */
.mp-ad-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.mp-userdata-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mp-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--mp-transition);
}
.mp-userdata-back:hover { color: var(--mp-gold-light); text-decoration: none; }
.mp-ad-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  border-radius: 100px;
  color: var(--mp-text-muted) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--mp-transition);
}
.mp-ad-link-btn:hover {
  border-color: var(--mp-gold);
  color: var(--mp-gold-light) !important;
  background: rgba(201,162,39,0.08);
  text-decoration: none;
}

/* ─── Header card ────────────────────────────────────────────── */
.mp-userdata-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  margin-bottom: 28px;
  animation: mp-fade-slide 0.5s ease both;
}
.mp-userdata-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mp-green), #24963E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--mp-green-glow);
}
.mp-userdata-header__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--mp-heading);
  margin: 0 0 4px;
}
.mp-userdata-header__desc {
  font-size: 0.9rem;
  color: var(--mp-text-muted);
  margin: 0;
}

/* ─── Step Indicator ─────────────────────────────────────────── */
/* ─── Step indicator (redesigned) ───────────────────────────── */
.mp-stepper {
  display: flex;
  align-items: stretch;
  margin-bottom: 28px;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--mp-border);
  animation: mp-fade-slide 0.5s ease 0.1s both;
}

/* ── Each segment ── */
.mp-stepper__seg {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--mp-surface);
  position: relative;
  transition: background 0.3s ease;
  cursor: default;
}
.mp-stepper__seg + .mp-stepper__seg {
  border-left: 1px solid var(--mp-border);
}

/* Active segment */
.mp-stepper__seg.active {
  background: linear-gradient(135deg,
    rgba(27,107,53,0.18) 0%,
    rgba(27,107,53,0.08) 100%);
}
.mp-stepper__seg.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-green), #24963E);
  border-radius: 0 0 2px 2px;
}

/* Completed segment */
.mp-stepper__seg.completed {
  background: linear-gradient(135deg,
    rgba(201,162,39,0.1) 0%,
    rgba(201,162,39,0.04) 100%);
}
.mp-stepper__seg.completed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-gold-dark), var(--mp-gold-light));
  border-radius: 0 0 2px 2px;
}

/* ── Node (icon bubble) ── */
.mp-stepper__node {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--mp-bg-3);
  border: 2px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--mp-text-muted);
  transition: var(--mp-transition);
  position: relative;
}
.mp-stepper__seg.active .mp-stepper__node {
  background: var(--mp-green);
  border-color: var(--mp-green);
  color: #fff;
  box-shadow: 0 0 0 4px var(--mp-green-glow);
  animation: mp-pulse-ring 2.5s ease infinite;
}
.mp-stepper__seg.completed .mp-stepper__node {
  background: linear-gradient(135deg, var(--mp-gold-dark), var(--mp-gold));
  border-color: var(--mp-gold);
  color: #111;
  box-shadow: 0 4px 14px var(--mp-gold-glow);
}

/* ── Text block ── */
.mp-stepper__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mp-stepper__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-text-muted);
  transition: color 0.3s ease;
}
.mp-stepper__seg.active .mp-stepper__num   { color: var(--mp-green); }
.mp-stepper__seg.completed .mp-stepper__num { color: var(--mp-gold); }

.mp-stepper__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.mp-stepper__seg.active .mp-stepper__title    { color: var(--mp-heading); }
.mp-stepper__seg.completed .mp-stepper__title  { color: var(--mp-gold-light); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .mp-stepper__body { display: none; }
  .mp-stepper__seg  { justify-content: center; }
}

/* ─── Form Card ──────────────────────────────────────────────── */
.mp-userdata-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 32px;
  animation: mp-fade-slide 0.5s ease 0.2s both;
}

/* ─── Buy / Sell tabs ────────────────────────────────────────── */
.mp-ad-tabs {
  display: flex;
  gap: 0;
  background: var(--mp-bg-3);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
  width: 100%;
}
.mp-ad-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--mp-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--mp-transition);
  font-family: var(--mp-font);
  letter-spacing: 0.01em;
}
.mp-ad-tab.active[data-type="1"] {
  background: linear-gradient(135deg, #0F5E2E, var(--mp-green));
  color: #fff;
  box-shadow: 0 4px 16px var(--mp-green-glow);
}
.mp-ad-tab.active[data-type="2"] {
  background: linear-gradient(135deg, #8B3A10, #D4530F);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,83,15,0.35);
}
.mp-ad-tab:not(.active):hover { color: var(--mp-text); background: var(--mp-glass); }

/* ─── Charge notice ──────────────────────────────────────────── */
.mp-ad-charge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(212,83,15,0.1);
  border: 1px solid rgba(212,83,15,0.25);
  border-radius: var(--mp-radius-sm);
  color: #f4a261;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ─── Field / Label / Hint ───────────────────────────────────── */
.mp-userdata-field {
  margin-bottom: 0;
}
.mp-userdata-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.mp-userdata-hint {
  font-size: 0.8rem;
  color: var(--mp-text-muted);
  margin: 6px 0 0;
}
.mp-userdata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .mp-userdata-grid { grid-template-columns: 1fr; }
  .mp-userdata-grid.full-row  { grid-template-columns: 1fr; }
}
/* ─── Standard input ─────────────────────────────────────────── */
.mp-userdata-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-text);
  font-size: 0.95rem;
  font-family: var(--mp-font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.mp-userdata-input:focus {
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px var(--mp-green-glow);
}
.mp-userdata-textarea { resize: vertical; min-height: 100px; }
.mp-ad-input-group {
  display: flex;
  align-items: stretch;
}
.mp-ad-input-group .mp-userdata-input {
  border-radius: var(--mp-radius-sm) 0 0 var(--mp-radius-sm);
  flex: 1;
}
.mp-ad-input-addon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--mp-bg-3);
  border: 1px solid var(--mp-input-border);
  border-left: none;
  border-radius: 0 var(--mp-radius-sm) var(--mp-radius-sm) 0;
  color: var(--mp-gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Info tooltip ───────────────────────────────────────────── */
.mp-ad-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(201,162,39,0.15);
  color: var(--mp-gold);
  font-size: 0.85rem;
  cursor: help;
  transition: var(--mp-transition);
  position: relative;
}
.mp-ad-info:hover { background: rgba(201,162,39,0.3); }

/* ─── Tooltip (custom) ───────────────────────────────────────── */
[data-mp-tooltip] { position: relative; }
[data-mp-tooltip]::after {
  content: attr(data-mp-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--mp-bg-3);
  border: 1px solid var(--mp-border);
  color: var(--mp-text);
  padding: 8px 12px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  line-height: 1.5;
  box-shadow: var(--mp-shadow-sm);
}
[data-mp-tooltip]:hover::after { opacity: 1; }

/* ─── Submit button ──────────────────────────────────────────── */
.mp-userdata-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--mp-green) 0%, #24963E 100%);
  color: #fff !important;
  font-family: var(--mp-font);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: var(--mp-transition);
  box-shadow: 0 4px 20px var(--mp-green-glow);
  margin-top: 24px;
}
.mp-userdata-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mp-green-glow);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.mp-ad-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.mp-ad-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--mp-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--mp-font);
  text-decoration: none;
  cursor: pointer;
  transition: var(--mp-transition);
  border: none;
}
.mp-ad-nav-btn--prev {
  background: var(--mp-bg-3);
  border: 1px solid var(--mp-border);
  color: var(--mp-text-muted) !important;
}
.mp-ad-nav-btn--prev:hover {
  border-color: var(--mp-gold);
  color: var(--mp-gold-light) !important;
  text-decoration: none;
}
.mp-ad-nav-btn--next {
  background: linear-gradient(135deg, var(--mp-green), #24963E);
  color: #fff !important;
  box-shadow: 0 4px 20px var(--mp-green-glow);
}
.mp-ad-nav-btn--next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mp-green-glow);
  color: #fff !important;
  text-decoration: none;
}
.mp-ad-nav-btn--finish {
  background: linear-gradient(135deg, var(--mp-gold-dark), var(--mp-gold));
  color: #0A0A0A !important;
  box-shadow: 0 4px 20px var(--mp-gold-glow);
}
.mp-ad-nav-btn--finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mp-gold-glow);
  color: #0A0A0A !important;
  text-decoration: none;
}

/* ─── Price result ───────────────────────────────────────────── */
.mp-ad-price-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(27,107,53,0.1);
  border: 1px solid rgba(27,107,53,0.3);
  border-radius: var(--mp-radius-sm);
  margin: 16px 0;
  animation: mp-fade-slide 0.4s ease both;
}
.mp-ad-price-result__label {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  font-weight: 600;
}
.mp-ad-price-result__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mp-green);
}

/* ════════════════════════════════════════════════════════════════
   ASSET MEGA-MENU SELECTOR
   ════════════════════════════════════════════════════════════════ */

.mp-asset-selector {
  position: relative;
  user-select: none;
}

/* ── Trigger ── */
.mp-asset-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: var(--mp-transition);
  min-height: 50px;
}
.mp-asset-trigger:hover,
.mp-asset-selector.open .mp-asset-trigger {
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px var(--mp-green-glow);
}
.mp-asset-trigger__img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--mp-bg-3);
  flex-shrink: 0;
}
.mp-asset-trigger__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mp-asset-trigger__code {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mp-heading);
  line-height: 1.2;
}
.mp-asset-trigger__name {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-asset-trigger__caret {
  color: var(--mp-text-muted);
  font-size: 0.85rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.mp-asset-selector.open .mp-asset-trigger__caret {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.mp-asset-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  max-width: 95vw;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  z-index: 9000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.mp-asset-selector.open .mp-asset-dropdown {
  display: flex;
  animation: mp-dropdown-in 0.25s cubic-bezier(0.4,0,0.2,1) both;
}

/* ── Search bar ── */
.mp-asset-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mp-border);
}
.mp-asset-search i {
  color: var(--mp-text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}
.mp-asset-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--mp-text);
  font-size: 0.92rem;
  font-family: var(--mp-font);
  padding: 0;
}
.mp-asset-search-input::placeholder { color: var(--mp-text-muted); }

/* ── Items grid ── */
.mp-asset-list {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--mp-border) transparent;
}
.mp-asset-list::-webkit-scrollbar { width: 4px; }
.mp-asset-list::-webkit-scrollbar-track { background: transparent; }
.mp-asset-list::-webkit-scrollbar-thumb { background: var(--mp-border); border-radius: 4px; }

/* ── Single item ── */
.mp-asset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.mp-asset-item:hover {
  background: var(--mp-glass);
  border-color: var(--mp-border-green);
}
.mp-asset-item.selected {
  background: rgba(27,107,53,0.12);
  border-color: var(--mp-green);
}
.mp-asset-item__img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--mp-bg-3);
  flex-shrink: 0;
  padding: 2px;
}
.mp-asset-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mp-asset-item__code {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mp-heading);
}
.mp-asset-item__name {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-asset-item__check {
  color: var(--mp-green);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.mp-asset-item.selected .mp-asset-item__check { opacity: 1; }
.mp-asset-item.hidden { display: none; }

/* ── No results placeholder ── */
.mp-asset-no-results {
  padding: 24px;
  text-align: center;
  color: var(--mp-text-muted);
  font-size: 0.88rem;
  display: none;
}
.mp-asset-no-results.visible { display: block; }

/* ════════════════════════════════════════════════════════════════
   GATEWAY MEGA-MENU  (card-based, grouped by type)
   ════════════════════════════════════════════════════════════════ */

.mp-gateway-selector {
  position: relative;
  user-select: none;
}
.mp-gateway-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: var(--mp-transition);
  min-height: 56px;
}
.mp-gateway-trigger:hover,
.mp-gateway-selector.open .mp-gateway-trigger {
  border-color: var(--mp-gold);
  box-shadow: 0 0 0 3px var(--mp-gold-glow);
}
.mp-gateway-trigger__img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--mp-bg-3);
  padding: 4px;
  flex-shrink: 0;
}
.mp-gateway-trigger__info { flex: 1; min-width: 0; }
.mp-gateway-trigger__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mp-heading);
}
.mp-gateway-trigger__type {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
}
.mp-gateway-trigger__placeholder {
  font-size: 0.9rem;
  color: var(--mp-text-muted);
  font-style: italic;
  flex: 1;
}
.mp-gateway-trigger__caret {
  color: var(--mp-text-muted);
  font-size: 0.85rem;
  transition: transform 0.25s;
}
.mp-gateway-selector.open .mp-gateway-trigger__caret { transform: rotate(180deg); }

.mp-gateway-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 520px;
  max-width: 95vw;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  z-index: 9000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.mp-gateway-selector.open .mp-gateway-dropdown {
  display: flex;
  animation: mp-dropdown-in 0.25s cubic-bezier(0.4,0,0.2,1) both;
}
.mp-gateway-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mp-border);
}
.mp-gateway-search i { color: var(--mp-text-muted); font-size: 1rem; }
.mp-gateway-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--mp-text);
  font-size: 0.92rem;
  font-family: var(--mp-font);
}
.mp-gateway-search-input::placeholder { color: var(--mp-text-muted); }

.mp-gateway-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--mp-border) transparent;
}
.mp-gateway-list::-webkit-scrollbar { width: 4px; }
.mp-gateway-list::-webkit-scrollbar-thumb { background: var(--mp-border); border-radius: 4px; }

.mp-gateway-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.mp-gateway-item:hover {
  background: rgba(201,162,39,0.08);
  border-color: var(--mp-gold-dark);
}
.mp-gateway-item.selected {
  background: rgba(201,162,39,0.14);
  border-color: var(--mp-gold);
}
.mp-gateway-item.hidden { display: none; }
.mp-gateway-item__img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--mp-bg-3);
  padding: 3px;
  flex-shrink: 0;
}
.mp-gateway-item__info { flex: 1; min-width: 0; }
.mp-gateway-item__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mp-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-gateway-item__type {
  font-size: 0.72rem;
  color: var(--mp-text-muted);
}
.mp-gateway-item__check {
  color: var(--mp-gold);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.mp-gateway-item.selected .mp-gateway-item__check { opacity: 1; }
.mp-gateway-no-results {
  grid-column: 1/-1;
  padding: 24px;
  text-align: center;
  color: var(--mp-text-muted);
  font-size: 0.88rem;
  display: none;
}
.mp-gateway-no-results.visible { display: block; }

/* Type badge pills in dropdown */
.mp-gw-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.mp-gw-type-badge.bank_transfer  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.mp-gw-type-badge.mobile_money   { background: rgba(34,197,94,0.15);  color: #4ade80; }
.mp-gw-type-badge.e_wallet       { background: rgba(99,102,241,0.15); color: #818cf8; }
.mp-gw-type-badge.cash           { background: rgba(234,179,8,0.15);  color: #facc15; }
.mp-gw-type-badge.crypto_exchange{ background: rgba(249,115,22,0.15); color: #fb923c; }
.mp-gw-type-badge.other          { background: var(--mp-glass);        color: var(--mp-text-muted); }

/* ════════════════════════════════════════════════════════════════
   ADVERTISEMENT LIST PAGE
   ════════════════════════════════════════════════════════════════ */

.mp-adlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.mp-adlist-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--mp-heading);
  margin: 0;
}
.mp-btn-new-ad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--mp-green), #24963E);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--mp-transition);
  box-shadow: 0 4px 20px var(--mp-green-glow);
  font-family: var(--mp-font);
  border: none;
  cursor: pointer;
}
.mp-btn-new-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mp-green-glow);
  color: #fff !important;
  text-decoration: none;
}

/* ── Filters bar ── */
.mp-adlist-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  margin-bottom: 20px;
  animation: mp-fade-slide 0.4s ease both;
}
.mp-adlist-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  padding: 8px 14px;
  flex: 1;
  min-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mp-adlist-search-wrap:focus-within {
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px var(--mp-green-glow);
}
.mp-adlist-search-wrap i { color: var(--mp-text-muted); font-size: 1rem; }
.mp-adlist-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--mp-text);
  font-size: 0.9rem;
  font-family: var(--mp-font);
}
.mp-adlist-search::placeholder { color: var(--mp-text-muted); }

.mp-adlist-filter-select {
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-text);
  font-size: 0.88rem;
  font-family: var(--mp-font);
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.mp-adlist-filter-select:focus { border-color: var(--mp-green); }
.mp-adlist-filter-select option { background: var(--mp-bg-2); }

.mp-adlist-count {
  font-size: 0.82rem;
  color: var(--mp-text-muted);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}
.mp-adlist-count strong { color: var(--mp-gold-light); }

/* ── Cards grid ── */
.mp-adlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .mp-adlist-grid { grid-template-columns: 1fr; }
}

/* ── Advertisement card ── */
.mp-ad-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px;
  transition: var(--mp-transition);
  animation: mp-fade-slide 0.4s ease both;
  position: relative;
  overflow: hidden;
}
.mp-ad-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mp-border);
  transition: background 0.3s;
}
.mp-ad-card[data-type="1"]::before {
  background: linear-gradient(90deg, var(--mp-green), #24963E);
}
.mp-ad-card[data-type="2"]::before {
  background: linear-gradient(90deg, #8B3A10, #D4530F);
}
.mp-ad-card:hover {
  border-color: var(--mp-border-green);
  transform: translateY(-3px);
  box-shadow: var(--mp-shadow-sm);
}
.mp-ad-card.hidden { display: none; }

.mp-ad-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.mp-ad-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.mp-ad-card__type--buy {
  background: rgba(27,107,53,0.2);
  color: #4ade80;
  border: 1px solid rgba(27,107,53,0.4);
}
.mp-ad-card__type--sell {
  background: rgba(212,83,15,0.2);
  color: #fb923c;
  border: 1px solid rgba(212,83,15,0.4);
}
.mp-ad-card__badges { display: flex; gap: 6px; flex-wrap: wrap; }

.mp-ad-card__assets {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--mp-border-green);
  border-bottom: 1px solid var(--mp-border-green);
  margin-bottom: 14px;
}
.mp-ad-card__asset-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--mp-bg-3);
  padding: 2px;
}
.mp-ad-card__asset-code {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mp-heading);
}
.mp-ad-card__asset-sep {
  color: var(--mp-text-muted);
  font-size: 0.9rem;
  margin: 0 4px;
}

.mp-ad-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.mp-ad-card__row:last-child { margin-bottom: 0; }
.mp-ad-card__key {
  font-size: 0.78rem;
  color: var(--mp-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.mp-ad-card__val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mp-text);
  text-align: right;
}
.mp-ad-card__val--rate {
  color: var(--mp-gold-light);
  font-size: 0.95rem;
  font-weight: 800;
}

.mp-ad-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--mp-border);
  flex-wrap: wrap;
}
.mp-ad-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--mp-font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: var(--mp-transition);
}
.mp-ad-card__action--edit {
  color: #60a5fa;
  border-color: rgba(96,165,250,0.3);
}
.mp-ad-card__action--edit:hover {
  background: rgba(96,165,250,0.1);
  color: #93c5fd !important;
  text-decoration: none;
}
.mp-ad-card__action--feedback {
  color: var(--mp-gold-light);
  border-color: var(--mp-border);
}
.mp-ad-card__action--feedback:hover {
  background: rgba(201,162,39,0.1);
  color: var(--mp-gold-light) !important;
  text-decoration: none;
}
.mp-ad-card__action--disable {
  color: #f87171;
  border-color: rgba(248,113,113,0.3);
}
.mp-ad-card__action--disable:hover {
  background: rgba(248,113,113,0.1);
  color: #fca5a5 !important;
  text-decoration: none;
}
.mp-ad-card__action--enable {
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
}
.mp-ad-card__action--enable:hover {
  background: rgba(74,222,128,0.1);
  color: #86efac !important;
  text-decoration: none;
}
.mp-ad-card__action--delete {
  color: #f87171;
  border-color: rgba(248,113,113,0.3);
}
.mp-ad-card__action--delete:hover {
  background: rgba(248,113,113,0.12);
  color: #fca5a5 !important;
  text-decoration: none;
}

/* ── Status badge ── */
.mp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.mp-status-badge--active   { background: rgba(74,222,128,0.15);  color: #4ade80; }
.mp-status-badge--inactive { background: rgba(248,113,113,0.15); color: #f87171; }
.mp-status-badge--draft    { background: rgba(250,204,21,0.15);  color: #facc15; }
.mp-status-badge--dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* ── Published badge ── */
.mp-pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: default;
}
.mp-pub-badge--yes { background: rgba(74,222,128,0.15);  color: #4ade80; }
.mp-pub-badge--no  { background: rgba(248,113,113,0.15); color: #f87171; cursor: pointer; }

/* ── Empty state ── */
.mp-adlist-empty {
  grid-column: 1/-1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--mp-text-muted);
  gap: 12px;
  display: none;
}
.mp-adlist-empty.visible { display: flex; }
.mp-adlist-empty i { font-size: 3rem; opacity: 0.4; }
.mp-adlist-empty p { font-size: 1rem; margin: 0; }

/* ── Pagination ── */
.mp-pagination-wrap { margin-top: 28px; }

/* ── Published-no button reset ── */
.mp-pub-badge--no {
  background: none;
  outline: none;
  font-family: var(--mp-font);
  border: 1px solid rgba(248,113,113,0.3);
}
.mp-pub-badge--no:hover { background: rgba(248,113,113,0.12); }

/* ─── Page section wrapper ────────────────────────────────────── */
.mp-userdata-section {
  padding: 40px 0 64px;
  min-height: 80vh;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE COMPONENTS  (used by all modernised list pages)
   ═══════════════════════════════════════════════════════════════ */

/* ── Generic page ── */
.mp-page { padding: 40px 0 64px; min-height: 80vh; }

/* ── Page header ── */
.mp-page-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.mp-page-hd__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mp-heading);
  margin: 0 0 4px;
}
.mp-page-hd__sub {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  margin: 0;
}

/* ── Filter bar ── */
.mp-fbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 16px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  margin-bottom: 12px;
}
.mp-fbar__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  padding: 0 12px;
}
.mp-fbar__search-wrap i { color: var(--mp-text-muted); font-size: 0.9rem; flex-shrink: 0; }
.mp-fbar__search {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--mp-text);
  font-size: 0.87rem;
  font-family: var(--mp-font);
  padding: 9px 0;
}
.mp-fbar__search::placeholder { color: var(--mp-text-muted); }
.mp-fbar__select {
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-text);
  font-size: 0.85rem;
  font-family: var(--mp-font);
  padding: 9px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.mp-fbar__select:focus { border-color: var(--mp-border-green); }
.mp-fbar__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--mp-green);
  color: #fff;
  border: none;
  border-radius: var(--mp-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--mp-font);
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.mp-fbar__submit:hover { opacity: 0.85; color: #fff; text-decoration: none; }
.mp-fbar__count {
  font-size: 0.78rem;
  color: var(--mp-text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.mp-fbar__count strong { color: var(--mp-text); }

/* ── Generic badge ── */
.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}
.mp-badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: mp-pulse-ring 2s ease infinite;
}
.mp-badge--green  { background: rgba(74,222,128,0.12);  color: #4ade80; }
.mp-badge--red    { background: rgba(248,113,113,0.12); color: #f87171; }
.mp-badge--gold   { background: rgba(201,162,39,0.12);  color: var(--mp-gold-light); }
.mp-badge--blue   { background: rgba(96,165,250,0.12);  color: #60a5fa; }
.mp-badge--muted  { background: var(--mp-glass);        color: var(--mp-text-muted); }
.mp-badge--yellow { background: rgba(250,204,21,0.12);  color: #facc15; }
.mp-badge--orange { background: rgba(251,146,60,0.12);  color: #fb923c; }
.mp-badge--purple { background: rgba(167,139,250,0.12); color: #a78bfa; }

/* ── List container ── */
.mp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Single list row ── */
.mp-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  animation: mp-fade-slide 0.35s ease both;
  flex-wrap: wrap;
}
.mp-list-row:hover {
  border-color: var(--mp-border-green);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.mp-list-row.hidden { display: none !important; }

/* ── List header row (column labels) ── */
.mp-list-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  flex-wrap: wrap;
}
.mp-list-hdr span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mp-text-muted);
}

/* ── List empty state ── */
.mp-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  color: var(--mp-text-muted);
  text-align: center;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
}
.mp-list-empty i { font-size: 2.8rem; opacity: 0.3; }
.mp-list-empty p { font-size: 0.9rem; margin: 0; }

/* ── Mono/code text ── */
.mp-mono {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.78rem;
  background: var(--mp-glass);
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--mp-text);
}

/* ── Amount coloring ── */
.mp-amount--plus  { color: #4ade80; font-weight: 700; }
.mp-amount--minus { color: #f87171; font-weight: 700; }

/* ── Row action buttons ── */
.mp-row-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mp-font);
  text-decoration: none;
  border: 1px solid var(--mp-border);
  background: transparent;
  color: var(--mp-text-muted);
  cursor: pointer;
  transition: var(--mp-transition);
  white-space: nowrap;
}
.mp-row-action--view    { color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.mp-row-action--edit    { color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.mp-row-action--disable { color: #f87171; border-color: rgba(248,113,113,0.3); }
.mp-row-action--enable  { color: #4ade80; border-color: rgba(74,222,128,0.3); }
.mp-row-action--delete  { color: #f87171; border-color: rgba(248,113,113,0.3); }
.mp-row-action--gold    { color: var(--mp-gold-light); border-color: rgba(201,162,39,0.3); }
.mp-row-action:hover    { background: var(--mp-glass); text-decoration: none; }
.mp-row-action--view:hover    { background: rgba(96,165,250,0.1); color: #93c5fd; }
.mp-row-action--edit:hover    { background: rgba(96,165,250,0.1); color: #93c5fd; }
.mp-row-action--disable:hover { background: rgba(248,113,113,0.1); color: #fca5a5; }
.mp-row-action--enable:hover  { background: rgba(74,222,128,0.1);  color: #86efac; }
.mp-row-action--gold:hover    { background: rgba(201,162,39,0.1);  color: var(--mp-gold-light); }

/* ── New item button ── */
.mp-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--mp-green), #24963E);
  color: #fff;
  border-radius: var(--mp-radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--mp-font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.mp-btn-new:hover { opacity: 0.88; color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .mp-fbar { gap: 8px; }
  .mp-fbar__count { display: none; }
  .mp-list-row { gap: 8px; }
}

/* ─── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 480px) {
  .mp-userdata-card  { padding: 20px 16px; }
  .mp-stepper__body  { display: none; }
  .mp-stepper__seg   { justify-content: center; }
  .mp-adlist-filters { flex-direction: column; align-items: stretch; }
}

/* ─── Light-mode input select fix ────────────────────────────── */
body[data-theme="light"] .mp-userdata-input,
html[data-theme="light"] body .mp-userdata-input,
body[data-theme="light"] .mp-adlist-filter-select,
html[data-theme="light"] body .mp-adlist-filter-select {
  color: #1C2E20;
}

/* ─── Light-mode asset trigger fix ───────────────────────────── */
body[data-theme="light"] .mp-asset-trigger,
html[data-theme="light"] body .mp-asset-trigger,
body[data-theme="light"] .mp-gateway-trigger,
html[data-theme="light"] body .mp-gateway-trigger {
  background: var(--mp-input-bg);
}

body[data-theme="light"] .mp-asset-dropdown,
html[data-theme="light"] body .mp-asset-dropdown,
body[data-theme="light"] .mp-gateway-dropdown,
html[data-theme="light"] body .mp-gateway-dropdown {
  background: #fff;
}

/* ─── Validation error highlight ─────────────────────────────── */
.mp-asset-trigger.is-invalid,
.mp-gateway-trigger.is-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.25) !important;
  animation: mp-shake 0.4s ease;
}
