/* ================================================================
   MAPAYER — Redesign CSS
   Palette : Vert Forêt #1B6B35 | Or #C9A227 | Fond sombre #060E08
   ================================================================ */

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

/* ─── Variables structurelles (immuables) ───────────────────── */
:root {
  --mp-green:        #1B6B35;
  --mp-green-dark:   #0F3D1E;
  --mp-green-mid:    #145228;
  --mp-green-glow:   rgba(27, 107, 53, 0.35);
  --mp-gold:         #C9A227;
  --mp-gold-light:   #E4BC3E;
  --mp-gold-dark:    #9B7B1A;
  --mp-gold-glow:    rgba(201, 162, 39, 0.35);
  --mp-white:        #FFFFFF;
  --mp-radius-lg:    20px;
  --mp-radius:       14px;
  --mp-radius-sm:    8px;
  --mp-transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --mp-font:         'Inter', 'Jost', sans-serif;
  --mp-header-offset: 80px;
  --mp-danger:       #E5394B;
  --mp-danger-bg:    rgba(229, 57, 75, 0.10);
  --mp-danger-border:rgba(229, 57, 75, 0.35);
  --mp-warning:      #E4A52E;
  --mp-warning-bg:   rgba(228, 165, 46, 0.12);
  --mp-info:         #4FA8E0;
  --mp-info-bg:      rgba(79, 168, 224, 0.10);
}

/* ─── Thème sombre (défaut) ─────────────────────────────────── */
body,
body[data-theme="dark"],
html[data-theme="dark"] body {
  --mp-bg:           #060E08;
  --mp-bg-2:         #0B1A0E;
  --mp-bg-3:         #0F2213;
  --mp-bg-card:      rgba(11, 26, 14, 0.85);
  --mp-glass:        rgba(27, 107, 53, 0.08);
  --mp-border:       rgba(201, 162, 39, 0.18);
  --mp-border-green: rgba(27, 107, 53, 0.25);
  --mp-text:         #E8F5EC;
  --mp-text-muted:   #7A9B82;
  --mp-heading:      #FFFFFF;
  --mp-shadow:       0 24px 64px rgba(0, 0, 0, 0.5);
  --mp-shadow-sm:    0 8px 32px rgba(0, 0, 0, 0.3);
  --mp-surface:      rgba(11, 26, 14, 0.85);
  --mp-surface-2:    rgba(11, 26, 14, 0.60);
  --mp-input-bg:     rgba(11, 26, 14, 0.80);
  --mp-input-border: rgba(27, 107, 53, 0.30);
  --mp-overlay:      rgba(6, 14, 8, 0.95);
  --mp-hero-start:   rgba(27, 107, 53, 0.20);
  --mp-hero-end:     rgba(201, 162, 39, 0.08);
  --mp-hero-base:    #060E08;
  --mp-drawer-bg:    linear-gradient(180deg, rgba(6, 14, 8, 0.98) 0%, rgba(10, 20, 12, 0.96) 100%);
  --mp-drawer-header-bg: linear-gradient(180deg, rgba(10, 20, 12, 0.98) 0%, rgba(6, 14, 8, 0.95) 100%);
  --mp-drawer-item-border: rgba(255, 255, 255, 0.05);
  --mp-drawer-dropdown-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  --mp-drawer-dropdown-item-border: rgba(255, 255, 255, 0.03);
  --mp-drawer-shadow: 8px 0 40px rgba(212, 175, 55, 0.18), 4px 0 20px rgba(0, 0, 0, 0.4);
  --mp-drawer-header-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  --mp-drawer-overlay-bg: rgba(0, 0, 0, 0.55);
  --mp-drawer-hover-bg: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
  --mp-drawer-active-bg: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
  --mp-drawer-scrollbar-track: rgba(255, 255, 255, 0.02);
}

/* ─── Thème clair ───────────────────────────────────────────── */
body[data-theme="light"],
html[data-theme="light"] body {
  --mp-bg:           #F2F8F4;
  --mp-bg-2:         #E6F2EC;
  --mp-bg-3:         #D8EBE0;
  --mp-bg-card:      rgba(255, 255, 255, 0.97);
  --mp-glass:        rgba(27, 107, 53, 0.05);
  --mp-border:       rgba(27, 107, 53, 0.16);
  --mp-border-green: rgba(27, 107, 53, 0.20);
  --mp-text:         #1C2E20;
  --mp-text-muted:   #4B6A52;
  --mp-heading:      #0D1F10;
  --mp-shadow:       0 24px 64px rgba(0, 0, 0, 0.08);
  --mp-shadow-sm:    0 8px 32px rgba(0, 0, 0, 0.06);
  --mp-surface:      rgba(255, 255, 255, 0.97);
  --mp-surface-2:    rgba(240, 248, 244, 0.90);
  --mp-input-bg:     rgba(255, 255, 255, 0.95);
  --mp-input-border: rgba(27, 107, 53, 0.25);
  --mp-overlay:      rgba(242, 248, 244, 0.97);
  --mp-hero-start:   rgba(27, 107, 53, 0.08);
  --mp-hero-end:     rgba(201, 162, 39, 0.05);
  --mp-hero-base:    #F2F8F4;
  --mp-drawer-bg:    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 244, 0.96) 100%);
  --mp-drawer-header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 244, 0.95) 100%);
  --mp-drawer-item-border: rgba(27, 107, 53, 0.12);
  --mp-drawer-dropdown-bg: rgba(27, 107, 53, 0.06);
  --mp-drawer-dropdown-item-border: rgba(27, 107, 53, 0.08);
  --mp-drawer-shadow: 8px 0 40px rgba(27, 107, 53, 0.12), 4px 0 20px rgba(0, 0, 0, 0.06);
  --mp-drawer-header-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --mp-drawer-overlay-bg: rgba(13, 31, 16, 0.35);
  --mp-drawer-hover-bg: linear-gradient(90deg, rgba(27, 107, 53, 0.1) 0%, transparent 100%);
  --mp-drawer-active-bg: linear-gradient(90deg, rgba(27, 107, 53, 0.14) 0%, transparent 100%);
  --mp-drawer-scrollbar-track: rgba(27, 107, 53, 0.06);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
body,
html {
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

body {
  font-family: var(--mp-font) !important;
  background-color: var(--mp-bg) !important;
  color: var(--mp-text) !important;
}

/* Propager les variables sémantiques depuis html vers body si data-theme est sur html */
html[data-theme="light"] body {
  --mp-bg:           #F2F8F4;
  --mp-bg-2:         #E6F2EC;
  --mp-bg-3:         #D8EBE0;
  --mp-bg-card:      rgba(255, 255, 255, 0.97);
  --mp-glass:        rgba(27, 107, 53, 0.05);
  --mp-border:       rgba(27, 107, 53, 0.16);
  --mp-border-green: rgba(27, 107, 53, 0.20);
  --mp-text:         #1C2E20;
  --mp-text-muted:   #4B6A52;
  --mp-heading:      #0D1F10;
  --mp-shadow:       0 24px 64px rgba(0, 0, 0, 0.08);
  --mp-shadow-sm:    0 8px 32px rgba(0, 0, 0, 0.06);
  --mp-surface:      rgba(255, 255, 255, 0.97);
  --mp-surface-2:    rgba(240, 248, 244, 0.90);
  --mp-input-bg:     rgba(255, 255, 255, 0.95);
  --mp-input-border: rgba(27, 107, 53, 0.25);
  --mp-overlay:      rgba(242, 248, 244, 0.97);
  --mp-hero-start:   rgba(27, 107, 53, 0.08);
  --mp-hero-end:     rgba(201, 162, 39, 0.05);
  --mp-hero-base:    #F2F8F4;
  --mp-drawer-bg:    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 244, 0.96) 100%);
  --mp-drawer-header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 244, 0.95) 100%);
  --mp-drawer-item-border: rgba(27, 107, 53, 0.12);
  --mp-drawer-dropdown-bg: rgba(27, 107, 53, 0.06);
  --mp-drawer-dropdown-item-border: rgba(27, 107, 53, 0.08);
  --mp-drawer-shadow: 8px 0 40px rgba(27, 107, 53, 0.12), 4px 0 20px rgba(0, 0, 0, 0.06);
  --mp-drawer-header-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --mp-drawer-overlay-bg: rgba(13, 31, 16, 0.35);
  --mp-drawer-hover-bg: linear-gradient(90deg, rgba(27, 107, 53, 0.1) 0%, transparent 100%);
  --mp-drawer-active-bg: linear-gradient(90deg, rgba(27, 107, 53, 0.14) 0%, transparent 100%);
  --mp-drawer-scrollbar-track: rgba(27, 107, 53, 0.06);
  background-color: #F2F8F4 !important;
  color: #1C2E20 !important;
}

/* Idem si data-theme="dark" est sur html */
html[data-theme="dark"] body {
  --mp-drawer-bg:    linear-gradient(180deg, rgba(6, 14, 8, 0.98) 0%, rgba(10, 20, 12, 0.96) 100%);
  --mp-drawer-header-bg: linear-gradient(180deg, rgba(10, 20, 12, 0.98) 0%, rgba(6, 14, 8, 0.95) 100%);
  --mp-drawer-item-border: rgba(255, 255, 255, 0.05);
  --mp-drawer-dropdown-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  --mp-drawer-dropdown-item-border: rgba(255, 255, 255, 0.03);
  --mp-drawer-shadow: 8px 0 40px rgba(212, 175, 55, 0.18), 4px 0 20px rgba(0, 0, 0, 0.4);
  --mp-drawer-header-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  --mp-drawer-overlay-bg: rgba(0, 0, 0, 0.55);
  --mp-drawer-hover-bg: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
  --mp-drawer-active-bg: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
  --mp-drawer-scrollbar-track: rgba(255, 255, 255, 0.02);
  background-color: #060E08 !important;
  color: #E8F5EC !important;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes mp-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(2deg); }
  66%       { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes mp-pulse-green {
  0%, 100% { box-shadow: 0 0 20px var(--mp-green-glow); }
  50%       { box-shadow: 0 0 50px var(--mp-green-glow), 0 0 80px rgba(27,107,53,0.15); }
}

@keyframes mp-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes mp-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes mp-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes mp-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mp-draw-line {
  from { width: 0; }
  to   { width: 60px; }
}

@keyframes mp-grid-glow {
  0%, 100% { opacity: 0.03; }
  50%       { opacity: 0.07; }
}

@keyframes mp-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes mp-counter {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Background Patterns ───────────────────────────────────── */
.mp-bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(27,107,53,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(201,162,39,0.08) 0%, transparent 55%),
    var(--mp-bg);
}

.mp-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,107,53,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,107,53,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: mp-grid-glow 4s ease-in-out infinite;
}

/* ─── Typography ────────────────────────────────────────────── */
.mp-heading {
  font-family: var(--mp-font);
  font-weight: 800;
  line-height: 1.15;
  color: var(--mp-heading);
}

.mp-heading .mp-gold-text {
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-light), var(--mp-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mp-shimmer 3s linear infinite;
}

.mp-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--mp-heading);
  margin-bottom: 1rem;
}

.mp-section-subtitle {
  font-size: 1.1rem;
  color: var(--mp-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.mp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mp-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.mp-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mp-gold);
  animation: mp-pulse-green 2s ease-in-out infinite;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.mp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--mp-green) 0%, #24963E 100%);
  color: var(--mp-white) !important;
  font-family: var(--mp-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--mp-transition);
  box-shadow: 0 4px 20px var(--mp-green-glow);
  text-decoration: none;
  white-space: nowrap;
}

.mp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mp-green-glow);
  background: linear-gradient(135deg, #24963E 0%, var(--mp-green) 100%);
  color: var(--mp-white) !important;
  text-decoration: none;
}

.mp-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--mp-gold-dark) 0%, var(--mp-gold) 50%, var(--mp-gold-light) 100%);
  background-size: 200% auto;
  color: #0A0A0A !important;
  font-family: var(--mp-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--mp-transition);
  box-shadow: 0 4px 20px var(--mp-gold-glow);
  text-decoration: none;
  white-space: nowrap;
  animation: mp-gradient-shift 3s ease infinite;
}

.mp-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mp-gold-glow);
  color: #0A0A0A !important;
  text-decoration: none;
}

.mp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: transparent;
  color: var(--mp-text) !important;
  font-family: var(--mp-font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--mp-border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--mp-transition);
  text-decoration: none;
  white-space: nowrap;
}

.mp-btn-outline:hover {
  border-color: var(--mp-green);
  color: var(--mp-white) !important;
  background: var(--mp-glass);
  box-shadow: 0 0 20px var(--mp-green-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

.mp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--mp-text-muted) !important;
  font-family: var(--mp-font);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--mp-transition);
  text-decoration: none;
}

.mp-btn-ghost:hover {
  color: var(--mp-white) !important;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.mp-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--mp-transition);
}

.mp-card:hover {
  border-color: rgba(201,162,39,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,39,0.1);
  transform: translateY(-4px);
}

.mp-card-glass {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border-green);
  border-radius: var(--mp-radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ─── Form elements ─────────────────────────────────────────── */
.mp-form-group {
  margin-bottom: 1.2rem;
}

.mp-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mp-form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: var(--mp-radius-sm) !important;
  color: var(--mp-white) !important;
  font-family: var(--mp-font) !important;
  font-size: 0.95rem !important;
  transition: var(--mp-transition) !important;
}

.mp-form-control::placeholder {
  color: rgba(122,155,130,0.6) !important;
}

.mp-form-control:focus {
  outline: none !important;
  border-color: var(--mp-green) !important;
  box-shadow: 0 0 0 3px var(--mp-green-glow) !important;
  background: var(--mp-input-bg) !important;
}

.mp-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A9B82' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
}

/* ─── ══════════════ HEADER ══════════════ ─────────────────── */
.mp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--mp-transition);
}

.mp-header.scrolled {
  background: var(--mp-overlay) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--mp-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.mp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

/* Espace sous le header fixe (séparateur dans le layout) */
.mp-header-offset {
  display: block;
  width: 100%;
  height: calc(var(--mp-header-offset) + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
  pointer-events: none;
}

.mp-site-main {
  flex: 1 0 auto;
  width: 100%;
}

.mp-logo img {
  height: 44px;
  width: auto;
  transition: var(--mp-transition);
}

.mp-logo:hover img {
  filter: drop-shadow(0 0 12px var(--mp-green-glow));
}

.mp-logo--header {
  flex-shrink: 0;
}

.mp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--mp-text-muted) !important;
  transition: var(--mp-transition);
  font-family: var(--mp-font);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--mp-radius-sm);
  transition: var(--mp-transition);
  white-space: nowrap;
}

.mp-nav > li > a:hover,
.mp-nav > li.active > a {
  color: var(--mp-white) !important;
  background: rgba(27,107,53,0.12);
}

.mp-nav > li.menu_has_children {
  position: relative;
}

.mp-nav > li.menu_has_children > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: var(--mp-transition);
}

.mp-nav > li.menu_has_children:hover > a::after {
  transform: rotate(180deg);
}

.mp-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: 240px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: var(--mp-transition);
  z-index: 100;
  backdrop-filter: blur(20px);
  max-height: 360px;
  overflow-y: auto;
  column-count: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--mp-green) transparent;
}

.mp-dropdown::-webkit-scrollbar { width: 4px; }
.mp-dropdown::-webkit-scrollbar-thumb { background: var(--mp-green); border-radius: 4px; }

.mp-nav > li.menu_has_children:hover .mp-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mp-dropdown li a {
  display: block;
  padding: 8px 12px;
  color: var(--mp-text-muted) !important;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: var(--mp-radius-sm);
  transition: var(--mp-transition);
  font-family: var(--mp-font);
  break-inside: avoid;
}

.mp-dropdown li a:hover {
  color: var(--mp-white) !important;
  background: rgba(27,107,53,0.15);
}

.mp-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Menu avatar utilisateur dans le header public */
.mp-nav-right .udash-user-menu {
  position: relative;
}

.mp-nav-right .udash-user-trigger-name {
  display: none;
}

@media (min-width: 1200px) {
  .mp-nav-right .udash-user-trigger-name {
    display: block;
  }
}

.mp-nav-right .udash-user-dropdown {
  right: 0;
  left: auto;
}

.mp-footer-col-title--spaced {
  margin-top: 1.25rem;
}

/* ── Theme Switch (bouton) ── */
.mp-theme-btn {
  position: relative;
  width: 52px;
  height: 28px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
}

.mp-theme-btn:focus-visible .mp-theme-track {
  box-shadow: 0 0 0 2px var(--mp-green);
}

.mp-theme-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

body[data-theme="light"] .mp-theme-track,
html[data-theme="light"] .mp-theme-track {
  background: rgba(27,107,53,0.10);
  border-color: rgba(27,107,53,0.20);
}

.mp-theme-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mp-gold);
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 0 8px var(--mp-gold-glow);
  z-index: 1;
}

/* Mode sombre : pouce à droite (lune) */
body[data-theme="dark"] .mp-theme-thumb,
html[data-theme="dark"] .mp-theme-thumb {
  transform: translateX(24px);
  background: #7A9B82;
  box-shadow: 0 0 8px rgba(122,155,130,0.4);
}

/* Mode clair : pouce à gauche (soleil) */
body[data-theme="light"] .mp-theme-thumb,
html[data-theme="light"] .mp-theme-thumb {
  transform: translateX(0);
  background: var(--mp-gold);
  box-shadow: 0 0 8px var(--mp-gold-glow);
}

.mp-icon-sun,
.mp-icon-moon {
  font-size: 12px;
  line-height: 1;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.mp-icon-sun  { color: var(--mp-gold); }
.mp-icon-moon { color: #7A9B82; }

/* Mode sombre : soleil discret, lune visible */
body[data-theme="dark"]  .mp-icon-sun,
html[data-theme="dark"]  .mp-icon-sun  { opacity: 0.4; }
body[data-theme="dark"]  .mp-icon-moon,
html[data-theme="dark"]  .mp-icon-moon { opacity: 1; }

/* Mode clair : soleil visible, lune discrète */
body[data-theme="light"] .mp-icon-sun,
html[data-theme="light"] .mp-icon-sun  { opacity: 1; }
body[data-theme="light"] .mp-icon-moon,
html[data-theme="light"] .mp-icon-moon { opacity: 0.3; }

/* État par défaut (aucun attribut) = sombre */
.mp-theme-thumb { transform: translateX(24px); background: #7A9B82; }
.mp-icon-sun    { opacity: 0.4; }
.mp-icon-moon   { opacity: 1; }

/* Language selector */
.mp-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: var(--mp-text-muted) !important;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--mp-transition);
  text-decoration: none;
}

.mp-lang-btn:hover {
  border-color: var(--mp-border);
  color: var(--mp-white) !important;
}

.mp-lang-btn img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

/* Mobile hamburger */
.mp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.mp-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mp-text);
  border-radius: 2px;
  transition: var(--mp-transition);
}

/* Masquer les éléments du drawer en mode desktop */
.mp-drawer-header {
  display: none;
}

.mp-nav-icon {
  display: none;
}

.mp-nav > li > a > span {
  display: inline;
}

/* ─── ══════════════ HERO ══════════════ ──────────────────── */
.mp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 0 80px;
  background:
    radial-gradient(ellipse 90% 70% at 15% 5%, var(--mp-hero-start) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 85% 95%, var(--mp-hero-end) 0%, transparent 55%),
    var(--mp-hero-base);
  transition: background-color 0.3s ease;
}

.mp-hero-orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,107,53,0.18) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  pointer-events: none;
  animation: mp-float 8s ease-in-out infinite;
}

.mp-hero-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.10) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
  animation: mp-float 10s ease-in-out infinite reverse;
}

/* Pages formulaire dédiées — layout 2 colonnes type homepage */
.mp-hero--form-page {
  min-height: auto;
  padding: 24px 0 72px;
}

.mp-hero--form-page .mp-hero-subtitle,
.mp-hero--form-page .mp-form-page-lead {
  max-width: none;
  margin-bottom: 1.75rem;
}

.mp-form-page-intro .mp-hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.mp-form-page-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-form-page-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--mp-text);
}

.mp-form-page-feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(27, 107, 53, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #3dd68c;
  transition: var(--mp-transition);
}

.mp-form-page-intro--direct .mp-form-page-feature-icon {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.22);
  color: var(--mp-gold-light);
}

.mp-form-page-features li:hover .mp-form-page-feature-icon {
  transform: scale(1.05);
}

.mp-form-page-meta {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: var(--mp-radius);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  font-size: 0.8rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--mp-text-muted);
}

.mp-form-page-meta i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.15rem;
  color: var(--mp-gold);
}

.mp-form-page-intro--express .mp-form-page-meta i {
  color: #3dd68c;
}

body[data-theme="light"] .mp-form-page-feature-icon,
html[data-theme="light"] body .mp-form-page-feature-icon {
  background: rgba(27, 107, 53, 0.08);
  color: var(--mp-green);
}

body[data-theme="light"] .mp-form-page-intro--direct .mp-form-page-feature-icon,
html[data-theme="light"] body .mp-form-page-intro--direct .mp-form-page-feature-icon {
  color: var(--mp-gold-dark);
}

body[data-theme="light"] .mp-form-page-meta,
html[data-theme="light"] body .mp-form-page-meta {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991px) {
  .mp-hero--form-page {
    padding: 20px 0 56px;
  }

  .mp-form-page-intro {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .mp-form-page-intro .mp-hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .mp-form-page-features {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .mp-form-page-meta {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .mp-form-page-features li {
    font-size: 0.88rem;
  }
}

.mp-hero-left {
  animation: mp-fade-up 0.8s ease forwards;
  min-width: 0;
  container-type: inline-size;
  container-name: hero-left;
}

.mp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(27,107,53,0.10));
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mp-gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.mp-hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--mp-gold);
  border-radius: 50%;
  animation: mp-pulse-green 2s ease-in-out infinite;
}

.mp-hero-title {
  font-size: clamp(1.65rem, 2.4vw + 0.5rem, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--mp-heading);
  margin-bottom: 1.4rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.mp-hero-title .line-gold {
  background: linear-gradient(135deg, var(--mp-gold) 0%, var(--mp-gold-light) 50%, var(--mp-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mp-shimmer 3.5s linear infinite;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(1.35rem, 11cqw, 2.65rem);
}

.mp-hero-subtitle {
  font-size: 1.15rem;
  color: var(--mp-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.mp-hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.mp-hero-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  color: var(--mp-text-muted);
  font-size: 0.85rem;
}

.mp-hero-or::before,
.mp-hero-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mp-border);
  max-width: 80px;
}

.mp-social-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: var(--mp-text-muted) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--mp-transition);
}

.mp-social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--mp-white) !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.mp-app-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-white) !important;
  text-decoration: none;
  transition: var(--mp-transition);
}

.mp-app-btn:hover {
  background: rgba(27,107,53,0.12);
  border-color: var(--mp-border-green);
  transform: translateY(-2px);
  text-decoration: none;
}

.mp-app-btn i {
  font-size: 1.8rem;
  color: var(--mp-text-muted);
}

.mp-app-btn-label span:first-child {
  display: block;
  font-size: 0.7rem;
  color: var(--mp-text-muted);
  font-weight: 400;
}

.mp-app-btn-label span:last-child {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mp-white);
}

/* ─── Trade Widget ───────────────────────────────────────────── */
.mp-widget {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 28px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(27,107,53,0.1);
  position: relative;
  overflow: hidden;
  animation: mp-fade-up 0.8s ease 0.3s both;
}

.mp-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mp-green), var(--mp-gold), var(--mp-green), transparent);
}

.mp-tab-nav {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 24px;
}

.mp-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--mp-text-muted);
  font-family: var(--mp-font);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--mp-transition);
  white-space: nowrap;
}

.mp-tab-btn.active {
  background: var(--mp-gold, #c9a227);
  color: #0d1810;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
  font-weight: 700;
}

.mp-tab-nav--triple .mp-tab-btn {
  font-size: 0.78rem;
  padding: 9px 8px;
}

@media (min-width: 1200px) {
  .mp-tab-nav--triple .mp-tab-btn {
    font-size: 0.82rem;
    padding: 9px 10px;
  }
}

/* Adaptation responsive mobile */
@media (max-width: 575px) {
  .mp-tab-nav--triple .mp-tab-btn {
    font-size: 0.72rem;
    padding: 10px 6px;
  }
}

.mp-buysell-toggle {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--mp-radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.mp-buysell-toggle input[type=radio] {
  display: none;
}

.mp-buysell-toggle label {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mp-text-muted);
  transition: var(--mp-transition);
  margin: 0;
}

.mp-buysell-toggle input[type=radio]:checked + label {
  background: var(--mp-green);
  color: var(--mp-white);
  box-shadow: 0 4px 12px var(--mp-green-glow);
}

.mp-buysell-toggle input[value="sell"]:checked + label {
  background: #c0392b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
}

.mp-buysell-toggle input[value="all"]:checked + label {
  background: var(--mp-gold);
  color: #1a0f00;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.mp-hero-p2p-lead {
  font-size: 0.88rem;
  color: var(--mp-text-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ─── Hero P2P search form (homepage widget tab) ─────────────── */
.mp-hero-p2p-form { display: flex; flex-direction: column; gap: 16px; }

.mp-hero-p2p-toggle {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--mp-border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.mp-hero-p2p-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--mp-text-muted);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--mp-transition);
  white-space: nowrap;
}

.mp-hero-p2p-toggle-btn.active.mp-hero-p2p-toggle-btn--buy  { background: #1b6b35; color: #fff; }
.mp-hero-p2p-toggle-btn.active.mp-hero-p2p-toggle-btn--sell { background: #c0392b; color: #fff; }
.mp-hero-p2p-toggle-btn.active.mp-hero-p2p-toggle-btn--all  { background: var(--mp-gold); color: #1a0f00; }

.mp-hero-p2p-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mp-hero-p2p-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

.mp-hero-p2p-optional { font-weight: 500; text-transform: none; letter-spacing: 0; }

.mp-hero-p2p-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-input-bg);
  color: var(--mp-text);
  cursor: pointer;
  transition: var(--mp-transition);
}

.mp-hero-p2p-trigger:hover,
.mp-hero-p2p-trigger:focus-visible {
  border-color: var(--mp-green);
  outline: none;
}

.mp-hero-p2p-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: .9rem;
  font-weight: 600;
}

.mp-hero-p2p-caret {
  color: var(--mp-text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.mp-hero-p2p-trigger-icon,
.mp-hero-p2p-opt-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 800;
}

.mp-hero-p2p-trigger-icon--gold,
.mp-hero-p2p-opt-icon--gold { background: rgba(201,162,39,.2); color: var(--mp-gold); }

.mp-hero-p2p-trigger-icon--green,
.mp-hero-p2p-opt-icon--green { background: rgba(27,107,53,.2); color: var(--mp-green); }

.mp-hero-p2p-trigger-img,
.mp-hero-p2p-opt-img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.mp-hero-p2p-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--mp-text);
  cursor: pointer;
  text-align: left;
  font-size: .9rem;
  transition: background .15s;
}

.mp-hero-p2p-opt:hover,
.mp-hero-p2p-opt--active { background: rgba(27,107,53,.18); }

.mp-hero-p2p-opt-name { flex: 1; min-width: 0; font-weight: 600; }
.mp-hero-p2p-opt-code { font-size: .75rem; color: var(--mp-text-muted); flex-shrink: 0; }

.mp-hero-p2p-amount-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--mp-input-border);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-input-bg);
}

.mp-hero-p2p-amount-field:focus-within { border-color: var(--mp-green); }

.mp-hero-p2p-amount-field input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mp-text);
  font-size: .95rem;
  outline: none;
  min-width: 0;
}

.mp-hero-p2p-amount-currency {
  font-size: .8rem;
  font-weight: 700;
  color: var(--mp-gold);
  white-space: nowrap;
}

.mp-hero-p2p-submit {
  width: 100%;
  margin-top: 4px;
}

/* Modal de sélection — centré sur la page (portail body) */
body.mp-hero-p2p-modal-open {
  overflow: hidden;
}

.mp-hero-p2p-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow: hidden;
}

.mp-hero-p2p-modal[hidden] {
  display: none !important;
}

.mp-hero-p2p-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mp-hero-p2p-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: min(62vh, 480px);
  max-height: min(62vh, 480px);
  min-height: 200px;
  background: var(--mp-bg-2);
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: mp-hero-p2p-modal-in .2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mp-hero-p2p-modal-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.mp-hero-p2p-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px 14px;
  border-bottom: 1px solid var(--mp-border);
  flex-shrink: 0;
}

.mp-hero-p2p-modal__title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--mp-heading);
  letter-spacing: -.01em;
}

.mp-hero-p2p-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mp-text-muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.mp-hero-p2p-modal__close:hover {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.35);
  color: #e74c3c;
}

.mp-hero-p2p-modal__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px;
  padding: 0 12px;
  height: 40px;
  border: 1px solid var(--mp-input-border);
  border-radius: 10px;
  background: var(--mp-input-bg);
  flex-shrink: 0;
}

.mp-hero-p2p-modal__search:focus-within {
  border-color: var(--mp-green);
}

.mp-hero-p2p-modal__search i {
  color: var(--mp-text-muted);
  font-size: .95rem;
  flex-shrink: 0;
}

.mp-hero-p2p-modal__search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mp-text);
  font-size: .88rem;
  outline: none;
  min-width: 0;
}

.mp-hero-p2p-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}

.mp-hero-p2p-modal__panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mp-hero-p2p-modal__panel[hidden] {
  display: none !important;
}

.mp-hero-p2p-modal__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 2px 6px 8px;
}

.mp-hero-p2p-modal__list .mp-hero-p2p-opt {
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .86rem;
}

.mp-hero-p2p-modal__list .mp-hero-p2p-opt-img,
.mp-hero-p2p-modal__list .mp-hero-p2p-opt-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: .68rem;
}

@media (max-width: 767px) {
  .mp-hero-p2p-grid { grid-template-columns: 1fr; }

  .mp-hero-p2p-toggle {
    align-self: stretch;
    width: 100%;
    justify-content: space-between;
  }

  .mp-hero-p2p-toggle-btn {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
    font-size: .8rem;
  }

  .mp-hero-p2p-toggle-btn i { display: none; }

  .mp-hero-p2p-modal {
    padding: 16px;
  }

  .mp-hero-p2p-modal__dialog {
    width: min(400px, 100%);
    height: min(70vh, 520px);
    max-height: min(70vh, 520px);
  }

  .mp-hero-p2p-modal__list .mp-hero-p2p-opt {
    padding: 11px 10px;
    min-height: 46px;
  }
}

@media (max-width: 575px) {
  .mp-hero-p2p-lead { font-size: .84rem; }
  .mp-hero-p2p-trigger { min-height: 48px; }
}

html[data-theme="light"] .mp-hero-p2p-toggle { background: rgba(0,0,0,.04); }
html[data-theme="light"] .mp-hero-p2p-trigger,
html[data-theme="light"] .mp-hero-p2p-amount-field { background: #fff; color: #1a2e1e; }
html[data-theme="light"] .mp-hero-p2p-modal__dialog { background: #fff; }
html[data-theme="light"] .mp-hero-p2p-modal__close { background: #f5f8f6; border-color: rgba(0,0,0,.1); }
html[data-theme="light"] .mp-hero-p2p-modal__search { background: #f5f8f6; }

.mp-widget .form-select,
.mp-widget .form-control {
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: var(--mp-radius-sm) !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  font-size: 0.9rem !important;
  padding: 13px 16px !important;
  transition: var(--mp-transition) !important;
  height: auto !important;
}

.mp-widget .form-select:focus,
.mp-widget .form-control:focus {
  border-color: var(--mp-green) !important;
  box-shadow: 0 0 0 3px var(--mp-green-glow) !important;
  outline: none !important;
}

.mp-widget .form-select option {
  background: var(--mp-bg-2);
  color: var(--mp-text);
}

body[data-theme="light"] .mp-widget .form-select option {
  background: #FFFFFF;
  color: #1C2E20;
}

.mp-widget-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--mp-green), #27A349);
  color: var(--mp-white);
  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 6px 24px var(--mp-green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mp-widget-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--mp-green-glow);
}

/* ─── Stats Bar ──────────────────────────────────────────────── */
.mp-stats {
  padding: 60px 0;
  position: relative;
}

.mp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--mp-border);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
}

.mp-stat-item {
  background: var(--mp-surface);
  padding: 32px 24px;
  text-align: center;
  transition: var(--mp-transition);
}

.mp-stat-item:hover {
  background: rgba(27,107,53,0.08);
}

.mp-stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.mp-stat-label {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Ticker / marquee ───────────────────────────────────────── */
.mp-ticker {
  background: var(--mp-bg-2);
  border-top: 1px solid var(--mp-border);
  border-bottom: 1px solid var(--mp-border);
  padding: 12px 0;
  overflow: hidden;
}

.mp-ticker-track {
  display: flex;
  gap: 40px;
  animation: mp-ticker 30s linear infinite;
  width: max-content;
}

.mp-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  white-space: nowrap;
}

.mp-ticker-item .up   { color: #2ECC71; }
.mp-ticker-item .down { color: #E74C3C; }

/* ─── Section common ─────────────────────────────────────────── */
.mp-section {
  padding: 100px 0;
  position: relative;
}

.mp-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.mp-section-header::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-green), var(--mp-gold));
  border-radius: 3px;
  margin: 16px auto 0;
  animation: mp-draw-line 1.5s ease forwards;
  animation-play-state: paused;
}

.mp-section-header.aos-animate::after {
  animation-play-state: running;
}

/* ─── Products Section ───────────────────────────────────────── */
.mp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mp-product-card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 28px 24px;
  transition: var(--mp-transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.mp-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,107,53,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: var(--mp-transition);
}

.mp-product-card:hover {
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.mp-product-card:hover::before {
  opacity: 1;
}

.mp-product-card .badge-hot {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mp-product-card .badge-best {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--mp-gold-dark), var(--mp-gold));
  color: #0A0A0A;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mp-product-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(27,107,53,0.3), rgba(27,107,53,0.1));
  border: 1px solid rgba(27,107,53,0.35);
  border-radius: var(--mp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--mp-green-light);
  transition: var(--mp-transition);
}

.mp-product-card:hover .mp-product-icon {
  background: linear-gradient(135deg, rgba(27,107,53,0.5), rgba(27,107,53,0.2));
  box-shadow: 0 0 20px var(--mp-green-glow);
}

.mp-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin-bottom: 8px;
}

.mp-product-desc {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Choose Us Section ──────────────────────────────────────── */
.mp-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mp-choose-card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border-green);
  border-radius: var(--mp-radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--mp-transition);
}

.mp-choose-card:hover {
  border-color: rgba(201,162,39,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.mp-choose-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--mp-radius-sm);
  overflow: hidden;
  background: rgba(27,107,53,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-choose-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(90deg);
  opacity: 0.8;
}

.mp-choose-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin-bottom: 8px;
}

.mp-choose-desc {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── How it works ───────────────────────────────────────────── */
.mp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.mp-steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100%/6);
  width: calc(100%*2/3);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mp-green), var(--mp-gold), var(--mp-green), transparent);
}

.mp-step-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  transition: var(--mp-transition);
  position: relative;
}

.mp-step-card:hover {
  border-color: var(--mp-border-green);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mp-step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--mp-green-dark), var(--mp-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mp-white);
  box-shadow: 0 8px 24px var(--mp-green-glow);
  position: relative;
  z-index: 1;
}

.mp-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin-bottom: 10px;
}

.mp-step-desc {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── Testimonials ───────────────────────────────────────────── */
.mp-testimonial-card {
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 28px;
  transition: var(--mp-transition);
}

.mp-testimonial-card:hover {
  border-color: rgba(201,162,39,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.mp-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.mp-stars i {
  color: var(--mp-gold);
  font-size: 0.9rem;
}

.mp-testimonial-text {
  font-size: 0.9rem;
  color: var(--mp-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.mp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-green-dark), var(--mp-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-white);
  flex-shrink: 0;
}

.mp-testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mp-heading);
}

.mp-testimonial-role {
  font-size: 0.78rem;
  color: var(--mp-text-muted);
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.mp-faq-item {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--mp-transition);
}

.mp-faq-item:hover {
  border-color: var(--mp-border-green);
}

.mp-faq-btn {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: var(--mp-surface-2);
  border: none;
  color: var(--mp-heading);
  font-family: var(--mp-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--mp-transition);
}

.mp-faq-btn:hover {
  background: rgba(27,107,53,0.12);
}

.mp-faq-btn::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--mp-gold);
  flex-shrink: 0;
  transition: var(--mp-transition);
}

.mp-faq-btn.open::after {
  transform: rotate(45deg);
  color: var(--mp-green-light);
}

.mp-faq-answer {
  display: none;
  padding: 0 24px 18px;
  background: var(--mp-glass);
  color: var(--mp-text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.mp-faq-answer.open {
  display: block;
}

/* ─── CTA Banner ─────────────────────────────────────────────── */
.mp-cta {
  background: linear-gradient(135deg, var(--mp-green-dark) 0%, var(--mp-green-mid) 50%, rgba(201,162,39,0.1) 100%);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mp-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mp-cta::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(27,107,53,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.mp-cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--mp-white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.mp-cta-subtitle {
  font-size: 1.05rem;
  color: rgba(232, 245, 236, 0.7);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ─── ══════════════ FOOTER ══════════════ ─────────────────── */
.mp-footer {
  background: var(--mp-surface);
  border-top: 1px solid var(--mp-border);
  position: relative;
}

.mp-footer-top {
  padding: 72px 0 48px;
}

.mp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.mp-footer-logo img {
  height: 40px;
  margin-bottom: 16px;
}

.mp-footer-desc {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.mp-footer-col-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mp-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.mp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-footer-links li a {
  font-size: 0.87rem;
  color: var(--mp-text-muted) !important;
  text-decoration: none;
  transition: var(--mp-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-footer-links li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mp-green);
  opacity: 0;
  transition: var(--mp-transition);
}

.mp-footer-links li a:hover {
  color: var(--mp-white) !important;
  padding-left: 8px;
}

.mp-footer-links li a:hover::before {
  opacity: 1;
}

.mp-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-footer-contact li a,
.mp-footer-contact-static {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  line-height: 1.5;
  text-decoration: none;
}

.mp-footer-contact-static {
  color: var(--mp-text-muted);
}

.mp-footer-contact li a[href^="mailto:"],
.mp-footer-contact li a[href^="tel:"] {
  color: var(--mp-gold-light) !important;
}

.mp-footer-contact li a[href^="mailto:"]:hover,
.mp-footer-contact li a[href^="tel:"]:hover {
  color: var(--mp-gold) !important;
}

.mp-footer-contact li a[href^="mailto:"] i,
.mp-footer-contact li a[href^="tel:"] i,
.mp-footer-contact-static i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.mp-footer-contact-static i {
  color: var(--mp-gold);
}

.mp-social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mp-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--mp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-text-muted) !important;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--mp-transition);
}

.mp-social-link:hover {
  background: var(--mp-green);
  border-color: var(--mp-green);
  color: var(--mp-white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--mp-green-glow);
}

.mp-copyright {
  font-size: 0.83rem;
  color: var(--mp-text-muted);
}

.mp-copyright a {
  color: var(--mp-green-light) !important;
  text-decoration: none;
}

.mp-policy-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.mp-policy-links a {
  font-size: 0.83rem;
  color: var(--mp-text-muted) !important;
  text-decoration: none;
  transition: var(--mp-transition);
}

.mp-policy-links a:hover {
  color: var(--mp-white) !important;
}

/* ─── ══════════════ AUTH PAGES ══════════════ ─────────────── */
.mp-auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--mp-bg);
}

.mp-auth-left {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 20% 20%, rgba(27,107,53,0.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(201,162,39,0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--mp-green-dark) 0%, var(--mp-bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.mp-auth-left .mp-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.mp-auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mp-auth-brand {
  margin-bottom: 48px;
}

.mp-auth-brand img {
  height: 52px;
  filter: drop-shadow(0 0 20px rgba(27,107,53,0.5));
}

.mp-auth-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--mp-white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.mp-auth-headline .gold {
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mp-auth-tagline {
  font-size: 1rem;
  color: rgba(232, 245, 236, 0.65);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 40px;
}

.mp-auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
  margin: 0 auto;
}

.mp-auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.mp-auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--mp-radius-sm);
  background: rgba(27,107,53,0.2);
  border: 1px solid rgba(27,107,53,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.mp-auth-feature-text {
  font-size: 0.88rem;
  color: rgba(232, 245, 236, 0.75);
  line-height: 1.4;
}

.mp-auth-floating-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mp-floating-coin {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(201,162,39,0.5);
  animation: mp-float var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Auth Right (form panel) */
.mp-auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--mp-bg);
  overflow-y: auto;
  transition: background-color 0.3s ease;
}

.mp-auth-form-box {
  width: 100%;
  max-width: 440px;
}

.mp-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--mp-text-muted) !important;
  text-decoration: none;
  margin-bottom: 32px;
  transition: var(--mp-transition);
}

.mp-auth-back:hover {
  color: var(--mp-white) !important;
  gap: 10px;
  text-decoration: none;
}

.mp-auth-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--mp-heading);
  margin-bottom: 6px;
}

.mp-auth-subtitle {
  font-size: 0.9rem;
  color: var(--mp-text-muted);
  margin-bottom: 32px;
}

.mp-auth-form .form-group,
.mp-auth-form .mp-form-group {
  margin-bottom: 18px;
}

.mp-auth-form label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--mp-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px !important;
  display: block;
}

.mp-auth-form .form-control,
.mp-auth-form input[type=text],
.mp-auth-form input[type=email],
.mp-auth-form input[type=password] {
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: var(--mp-radius-sm) !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  font-size: 0.95rem !important;
  padding: 13px 16px !important;
  transition: var(--mp-transition) !important;
  height: auto !important;
  width: 100%;
}

.mp-auth-form .form-control::placeholder,
.mp-auth-form input::placeholder {
  color: rgba(122,155,130,0.5) !important;
}

.mp-auth-form .form-control:focus,
.mp-auth-form input:focus {
  border-color: var(--mp-green) !important;
  box-shadow: 0 0 0 3px var(--mp-green-glow) !important;
  outline: none !important;
  background: var(--mp-input-bg) !important;
}

/* Field hints & password helpers */
.mp-form-hint {
  margin: 3px 0 0;
  font-size: 0.58rem;
  line-height: 1.3;
  color: var(--mp-text-muted);
  letter-spacing: 0.01em;
}

.mp-form-hint.is-valid {
  color: #28c76f;
}

.mp-form-hint.is-invalid {
  color: #ea5455;
}

.mp-input-wrap {
  position: relative;
}

.mp-input-wrap .form-control,
.mp-input-wrap input {
  padding-right: 46px !important;
}

.mp-input-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--mp-text-muted);
  cursor: pointer;
  transition: var(--mp-transition);
}

.mp-input-toggle:hover {
  color: var(--mp-gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.mp-password-rules {
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 8px 10px;
  background: rgba(27, 107, 53, 0.08);
  border: 1px solid rgba(27, 107, 53, 0.22);
  border-radius: var(--mp-radius-sm);
}

.mp-password-rules__title {
  margin: 0 0 4px;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-text-muted);
}

.mp-password-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 16px;
}

@media (max-width: 575px) {
  .mp-password-rules__list {
    grid-template-columns: 1fr;
  }
}

.mp-password-rule {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  color: rgba(122, 155, 130, 0.85);
  transition: color 0.2s ease;
}

.mp-password-rule i {
  font-size: 0.6rem;
  flex-shrink: 0;
}

.mp-password-rule.is-valid {
  color: #28c76f;
}

.mp-password-rule.is-invalid {
  color: rgba(234, 84, 85, 0.85);
}

body[data-theme="light"] .mp-password-rules {
  background: rgba(27, 107, 53, 0.06);
  border-color: rgba(27, 107, 53, 0.18);
}

body[data-theme="light"] .mp-password-rule {
  color: rgba(60, 90, 68, 0.85);
}

.mp-auth-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--mp-green), #27A349);
  color: var(--mp-white) !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 6px 24px var(--mp-green-glow);
  margin-top: 8px;
}

.mp-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--mp-green-glow);
}

.mp-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--mp-text-muted);
  font-size: 0.82rem;
}

.mp-auth-divider::before,
.mp-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.mp-auth-social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.mp-auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-text-muted) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--mp-transition);
}

.mp-auth-social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--mp-white) !important;
  text-decoration: none;
}

.mp-auth-link {
  font-size: 0.88rem;
  color: var(--mp-text-muted);
  margin-top: 20px;
  text-align: center;
}

.mp-auth-link a {
  color: var(--mp-gold-light) !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--mp-transition);
}

.mp-auth-link a:hover {
  color: var(--mp-gold) !important;
  text-decoration: underline;
}

/* Checkbox custom */
.mp-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.mp-checkbox-wrap input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mp-green);
  flex-shrink: 0;
  cursor: pointer;
}

.mp-checkbox-label {
  font-size: 0.85rem !important;
  color: var(--mp-text-muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  line-height: 1.5;
}

.mp-checkbox-label a {
  color: var(--mp-gold-light) !important;
  text-decoration: none;
}

.mp-checkbox-label a:hover {
  text-decoration: underline;
}

/* ─── Subscribe ──────────────────────────────────────────────── */
.mp-subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.mp-subscribe-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(6, 14, 8, 0.9);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-white);
  font-family: var(--mp-font);
  font-size: 0.95rem;
}

.mp-subscribe-input:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px var(--mp-green-glow);
}

/* ─── Scroll to top ──────────────────────────────────────────── */
.mp-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--mp-green);
  border-radius: var(--mp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--mp-transition);
  box-shadow: 0 8px 24px var(--mp-green-glow);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}

.mp-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.mp-scroll-top:hover {
  background: var(--mp-gold);
  box-shadow: 0 8px 24px var(--mp-gold-glow);
  transform: translateY(-3px);
}

/* ─── Preloader ──────────────────────────────────────────────── */
.mp-preloader {
  position: fixed;
  inset: 0;
  background: var(--mp-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mp-preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.mp-preloader-logo {
  animation: mp-float 2s ease-in-out infinite;
}

.mp-preloader-logo img {
  height: 60px;
}

.mp-preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  margin-top: 24px;
  overflow: hidden;
}

.mp-preloader-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mp-green), var(--mp-gold));
  border-radius: 3px;
  animation: mp-shimmer 1.5s ease infinite;
  background-size: 200% auto;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .mp-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  :root { --mp-header-offset: 72px; }

  .mp-hero-title { font-size: clamp(1.75rem, 5vw, 2.6rem); }
  .mp-hero-title .line-gold { font-size: clamp(1.5rem, 9vw, 2.5rem); }
  .mp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-choose-grid { grid-template-columns: 1fr; }
  .mp-steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .mp-steps-grid::before { display: none; }
  .mp-cta { padding: 60px 30px; }
  .mp-auth-wrapper { grid-template-columns: 1fr; }
  .mp-auth-left { display: none; }
  .mp-auth-right { padding: 40px 24px; }
  .mp-hamburger {
    display: flex;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 1002;
    flex-shrink: 0;
  }

  /* Header au-dessus de l'overlay quand le drawer est ouvert */
  .mp-header.mobile-open {
    z-index: 1200;
  }

  /* Masquer la barre header quand le drawer est ouvert (évite le chevauchement) */
  .mp-header.mobile-open .mp-header-inner > *:not(.mp-nav) {
    display: none !important;
  }

  .mp-header.mobile-open .mp-header-inner {
    padding: 0;
    min-height: 0;
  }

  /* Optimisation du header mobile pour afficher tous les éléments */
  .mp-header-inner {
    padding: 14px 0;
    gap: 8px;
    min-height: calc(env(safe-area-inset-top, 0px) + 96px);
  }

  /* Réduire la taille du bouton theme */
  .mp-theme-btn {
    width: 46px;
    height: 24px;
  }

  .mp-theme-track {
    width: 46px;
    height: 24px;
  }

  .mp-theme-thumb {
    width: 18px;
    height: 18px;
  }

  .mp-theme-track i {
    font-size: 0.75rem;
  }

  /* Optimiser le bouton de langue */
  .mp-lang-btn {
    padding: 5px 8px;
    gap: 4px;
    font-size: 0.75rem;
  }

  .mp-lang-btn img {
    width: 16px;
    height: 16px;
  }

  .mp-lang-btn .language_text_select {
    display: none; /* Masquer le texte, garder juste le drapeau et la flèche */
  }

  /* Optimiser les boutons d'action sur mobile */
  .mp-nav-right {
    gap: 6px;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 1002;
    flex-shrink: 0;
  }

  .mp-nav-right .mp-btn-gold,
  .mp-nav-right .mp-btn-outline {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  /* Logo en haut sur mobile - pleine largeur, au-dessus des boutons */
  .mp-header-inner {
    flex-wrap: wrap;
  }

  .mp-logo--header {
    width: 100%;
    text-align: center;
    order: -1;
    padding: 10px 0 6px;
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 1001;
  }

  .mp-logo--header img {
    max-height: 36px;
    width: auto;
  }

  .mp-header.scrolled .mp-logo--header {
    background: var(--mp-overlay);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--mp-border);
  }

  /* Cacher la nav desktop sur mobile */
  .mp-nav { display: none; }
  
  /* Les boutons auth restent visibles mais optimisés */
  .mp-nav-right .mp-btn-primary {
    display: none; /* Cacher Dashboard sur mobile */
  }

  .mp-nav-right .mp-btn-outline,
  .mp-nav-right .mp-btn-gold {
    display: inline-flex !important;
  }

  /* Afficher le header et les icônes en mode mobile */
  .mp-header.mobile-open .mp-drawer-header {
    display: flex;
  }

  .mp-header.mobile-open .mp-nav-icon {
    display: flex;
  }

  /* ===== Drawer coulissant depuis la gauche - VERSION PROFESSIONNELLE ===== */
  .mp-header.mobile-open .mp-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 88vw);
    max-width: 88vw;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--mp-drawer-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 2px solid var(--mp-gold, #d4af37);
    box-shadow: var(--mp-drawer-shadow);
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1200;
    pointer-events: auto;
    transform: none;
    animation: mp-drawer-slide-in 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes mp-drawer-slide-in {
    from { left: calc(-1 * min(340px, 88vw)); }
    to { left: 0; }
  }

  /* Scrollbar personnalisée pour le drawer */
  .mp-header.mobile-open .mp-nav::-webkit-scrollbar {
    width: 4px;
  }
  .mp-header.mobile-open .mp-nav::-webkit-scrollbar-track {
    background: var(--mp-drawer-scrollbar-track);
  }
  .mp-header.mobile-open .mp-nav::-webkit-scrollbar-thumb {
    background: var(--mp-gold, #d4af37);
    border-radius: 4px;
  }

  /* Header du drawer avec logo */
  .mp-drawer-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--mp-drawer-header-bg);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    box-shadow: var(--mp-drawer-header-shadow);
  }

  .mp-drawer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mp-drawer-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
  }

  /* Bouton de fermeture moderne */
  .mp-drawer-close {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.06) 100%);
    color: var(--mp-gold, #d4af37);
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
  }
  .mp-drawer-close:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    border-color: var(--mp-gold, #d4af37);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  }
  .mp-drawer-close i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
  }
  .mp-drawer-close:hover i {
    transform: rotate(90deg);
  }

  /* Séparateur après le header */
  .mp-drawer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.3) 50%, transparent 100%);
    margin: 0;
  }

  /* Container des items de menu */
  .mp-header.mobile-open .mp-nav > li {
    width: 100%;
  }

  /* Premier item sans marge supplémentaire car header sticky */
  .mp-header.mobile-open .mp-nav > li:first-child > a {
    margin-top: 0;
  }

  /* Items de menu avec icônes */
  .mp-header.mobile-open .mp-nav > li > a {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--mp-text) !important;
    border-bottom: 1px solid var(--mp-drawer-item-border);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
  }

  /* Effet de survol moderne */
  .mp-header.mobile-open .mp-nav > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--mp-gold, #d4af37);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    pointer-events: none;
  }

  .mp-header.mobile-open .mp-nav > li > a:hover::before,
  .mp-header.mobile-open .mp-nav > li.active > a::before {
    transform: scaleY(1);
  }

  .mp-header.mobile-open .mp-nav > li > a:hover {
    background: var(--mp-drawer-hover-bg);
    color: var(--mp-gold, #d4af37) !important;
    padding-left: 28px;
  }

  .mp-header.mobile-open .mp-nav > li.active > a {
    background: var(--mp-drawer-active-bg);
    color: var(--mp-gold, #d4af37) !important;
    font-weight: 600;
  }

  /* Icônes des items de menu */
  .mp-nav-icon {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-gold, #d4af37);
    opacity: 0.8;
    transition: all 0.2s ease;
  }

  .mp-header.mobile-open .mp-nav > li > a:hover .mp-nav-icon {
    opacity: 1;
    transform: scale(1.1);
  }

  /* Dropdown interne en mobile */
  .mp-header.mobile-open .mp-nav > li.menu_has_children .mp-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--mp-drawer-dropdown-bg);
    margin: 0;
    padding: 8px 0;
    min-width: 0;
    width: 100%;
    border-radius: 0;
    border-left: 3px solid rgba(212, 175, 55, 0.3);
    display: none; /* Masqué par défaut */
  }

  .mp-header.mobile-open .mp-nav > li.menu_has_children.open .mp-dropdown {
    display: block; /* Visible quand ouvert */
  }

  .mp-header.mobile-open .mp-nav > li.menu_has_children .mp-dropdown li a {
    padding: 12px 24px 12px 44px;
    font-size: 0.92rem;
    color: var(--mp-text-muted) !important;
    border-bottom: 1px solid var(--mp-drawer-dropdown-item-border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
  }

  .mp-header.mobile-open .mp-nav > li.menu_has_children .mp-dropdown li a:hover {
    color: var(--mp-gold, #d4af37) !important;
    background: rgba(212, 175, 55, 0.08);
    padding-left: 48px;
  }

  .mp-header.mobile-open .mp-nav > li.menu_has_children .mp-dropdown li a i {
    font-size: 1rem;
    opacity: 0.7;
  }

  /* Indicateur dropdown */
  .mp-header.mobile-open .mp-nav > li.menu_has_children > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--mp-gold, #d4af37);
    border-bottom: 2px solid var(--mp-gold, #d4af37);
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform 0.25s ease;
    opacity: 0.7;
  }

  .mp-header.mobile-open .mp-nav > li.menu_has_children.open > a::after {
    transform: rotate(-135deg);
  }

  /* Hamburger → croix (l'icône du header se transforme aussi) */
  .mp-header.mobile-open .mp-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mp-header.mobile-open .mp-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .mp-header.mobile-open .mp-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===== Overlay backdrop ===== */
.mp-drawer-overlay {
  display: none;
}
@media (max-width: 991px) {
  body.mp-drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
  }

  body.mp-drawer-open .mp-header.mobile-open .mp-nav {
    touch-action: pan-y;
  }

  body.mp-drawer-open .mp-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--mp-drawer-overlay-bg);
    z-index: 1050;
    cursor: pointer;
    animation: mp-fade-in 0.2s ease;
  }
}

@keyframes mp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  .mp-section { padding: 64px 0; }
  .mp-products-grid { grid-template-columns: 1fr; }
  .mp-widget { padding: 20px; }
  .mp-footer-top { padding: 48px 0 32px; }
  .mp-policy-links { justify-content: flex-start; }
  .mp-subscribe-form { flex-direction: column; }
  .mp-hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
  .mp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-auth-right { padding: 30px 20px; }

  /* Optimisation supplémentaire du header pour très petits écrans */
  .mp-header-inner {
    padding: 12px 0;
    gap: 6px;
  }

  .mp-logo--header img {
    max-height: 32px;
  }

  .mp-theme-btn {
    width: 42px;
    height: 22px;
  }

  .mp-theme-track {
    width: 42px;
    height: 22px;
  }

  .mp-theme-thumb {
    width: 16px;
    height: 16px;
  }

  .mp-lang-btn {
    padding: 4px 6px;
  }

  .mp-lang-btn i {
    font-size: 0.7rem;
  }

  .mp-nav-right {
    gap: 4px;
  }

  .mp-nav-right .mp-btn-gold {
    padding: 7px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* ─── Dark mode overrides (existing system) ─────────────────── */
[data-theme="dark"] .mp-card { background: var(--mp-bg-card); }

/* ─── Social Login overrides ─────────────────────────────────── */
.mp-auth-wrapper .social-login-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: var(--mp-radius-sm) !important;
  color: var(--mp-text-muted) !important;
  font-family: var(--mp-font) !important;
  font-size: 0.88rem !important;
  padding: 12px 16px !important;
  transition: var(--mp-transition) !important;
}

.mp-auth-wrapper .social-login-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: var(--mp-white) !important;
}

.mp-auth-wrapper .social-auth {
  gap: 10px !important;
}

.mp-auth-wrapper .auth-devide {
  color: var(--mp-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-block: 16px !important;
}

.mp-auth-wrapper .auth-devide::after {
  background: rgba(255,255,255,0.06) !important;
}

.mp-auth-wrapper .auth-devide span {
  background: var(--mp-bg) !important;
  padding-inline: 12px !important;
}

/* Hero social buttons (on homepage) */
.mp-social-btns .social-login-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 100px !important;
  color: var(--mp-text-muted) !important;
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
}

.mp-social-btns .social-auth {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.mp-social-btns .auth-devide { display: none !important; }

/* ─── Fix existing classes ───────────────────────────────────── */
.btn--base {
  background: linear-gradient(135deg, var(--mp-green), #27A349) !important;
  color: var(--mp-white) !important;
  border-radius: 100px !important;
  font-family: var(--mp-font) !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border: none !important;
  transition: var(--mp-transition) !important;
  box-shadow: 0 4px 16px var(--mp-green-glow) !important;
}

.btn--base:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px var(--mp-green-glow) !important;
  color: var(--mp-white) !important;
}

/* Preloader override */
.preloader {
  background: var(--mp-bg) !important;
}

.preloader .animated-preloader {
  border-color: rgba(27,107,53,0.3) !important;
  border-top-color: var(--mp-green) !important;
}

/* ─── Page wrapper ───────────────────────────────────────────── */
.page-wrapper {
  background: var(--mp-bg) !important;
  transition: background-color 0.3s ease !important;
}

/* Auth pages: full viewport */
.mp-auth-wrapper {
  min-height: 100dvh;
  min-height: 100vh;
}

/* Cookies card dark theme */
.cookies-card {
  background: var(--mp-bg-3) !important;
  border: 1px solid var(--mp-border) !important;
  color: var(--mp-text) !important;
}

/* Select2 theme-aware override for the trade widget */
.mp-widget .select2-container--default .select2-selection--single {
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: var(--mp-radius-sm) !important;
  height: 50px !important;
}

.mp-widget .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--mp-text) !important;
  line-height: 50px !important;
  font-family: var(--mp-font) !important;
}

.mp-widget .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px !important;
}

/* ════════════════════════════════════════════════════════
   OVERRIDES MODE CLAIR — body[data-theme="light"]
   ════════════════════════════════════════════════════════ */

/* ── Header ── */
body[data-theme="light"] .mp-header.scrolled {
  box-shadow: 0 4px 24px rgba(27,107,53,0.08) !important;
  border-bottom-color: rgba(27,107,53,0.12) !important;
}
body[data-theme="light"] .mp-nav > li > a {
  color: #4B6A52 !important;
}
body[data-theme="light"] .mp-nav > li > a:hover,
body[data-theme="light"] .mp-nav > li.active > a {
  color: #0D1F10 !important;
  background: rgba(27,107,53,0.08);
}
body[data-theme="light"] .mp-hamburger span,
html[data-theme="light"] .mp-hamburger span { background: #1C2E20; }

/* Menu hamburger mobile — thème clair */
body[data-theme="light"] .mp-header.mobile-open .mp-nav > li > a:hover,
body[data-theme="light"] .mp-header.mobile-open .mp-nav > li.active > a,
html[data-theme="light"] .mp-header.mobile-open .mp-nav > li > a:hover,
html[data-theme="light"] .mp-header.mobile-open .mp-nav > li.active > a {
  color: var(--mp-green) !important;
}

body[data-theme="light"] .mp-header.mobile-open .mp-nav > li.menu_has_children .mp-dropdown li a:hover,
html[data-theme="light"] .mp-header.mobile-open .mp-nav > li.menu_has_children .mp-dropdown li a:hover {
  color: var(--mp-green) !important;
  background: rgba(27, 107, 53, 0.08);
}

body[data-theme="light"] .mp-drawer-close,
html[data-theme="light"] .mp-drawer-close {
  border-color: rgba(27, 107, 53, 0.35);
  background: linear-gradient(135deg, rgba(27, 107, 53, 0.08) 0%, rgba(27, 107, 53, 0.04) 100%);
  color: var(--mp-green);
  box-shadow: 0 2px 8px rgba(27, 107, 53, 0.1);
}

body[data-theme="light"] .mp-drawer-close:hover,
html[data-theme="light"] .mp-drawer-close:hover {
  background: linear-gradient(135deg, rgba(27, 107, 53, 0.16) 0%, rgba(27, 107, 53, 0.08) 100%);
  border-color: var(--mp-green);
  box-shadow: 0 4px 16px rgba(27, 107, 53, 0.15);
}

body[data-theme="light"] .mp-header.scrolled .mp-logo--header,
html[data-theme="light"] .mp-header.scrolled .mp-logo--header {
  background: var(--mp-overlay);
  border-bottom-color: var(--mp-border);
}

body[data-theme="light"] .mp-lang-btn {
  color: #4B6A52 !important;
  background: rgba(27,107,53,0.06);
  border-color: rgba(27,107,53,0.15);
}
body[data-theme="light"] .mp-btn-outline {
  color: #1C2E20 !important;
  border-color: rgba(27,107,53,0.25);
}
body[data-theme="light"] .mp-dropdown {
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
body[data-theme="light"] .mp-dropdown li a { color: #4B6A52 !important; }
body[data-theme="light"] .mp-dropdown li a:hover { color: #0D1F10 !important; }

/* ── Hero ── */
body[data-theme="light"] .mp-hero-subtitle { color: #4B6A52; }
body[data-theme="light"] .mp-hero-or { color: #4B6A52; }
body[data-theme="light"] .mp-hero-or::before,
body[data-theme="light"] .mp-hero-or::after { background: rgba(27,107,53,0.15); }
body[data-theme="light"] .mp-social-btn {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(27,107,53,0.2) !important;
  color: #4B6A52 !important;
}
body[data-theme="light"] .mp-social-btn:hover {
  background: #FFFFFF !important;
  border-color: var(--mp-green) !important;
  color: #0D1F10 !important;
}
body[data-theme="light"] .mp-app-btn {
  background: rgba(255,255,255,0.9);
  border-color: rgba(27,107,53,0.2);
}
body[data-theme="light"] .mp-app-btn-label span:last-child { color: #0D1F10; }
body[data-theme="light"] .mp-hero-orb-1 { opacity: 0.4; }
body[data-theme="light"] .mp-hero-orb-2 { opacity: 0.3; }
body[data-theme="light"] .mp-grid-overlay {
  background-image:
    linear-gradient(rgba(27,107,53,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,107,53,0.07) 1px, transparent 1px);
}

/* ── Widget ── */
body[data-theme="light"] .mp-widget {
  box-shadow: 0 24px 60px rgba(0,0,0,0.10), 0 0 0 1px rgba(27,107,53,0.08);
}
body[data-theme="light"] .mp-tab-nav { background: rgba(27,107,53,0.07); }
body[data-theme="light"] .mp-tab-btn { color: #4B6A52; }
body[data-theme="light"] .mp-tab-btn.active {
  background: var(--mp-gold, #c9a227);
  color: #0d1810;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}
html[data-theme="light"] .mp-tab-btn { color: #4B6A52; }
html[data-theme="light"] .mp-tab-btn.active {
  background: var(--mp-gold, #c9a227);
  color: #0d1810;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}
body[data-theme="light"] .mp-buysell-toggle {
  background: rgba(27,107,53,0.07);
  border-color: rgba(27,107,53,0.15);
}
body[data-theme="light"] .mp-buysell-toggle label { color: #4B6A52; }

/* ── Stats ── */
body[data-theme="light"] .mp-stats-grid { background: rgba(27,107,53,0.12); }
body[data-theme="light"] .mp-stat-item:hover { background: rgba(27,107,53,0.05); }
body[data-theme="light"] .mp-stat-label { color: #4B6A52; }

/* ── Sections textes ── */
body[data-theme="light"] .mp-section-subtitle { color: #4B6A52; }

/* ── Products ── */
body[data-theme="light"] .mp-product-card { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
body[data-theme="light"] .mp-product-card:hover {
  box-shadow: 0 16px 40px rgba(27,107,53,0.12);
  border-color: rgba(27,107,53,0.3);
}
body[data-theme="light"] .mp-product-desc { color: #4B6A52; }
body[data-theme="light"] .mp-product-icon {
  background: rgba(27,107,53,0.08);
  border-color: rgba(27,107,53,0.2);
}
body[data-theme="light"] .mp-product-icon i { color: var(--mp-green); }

/* ── Choose us ── */
body[data-theme="light"] .mp-choose-card { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body[data-theme="light"] .mp-choose-card:hover {
  box-shadow: 0 12px 32px rgba(27,107,53,0.12);
  border-color: rgba(27,107,53,0.3);
}
body[data-theme="light"] .mp-choose-desc { color: #4B6A52; }

/* ── Steps ── */
body[data-theme="light"] .mp-steps-grid::before { opacity: 0.5; }
body[data-theme="light"] .mp-step-desc { color: #4B6A52; }

/* ── Testimonials ── */
body[data-theme="light"] .mp-testimonial-text { color: #4B6A52; }
body[data-theme="light"] .mp-testimonial-role { color: #7A9B82; }

/* ── FAQ ── */
body[data-theme="light"] .mp-faq-btn:hover { background: rgba(27,107,53,0.07); }
body[data-theme="light"] .mp-faq-answer { color: #4B6A52; }

/* ── CTA ── */
body[data-theme="light"] .mp-cta {
  background: linear-gradient(135deg, #D4ECDC 0%, #C8E8D2 50%, rgba(201,162,39,0.06) 100%);
  border-color: rgba(27,107,53,0.2);
}
body[data-theme="light"] .mp-cta-subtitle { color: #4B6A52; }
body[data-theme="light"] .mp-cta-title { color: #0D1F10; }

/* ── Footer ── */
body[data-theme="light"] .mp-footer { border-color: rgba(27,107,53,0.12); }
body[data-theme="light"] .mp-footer-bottom { border-color: rgba(27,107,53,0.08); }
body[data-theme="light"] .mp-footer-desc { color: #4B6A52; }
body[data-theme="light"] .mp-footer-links li a { color: #4B6A52 !important; }
body[data-theme="light"] .mp-footer-links li a:hover { color: #0D1F10 !important; }
body[data-theme="light"] .mp-copyright { color: #4B6A52; }
body[data-theme="light"] .mp-policy-links a { color: #4B6A52 !important; }
body[data-theme="light"] .mp-policy-links a:hover { color: #0D1F10 !important; }
body[data-theme="light"] .mp-social-link {
  background: rgba(27,107,53,0.06);
  border-color: rgba(27,107,53,0.15);
  color: #4B6A52 !important;
}

/* ── Auth pages ── */
/* Panneau gauche : reste TOUJOURS sombre (branding) */
body[data-theme="light"] .mp-auth-left {
  background:
    radial-gradient(ellipse 80% 80% at 20% 20%, rgba(27,107,53,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(201,162,39,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0F3D1E 0%, #1B6B35 100%) !important;
}
/* Panneau droit */
body[data-theme="light"] .mp-auth-right { background: #F2F8F4; }
body[data-theme="light"] .mp-auth-subtitle { color: #4B6A52; }
body[data-theme="light"] .mp-auth-back { color: #4B6A52 !important; }
body[data-theme="light"] .mp-auth-divider { color: #4B6A52; }
body[data-theme="light"] .mp-auth-divider::before,
body[data-theme="light"] .mp-auth-divider::after { background: rgba(27,107,53,0.12); }
body[data-theme="light"] .mp-auth-link { color: #4B6A52; }
body[data-theme="light"] .mp-checkbox-label { color: #4B6A52 !important; }
body[data-theme="light"] .mp-auth-wrapper .social-login-btn {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(27,107,53,0.2) !important;
  color: #4B6A52 !important;
}
body[data-theme="light"] .mp-auth-wrapper .auth-devide::after {
  background: rgba(27,107,53,0.12) !important;
}
body[data-theme="light"] .mp-auth-wrapper .auth-devide span {
  background: #F2F8F4 !important;
  color: #4B6A52;
}
body[data-theme="light"] .mp-auth-wrapper .modal-content {
  background: #FFFFFF !important;
  border-color: rgba(27,107,53,0.15) !important;
}

/* ── Cookies ── */
body[data-theme="light"] .cookies-card {
  background: #FFFFFF !important;
  border-color: rgba(27,107,53,0.15) !important;
  color: #1C2E20 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* ── Preloader ── */
body[data-theme="light"] .mp-preloader { background: #F2F8F4; }

/* ── Boutons ghost ── */
body[data-theme="light"] .mp-btn-ghost { color: #4B6A52 !important; }
body[data-theme="light"] .mp-btn-ghost:hover {
  color: #0D1F10 !important;
  background: rgba(27,107,53,0.07);
}

/* ── existing main.css classes override en light ── */
body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] h6 {
  color: #0D1F10 !important;
}
body[data-theme="light"] p:not([style]) { color: #4B6A52; }

/* ── Alias html[data-theme] — propagation vers les composants ── */
html[data-theme="dark"]  body { background-color: #060E08 !important; color: #E8F5EC !important; }
html[data-theme="light"] body { background-color: #F2F8F4 !important; color: #1C2E20 !important; }

html[data-theme="light"] .page-wrapper { background: #F2F8F4 !important; }
html[data-theme="light"] .mp-hero { background: radial-gradient(ellipse 90% 70% at 15% 5%, rgba(27,107,53,0.08) 0%, transparent 55%), radial-gradient(ellipse 70% 90% at 85% 95%, rgba(201,162,39,0.05) 0%, transparent 55%), #F2F8F4 !important; }
html[data-theme="light"] .mp-hero-title   { color: #0D1F10; }
html[data-theme="light"] .mp-section-title { color: #0D1F10; }
html[data-theme="light"] .mp-heading       { color: #0D1F10; }
html[data-theme="light"] .mp-widget        { background: rgba(255,255,255,0.97) !important; }
html[data-theme="light"] .mp-product-card  { background: rgba(240,248,244,0.9) !important; }
html[data-theme="light"] .mp-choose-card   { background: rgba(255,255,255,0.97) !important; }
html[data-theme="light"] .mp-step-card     { background: rgba(255,255,255,0.9) !important; }
html[data-theme="light"] .mp-testimonial-card { background: rgba(255,255,255,0.97) !important; }
html[data-theme="light"] .mp-stat-item     { background: #FFFFFF !important; }
html[data-theme="light"] .mp-footer        { background: rgba(255,255,255,0.97) !important; }
html[data-theme="light"] .mp-auth-right    { background: #F2F8F4 !important; }
html[data-theme="light"] .mp-dropdown      { background: #FFFFFF !important; }
html[data-theme="light"] h1, html[data-theme="light"] h2,
html[data-theme="light"] h3, html[data-theme="light"] h4,
html[data-theme="light"] h5, html[data-theme="light"] h6 { color: #0D1F10 !important; }

/* ── Transitions globales pour smooth theming ── */
.mp-header, .mp-footer, .mp-hero, .mp-widget,
.mp-product-card, .mp-choose-card, .mp-step-card,
.mp-testimonial-card, .mp-faq-item, .mp-faq-btn,
.mp-stat-item, .mp-auth-right, .mp-auth-left,
.mp-dropdown, .page-wrapper {
  transition:
    background-color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* ══════════════════════════════════════════════════════════════
   MAPAYER — Dashboard layout complet (sidebar + main)
   ══════════════════════════════════════════════════════════════ */

/* ── Wrapper global ── */
.mp-dashboard-wrap {
  display: flex !important;
  width: 100%;
  min-height: 100vh;
  background: var(--mp-bg);
  position: relative;
  align-items: stretch;
}

/* ══ SIDEBAR ══════════════════════════════════════════════════ */
.mp-dash-sidebar {
  width: 270px;
  min-width: 270px;
  background: var(--mp-bg-2);
  border-right: 1px solid var(--mp-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--mp-border) transparent;
  z-index: 100;
}
.mp-dash-sidebar::-webkit-scrollbar { width: 4px; }
.mp-dash-sidebar::-webkit-scrollbar-thumb { background: var(--mp-border); border-radius: 4px; }

/* Avatar */
.mp-dash-profile {
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
}
.mp-dash-avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--mp-green), var(--mp-gold));
  box-shadow: 0 0 24px var(--mp-green-glow);
  animation: mp-pulse-green 3s ease-in-out infinite;
}
.mp-dash-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--mp-bg-2);
}
.mp-dash-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 0;
}
.mp-dash-since {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
}
.mp-dash-user-info { text-align: center; }

/* Badge */
.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mp-badge--green {
  background: rgba(27,107,53,0.2);
  border: 1px solid rgba(27,107,53,0.4);
  color: #4ade80;
}

/* Divider */
.mp-dash-divider {
  height: 1px;
  margin: 0 20px;
  background: linear-gradient(90deg, transparent, var(--mp-border), transparent);
}

/* Navigation */
.mp-dash-nav {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 2px;
  flex: 1;
}
.mp-dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--mp-radius-sm);
  color: var(--mp-text-muted);
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--mp-transition);
  position: relative;
  border: 1px solid transparent;
  cursor: pointer;
}
.mp-dash-nav-item:hover {
  background: var(--mp-glass);
  color: var(--mp-text);
  text-decoration: none !important;
}
.mp-dash-nav-item.active {
  background: linear-gradient(135deg, rgba(27,107,53,0.25), rgba(201,162,39,0.1));
  color: var(--mp-heading);
  border-color: var(--mp-border-green);
  box-shadow: 0 2px 12px var(--mp-green-glow);
}
.mp-dash-nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-glass);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--mp-transition);
}
.mp-dash-nav-item.active .mp-dash-nav-icon {
  background: linear-gradient(135deg, var(--mp-green), #24963E);
  color: #fff;
  box-shadow: 0 4px 12px var(--mp-green-glow);
}
.mp-dash-nav-label { flex: 1; }
.mp-dash-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mp-gold);
  box-shadow: 0 0 6px var(--mp-gold-glow);
  animation: mp-pulse-green 2s ease-in-out infinite;
}
.mp-dash-nav-count {
  background: var(--mp-gold);
  color: #0A0A0A;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}
.mp-dash-nav-sep {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mp-text-muted);
  padding: 14px 14px 6px;
}
.mp-dash-nav-logout { color: #f87171 !important; margin-top: 8px; }
.mp-dash-nav-logout:hover { background: rgba(239,68,68,0.12) !important; color: #f87171 !important; }
.mp-dash-nav-logout .mp-dash-nav-icon { background: rgba(239,68,68,0.12); }

/* Vérifications */
.mp-dash-verif-box {
  margin: 12px 16px 20px;
  padding: 14px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
}
.mp-dash-verif-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mp-text-muted);
  margin-bottom: 10px;
}
.mp-dash-verif-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-dash-verif-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.mp-dash-verif-item.ok {
  background: rgba(27,107,53,0.18);
  border: 1px solid rgba(27,107,53,0.35);
  color: #4ade80;
}
.mp-dash-verif-item.pending {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}

/* Bouton close (mobile) */
.mp-dash-close-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  color: var(--mp-text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
}

/* Désactiver la transition au chargement initial */
.mp-dash-sidebar.no-transition {
  transition: none !important;
}

/* ══ MAIN ═════════════════════════════════════════════════════ */
.mp-dash-main {
  flex: 1;
  min-width: 0;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Topbar mobile */
.mp-dash-topbar {
  display: none;
  align-items: center;
  gap: 12px;
}
.mp-dash-menu-btn {
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.mp-dash-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mp-text);
  border-radius: 2px;
}
.mp-dash-topbar-title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: var(--mp-heading);
}
.mp-dash-topbar-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mp-border);
}

/* Overlay mobile */
.mp-dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mp-dash-overlay.visible { opacity: 1; }

/* Alertes */
.mp-dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--mp-radius);
  border-left: 4px solid;
  font-size: 0.88rem;
}
.mp-dash-alert-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.mp-dash-alert--danger  { background: rgba(239,68,68,0.1);  border-color: #f87171; color: #fca5a5; }
.mp-dash-alert--info    { background: rgba(59,130,246,0.1); border-color: #60a5fa; color: #93c5fd; }
.mp-dash-alert--warning { background: rgba(245,158,11,0.1); border-color: #fbbf24; color: #fcd34d; }
.mp-link { color: var(--mp-gold-light); text-decoration: underline; }
.mp-link:hover { color: var(--mp-gold); }

/* Sections dashboard */
.mp-dash-section {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.mp-dash-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mp-dash-section-header > i { font-size: 1.2rem; color: var(--mp-green); }
.mp-dash-section-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 0;
  flex: 1;
}
.mp-section-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(27,107,53,0.2);
  border: 1px solid rgba(27,107,53,0.35);
  color: #4ade80;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 6px;
}
.mp-dash-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-gold-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--mp-transition);
}
.mp-dash-section-link:hover { color: var(--mp-gold); gap: 8px; }

/* Referral */
.mp-referral-input-wrap {
  display: flex;
  border-radius: var(--mp-radius);
  overflow: hidden;
  border: 1px solid var(--mp-border);
  background: var(--mp-input-bg);
}
.mp-referral-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--mp-text);
  outline: none;
  min-width: 0;
}
.mp-referral-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--mp-green), #24963E);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--mp-transition);
}
.mp-referral-copy-btn:hover { background: linear-gradient(135deg, #24963E, var(--mp-green)); }

/* ── Animations natives dashboard (sans dépendance AOS CDN) ─── */
@keyframes mp-dash-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mp-dash-scalein {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.mp-anim-1 { animation: mp-dash-fadein 0.45s ease both; }
.mp-anim-2 { animation: mp-dash-fadein 0.45s 0.08s ease both; }
.mp-anim-3 { animation: mp-dash-fadein 0.45s 0.14s ease both; }
.mp-anim-4 { animation: mp-dash-fadein 0.45s 0.20s ease both; }
.mp-anim-5 { animation: mp-dash-fadein 0.45s 0.28s ease both; }

.mp-wallet-card { animation: mp-dash-scalein 0.4s ease both; }

/* Gold text */
.mp-gold-text {
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modal dashboard */
.mp-modal-content {
  background: var(--mp-bg-2) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: var(--mp-radius-lg) !important;
  color: var(--mp-text) !important;
}
.mp-modal-header { border-bottom: 1px solid var(--mp-border) !important; }

/* ══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .mp-dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 200;
    box-shadow: 8px 0 32px rgba(0,0,0,0.4);
  }
  .mp-dash-sidebar.open { transform: translateX(0); }
  .mp-dash-close-btn { display: flex; }
  .mp-dash-overlay { display: block; }
  .mp-dash-topbar { display: flex; }
  .mp-dash-main { padding: 16px 16px 32px; }
}

@media (max-width: 576px) {
  .mp-dash-main { padding: 12px 12px 24px; gap: 16px; }
}

/* Cards smooth sur changement de thème (sans !important sur sidebar pour ne pas bloquer collapse) */
.mp-stat-card,
.mp-wallet-card,
.mp-dash-section,
.mp-referral-input-wrap {
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* Sidebar : transition complète incluant width pour le collapse */
.mp-dash-sidebar {
  transition:
    width 0.35s cubic-bezier(0.4,0,0.2,1),
    min-width 0.35s cubic-bezier(0.4,0,0.2,1),
    transform 0.35s cubic-bezier(0.4,0,0.2,1),
    background 0.3s ease,
    border-color 0.3s ease !important;
}

/* ── Thème clair — Dashboard ── */
html[data-theme="light"] .mp-dash-sidebar,
body[data-theme="light"] .mp-dash-sidebar {
  background: #FFFFFF !important;
  border-color: rgba(27,107,53,0.14) !important;
}

html[data-theme="light"] .mp-dash-nav-item,
body[data-theme="light"] .mp-dash-nav-item {
  color: #4B6A52;
}

html[data-theme="light"] .mp-dash-nav-item.active,
body[data-theme="light"] .mp-dash-nav-item.active {
  background: linear-gradient(135deg, rgba(27,107,53,0.12), rgba(201,162,39,0.06)) !important;
  border-color: rgba(27,107,53,0.2) !important;
  color: #0D1F10 !important;
}

html[data-theme="light"] .mp-dash-nav-item:hover,
body[data-theme="light"] .mp-dash-nav-item:hover {
  background: rgba(27,107,53,0.06) !important;
  color: #0D1F10 !important;
}

html[data-theme="light"] .mp-stat-card,
body[data-theme="light"] .mp-stat-card {
  background: rgba(255,255,255,0.97) !important;
  border-color: rgba(27,107,53,0.12) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

html[data-theme="light"] .mp-stat-card:hover,
body[data-theme="light"] .mp-stat-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
}

html[data-theme="light"] .mp-dash-section,
body[data-theme="light"] .mp-dash-section {
  background: rgba(255,255,255,0.97) !important;
  border-color: rgba(27,107,53,0.12) !important;
}

html[data-theme="light"] .mp-wallet-card,
body[data-theme="light"] .mp-wallet-card {
  background: #F2F8F4 !important;
  border-color: rgba(27,107,53,0.14) !important;
}

html[data-theme="light"] .mp-wallet-card:hover,
body[data-theme="light"] .mp-wallet-card:hover {
  border-color: rgba(27,107,53,0.35) !important;
  box-shadow: 0 12px 32px rgba(27,107,53,0.1) !important;
}

html[data-theme="light"] .mp-referral-input-wrap,
body[data-theme="light"] .mp-referral-input-wrap {
  background: #FFFFFF !important;
  border-color: rgba(27,107,53,0.18) !important;
}

html[data-theme="light"] .mp-referral-input,
body[data-theme="light"] .mp-referral-input {
  color: #1C2E20 !important;
}

html[data-theme="light"] .mp-dash-verif-box,
body[data-theme="light"] .mp-dash-verif-box {
  background: rgba(27,107,53,0.04) !important;
  border-color: rgba(27,107,53,0.12) !important;
}

html[data-theme="light"] .mp-dash-username,
body[data-theme="light"] .mp-dash-username { color: #0D1F10 !important; }

html[data-theme="light"] .mp-stat-card-value,
body[data-theme="light"] .mp-stat-card-value { color: #0D1F10 !important; }

html[data-theme="light"] .mp-wallet-balance,
body[data-theme="light"] .mp-wallet-balance { color: #0D1F10 !important; }

html[data-theme="light"] .mp-dash-section-header h4,
body[data-theme="light"] .mp-dash-section-header h4 { color: #0D1F10 !important; }

html[data-theme="light"] .mp-dash-welcome-text h2,
body[data-theme="light"] .mp-dash-welcome-text h2 { color: #0D1F10 !important; }

html[data-theme="light"] .mp-modal-content,
body[data-theme="light"] .mp-modal-content {
  background: #FFFFFF !important;
  border-color: rgba(27,107,53,0.15) !important;
  color: #1C2E20 !important;
}

/* Sparkline thème clair */
html[data-theme="light"] .mp-wallet-sparkline,
body[data-theme="light"] .mp-wallet-sparkline { color: var(--mp-green) !important; }

/* ══════════════════════════════════════════════════════════════
   MPUT — User Topbar (classes indépendantes, zéro conflit)
   Position : sticky dans mp-app-right, ne couvre JAMAIS le sidebar
   ══════════════════════════════════════════════════════════════ */

.mput {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--mp-bg-2);
  border-bottom: 1px solid var(--mp-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

/* ── Barre principale ── */
.mput__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  gap: 0;
  overflow: hidden;
}

/* ── Navigation ── */
.mput__nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.mput__nav > li {
  position: relative;
  flex-shrink: 0;
}
.mput__nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  color: var(--mp-text-muted);
  font-family: var(--mp-font);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--mp-radius-sm);
  white-space: nowrap;
  transition: var(--mp-transition);
}
.mput__nav > li > a:hover { color: var(--mp-white); background: rgba(27,107,53,0.12); }
.mput__caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.25s;
  margin-left: 2px;
}
.mput__has-drop:hover .mput__caret { transform: rotate(180deg); }

/* ── Dropdown ── */
.mput__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  max-width: 220px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 300;
  backdrop-filter: blur(20px);
  max-height: 360px;
  overflow-y: auto;
  column-count: 2;
  scrollbar-width: thin;
}
.mput__drop--right {
  left: auto;
  right: 0;
  transform: translateY(8px);
  column-count: 1;
}
.mput__has-drop:hover .mput__drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mput__has-drop:hover .mput__drop--right {
  transform: translateY(0);
}
.mput__drop li a {
  display: block;
  padding: 7px 10px;
  color: var(--mp-text-muted);
  font-size: 0.83rem;
  text-decoration: none;
  border-radius: var(--mp-radius-sm);
  transition: var(--mp-transition);
  break-inside: avoid;
  white-space: nowrap;
}
.mput__drop li a:hover { color: var(--mp-white); background: rgba(27,107,53,0.15); }

/* ── Partie droite (theme + langue + avatar) ── */
.mput__right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 10px;
}
.mput__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--mp-border-green);
  display: block;
  flex-shrink: 0;
}
.mput__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Hamburger mobile (caché sur desktop) ── */
.mput__hamburger {
  display: none;
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-text);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-right: 10px;
}

/* ── Menu mobile déroulant ── */
.mput__mobile {
  display: none;
  flex-direction: column;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-top: 1px solid var(--mp-border);
}
.mput__mobile li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--mp-text-muted);
  text-decoration: none;
  transition: var(--mp-transition);
}
.mput__mobile li a:hover { color: var(--mp-heading); background: var(--mp-glass); }
.mput__mobile.open { display: flex; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .mput__nav { display: none; }
  .mput__hamburger { display: flex; }
  .mput__right .language { display: none; }
  .mput__bar { padding: 0 14px; }
}

/* ── Thème clair ── */
html[data-theme="light"] .mput,
body[data-theme="light"] .mput {
  background: #ffffff !important;
  border-color: rgba(27,107,53,0.14) !important;
}
html[data-theme="light"] .mput__mobile,
body[data-theme="light"] .mput__mobile {
  background: #ffffff !important;
}
html[data-theme="light"] .mput__nav > li > a,
body[data-theme="light"] .mput__nav > li > a { color: #4B6A52; }
html[data-theme="light"] .mput__nav > li > a:hover,
body[data-theme="light"] .mput__nav > li > a:hover { color: #0D1F10 !important; }

/* ── Wrapper droit (topbar + main) ─────────────────────────── */
.mp-app-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR — Logo bar + Collapse
   ══════════════════════════════════════════════════════════════ */

/* Barre logo en haut du sidebar */
.mp-dash-logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--mp-border);
  flex-shrink: 0;
}
.mp-dash-logo-link {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
}
.mp-dash-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.25s ease, width 0.35s ease;
}

/* Bouton collapse */
.mp-sidebar-toggle {
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  color: var(--mp-text-muted);
  border-radius: var(--mp-radius-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--mp-transition);
  font-size: 0.85rem;
}
.mp-sidebar-toggle:hover {
  background: var(--mp-green-glow);
  color: var(--mp-heading);
  border-color: var(--mp-border-green);
}
.mp-sidebar-toggle i {
  transition: transform 0.35s ease;
}

/* ── Sidebar collapsed ── */
.mp-dash-sidebar.collapsed {
  width: 68px;
  min-width: 68px;
}
.mp-dash-sidebar.collapsed .mp-dash-logo-img { opacity: 0; width: 0; }
.mp-dash-sidebar.collapsed .mp-sidebar-toggle i { transform: rotate(180deg); }
.mp-dash-sidebar.collapsed .mp-dash-profile { padding: 14px 8px; }
.mp-dash-sidebar.collapsed .mp-dash-avatar-ring { width: 44px; height: 44px; }
.mp-dash-sidebar.collapsed .mp-dash-user-info,
.mp-dash-sidebar.collapsed .mp-dash-verif-box,
.mp-dash-sidebar.collapsed .mp-dash-nav-label,
.mp-dash-sidebar.collapsed .mp-dash-nav-sep,
.mp-dash-sidebar.collapsed .mp-dash-divider { display: none !important; }
.mp-dash-sidebar.collapsed .mp-dash-nav { padding: 8px 4px; gap: 4px; }
.mp-dash-sidebar.collapsed .mp-dash-nav-item {
  padding: 11px;
  justify-content: center;
  gap: 0;
}
.mp-dash-sidebar.collapsed .mp-dash-nav-icon {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

/* Tooltip sur les items en mode collapsed */
.mp-dash-sidebar.collapsed .mp-dash-nav-item {
  position: relative;
}
.mp-dash-sidebar.collapsed .mp-dash-nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--mp-bg-2);
  border: 1px solid var(--mp-border);
  color: var(--mp-heading);
  padding: 5px 12px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.mp-dash-sidebar.collapsed .mp-dash-nav-item:hover::after { opacity: 1; }

/* Sur mobile, cacher le bouton toggle permanent */
@media (max-width: 991px) {
  .mp-sidebar-toggle { display: none; }
  .mp-dash-logo-bar { justify-content: center; padding-right: 40px; }
}

/* Thème clair — logo bar */
html[data-theme="light"] .mp-dash-logo-bar,
body[data-theme="light"] .mp-dash-logo-bar {
  border-color: rgba(27,107,53,0.14) !important;
}
html[data-theme="light"] .mp-sidebar-toggle,
body[data-theme="light"] .mp-sidebar-toggle {
  background: rgba(27,107,53,0.06) !important;
  border-color: rgba(27,107,53,0.18) !important;
  color: #4B6A52 !important;
}

/* ================================================================
   P2P ADVERTISEMENT — Modern Redesign
   ================================================================ */

/* ── Live badge ── */
.mp-ads-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.3);
  color: #2ecc71;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mp-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: mp-pulse 1.4s infinite;
}
@keyframes mp-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

/* ──────────────────────────────────────────
   ADS HERO BANNER (page all)
   ────────────────────────────────────────── */
.mp-ads-hero {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27,107,53,.22) 0%, transparent 70%),
              var(--mp-bg);
  padding: 32px 0 0;
  text-align: center;
}
.mp-ads-hero-inner { max-width: 700px; margin: 0 auto; padding: 0 16px 48px; }

.mp-ads-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.mp-ads-hero-crypto-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--mp-border);
  background: var(--mp-surface);
  object-fit: contain;
  padding: 4px;
}
.mp-ads-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.mp-ads-type-badge--buy  { background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }
.mp-ads-type-badge--sell { background: rgba(231,76,60,.15);  color: #e74c3c; border: 1px solid rgba(231,76,60,.3); }

.mp-ads-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900; color: var(--mp-heading);
  margin-bottom: .8rem; line-height: 1.15;
}
.mp-ads-hero-title span {
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mp-ads-hero-sub { color: var(--mp-text-muted); font-size: 1rem; }

/* ──────────────────────────────────────────
   SEARCH CARD (page all)
   ────────────────────────────────────────── */
.mp-ads-search-wrap {
  background: var(--mp-bg);
  padding: 0 0 32px;
}
.mp-ads-search-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.mp-ads-search-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700;
  color: var(--mp-text-muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 18px;
}
.mp-ads-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.mp-ads-field { display: flex; flex-direction: column; gap: 6px; }
.mp-ads-field label {
  font-size: .72rem; font-weight: 700;
  color: var(--mp-text-muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.mp-ads-select, .mp-ads-input {
  background: var(--mp-bg-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  color: var(--mp-text);
  padding: 10px 14px;
  font-size: .9rem;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}
.mp-ads-select:focus, .mp-ads-input:focus {
  border-color: var(--mp-green);
}

/* ──────────────────────────────────────────
   ADS SECTION TOOLBAR
   ────────────────────────────────────────── */
.mp-ads-section { padding: 40px 0 80px; }

.mp-ads-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.mp-ads-count {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--mp-text-muted); font-weight: 600;
}
.mp-ads-count #ads-count-num { color: var(--mp-gold); font-weight: 800; }

.mp-ads-refresh-wrap { display: flex; align-items: center; gap: 10px; }
.mp-ads-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  color: var(--mp-text);
  padding: 8px 14px;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.mp-ads-refresh-btn:hover { border-color: var(--mp-green); background: rgba(27,107,53,.1); }
.mp-ads-last-update { font-size: .78rem; color: var(--mp-text-muted); }

/* ──────────────────────────────────────────
   ADS GRID
   ────────────────────────────────────────── */
.mp-ads-grid {
  display: flex; flex-direction: column; gap: 12px;
  transition: opacity .3s;
}
.mp-ads-grid.mp-ads-loading { opacity: .45; pointer-events: none; }
.mp-ads-grid--compact { gap: 10px; }

/* ──────────────────────────────────────────
   AD CARD
   ────────────────────────────────────────── */
.mp-ad-card {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 16px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 18px 22px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.mp-ad-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mp-green);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity .2s;
}
.mp-ad-card:hover {
  border-color: rgba(27,107,53,.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.mp-ad-card:hover::before { opacity: 1; }

.mp-ad-card--own { border-color: rgba(201,162,39,.35); }
.mp-ad-card--own::before { background: var(--mp-gold); opacity: 1; }

/* Trader info */
.mp-ad-card-trader {
  display: flex; align-items: center; gap: 12px;
  min-width: 140px;
}
.mp-ad-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-green), var(--mp-gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff;
  flex-shrink: 0;
}
.mp-ad-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.mp-ad-username {
  font-weight: 700; color: var(--mp-text);
  font-size: .9rem; text-decoration: none;
  transition: color .2s;
}
.mp-ad-username:hover { color: var(--mp-green); }
.mp-ad-speed {
  display: flex; align-items: center; gap: 4px;
  font-size: .75rem; color: var(--mp-text-muted);
  margin-top: 2px;
}
.mp-ad-speed i { color: var(--mp-gold); }

/* Crypto logo */
.mp-ad-card-crypto {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 60px;
}
.mp-ad-crypto-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--mp-border);
  background: var(--mp-bg-2);
  object-fit: contain;
  padding: 4px;
}
.mp-ad-crypto-placeholder {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27,107,53,.3), rgba(201,162,39,.3));
  border: 2px solid var(--mp-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: var(--mp-gold);
}
.mp-ad-crypto-code { font-size: .72rem; font-weight: 700; color: var(--mp-text-muted); }

/* Rate + Limits */
.mp-ad-card-info {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.mp-ad-rate { display: flex; align-items: baseline; gap: 8px; }
.mp-ad-rate-label, .mp-ad-limits-label {
  font-size: .7rem; font-weight: 700;
  color: var(--mp-text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  min-width: 40px;
}
.mp-ad-rate-value {
  font-size: 1.05rem; font-weight: 800; color: var(--mp-gold);
}
.mp-ad-rate-value small { font-size: .78rem; font-weight: 600; color: var(--mp-text-muted); }
.mp-ad-limits {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .82rem; color: var(--mp-text);
}
.mp-ad-window {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--mp-text-muted);
}

/* Method */
.mp-ad-card-method {
  display: flex; align-items: center; gap: 6px;
  background: rgba(27,107,53,.1);
  border: 1px solid rgba(27,107,53,.2);
  border-radius: var(--mp-radius);
  padding: 6px 12px;
  font-size: .8rem; font-weight: 600;
  color: var(--mp-text);
  white-space: nowrap;
}
.mp-ad-card-method i { color: var(--mp-green); }
.mp-ad-card-method .mp-ad-gateway-logo,
.mp-ad-card-method img.mp-ad-gateway-logo {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  max-height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  padding: 2px;
}

/* Action button */
.mp-ad-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--mp-radius);
  font-size: .85rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: none; outline: none;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.mp-ad-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.mp-ad-btn--buy  { background: linear-gradient(135deg, #1b6b35, #2ecc71); color: #fff; }
.mp-ad-btn--sell { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }

/* Empty state */
.mp-ad-empty, .mp-ad-empty-full {
  text-align: center; padding: 48px 20px;
  color: var(--mp-text-muted);
}
.mp-ad-empty-full { padding: 80px 20px; }
.mp-ad-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(201,162,39,.1);
  border: 1px solid rgba(201,162,39,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem; color: var(--mp-gold);
}
.mp-ad-empty-full h4 { color: var(--mp-text); margin-bottom: 8px; }

/* Spinner */
.mp-ads-spinner {
  text-align: center; padding: 60px 20px;
  font-size: 2rem; color: var(--mp-green);
}
.mp-ads-spinner i { animation: mp-spin 1s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* Pagination */
.mp-ads-pagination { margin-top: 32px; display: flex; justify-content: center; }

/* ──────────────────────────────────────────
   WIDGET (homepage sections)
   ────────────────────────────────────────── */
.mp-ads-widget { padding: 0; }

/* Crypto tabs */
.mp-ads-crypto-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.mp-ads-crypto-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 100px;
  font-size: .8rem; font-weight: 700; color: var(--mp-text);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.mp-ads-crypto-tab:hover, .mp-ads-crypto-tab.active {
  background: var(--mp-green);
  border-color: var(--mp-green);
  color: #fff;
}
.mp-ads-tab-logo {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.1);
  padding: 2px;
}
.mp-ads-tab-placeholder {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(201,162,39,.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: var(--mp-gold);
}

/* Mini search */
.mp-ads-mini-search {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.mp-ads-mini-search-grid {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.mp-ads-mini-field {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 140px;
}
.mp-ads-mini-field i { color: var(--mp-text-muted); font-size: 1rem; flex-shrink: 0; }
.mp-ads-mini-select, .mp-ads-mini-input {
  background: var(--mp-bg-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  color: var(--mp-text);
  padding: 8px 12px;
  font-size: .85rem;
  width: 100%; outline: none;
  transition: border-color .2s;
}
.mp-ads-mini-select:focus, .mp-ads-mini-input:focus { border-color: var(--mp-green); }

.mp-ads-mini-actions { flex: 0; gap: 10px; min-width: auto; }
.mp-ads-mini-refresh {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  color: var(--mp-text);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.mp-ads-mini-refresh:hover { border-color: var(--mp-green); background: rgba(27,107,53,.1); }

/* More button */
.mp-ads-more-wrap { text-align: center; margin-top: 24px; }
.mp-ads-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  color: var(--mp-text);
  font-weight: 700; font-size: .9rem;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.mp-ads-more-btn:hover {
  border-color: var(--mp-green);
  background: rgba(27,107,53,.1);
  color: var(--mp-green);
}

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 991px) {
  .mp-ad-card {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .mp-ad-card-trader  { grid-column: 1; grid-row: 1; }
  .mp-ad-card-crypto  { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .mp-ad-card-info    { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .mp-ad-card-method  { grid-column: 1; grid-row: 3; }
  .mp-ad-card-action  { grid-column: 2; grid-row: 3; justify-content: flex-end; display: flex; }
  .mp-ads-search-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .mp-ad-card { grid-template-columns: 1fr; padding: 16px; }
  .mp-ad-card-crypto { flex-direction: row; justify-content: flex-start; }
  .mp-ad-card-action { justify-content: stretch; }
  .mp-ad-btn { width: 100%; justify-content: center; }
  .mp-ads-search-grid { grid-template-columns: 1fr; }
}

/* ── Light theme ── */
html[data-theme="light"] .mp-ad-card            { background: #fff; border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .mp-ad-card:hover      { border-color: rgba(27,107,53,.3); }
html[data-theme="light"] .mp-ad-card-method     { background: rgba(27,107,53,.07); border-color: rgba(27,107,53,.15); }
html[data-theme="light"] .mp-ads-search-card    { background: #fff; border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .mp-ads-mini-search    { background: #fff; border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .mp-ads-select,
html[data-theme="light"] .mp-ads-input,
html[data-theme="light"] .mp-ads-mini-select,
html[data-theme="light"] .mp-ads-mini-input     { background: #f4f7f5; border-color: rgba(0,0,0,.1); color: #1a2e1e; }
html[data-theme="light"] .mp-ads-crypto-tab     { background: #f4f7f5; border-color: rgba(0,0,0,.1); color: #1a2e1e; }
html[data-theme="light"] .mp-ads-refresh-btn    { background: #f4f7f5; color: #1a2e1e; }
html[data-theme="light"] .mp-ads-more-btn       { background: #f4f7f5; color: #1a2e1e; }
html[data-theme="light"] .mp-ads-hero           { background: #f0f8f2; }

/* ── P2P unified table (Binance-style) ── */
.mp-p2p-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-p2p-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.2fr 140px;
  gap: 12px;
  padding: 10px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mp-text-muted, #8fa896);
  border-bottom: 1px solid var(--mp-border, rgba(255,255,255,.08));
}
.mp-p2p-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.2fr 140px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--mp-surface, #0c1810);
  border: 1px solid var(--mp-border, rgba(255,255,255,.08));
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.mp-p2p-row:hover {
  border-color: rgba(27,107,53,.35);
}
.mp-p2p-row--promoted {
  border-color: rgba(201,162,39,.55);
  box-shadow: 0 0 0 1px rgba(201,162,39,.25);
}
.mp-p2p-row--own {
  opacity: .85;
}
.mp-p2p-trader {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.mp-p2p-trader-meta { min-width: 0; }
.mp-p2p-trader-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mp-p2p-kyc { color: #2ecc71; font-size: .95rem; }
.mp-p2p-unavailable { color: #f59e0b; }
.mp-p2p-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--mp-text-muted, #8fa896);
}
.mp-p2p-price-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mp-p2p-price-meta {
  min-width: 0;
}
.mp-p2p-crypto-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--mp-border, rgba(255,255,255,.08));
  background: var(--mp-bg-2, #0a1208);
  object-fit: contain;
  padding: 3px;
}
.mp-p2p-crypto-logo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
  color: var(--mp-gold, #c9a227);
  background: linear-gradient(135deg, rgba(27,107,53,.3), rgba(201,162,39,.3));
}
.mp-p2p-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mp-text, #e8f0ea);
}
.mp-p2p-price-unit {
  font-size: .75rem;
  color: var(--mp-text-muted, #8fa896);
}
.mp-p2p-limit-line {
  display: flex;
  gap: 6px;
  font-size: .82rem;
}
.mp-p2p-limit-label {
  color: var(--mp-text-muted, #8fa896);
  min-width: 64px;
}
.mp-p2p-pay {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 6px;
}
.mp-p2p-pay-bar {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
}
.mp-p2p-pay-name {
  font-size: .85rem;
  font-weight: 600;
}
.mp-ad-btn--muted,
.mp-ad-btn--restricted {
  background: rgba(255,255,255,.08) !important;
  color: var(--mp-text-muted, #8fa896) !important;
  cursor: not-allowed;
}
.mp-p2p-crypto-ribbon {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: thin;
}
.mp-p2p-crypto-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--mp-border, rgba(255,255,255,.08));
  background: var(--mp-surface, #0c1810);
  color: var(--mp-text, #e8f0ea);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.mp-p2p-crypto-chip.active,
.mp-p2p-crypto-chip:hover {
  border-color: var(--mp-green, #1b6b35);
  background: rgba(27,107,53,.15);
}
.mp-p2p-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-p2p-sort-wrap select {
  background: var(--mp-surface, #0c1810);
  border: 1px solid var(--mp-border, rgba(255,255,255,.08));
  color: var(--mp-text, #e8f0ea);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .85rem;
}
.mp-p2p-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.mp-p2p-pagination button {
  background: var(--mp-surface, #0c1810);
  border: 1px solid var(--mp-border, rgba(255,255,255,.08));
  color: var(--mp-text, #e8f0ea);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
.mp-p2p-row--clickable {
  cursor: pointer;
}
.mp-p2p-row--clickable:hover {
  border-color: rgba(27,107,53,.45);
}
.mp-p2p-load-more,
#ads-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--mp-border, rgba(255,255,255,.08));
  border-radius: 10px;
  color: var(--mp-text, #e8f0ea);
  font-weight: 700;
  cursor: pointer;
}
.mp-p2p-load-more:hover,
#ads-load-more:hover {
  border-color: var(--mp-green, #1b6b35);
  color: #2ecc71;
}
@media (max-width: 992px) {
  .mp-p2p-table-head { display: none; }
  .mp-p2p-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mp-p2p-col--action .mp-ad-btn { width: 100%; justify-content: center; }
}
html[data-theme="light"] .mp-p2p-row { background: #fff; }
html[data-theme="light"] .mp-p2p-crypto-chip { background: #fff; color: #1a2e1e; }

/* ================================================================
   P2P MARKET WIDGET — Unified Buy + Sell
   ================================================================ */

.p2pm-wrap {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.28);
}

/* ── Toolbar ── */
.p2pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
  background: var(--mp-bg-2);
}

/* Buy/Sell toggle */
.p2pm-toggle {
  display: flex;
  background: rgba(255,255,255,.05);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.p2pm-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--mp-text-muted);
  transition: background .2s, color .2s;
}
.p2pm-toggle-buy.active  { background: #1b6b35; color: #fff; }
.p2pm-toggle-sell.active { background: #c0392b; color: #fff; }
.p2pm-toggle-btn:not(.active):hover { color: var(--mp-text); }

/* Crypto field */
.p2pm-field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  transition: border-color .2s;
  flex-shrink: 0;
}
.p2pm-field:focus-within { border-color: var(--mp-green); }

/* Crypto picker */
.p2pm-field--crypto {
  position: relative;
  cursor: pointer;
  padding: 0;
  overflow: visible;
  border: none;
  background: transparent;
}
.p2pm-crypto-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 10px;
  padding: 0 14px;
  height: 42px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--mp-text);
  transition: border-color .2s;
  user-select: none;
  white-space: nowrap;
}
.p2pm-crypto-trigger:hover,
.p2pm-field--crypto.open .p2pm-crypto-trigger { border-color: var(--mp-green); }
.p2pm-trigger-img, .p2pm-trigger-ph {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.p2pm-trigger-ph {
  background: rgba(201,162,39,.25);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800; color: var(--mp-gold);
}
.p2pm-caret { margin-left: 4px; font-size: .72rem; color: var(--mp-text-muted); transition: transform .2s; }
.p2pm-field--crypto.open .p2pm-caret { transform: rotate(180deg); }

/* Dropdown */
.p2pm-crypto-drop {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  z-index: 1000;
  max-height: 340px;
  overflow: hidden;
}
.p2pm-field--crypto.open .p2pm-crypto-drop { display: flex; }

.p2pm-drop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mp-border);
}
.p2pm-drop-search i { color: var(--mp-text-muted); font-size: .95rem; }
.p2pm-drop-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--mp-text); font-size: .88rem;
}
.p2pm-drop-list { overflow-y: auto; flex: 1; }

.p2pm-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: .87rem;
  color: var(--mp-text);
  transition: background .15s;
}
.p2pm-opt:hover, .p2pm-opt--active { background: rgba(27,107,53,.18); }
.p2pm-opt--active { color: #2ecc71; font-weight: 700; }
.p2pm-opt img    { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.p2pm-opt-ph     { width: 28px; height: 28px; border-radius: 50%; background: rgba(201,162,39,.2);
                   display: flex; align-items: center; justify-content: center;
                   font-size: .65rem; font-weight: 800; color: var(--mp-gold); flex-shrink: 0; }
.p2pm-opt-name   { font-weight: 600; flex: 1; }
.p2pm-opt-code   { font-size: .75rem; color: var(--mp-text-muted); }

/* Amount field */
.p2pm-field--amount { gap: 0; overflow: hidden; }
.p2pm-field-prefix  { font-size: .75rem; font-weight: 700; color: var(--mp-text-muted); padding-right: 8px; white-space: nowrap; }
.p2pm-input {
  background: transparent; border: none; outline: none;
  color: var(--mp-text); font-size: .9rem; width: 100px;
}
.p2pm-currency-badge {
  background: rgba(255,255,255,.06);
  border: none; border-left: 1px solid var(--mp-border);
  color: var(--mp-text);
  padding: 0 10px;
  height: 100%;
  font-size: .82rem; font-weight: 700;
  cursor: pointer; outline: none;
}

/* Method field */
.p2pm-field--method { flex: 1; min-width: 160px; max-width: 260px; }
.p2pm-field-icon   { color: var(--mp-text-muted); font-size: .95rem; flex-shrink: 0; }
.p2pm-select {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--mp-text); font-size: .87rem; cursor: pointer;
}

/* Actions */
.p2pm-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.p2pm-refresh-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  color: var(--mp-text);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.p2pm-refresh-btn:hover { border-color: var(--mp-green); background: rgba(27,107,53,.12); }

.p2pm-create-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: var(--mp-gold);
  border-radius: 8px;
  color: #1a0f00;
  font-weight: 700; font-size: .82rem;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.p2pm-create-btn:hover { opacity: .88; transform: translateY(-1px); color: #1a0f00; }

/* ── Meta bar ── */
.p2pm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--mp-border);
  font-size: .8rem;
}
.p2pm-count-label { color: var(--mp-text-muted); display: flex; align-items: center; gap: 6px; }
#p2pm-count { color: var(--mp-gold); font-weight: 800; }
.p2pm-last-up { color: var(--mp-text-muted); font-size: .75rem; }

/* ── Grid résultats ── */
.p2pm-results { padding: 16px 20px; min-height: 120px; }
.p2pm-spinner { text-align: center; padding: 60px; font-size: 2rem; color: var(--mp-green); }
.p2pm-grid    { display: flex; flex-direction: column; gap: 10px; }
.p2pm-grid .mp-ad-gateway-logo,
#p2pm-results .mp-ad-gateway-logo {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  flex-shrink: 0;
  object-fit: contain;
}

/* ── More ── */
.p2pm-more-wrap {
  text-align: center;
  padding: 0 20px 20px;
}
.p2pm-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 32px;
  background: transparent;
  border: 1px solid var(--mp-border);
  border-radius: 10px;
  color: var(--mp-text);
  font-weight: 700; font-size: .88rem;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.p2pm-more-btn:hover { border-color: var(--mp-green); background: rgba(27,107,53,.1); color: #2ecc71; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .p2pm-toolbar { gap: 8px; }
  .p2pm-field--method { max-width: none; }
  .p2pm-actions { margin-left: 0; }
}
@media (max-width: 767px) {
  .p2pm-toolbar { flex-direction: column; align-items: stretch; }
  .p2pm-toggle  { align-self: flex-start; }
  .p2pm-actions { justify-content: flex-end; }
  .p2pm-field--method { max-width: none; }
}

/* ── Light theme ── */
html[data-theme="light"] .p2pm-wrap           { background: #fff; border-color: rgba(0,0,0,.09); }
html[data-theme="light"] .p2pm-toolbar        { background: #f4f7f5; border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .p2pm-crypto-trigger { background: #fff; border-color: rgba(0,0,0,.1); color: #1a2e1e; }
html[data-theme="light"] .p2pm-crypto-drop    { background: #fff; border-color: rgba(0,0,0,.1); }
html[data-theme="light"] .p2pm-opt            { color: #1a2e1e; }
html[data-theme="light"] .p2pm-field          { background: #fff; border-color: rgba(0,0,0,.1); }
html[data-theme="light"] .p2pm-select,
html[data-theme="light"] .p2pm-input          { color: #1a2e1e; }
html[data-theme="light"] .p2pm-currency-badge { background: #f4f7f5; border-color: rgba(0,0,0,.1); color: #1a2e1e; }
html[data-theme="light"] .p2pm-meta           { border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .p2pm-refresh-btn    { background: #fff; }
html[data-theme="light"] .p2pm-toggle         { background: rgba(0,0,0,.06); }

/* ─── ══════════════ USER DATA PAGE ══════════════ ─────────── */
.mp-ud {
  position: relative;
  padding: 36px 0 72px;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

.mp-ud__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(27,107,53,0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(201,162,39,0.08), transparent 50%);
  z-index: 0;
}

.mp-ud > .container {
  position: relative;
  z-index: 1;
}

/* Steps */
.mp-ud__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 28px;
  max-width: 420px;
  animation: mpUdFadeUp 0.45s ease both;
}

.mp-ud__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}

.mp-ud__step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--mp-bg-3);
  border: 1.5px solid var(--mp-border-green);
  color: var(--mp-text-muted);
  transition: var(--mp-transition);
}

.mp-ud__step.is-done .mp-ud__step-dot {
  background: linear-gradient(135deg, var(--mp-green), #27A349);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px var(--mp-green-glow);
}

.mp-ud__step.is-active .mp-ud__step-dot {
  background: transparent;
  border-color: var(--mp-green);
  color: var(--mp-heading);
  box-shadow: 0 0 0 4px var(--mp-green-glow);
}

.mp-ud__step-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-text-muted);
}

.mp-ud__step.is-active .mp-ud__step-label,
.mp-ud__step.is-done .mp-ud__step-label {
  color: var(--mp-heading);
}

.mp-ud__step-line {
  flex: 1;
  height: 2px;
  max-width: 64px;
  margin: 0 6px 22px;
  background: var(--mp-border-green);
  border-radius: 2px;
}

.mp-ud__step-line.is-active {
  background: linear-gradient(90deg, var(--mp-green), rgba(27,107,53,0.35));
}

/* Panel */
.mp-ud__panel {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: 0;
  box-shadow: var(--mp-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  animation: mpUdFadeUp 0.55s ease 0.08s both;
}

/* Header */
.mp-ud__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 32px 22px;
  background:
    linear-gradient(135deg, rgba(27,107,53,0.14) 0%, rgba(201,162,39,0.05) 100%);
  border-bottom: 1px solid var(--mp-border-green);
}

.mp-ud__header-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(145deg, var(--mp-green) 0%, #24963E 100%);
  box-shadow: 0 8px 24px var(--mp-green-glow);
}

.mp-ud__eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-gold-light);
}

.mp-ud__title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mp-heading);
  line-height: 1.25;
}

.mp-ud__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mp-text-muted);
  max-width: 480px;
}

/* Notice */
.mp-ud__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 32px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--mp-warning-bg);
  border: 1px solid rgba(228,165,46,0.28);
  color: var(--mp-gold-light);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.mp-ud__notice i {
  font-size: 1.15rem;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--mp-warning);
}

/* Form */
.mp-ud__form {
  padding: 8px 32px 32px;
}

.mp-ud__section {
  padding: 24px 0;
  border-bottom: 1px solid var(--mp-border);
}

.mp-ud__section:last-of-type {
  border-bottom: none;
  padding-bottom: 8px;
}

.mp-ud__section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.mp-ud__section-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,107,53,0.12);
  border: 1px solid var(--mp-border-green);
  color: #2ecc71;
  font-size: 1.05rem;
}

.mp-ud__section-title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mp-heading);
}

.mp-ud__section-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mp-text-muted);
}

/* Fields */
.mp-ud__field {
  margin-bottom: 18px;
}

.mp-ud__grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.mp-ud__col {
  padding: 0 10px;
  margin-bottom: 18px;
}

.mp-ud__location {
  margin-top: 4px;
}

.mp-ud__location .user-location-fields {
  --bs-gutter-y: 1.1rem;
}

.mp-ud__location .loc-field-select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px !important;
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: 10px !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  font-size: 0.94rem !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mp-ud__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.mp-ud__req {
  color: #ea5455;
  margin-left: 2px;
}

.mp-ud__input-wrap {
  position: relative;
}

.mp-ud__input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  color: var(--mp-text-muted);
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
}

.mp-ud__input-wrap .mp-ud__input {
  padding-left: 42px !important;
}

.mp-ud__input,
.mp-ud .loc-field-select,
#userDataForm .form-control:not(.iti__tel-input):not([type="tel"]),
#userDataForm .mp-userdata-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px !important;
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: 10px !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  font-size: 0.94rem !important;
  line-height: 1.4 !important;
  height: auto !important;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

/* Le padding-left du tel est géré en inline par intl-tel-input (separateDialCode) */
.mp-ud__phone .iti input[type="tel"],
.mp-ud__phone .iti .iti__tel-input,
#userDataForm .iti input[type="tel"] {
  padding-left: 90px; /* fallback si JS n'a pas encore mesuré */
}

.mp-ud__input::placeholder {
  color: rgba(122,155,130,0.55) !important;
}

.mp-ud__input:hover,
.mp-ud .loc-field-select:hover {
  border-color: rgba(27,107,53,0.5) !important;
}

.mp-ud__input:focus,
.mp-ud .loc-field-select:focus,
#userDataForm .form-control:focus {
  border-color: var(--mp-green) !important;
  box-shadow: 0 0 0 3px var(--mp-green-glow) !important;
  outline: none !important;
  background: var(--mp-input-bg) !important;
}

.mp-ud .loc-field-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mp-ud__hint {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--mp-text-muted);
}

/* Phone — laisser intl-tel-input gérer le padding (separateDialCode) */
.mp-ud__phone {
  position: relative;
}

.mp-ud__phone.mapayer-phone-iti .iti {
  width: 100%;
  display: block;
}

.mp-ud__phone.mapayer-phone-iti .iti--separate-dial-code .iti__selected-country {
  height: 100%;
  background: transparent;
}

.mp-ud__phone.mapayer-phone-iti .iti__selected-dial-code {
  color: var(--mp-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mp-ud__phone.mapayer-phone-iti .iti input[type="tel"],
.mp-ud__phone.mapayer-phone-iti .iti .iti__tel-input {
  width: 100%;
  min-height: 50px;
  /* Seulement top/right/bottom en !important — laisser padding-left à ITI (inline) */
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-right: 14px !important;
  font-size: 0.94rem;
  line-height: 1.4;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: 10px !important;
  background: var(--mp-input-bg) !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box;
  appearance: none;
}

.mp-ud__phone.mapayer-phone-iti .iti input[type="tel"]:focus,
.mp-ud__phone.mapayer-phone-iti .iti .iti__tel-input:focus {
  border-color: var(--mp-green) !important;
  box-shadow: 0 0 0 3px var(--mp-green-glow) !important;
  outline: none !important;
}

.mp-ud__phone.mapayer-phone-iti .iti input[type="tel"]::placeholder,
.mp-ud__phone.mapayer-phone-iti .iti .iti__tel-input::placeholder {
  color: rgba(122,155,130,0.55) !important;
}

/* Actions */
.mp-ud__actions {
  padding-top: 16px;
}

.mp-ud__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--mp-font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff !important;
  background: linear-gradient(135deg, var(--mp-green) 0%, #24963E 100%);
  box-shadow: 0 8px 28px var(--mp-green-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.mp-ud__submit i {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.mp-ud__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 36px var(--mp-green-glow);
}

.mp-ud__submit:hover i {
  transform: translateX(3px);
}

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

.mp-ud__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--mp-text-muted);
}

.mp-ud__secure i {
  font-size: 0.9rem;
  color: var(--mp-green);
}

@keyframes mpUdFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Light theme */
html[data-theme="light"] .mp-ud__ambient,
body[data-theme="light"] .mp-ud__ambient {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(27,107,53,0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(201,162,39,0.05), transparent 50%);
}

html[data-theme="light"] .mp-ud__panel,
body[data-theme="light"] .mp-ud__panel {
  background: #ffffff;
  border-color: rgba(27,107,53,0.12);
  box-shadow: 0 12px 40px rgba(13,31,16,0.07);
}

html[data-theme="light"] .mp-ud__header,
body[data-theme="light"] .mp-ud__header {
  background: linear-gradient(135deg, rgba(27,107,53,0.07) 0%, rgba(201,162,39,0.04) 100%);
  border-bottom-color: rgba(27,107,53,0.12);
}

html[data-theme="light"] .mp-ud__eyebrow,
body[data-theme="light"] .mp-ud__eyebrow {
  color: var(--mp-gold-dark);
}

html[data-theme="light"] .mp-ud__notice,
body[data-theme="light"] .mp-ud__notice {
  background: rgba(228,165,46,0.1);
  border-color: rgba(228,165,46,0.22);
  color: #8a6a0a;
}

html[data-theme="light"] .mp-ud__section-icon,
body[data-theme="light"] .mp-ud__section-icon {
  background: rgba(27,107,53,0.08);
  color: var(--mp-green);
}

html[data-theme="light"] .mp-ud__input,
html[data-theme="light"] .mp-ud .loc-field-select,
html[data-theme="light"] .mp-ud__location .loc-field-select,
html[data-theme="light"] #userDataForm .form-control,
body[data-theme="light"] .mp-ud__input,
body[data-theme="light"] .mp-ud .loc-field-select,
body[data-theme="light"] .mp-ud__location .loc-field-select,
body[data-theme="light"] #userDataForm .form-control {
  background: #f7faf8 !important;
  border-color: rgba(27,107,53,0.18) !important;
  color: #1C2E20 !important;
}

html[data-theme="light"] .mp-ud__input:focus,
html[data-theme="light"] .mp-ud .loc-field-select:focus,
html[data-theme="light"] #userDataForm .form-control:focus,
body[data-theme="light"] .mp-ud__input:focus,
body[data-theme="light"] .mp-ud .loc-field-select:focus,
body[data-theme="light"] #userDataForm .form-control:focus {
  background: #ffffff !important;
  border-color: var(--mp-green) !important;
}

html[data-theme="light"] .mp-ud__phone.mapayer-phone-iti .iti input[type="tel"],
body[data-theme="light"] .mp-ud__phone.mapayer-phone-iti .iti input[type="tel"] {
  background: #f7faf8 !important;
  border-color: rgba(27,107,53,0.18) !important;
  color: #1C2E20 !important;
}

html[data-theme="light"] .mp-ud__phone.mapayer-phone-iti .iti input[type="tel"]:focus,
body[data-theme="light"] .mp-ud__phone.mapayer-phone-iti .iti input[type="tel"]:focus {
  background: #ffffff !important;
}

html[data-theme="light"] .mp-ud__step-dot,
body[data-theme="light"] .mp-ud__step-dot {
  background: #eef5f0;
}

html[data-theme="light"] .mp-ud__input::placeholder,
body[data-theme="light"] .mp-ud__input::placeholder {
  color: rgba(75,106,82,0.45) !important;
}

/* Responsive */
@media (max-width: 767px) {
  .mp-ud {
    padding: 20px 0 48px;
  }

  .mp-ud__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 18px;
  }

  .mp-ud__desc {
    max-width: none;
  }

  .mp-ud__notice,
  .mp-ud__form {
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .mp-ud__notice {
    margin: 16px 18px 0;
  }

  .mp-ud__steps {
    max-width: 100%;
    padding: 0 8px;
  }

  .mp-ud__step {
    min-width: 56px;
  }

  .mp-ud__step-label {
    font-size: 0.62rem;
  }

  .mp-ud__step-line {
    max-width: 36px;
  }

  .mp-ud__grid {
    margin: 0 -6px;
  }

  .mp-ud__col {
    padding: 0 6px;
  }
}

/* Compat aliases (anciennes classes éventuelles) */
.mp-userdata-section { padding: 0; min-height: 0; background: transparent; }

/* ─── ══════════════ ADVERTISEMENT PAGES ══════════════ ─── */
.mp-ad-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mp-ad-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-gold-light) !important;
  text-decoration: none;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--mp-radius-sm);
  transition: var(--mp-transition);
}

.mp-ad-link-btn:hover {
  background: rgba(201,162,39,0.18);
  color: var(--mp-gold) !important;
  text-decoration: none;
}

/* ── Step indicator ── */
.mp-ad-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 24px 20px;
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
}

.mp-ad-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: var(--mp-transition);
}

.mp-ad-step.active,
.mp-ad-step.completed {
  opacity: 1;
}

.mp-ad-step__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  border: 2px solid var(--mp-border);
  color: var(--mp-text-muted);
  background: var(--mp-input-bg);
  transition: var(--mp-transition);
}

.mp-ad-step.active .mp-ad-step__circle {
  background: linear-gradient(135deg, var(--mp-green), #27A349);
  color: var(--mp-white);
  border-color: var(--mp-green);
  box-shadow: 0 4px 16px var(--mp-green-glow);
}

.mp-ad-step.completed .mp-ad-step__circle {
  background: rgba(40, 199, 111, 0.15);
  color: #28c76f;
  border-color: rgba(40, 199, 111, 0.4);
}

.mp-ad-step__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mp-ad-step.active .mp-ad-step__label {
  color: var(--mp-white);
}

.mp-ad-step__line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--mp-border);
  margin: 0 12px;
  margin-bottom: 24px;
  border-radius: 2px;
  transition: var(--mp-transition);
}

.mp-ad-step__line.active {
  background: rgba(40, 199, 111, 0.4);
}

/* ── Buy/Sell tabs ── */
.mp-ad-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mp-ad-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--mp-font);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mp-text-muted);
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: var(--mp-transition);
}

.mp-ad-tab:hover {
  border-color: rgba(27,107,53,0.3);
  color: var(--mp-text);
}

.mp-ad-tab.active {
  background: linear-gradient(135deg, var(--mp-green), #27A349);
  color: var(--mp-white);
  border-color: var(--mp-green);
  box-shadow: 0 4px 16px var(--mp-green-glow);
}

.mp-ad-charge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-gold-light);
  font-size: 0.82rem;
  font-weight: 500;
}

.mp-ad-charge i {
  font-size: 1rem;
}

/* ── Currency switcher restyle ── */
.mp-ad-currency-switch {
  position: relative;
  padding: 13px 16px !important;
  background: var(--mp-input-bg) !important;
  border: 1px solid var(--mp-input-border) !important;
  border-radius: var(--mp-radius-sm) !important;
  cursor: pointer;
  transition: var(--mp-transition);
}

.mp-ad-currency-switch:hover {
  border-color: var(--mp-green) !important;
}

.mp-ad-currency-switch .currency_switcher__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--mp-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.mp-ad-currency-switch .currency_switcher__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.mp-ad-currency-switch:hover .currency_switcher__list,
.mp-ad-currency-switch:focus-within .currency_switcher__list {
  display: block;
}

.mp-ad-currency-switch .currency_switcher__item {
  padding: 10px 16px;
  color: var(--mp-text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mp-ad-currency-switch .currency_switcher__item:hover {
  background: rgba(27,107,53,0.12);
}

/* ── Input with addon ── */
.mp-ad-input-group {
  display: flex;
  align-items: stretch;
}

.mp-ad-input-group .mp-userdata-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.mp-ad-input-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(27,107,53,0.1);
  border: 1px solid var(--mp-input-border);
  border-left: none;
  border-top-right-radius: var(--mp-radius-sm);
  border-bottom-right-radius: var(--mp-radius-sm);
  color: var(--mp-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Price result ── */
.mp-ad-price-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--mp-radius-sm);
}

.mp-ad-price-result__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mp-text-muted);
  text-transform: uppercase;
}

.mp-ad-price-result__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mp-gold-light);
}

/* ── Textarea ── */
.mp-userdata-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Navigation buttons ── */
.mp-ad-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.mp-ad-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  font-family: var(--mp-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-text-muted) !important;
  text-decoration: none;
  background: var(--mp-input-bg);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: var(--mp-transition);
}

.mp-ad-nav-btn:hover {
  border-color: var(--mp-green);
  color: var(--mp-white) !important;
  text-decoration: none;
}

/* ── Info icon ── */
.mp-ad-info {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: var(--mp-text-muted);
  cursor: help;
  font-size: 0.75rem;
}

/* ── Light theme ── */
body[data-theme="light"] .mp-ad-steps {
  background: #ffffff;
  border-color: #e5e5e5;
}

body[data-theme="light"] .mp-ad-step__circle {
  background: #f8f9fa;
  border-color: #ddd;
  color: #888;
}

body[data-theme="light"] .mp-ad-step.active .mp-ad-step__circle {
  color: var(--mp-white);
}

body[data-theme="light"] .mp-ad-step.active .mp-ad-step__label {
  color: #1a1a1a;
}

body[data-theme="light"] .mp-ad-step__label {
  color: #888;
}

body[data-theme="light"] .mp-ad-tab {
  background: #f8f9fa;
  border-color: #e0e0e0;
  color: #666;
}

body[data-theme="light"] .mp-ad-currency-switch {
  background: #f8f9fa !important;
  border-color: #e0e0e0 !important;
}

body[data-theme="light"] .mp-ad-currency-switch .currency_switcher__caption {
  color: #1a1a1a;
}

body[data-theme="light"] .mp-ad-currency-switch .currency_switcher__list {
  background: #ffffff;
  border-color: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

body[data-theme="light"] .mp-ad-input-addon {
  background: rgba(27,107,53,0.06);
  border-color: #e0e0e0;
  color: #666;
}

body[data-theme="light"] .mp-ad-nav-btn {
  background: #f8f9fa;
  border-color: #e0e0e0;
  color: #666 !important;
}

body[data-theme="light"] .mp-ad-nav-btn:hover {
  color: #1a1a1a !important;
}

body[data-theme="light"] .mp-ad-charge,
body[data-theme="light"] .mp-ad-price-result {
  background: rgba(201,162,39,0.06);
  border-color: rgba(201,162,39,0.15);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .mp-ad-topbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .mp-ad-link-btn {
    justify-content: center;
  }

  .mp-ad-steps {
    padding: 16px 12px;
    gap: 0;
  }

  .mp-ad-step__label {
    font-size: 0.55rem;
  }

  .mp-ad-step__circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .mp-ad-step__line {
    max-width: 30px;
    margin: 0 6px;
    margin-bottom: 20px;
  }

  .mp-ad-tabs {
    flex-direction: column;
  }

  .mp-ad-nav {
    flex-direction: column;
  }

  .mp-ad-nav-btn,
  .mp-ad-nav .mp-userdata-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================
   OFFER DETAIL — Market desk
   ================================================================ */
.mp-offer-detail {
  padding: 1.75rem 0 0;
  min-height: 60vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, var(--mp-hero-start), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, var(--mp-hero-end), transparent 50%),
    var(--mp-bg);
}

.mp-offer-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  color: var(--mp-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.mp-offer-detail__back:hover { color: var(--mp-green); }

.mp-offer-detail__hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: end;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  backdrop-filter: blur(20px);
  animation: mpOfferFadeUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.mp-offer-detail__hero--promoted {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15), var(--mp-shadow-sm);
}
.mp-offer-detail__hero--buy {
  border-left: 3px solid var(--mp-green);
}
.mp-offer-detail__hero--sell {
  border-left: 3px solid #c0392b;
}

.mp-offer-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.85rem;
}
.mp-offer-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-glass);
  color: var(--mp-text);
  border: 1px solid var(--mp-border-green);
}
.mp-offer-detail__badge--gold {
  background: rgba(201, 162, 39, 0.18);
  color: var(--mp-gold-light);
  border-color: rgba(201, 162, 39, 0.35);
}
.mp-offer-detail__badge--warn {
  background: var(--mp-warning-bg);
  color: var(--mp-warning);
  border-color: rgba(228, 165, 46, 0.4);
}

.mp-offer-detail__action-label {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mp-text-muted);
  letter-spacing: 0.02em;
}
.mp-offer-detail__action-label span {
  color: var(--mp-heading);
  font-weight: 700;
}

.mp-offer-detail__price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.mp-offer-detail__price {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--mp-heading);
  letter-spacing: -0.03em;
}
.mp-offer-detail__price-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mp-text-muted);
}
.mp-offer-detail__price-unit small {
  font-weight: 500;
  opacity: 0.85;
}
.mp-offer-detail__via {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mp-text-muted);
}

.mp-offer-detail__trust {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--mp-radius);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border-green);
}
.mp-offer-detail__trader {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.mp-offer-detail__trader:hover .mp-ad-username { color: var(--mp-green); }
.mp-offer-detail__trader-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mp-ad-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}
.mp-offer-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mp-offer-detail__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-border);
}
.mp-offer-detail__stat b {
  font-size: 1rem;
  color: var(--mp-heading);
  line-height: 1.2;
}
.mp-offer-detail__stat small {
  font-size: 0.7rem;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mp-offer-detail__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: mpOfferFadeUp 0.55s 0.08s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.mp-offer-detail__card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1.25rem 1.35rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mp-offer-detail__card:hover {
  transform: translateY(-2px);
  border-color: var(--mp-border-green);
  box-shadow: var(--mp-shadow-sm);
}
.mp-offer-detail__card--wide { grid-column: 1 / -1; }
.mp-offer-detail__card-title {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mp-text-muted);
}

.mp-offer-detail__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.mp-offer-detail__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.85rem 1rem;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border-green);
}
.mp-offer-detail__tile--empty {
  border-color: rgba(228, 165, 46, 0.45);
  background: var(--mp-warning-bg);
}
.mp-offer-detail__tile-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-text-muted);
}
.mp-offer-detail__tile-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-heading);
  word-break: break-word;
}
.mp-offer-detail__tile-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mp-warning);
}

.mp-offer-detail__pay {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.15rem;
  border-radius: var(--mp-radius);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border-green);
}
.mp-offer-detail__pay-logo {
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.mp-offer-detail__pay-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--mp-green);
  color: #fff;
  font-size: 1.35rem;
}
.mp-offer-detail__pay-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mp-heading);
}

.mp-offer-detail__text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--mp-text);
  line-height: 1.65;
  font-size: 0.95rem;
}
.mp-offer-detail__terms {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
}
.mp-offer-detail__terms h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-text-muted);
}

.mp-offer-detail__cta-spacer { height: 96px; }

.mp-offer-detail__cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: 0.85rem 0;
  border-top: 1px solid var(--mp-border);
  background: var(--mp-overlay);
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  animation: mpOfferSlideUp 0.45s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.mp-offer-detail__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mp-offer-detail__cta-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mp-offer-detail__cta-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mp-heading);
}
.mp-offer-detail__cta-price small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-text-muted);
}
.mp-offer-detail__cta-meta {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
}
.mp-offer-detail__cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.mp-offer-detail__hint {
  margin: 0;
  color: var(--mp-warning);
  font-size: 0.85rem;
  text-align: right;
}
.mp-ad-btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  min-width: 180px;
  justify-content: center;
}

@keyframes mpOfferFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mpOfferSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .mp-offer-detail__hero,
  .mp-offer-detail__grid { grid-template-columns: 1fr; }
  .mp-offer-detail__tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .mp-offer-detail { padding-top: 1.25rem; }
  .mp-offer-detail__hero { padding: 1.25rem; }
  .mp-offer-detail__tiles { grid-template-columns: 1fr; }
  .mp-offer-detail__cta-inner { flex-direction: column; align-items: stretch; }
  .mp-offer-detail__cta-actions { align-items: stretch; }
  .mp-offer-detail__cta-actions .mp-ad-btn { width: 100%; }
  .mp-offer-detail__hint { text-align: left; }
  .mp-offer-detail__cta-spacer { height: 140px; }
}

html[data-theme="light"] .mp-offer-detail__hero,
html[data-theme="light"] .mp-offer-detail__card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(13, 31, 16, 0.06);
}
html[data-theme="light"] .mp-offer-detail__cta-bar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -6px 24px rgba(13, 31, 16, 0.08);
}
html[data-theme="light"] .mp-offer-detail__trust,
html[data-theme="light"] .mp-offer-detail__tile,
html[data-theme="light"] .mp-offer-detail__pay {
  background: rgba(27, 107, 53, 0.04);
}

/* ================================================================
   PUBLIC PROFILE — Trader identity + ads
   ================================================================ */
.mp-profile {
  padding: 1.75rem 0 4rem;
  min-height: 60vh;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, var(--mp-hero-start), transparent 50%),
    var(--mp-bg);
}

.mp-profile__filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  position: relative;
  z-index: 80;
  overflow: visible;
  animation: mpProfileFadeIn 0.45s ease both;
}
@keyframes mpProfileFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mp-profile__filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.mp-profile__filter label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-text-muted);
  margin: 0;
}
.mp-profile__select,
.mp-profile__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--mp-radius-sm);
  border: 1px solid var(--mp-input-border);
  background: var(--mp-input-bg);
  color: var(--mp-text);
  font-family: var(--mp-font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease;
}
.mp-profile__select:focus,
.mp-profile__input:focus {
  border-color: var(--mp-green);
}
.mp-profile__filter--action .mp-ad-btn {
  height: 44px;
  white-space: nowrap;
}

.mp-profile__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mp-profile__identity {
  position: sticky;
  top: calc(var(--mp-header-offset, 80px) + 12px);
  padding: 1.5rem 1.25rem;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  text-align: center;
  animation: mpOfferFadeUp 0.5s ease both;
}
.mp-profile__avatar-wrap {
  margin: 0 auto 1rem;
  width: 96px;
  height: 96px;
}
.mp-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(27, 107, 53, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.mp-profile__name {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mp-heading);
  letter-spacing: -0.02em;
}
.mp-profile__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--mp-text-muted);
}
.mp-profile__meta i { margin-right: 4px; color: var(--mp-green); }

.mp-profile__feedback {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.mp-profile__fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--mp-radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--mp-border);
  background: var(--mp-glass);
}
.mp-profile__fb--up { color: #2ecc71; }
.mp-profile__fb--down { color: var(--mp-danger); }

.mp-profile__verifs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1.15rem;
}
.mp-profile__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.mp-profile__chip.is-ok {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.3);
}
.mp-profile__chip.is-off {
  color: var(--mp-text-muted);
  background: var(--mp-glass);
  border-color: var(--mp-border);
}

.mp-profile__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mp-profile__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.85rem 0.5rem;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border-green);
}
.mp-profile__metric b {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mp-heading);
  line-height: 1.2;
}
.mp-profile__metric small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-text-muted);
}

.mp-profile__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  animation: mpOfferFadeUp 0.5s 0.06s ease both;
}
.mp-profile__section-head {
  margin-bottom: 0.85rem;
}
.mp-profile__section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-heading);
}

.mp-profile__ads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mp-profile-ad {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.2fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mp-profile-ad:hover {
  transform: translateY(-2px);
  border-color: var(--mp-border-green);
  box-shadow: var(--mp-shadow-sm);
}
.mp-profile-ad__crypto {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mp-profile-ad__crypto img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mp-profile-ad__crypto strong {
  display: block;
  font-size: 0.95rem;
  color: var(--mp-heading);
}
.mp-profile-ad__crypto span {
  display: block;
  font-size: 0.8rem;
  color: var(--mp-text-muted);
  font-weight: 600;
}
.mp-profile-ad__method {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-text);
  min-width: 0;
}
.mp-profile-ad__method img {
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
.mp-profile-ad__limits,
.mp-profile-ad__speed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mp-profile-ad__limits small,
.mp-profile-ad__speed small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-text-muted);
  font-weight: 600;
}
.mp-profile-ad__limits span,
.mp-profile-ad__speed span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mp-heading);
  word-break: break-word;
}

.mp-profile__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2.5rem 1rem;
  border-radius: var(--mp-radius);
  border: 1px dashed var(--mp-border);
  background: var(--mp-glass);
  color: var(--mp-text-muted);
}
.mp-profile__empty i {
  font-size: 2rem;
  opacity: 0.6;
}
.mp-profile__empty p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .mp-profile-ad {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .mp-profile-ad__action {
    grid-column: 1 / -1;
  }
  .mp-profile-ad__action .mp-ad-btn { width: 100%; justify-content: center; }
}
@media (max-width: 900px) {
  .mp-profile__layout { grid-template-columns: 1fr; }
  .mp-profile__identity { position: static; }
  .mp-profile__filters {
    grid-template-columns: 1fr 1fr;
  }
  .mp-profile__filter--action { grid-column: 1 / -1; }
  .mp-profile__filter--action .mp-ad-btn { width: 100%; }
}
@media (max-width: 576px) {
  .mp-profile__filters { grid-template-columns: 1fr; }
  .mp-profile-ad { grid-template-columns: 1fr; }
}

html[data-theme="light"] .mp-profile__filters,
html[data-theme="light"] .mp-profile__identity,
html[data-theme="light"] .mp-profile-ad {
  background: #fff;
  box-shadow: 0 4px 20px rgba(13, 31, 16, 0.05);
}
html[data-theme="light"] .mp-profile__select,
html[data-theme="light"] .mp-profile__input {
  background: #fff;
  border-color: rgba(27, 107, 53, 0.2);
}


/* === PROFILE ENHANCEMENTS v2 === */
.mp-profile__filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(110px, .7fr) 90px;
  gap: 0.85rem;
  align-items: end;
  position: relative;
  z-index: 80;
  overflow: visible;
}
.mp-profile__layout {
  position: relative;
  z-index: 1;
}
.mp-profile__filter--asset {
  position: relative;
  z-index: 1;
  overflow: visible;
}
.mp-profile__filter--asset .mp-asset-selector {
  width: 100%;
  position: relative;
  z-index: 1;
}
.mp-profile__filter--asset .mp-asset-selector.open {
  z-index: 90;
}
.mp-profile__filter--asset .mp-asset-trigger { min-height: 44px; padding: 8px 12px; }
.mp-profile__filter--asset .mp-asset-trigger__img { width: 28px; height: 28px; }
.mp-profile__filter--asset .mp-asset-dropdown {
  width: 100%;
  min-width: 280px;
  z-index: 10050;
  background: #0a160e;
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
}
html[data-theme="light"] .mp-profile__filter--asset .mp-asset-dropdown {
  background: #ffffff;
  border-color: rgba(27, 107, 53, 0.2);
  box-shadow: 0 16px 40px rgba(13, 31, 16, 0.14);
}
.mp-profile__filter--sm { max-width: 100px; }
.mp-profile__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mp-profile__search-wrap i {
  position: absolute;
  left: 12px;
  color: var(--mp-text-muted);
  pointer-events: none;
}
.mp-profile__search-wrap .mp-profile__input { padding-left: 36px; }

.mp-profile__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 6px;
  border-radius: var(--mp-radius);
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
}
.mp-profile__tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--mp-radius-sm);
  background: transparent;
  color: var(--mp-text-muted);
  font-family: var(--mp-font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mp-profile__tab.is-active {
  background: var(--mp-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 107, 53, 0.35);
}
.mp-profile__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.15);
}
.mp-profile__tab:not(.is-active) .mp-profile__tab-count {
  background: var(--mp-surface-2);
  color: var(--mp-text);
}

.mp-profile__panel { display: none; animation: mpOfferFadeUp 0.35s ease both; }
.mp-profile__panel.is-active { display: block; }

.mp-profile-ad--clickable { cursor: pointer; position: relative; }
.mp-profile-ad--clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.25s ease;
}
.mp-profile-ad--clickable:hover::after {
  box-shadow: inset 0 0 0 1px rgba(27,107,53,0.45);
}
.mp-profile-ad--own {
  border-color: rgba(201, 162, 39, 0.35);
}
.mp-profile-ad__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-green), var(--mp-gold));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mp-profile-ad__rate {
  color: var(--mp-green) !important;
  font-weight: 700 !important;
}
.mp-profile-ad__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.mp-profile-ad__detail-link {
  font-size: 0.75rem;
  text-align: center;
  color: var(--mp-text-muted);
  text-decoration: none;
}
.mp-profile-ad__detail-link:hover { color: var(--mp-green); }

.mp-profile__pager {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
.mp-profile__pager .pagination { gap: 4px; flex-wrap: wrap; }
.mp-profile__pager .page-link {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  color: var(--mp-text);
  border-radius: var(--mp-radius-sm);
  padding: 6px 12px;
}
.mp-profile__pager .page-item.active .page-link,
.mp-profile__pager .page-link:hover {
  background: var(--mp-green);
  border-color: var(--mp-green);
  color: #fff;
}

@media (max-width: 1100px) {
  .mp-profile__filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .mp-profile__filters { grid-template-columns: 1fr; }
  .mp-profile__filter--sm { max-width: none; }
}

html[data-theme="light"] .mp-profile__tabs { background: rgba(27,107,53,0.05); }
html[data-theme="light"] .mp-profile__tab:not(.is-active) .mp-profile__tab-count { background: #eef5f0; }


/* === PROFILE OWNER ACTIONS === */
.mp-profile-ad__owner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.mp-profile-ad__owner-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-gold);
  text-align: center;
}
.mp-profile-ad__owner-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.mp-profile-ad__status-form { margin: 0; display: inline-flex; }
.mp-profile-ad__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--mp-radius-sm);
  border: 1px solid var(--mp-border);
  background: var(--mp-glass);
  color: var(--mp-text);
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-profile-ad__icon-btn:hover {
  border-color: var(--mp-green);
  color: #fff;
  background: var(--mp-green);
}
.mp-profile-ad__icon-btn.is-pause:hover {
  background: var(--mp-warning);
  border-color: var(--mp-warning);
  color: #1a1200;
}
.mp-profile-ad__icon-btn.is-play:hover {
  background: var(--mp-green);
  border-color: var(--mp-green);
  color: #fff;
}
html[data-theme="light"] .mp-profile-ad__icon-btn {
  background: #fff;
  border-color: rgba(27,107,53,0.18);
}
