/* Mnory 2026 card system */
:root {
  --mn-ink: #172033;
  --mn-muted: #697386;
  --mn-line: #e5e9f0;
  --mn-surface: #fff;
  --mn-soft: #f5f7fb;
  --mn-brand: #2563eb;
  --mn-brand-dark: #173ea5;
  --mn-teal: #0f766e;
  --mn-radius: 16px;
  --mn-shadow: 0 8px 24px rgba(20, 32, 58, .08);
}

.theme-toggle-btn {
  display: grid;
  place-items: center;
}
.theme-toggle-btn .material-icons { font-size: 20px; }
.fab-menu-items .theme-toggle-btn {
  background: linear-gradient(135deg, #334155 0%, #1e293b 55%, #0f172a 100%);
  color: #fff;
  flex: 0 0 52px;
  visibility: visible;
  opacity: 1;
}
.fab-menu-items .theme-toggle-btn:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 55%, #1e293b 100%);
}

.mn-product-card {
  background: var(--mn-surface);
  border: 1px solid var(--mn-line);
  border-radius: var(--mn-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(20, 32, 58, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mn-product-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: var(--mn-shadow); }
.mn-product-media { position: relative; aspect-ratio: 4 / 4.7; overflow: hidden; background: #f1f3f7; }
.mn-product-image-link { display: block; width: 100%; height: 100%; }
.mn-product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, opacity .4s ease; }
.mn-product-image--hover { opacity: 0; }
.mn-product-card:hover .mn-product-image--main { transform: scale(1.045); }
.mn-product-card:hover .mn-product-image--hover { opacity: 1; transform: scale(1.045); }
.mn-product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #aab2c0; }
.mn-product-placeholder .material-icons { font-size: 3rem; }
.mn-product-badges { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mn-badge {
  display: inline-flex; gap: 5px; align-items: center;
  padding: 6px 11px 6px 9px; color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 750; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 14px rgba(20,32,58,.18), inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
[dir="rtl"] .mn-badge { padding: 6px 9px 6px 11px; }
.mn-badge i { font-size: .72em; opacity: .95; }
.mn-badge b { font-weight: 800; }
.mn-badge--sale { background: linear-gradient(135deg, #ff5b5b, #dc2626 65%, #b91c1c); box-shadow: 0 4px 16px rgba(220,38,38,.38), inset 0 1px 0 rgba(255,255,255,.25); }
.mn-badge--new { background: linear-gradient(135deg, #4f8bff, var(--mn-brand) 65%, var(--mn-brand-dark)); box-shadow: 0 4px 16px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.mn-badge--best { background: linear-gradient(135deg, #f59e0b, #b45309 70%); box-shadow: 0 4px 16px rgba(180,83,9,.32), inset 0 1px 0 rgba(255,255,255,.25); }
.mn-badge--dark { background: linear-gradient(135deg, #4b5568, var(--mn-ink) 70%); }
.mn-product-actions { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3; display: grid; gap: 8px; transform: translateX(12px); opacity: 0; transition: .25s ease; }
[dir="rtl"] .mn-product-actions { transform: translateX(-12px); }
.mn-product-card:hover .mn-product-actions, .mn-product-card:focus-within .mn-product-actions { opacity: 1; transform: none; }
.mn-icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(23,32,51,.1); background: rgba(255,255,255,.94); color: var(--mn-ink); box-shadow: 0 5px 16px rgba(20,32,58,.12); transition: .2s ease; backdrop-filter: blur(8px); }
.mn-icon-btn:hover, .mn-icon-btn.active { background: var(--mn-ink); border-color: var(--mn-ink); color: #fff; transform: scale(1.05); }
.mn-product-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.mn-product-eyebrow { color: var(--mn-brand); text-transform: uppercase; letter-spacing: .09em; font-size: .6rem; font-weight: 700; margin-bottom: 4px; }
.mn-product-title { color: var(--mn-ink); text-decoration: none; font-size: .9rem; font-weight: 650; line-height: 1.35; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-product-title:hover { color: var(--mn-brand); }
.mn-product-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: .72rem; color: var(--mn-muted); }
.mn-rating i { color: #f59e0b; }
.mn-rating small { color: #9aa3b1; }
.mn-stock { display: inline-flex; align-items: center; gap: 5px; color: #16794b; white-space: nowrap; }
.mn-stock i { font-size: .38rem; }
.mn-stock--out { color: #b42318; }
.mn-product-footer { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: auto; padding-top: 10px; }
.mn-product-price { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.mn-product-price-main { display: flex; align-items: baseline; gap: 4px; line-height: 1; white-space: nowrap; }
.mn-price-symbol { color: var(--mn-brand); font-size: .72rem; font-weight: 800; align-self: flex-start; margin-top: 1px; }
.mn-price-amount { color: var(--mn-ink); font-size: 1.05rem; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mn-price-currency { color: #7b8494; font-size: .54rem; font-weight: 750; letter-spacing: .055em; }
.mn-product-price-sale { display: flex; align-items: center; gap: 6px; line-height: 1; }
.mn-product-price-sale del { color: #939cab; font-size: .68rem; }
.mn-product-price-sale span { color: #b42318; background: #fff0ed; border-radius: 999px; padding: 3px 6px; font-size: .56rem; font-weight: 750; white-space: nowrap; }
.mn-product-arrow { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--mn-ink); background: var(--mn-soft); text-decoration: none; flex: 0 0 auto; transition: .2s; }
.mn-product-arrow:hover { color: #fff; background: var(--mn-brand); }
[dir="rtl"] .mn-product-arrow i, [dir="rtl"] .mn-profile-cta i { transform: rotate(180deg); }

.mn-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* ══════════════════════════════════════════════════════════════════════
   MNORY 2026 — Modern Freelancer, Company & Job Cards Design System
   ══════════════════════════════════════════════════════════════════════ */
.mn-card-modern,
.mn-profile-card {
  background: var(--mn-surface);
  border: 1px solid var(--mn-line);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 18px rgba(20, 32, 58, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.mn-card-modern:hover,
.mn-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 32, 58, 0.1);
  border-color: #cbd5e1;
}

/* ── Card Cover Banners ── */
.mn-card-cover,
.mn-profile-cover {
  height: 78px;
  position: relative;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.mn-freelancer-card .mn-card-cover,
.mn-freelancer-card .mn-profile-cover,
.mn-cover-freelancer {
  height: 84px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(52, 211, 153, 0.38), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0f766e 100%);
}

.mn-freelancer-card .mn-cover-freelancer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.mn-company-card .mn-card-cover,
.mn-company-card .mn-profile-cover,
.mn-cover-company {
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.4), transparent 60%),
              linear-gradient(135deg, #1e1b4b 0%, #2e287a 55%, #3730a3 100%);
}

.mn-cover-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.mn-chip-glass,
.mn-profile-type,
.mn-availability,
.mn-trusted,
.mn-premium-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mn-avail-indicator {
  color: #ffffff;
}

.mn-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  display: inline-block;
  animation: mnPulseLive 1.8s infinite;
}

@keyframes mnPulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.mn-chip-trusted {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.4);
}

/* ── Card Content Body ── */
.mn-card-body,
.mn-profile-content {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: -38px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.mn-avatar-container,
.mn-profile-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  border: 3.5px solid var(--mn-surface);
  border-radius: 50%;
  background: var(--mn-surface);
  box-shadow: 0 10px 22px -3px rgba(6, 78, 59, 0.22), 0 0 0 1px rgba(16, 185, 129, 0.2);
  display: grid;
  place-items: center;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.mn-freelancer-card:hover .mn-profile-avatar {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 28px -3px rgba(6, 78, 59, 0.32), 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.mn-avatar-ring--square,
.mn-profile-avatar--square {
  border-radius: 18px;
}

.mn-avatar-img,
.mn-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.mn-avatar-placeholder,
.mn-profile-avatar .material-icons {
  color: #64748b;
  font-size: 2.2rem;
}

.mn-badge-verified,
.mn-verified {
  position: absolute;
  inset-inline-end: -2px;
  inset-block-end: 1px;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--mn-surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.6rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
  z-index: 2;
}

/* ── Identity & Typography ── */
.mn-card-identity {
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.mn-card-name,
.mn-profile-content h3 {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.mn-card-name a,
.mn-profile-content h3 a {
  color: var(--mn-ink);
  text-decoration: none;
  transition: color 0.18s;
}

.mn-card-name a:hover,
.mn-profile-content h3 a:hover,
.mn-freelancer-card:hover .mn-card-name a {
  color: #059669;
}

.mn-card-role,
.mn-profile-subtitle {
  color: var(--mn-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.3em;
}

/* ── Highlights Row (Rating, Location, Jobs) ── */
.mn-card-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 999px;
  font-size: 0.74rem;
  width: 100%;
}

body.dark-mode .mn-card-highlights,
[data-theme="dark"] .mn-card-highlights {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.mn-highlight-rating,
.mn-profile-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mn-ink);
  font-weight: 750;
  margin-bottom: 0;
  white-space: nowrap;
}

.mn-highlight-rating i,
.mn-profile-rating i {
  color: #f59e0b;
  font-size: 0.75rem;
}

.mn-highlight-sub,
.mn-profile-rating span {
  color: var(--mn-muted);
  font-weight: 500;
  font-size: 0.7rem;
}

.mn-highlight-location,
.mn-highlight-jobs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mn-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.mn-highlight-location i {
  font-size: 0.7rem;
  color: #64748b;
  flex-shrink: 0;
}

/* ── Skills & Meta Pills Wrap ── */
.mn-skills-wrap,
.mn-profile-tags,
.mn-meta-pills-wrap,
.mn-profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  min-height: 26px;
  width: 100%;
}

.mn-skill-pill,
.mn-profile-tags span {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.18s;
}

.mn-skill-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.mn-skill-more,
.mn-job-tag--more {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
  font-weight: 750;
}

body.dark-mode .mn-skill-pill,
[data-theme="dark"] .mn-skill-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

body.dark-mode .mn-skill-more,
[data-theme="dark"] .mn-skill-more {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.mn-meta-pill,
.mn-profile-meta span {
  border: 1px solid var(--mn-line);
  background: var(--mn-soft);
  color: var(--mn-muted);
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Bottom Section (Price & Action) ── */
.mn-card-bottom,
.mn-profile-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--mn-line);
  position: relative;
  width: 100%;
  min-height: 52px;
}

.mn-price-box,
.mn-profile-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mn-price-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.mn-price-value,
.mn-profile-price strong {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--mn-ink);
  letter-spacing: -0.02em;
}

.mn-price-unit,
.mn-profile-price span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mn-muted);
}

/* ── CTA Wrap & Hover Reveal ── */
.mn-card-cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 40px;
  height: 40px;
}

.mn-cta-preview {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--mn-ink);
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mn-card-btn-action,
.mn-profile-cta {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover reveal on desktop */
@media (hover: hover) and (min-width: 641px) {
  .mn-freelancer-card .mn-card-btn-action {
    position: absolute;
    inset-inline-end: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.94);
    pointer-events: none;
    z-index: 5;
  }

  .mn-freelancer-card:hover .mn-card-btn-action,
  .mn-freelancer-card:focus-within .mn-card-btn-action {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mn-freelancer-card:hover .mn-cta-preview,
  .mn-freelancer-card:focus-within .mn-cta-preview {
    opacity: 0;
    transform: scale(0.6) rotate(35deg);
    pointer-events: none;
  }
}

/* Touch & Mobile fallback */
@media (hover: none), (max-width: 640px) {
  .mn-freelancer-card .mn-cta-preview {
    display: none !important;
  }
  .mn-freelancer-card .mn-card-btn-action {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}

.mn-card-btn-action:hover,
.mn-profile-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.mn-card-btn-action:hover i,
.mn-profile-cta:hover i {
  transform: translateX(3px);
}

[dir="rtl"] .mn-card-btn-action i,
[dir="rtl"] .mn-profile-cta i,
[dir="rtl"] .mn-cta-preview i {
  transform: scaleX(-1);
}

[dir="rtl"] .mn-card-btn-action:hover i,
[dir="rtl"] .mn-profile-cta:hover i {
  transform: scaleX(-1) translateX(3px);
}

/* Dark mode overrides for freelancer cards */
body.dark-mode .mn-freelancer-card,
[data-theme="dark"] .mn-freelancer-card {
  background: #151a24;
  border-color: #2a3240;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .mn-freelancer-card:hover,
[data-theme="dark"] .mn-freelancer-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mn-freelancer-card .mn-cta-preview,
[data-theme="dark"] .mn-freelancer-card .mn-cta-preview {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

body.dark-mode .mn-freelancer-card .mn-card-btn-action,
[data-theme="dark"] .mn-freelancer-card .mn-card-btn-action {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .mn-freelancer-card .mn-card-btn-action:hover,
[data-theme="dark"] .mn-freelancer-card .mn-card-btn-action:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: transparent;
}

.mn-empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  text-align: center;
  color: var(--mn-muted);
}
.mn-empty-state i { font-size: 1.8rem; margin-bottom: 8px; }
.mn-empty-state p { margin: 0; }

/* ══════════════════════════════════════════════════════════════════════
   REFINED COMPACT JOB CARD
   ══════════════════════════════════════════════════════════════════════ */
.mn-job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--mn-surface);
  border: 1px solid var(--mn-line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 18px rgba(20, 32, 58, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.mn-job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 32, 58, 0.1);
  border-color: var(--mn-brand);
  color: inherit;
}

.mn-job-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mn-job-header,
.mn-job-top {
  position: relative;
  padding: 16px 16px 12px;
  background: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.06), transparent 70%), var(--mn-surface);
  border-bottom: 1px solid var(--mn-line);
  flex-shrink: 0;
}

.mn-job-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mn-badge-type {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mn-badge-type.mn-badge-fixed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.mn-badge-type.mn-badge-hourly {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.mn-badge-level {
  background: var(--mn-soft);
  color: var(--mn-muted);
  border: 1px solid var(--mn-line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mn-job-star,
.mn-badge-featured {
  margin-inline-start: auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.mn-job-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mn-ink);
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mn-job-company {
  font-size: 0.74rem;
  color: var(--mn-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mn-job-company i {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.mn-job-dot {
  color: #cbd5e1;
}

.mn-job-body {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mn-job-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mn-job-tag {
  font-size: 0.68rem;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mn-soft);
  color: #475569;
  border: 1px solid var(--mn-line);
  white-space: nowrap;
}

.mn-job-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  gap: 8px;
}

.mn-job-budget-lbl {
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mn-muted);
  display: block;
}

.mn-job-budget-val {
  font-size: 1.02rem;
  font-weight: 850;
  color: var(--mn-ink);
  white-space: nowrap;
}

.mn-job-proposals {
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--mn-brand);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mn-job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--mn-soft);
  border-top: 1px solid var(--mn-line);
  margin-top: auto;
  flex-shrink: 0;
  gap: 8px;
}

.mn-job-time,
.mn-job-time-footer {
  font-size: 0.7rem;
  color: var(--mn-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mn-job-cta {
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--mn-brand);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.18s;
  white-space: nowrap;
}

.mn-job-card:hover .mn-job-cta i {
  transform: translateX(3px);
}

[dir="rtl"] .mn-job-card:hover .mn-job-cta i {
  transform: translateX(-3px);
}

/* ══════════════════════════════════════════════════════════════════════
   DETAILED PROJECT CARD (ROW VIEW)
   ══════════════════════════════════════════════════════════════════════ */
.mn-project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mn-project-card {
  background: var(--mn-surface);
  border: 1px solid var(--mn-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(20, 32, 58, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.mn-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 32, 58, 0.09);
  border-color: #cbd5e1;
}

.mn-project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mn-project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mn-project-type,
.mn-project-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.mn-project-type {
  background: var(--mn-brand);
  color: #ffffff;
}

.mn-project-level {
  background: var(--mn-soft);
  color: var(--mn-muted);
  border: 1px solid var(--mn-line);
}

.mn-project-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.mn-project-status--open { background: #e7f7ee; color: #0f7a4d; }
.mn-project-status--in_progress, .mn-project-status--active { background: #eaf1ff; color: var(--mn-brand-dark); }
.mn-project-status--completed { background: #eef0f4; color: #566176; }
.mn-project-status--cancelled, .mn-project-status--closed, .mn-project-status--disputed { background: #fdecec; color: #b42318; }
.mn-project-status--draft { background: var(--mn-soft); color: var(--mn-muted); }

.mn-project-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
}

.mn-project-title a {
  color: var(--mn-ink);
  text-decoration: none;
  transition: color 0.18s;
}

.mn-project-title a:hover {
  color: var(--mn-brand);
}

.mn-project-budget-wrap {
  text-align: end;
  flex-shrink: 0;
}

.mn-project-budget {
  display: block;
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--mn-ink);
  white-space: nowrap;
}

.mn-project-budget-unit {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--mn-muted);
}

.mn-project-deadline {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--mn-muted);
}

.mn-project-desc {
  color: var(--mn-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 8px 0 14px;
}

.mn-project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mn-project-skill {
  display: inline-block;
  background: var(--mn-soft);
  color: #475569;
  border: 1px solid var(--mn-line);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
}

.mn-project-skill--more {
  background: transparent;
  border-style: dashed;
}

.mn-project-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--mn-line);
}

.mn-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--mn-muted);
  font-size: 0.8rem;
}

.mn-project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mn-project-meta i {
  color: #9aa3b1;
}

.mn-project-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mn-project-owner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

[dir="rtl"] .mn-job-cta i, [dir="rtl"] .mn-project-cta i, [dir="rtl"] .mn-project-owner-actions i.fa-arrow-right { transform: rotate(180deg); }

/* ---- Global search live-suggestions dropdown ---- */
.mn-search-suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; background: var(--mn-surface); border: 1px solid var(--mn-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,32,58,.16); max-height: 72vh; overflow-y: auto; z-index: 1050; padding: 8px; text-align: start; }
.mn-search-suggest[hidden] { display: none; }
.mn-search-group + .mn-search-group { border-top: 1px solid var(--mn-line); margin-top: 4px; padding-top: 4px; }
.mn-search-group-label { font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--mn-muted); display: flex; align-items: center; gap: 6px; padding: 6px 8px 2px; }
.mn-search-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.mn-search-item:hover, .mn-search-item.is-active { background: var(--mn-soft); color: inherit; }
.mn-search-item-thumb { width: 36px; height: 36px; border-radius: 8px; background: var(--mn-soft); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--mn-muted); font-size: .8rem; }
.mn-search-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mn-search-item-text { min-width: 0; }
.mn-search-item-title { font-size: .82rem; font-weight: 650; color: var(--mn-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-search-item-subtitle { font-size: .7rem; color: var(--mn-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-search-group-viewall { display: block; text-align: center; font-size: .72rem; font-weight: 650; color: var(--mn-brand); padding: 7px; border-radius: 8px; text-decoration: none; margin-top: 2px; }
.mn-search-group-viewall:hover { background: var(--mn-soft); }
.mn-search-empty, .mn-search-loading { padding: 22px 12px; text-align: center; color: var(--mn-muted); font-size: .8rem; }
.mn-search-recent-title { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--mn-muted); padding: 6px 8px; }
.mn-search-recent-clear { font-size: .68rem; color: var(--mn-brand); cursor: pointer; background: none; border: none; padding: 0; }
.mn-search-recent-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.mn-search-recent-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--mn-soft); border: 1px solid var(--mn-line); border-radius: 999px; padding: 5px 10px; font-size: .72rem; cursor: pointer; color: var(--mn-ink); }
.mn-search-recent-chip:hover { border-color: #cbd5e1; }

body.dark-mode .mn-search-suggest { background: #151a24; border-color: #303846; }
body.dark-mode .mn-search-group + .mn-search-group { border-color: #303846; }
body.dark-mode .mn-search-item-title { color: #f1f5f9; }
body.dark-mode .mn-search-item-thumb, body.dark-mode .mn-search-recent-chip { background: #242b37; border-color: #354052; color: #cbd5e1; }
body.dark-mode .mn-search-item:hover, body.dark-mode .mn-search-item.is-active { background: #202733; }

@media (max-width: 767px) {
  .mn-product-card { border-radius: 12px; }
  .mn-product-body { padding: 9px; }
  .mn-product-title { font-size: .78rem; }
  .mn-product-summary { margin-top: 6px; }
  .mn-stock { display: none; }
  .mn-product-badges { inset-block-start: 8px; inset-inline-start: 8px; gap: 4px; }
  .mn-badge { font-size: .58rem; padding: 5px 9px 5px 7px; gap: 3px; }
  [dir="rtl"] .mn-badge { padding: 5px 7px 5px 9px; }
  .mn-price-amount { font-size: 1rem; }
  .mn-price-currency { font-size: .5rem; }
  .mn-product-price-sale span { display: none; }
  .mn-product-arrow { width: 28px; height: 28px; }
  .mn-product-actions { opacity: 1; transform: none; }
  .mn-icon-btn { width: 32px; height: 32px; border-radius: 10px; }
  .mn-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .mn-card-modern,
  .mn-profile-card { border-radius: 16px; }
  .mn-card-cover,
  .mn-profile-cover { height: 64px; padding: 8px 10px; }
  .mn-card-body,
  .mn-profile-content { padding: 0 10px 12px; margin-top: -28px; }
  .mn-avatar-container,
  .mn-profile-avatar,
  .mn-avatar-ring { width: 56px; height: 56px; margin-bottom: 6px; }
  .mn-badge-verified,
  .mn-verified { width: 18px; height: 18px; font-size: 0.5rem; }
  .mn-card-name,
  .mn-profile-content h3 { font-size: 0.85rem; }
  .mn-card-role,
  .mn-profile-subtitle { font-size: 0.7rem; }
  .mn-card-highlights { font-size: 0.68rem; gap: 6px; margin-bottom: 8px; }
  .mn-chip-glass,
  .mn-profile-type,
  .mn-availability,
  .mn-trusted,
  .mn-premium-badge { font-size: 0.58rem; padding: 3px 6px; gap: 3px; }
  .mn-skill-pill,
  .mn-meta-pill,
  .mn-profile-tags span,
  .mn-profile-meta span { font-size: 0.62rem; padding: 3px 7px; }
  .mn-price-value,
  .mn-profile-price strong { font-size: 0.95rem; }
  .mn-card-btn-action,
  .mn-profile-cta { font-size: 0.7rem; min-height: 36px; padding: 6px 10px; border-radius: 10px; }
  
  .mn-job-card { border-radius: 16px; }
  .mn-job-header,
  .mn-job-top { padding: 12px 12px 10px; }
  .mn-job-title { font-size: 0.84rem; }
  .mn-job-company { font-size: 0.68rem; }
  .mn-job-body { padding: 10px 12px; }
  .mn-job-skills,
  .mn-job-meta,
  .mn-job-footer { padding-inline: 12px; }
  .mn-job-budget-val { font-size: 0.92rem; }
  .mn-job-proposals { font-size: 0.65rem; padding: 3px 8px; }
  
  .mn-project-card { padding: 16px; border-radius: 16px; }
  .mn-project-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .mn-project-title { font-size: 1rem; }
  .mn-project-budget { font-size: 1.15rem; }
  .mn-project-budget-wrap { text-align: start; }
  .mn-project-footer { flex-direction: column; align-items: stretch; }
  .mn-project-cta, .mn-project-owner-actions { width: 100%; }
  .mn-project-cta .mn-profile-cta,
  .mn-project-cta .mn-card-btn-action,
  .mn-project-owner-actions a { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .mn-card-grid { grid-template-columns: 1fr; gap: 14px; }
  .mn-card-body,
  .mn-profile-content { padding: 0 14px 14px; margin-top: -32px; }
  .mn-avatar-container,
  .mn-profile-avatar,
  .mn-avatar-ring { width: 62px; height: 62px; }
  .mn-card-name,
  .mn-profile-content h3 { font-size: 0.95rem; }
  .mn-card-role,
  .mn-profile-subtitle { font-size: 0.76rem; }
  .mn-card-btn-action,
  .mn-profile-cta { font-size: 0.76rem; min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .mn-product-card, .mn-product-image, .mn-card-modern, .mn-profile-card, .mn-job-card, .mn-icon-btn { transition: none !important; }
}

body.dark-mode .mn-product-card,
body.dark-mode .mn-card-modern,
body.dark-mode .mn-profile-card { background: #151a24; border-color: #303846; }

body.dark-mode .mn-product-title,
body.dark-mode .mn-product-price strong,
body.dark-mode .mn-card-name a,
body.dark-mode .mn-profile-content h3 a,
body.dark-mode .mn-highlight-rating,
body.dark-mode .mn-profile-rating,
body.dark-mode .mn-price-box,
body.dark-mode .mn-profile-price { color: #f1f5f9; }

body.dark-mode .mn-product-body,
body.dark-mode .mn-card-body,
body.dark-mode .mn-profile-content { color: #e2e8f0; }

body.dark-mode .mn-product-arrow,
body.dark-mode .mn-skill-pill,
body.dark-mode .mn-meta-pill,
body.dark-mode .mn-profile-tags span,
body.dark-mode .mn-profile-meta span { background: #242b37; border-color: #354052; color: #cbd5e1; }

body.dark-mode .mn-product-media,
body.dark-mode .mn-product-placeholder { background: #202733; }

body.dark-mode .mn-card-name a:hover,
body.dark-mode .mn-profile-content h3 a:hover,
body.dark-mode .mn-project-title a:hover { color: #8fb5ff; }

body.dark-mode .mn-card-role,
body.dark-mode .mn-profile-subtitle,
body.dark-mode .mn-product-summary,
body.dark-mode .mn-highlight-sub,
body.dark-mode .mn-profile-rating span,
body.dark-mode .mn-price-unit,
body.dark-mode .mn-profile-price span { color: #98a4b6; }

body.dark-mode .mn-card-cover,
body.dark-mode .mn-profile-cover { background: linear-gradient(135deg, #18233a, #151d2f 55%, #1e2e4a); }
body.dark-mode .mn-freelancer-card .mn-card-cover,
body.dark-mode .mn-freelancer-card .mn-profile-cover,
body.dark-mode .mn-cover-freelancer { background: linear-gradient(135deg, #092e29, #0d3b36 55%, #0f4842); }
body.dark-mode .mn-company-card .mn-card-cover,
body.dark-mode .mn-company-card .mn-profile-cover,
body.dark-mode .mn-cover-company { background: linear-gradient(135deg, #1b1735, #241d47 55%, #2a2254); }

body.dark-mode .mn-avatar-ring,
body.dark-mode .mn-profile-avatar { border-color: #151a24; background: #252d3a; }
body.dark-mode .mn-badge-verified,
body.dark-mode .mn-verified { border-color: #151a24; }

body.dark-mode .mn-chip-glass,
body.dark-mode .mn-profile-type,
body.dark-mode .mn-availability,
body.dark-mode .mn-trusted,
body.dark-mode .mn-premium-badge { background: rgba(15, 20, 29, 0.7); color: #d6deea; border-color: rgba(255, 255, 255, 0.12); }

body.dark-mode .mn-card-btn-action,
body.dark-mode .mn-profile-cta { background: #2563eb; color: #ffffff; }
body.dark-mode .mn-card-btn-action:hover,
body.dark-mode .mn-profile-cta:hover { background: #3b82f6; }

body.dark-mode .mn-job-card,
body.dark-mode .mn-project-card { background: #151a24; border-color: #303846; }
body.dark-mode .mn-job-header,
body.dark-mode .mn-job-top { background: #18202d; border-color: #303846; }
body.dark-mode .mn-job-title { color: #f1f5f9; }
body.dark-mode .mn-job-company,
body.dark-mode .mn-job-time,
body.dark-mode .mn-job-time-footer { color: #98a4b6; }
body.dark-mode .mn-badge-level { background: #242b37; border-color: #354052; color: #cbd5e1; }
body.dark-mode .mn-job-tag { background: #242b37; border-color: #354052; color: #cbd5e1; }
body.dark-mode .mn-job-skills,
body.dark-mode .mn-job-footer,
body.dark-mode .mn-project-footer { border-color: #303846; }
body.dark-mode .mn-job-footer { background: #10141c; }
body.dark-mode .mn-job-tag,
body.dark-mode .mn-project-skill,
body.dark-mode .mn-project-level { background: #242b37; border-color: #354052; color: #cbd5e1; }
body.dark-mode .mn-job-budget-val,
body.dark-mode .mn-project-title a,
body.dark-mode .mn-project-budget,
body.dark-mode .mn-job-cta { color: #f1f5f9; }
body.dark-mode .mn-project-desc,
body.dark-mode .mn-project-meta,
body.dark-mode .mn-project-budget-unit,
body.dark-mode .mn-project-deadline { color: #98a4b6; }
body.dark-mode .mn-project-meta i,
body.dark-mode .mn-job-time { color: #6b7688; }
body.dark-mode .fab-menu-items .theme-toggle-btn {
  color: #172033;
  background: linear-gradient(135deg, #fff7d6 0%, #fde68a 55%, #fbbf24 100%);
  border-color: rgba(255,255,255,.35);
}
body.dark-mode .mn-price-amount { color: #f1f5f9; }
body.dark-mode .mn-price-symbol { color: #8fb5ff; }
body.dark-mode .mn-price-currency { color: #8995a7; }
body.dark-mode .mn-product-price-sale span { color: #ffb4a8; background: #47211d; }

/* Promo registration menu — explicit light-theme palette. */
body:not(.dark-mode) .promo-banner .promo-register-menu {
  --bs-dropdown-bg: #fff;
  --bs-dropdown-color: #172033;
  --bs-dropdown-link-color: #172033;
  --bs-dropdown-link-hover-color: #172033;
  --bs-dropdown-link-hover-bg: #f3f6fb;
  min-width: 280px;
  padding: 8px;
  background: #fff !important;
  color: #172033 !important;
  border: 1px solid #e2e7ef !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.16), 0 4px 14px rgba(15,23,42,.08) !important;
}
body:not(.dark-mode) .promo-register-menu .dropdown-header {
  color: #7b8494 !important;
  padding: 7px 10px 9px !important;
  font-weight: 750;
}
body:not(.dark-mode) .promo-register-menu .promo-reg-item {
  min-height: 52px;
  padding: 8px 10px !important;
  color: #172033 !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 11px !important;
}
body:not(.dark-mode) .promo-register-menu .promo-reg-item strong {
  color: #172033 !important;
  font-size: .82rem;
  font-weight: 720;
}
body:not(.dark-mode) .promo-register-menu .promo-reg-item small,
body:not(.dark-mode) .promo-register-menu .promo-reg-item .text-muted {
  color: #748094 !important;
  margin-top: 2px;
  font-size: .68rem;
}
body:not(.dark-mode) .promo-register-menu .promo-reg-item:hover,
body:not(.dark-mode) .promo-register-menu .promo-reg-item:focus {
  color: #172033 !important;
  background: #f3f6fb !important;
  border-color: #e4eaf3;
  transform: translateX(2px) !important;
}
[dir="rtl"] body:not(.dark-mode) .promo-register-menu .promo-reg-item:hover,
[dir="rtl"] body:not(.dark-mode) .promo-register-menu .promo-reg-item:focus {
  transform: translateX(-2px) !important;
}
body:not(.dark-mode) .promo-register-menu .promo-reg-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.05);
}
body:not(.dark-mode) .promo-register-menu .promo-reg-icon .material-icons {
  color: inherit !important;
}

/* ══════════════════════════════════════════════════════════════════════
   Vendor (store) card
   Blue cover in the header's blue-to-black gradient, overlapping logo,
   hairline stats and a solid brand CTA. Matches the vendor storefront.
   ══════════════════════════════════════════════════════════════════════ */
.mn-vendor-card {
  --mn-vendor-accent: var(--mn-brand);
  --mn-vendor-accent-soft: rgba(37, 99, 235, 0.08);
  position: relative;
  background: var(--mn-surface);
  border: 1px solid var(--mn-line);
  border-radius: 22px;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -14px rgba(15, 23, 42, 0.16);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
.mn-vendor-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 28px 50px -22px rgba(37, 99, 235, 0.35);
}

.mn-vendor-cover {
  position: relative;
  height: 92px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #3b74f0 0%, #1d4ed8 40%, #0b1430 100%);
}
/* soft light + fine vertical lines */
.mn-vendor-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 10% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 28px);
}
.mn-vendor-card.is-premium .mn-vendor-cover {
  background: linear-gradient(135deg, #4f46e5 0%, #1e3a8a 45%, #05070c 100%);
}
/* store initial as a large faint monogram */
.mn-vendor-mark {
  position: absolute;
  inset-inline-end: 10px;
  bottom: -34px;
  z-index: -1;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

.mn-vendor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mn-vendor-chip--premium { background: #fff; border-color: #fff; color: #1e3a8a; }

.mn-vendor-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Only the logo overlaps the cover; the name sits beside it, below the cover */
.mn-vendor-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.mn-vendor-logo {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin-top: -36px;
  border-radius: 20px;
  border: 4px solid var(--mn-surface);
  background: linear-gradient(145deg, #eef4ff, #dbe7ff);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: center;
}
.mn-vendor-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.mn-vendor-initial { font-size: 1.75rem; font-weight: 800; color: var(--mn-vendor-accent); }
.mn-vendor-badge {
  position: absolute;
  bottom: -5px;
  inset-inline-end: -5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mn-vendor-accent);
  color: #fff;
  font-size: 0.6rem;
  border: 2px solid var(--mn-surface);
}

.mn-vendor-identity { flex: 1; min-width: 0; padding-top: 10px; }
.mn-vendor-name {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  min-width: 0;
}
.mn-vendor-name a {
  display: block;
  color: var(--mn-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Latin names in RTL pages: truncate at the end of the name, not its start */
[dir="rtl"] .mn-vendor-name a { unicode-bidi: plaintext; text-align: right; }
.mn-vendor-name a:hover { color: var(--mn-vendor-accent); }
.mn-vendor-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--mn-muted);
}
.mn-vendor-location i { color: var(--mn-vendor-accent); }

.mn-vendor-desc {
  margin: 0 0 16px;
  color: var(--mn-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.mn-vendor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
  padding: 12px 0;
  border-block: 1px solid var(--mn-line);
}
.mn-vendor-stats > div { padding: 0 6px; text-align: center; min-width: 0; }
.mn-vendor-stats > div + div { border-inline-start: 1px solid var(--mn-line); }
.mn-vendor-stats dt {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mn-muted);
}
[dir="rtl"] .mn-vendor-stats dt { letter-spacing: 0; text-transform: none; font-size: 0.72rem; }
.mn-vendor-stats dd {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--mn-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mn-vendor-cta {
  margin-top: auto;
  min-height: 46px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #4f8bff 0%, var(--mn-brand) 55%, #1d4ed8 100%);
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.25s, filter 0.25s;
}
[dir="rtl"] .mn-vendor-cta { padding: 0 18px 0 6px; }
.mn-vendor-cta:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 14px 28px -10px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.mn-vendor-cta-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mn-vendor-cta-icon i { font-size: 0.8rem; }
[dir="rtl"] .mn-vendor-cta-icon i { transform: rotate(180deg); }
.mn-vendor-card:hover .mn-vendor-cta-icon,
.mn-vendor-cta:hover .mn-vendor-cta-icon { background: #fff; color: var(--mn-brand); transform: translateX(3px); }
[dir="rtl"] .mn-vendor-card:hover .mn-vendor-cta-icon,
[dir="rtl"] .mn-vendor-cta:hover .mn-vendor-cta-icon { transform: translateX(-3px); }
.mn-vendor-cta:focus-visible { outline: 2px solid var(--mn-brand); outline-offset: 3px; }

@media (max-width: 768px) {
  .mn-vendor-card { border-radius: 16px; }
  .mn-vendor-cover { height: 66px; padding: 8px 10px; }
  .mn-vendor-mark { font-size: 80px; bottom: -24px; }
  .mn-vendor-chip { font-size: 0.58rem; padding: 3px 7px; gap: 3px; }
  .mn-vendor-body { padding: 0 10px 12px; }
  .mn-vendor-head { flex-direction: column; gap: 6px; margin-bottom: 8px; }
  .mn-vendor-logo { width: 56px; height: 56px; flex-basis: auto; margin-top: -28px; border-radius: 15px; border-width: 3px; }
  .mn-vendor-identity { width: 100%; padding-top: 0; }
  .mn-vendor-logo img { border-radius: 12px; }
  .mn-vendor-name { font-size: 0.88rem; }
  .mn-vendor-location { font-size: 0.66rem; }
  .mn-vendor-desc { font-size: 0.72rem; margin-bottom: 10px; }
  .mn-vendor-stats { margin-bottom: 10px; padding: 8px 0; }
  .mn-vendor-stats > div { padding: 0 2px; }
  .mn-vendor-stats dt { font-size: 0.55rem; letter-spacing: 0; }
  .mn-vendor-stats dd { font-size: 0.8rem; }
  .mn-vendor-cta { min-height: 38px; font-size: 0.74rem; padding-inline-start: 12px; }
  [dir="rtl"] .mn-vendor-cta { padding: 0 12px 0 4px; }
  .mn-vendor-cta-icon { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .mn-vendor-body { padding: 0 14px 14px; }
  .mn-vendor-head { flex-direction: row; }
  .mn-vendor-logo { width: 62px; height: 62px; margin-top: -31px; }
  .mn-vendor-identity { padding-top: 8px; }
  .mn-vendor-name { font-size: 0.98rem; }
  .mn-vendor-desc { font-size: 0.78rem; }
  .mn-vendor-stats dt { font-size: 0.6rem; }
  .mn-vendor-stats dd { font-size: 0.9rem; }
  .mn-vendor-cta { min-height: 44px; font-size: 0.82rem; }
  .mn-vendor-cta-icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .mn-vendor-card, .mn-vendor-cta, .mn-vendor-cta-icon { transition: none !important; }
}

body.dark-mode .mn-vendor-card { background: #151a24; border-color: #303846; }
body.dark-mode .mn-vendor-card:hover { border-color: rgba(96, 165, 250, 0.45); box-shadow: 0 28px 50px -22px rgba(0, 0, 0, 0.7); }
body.dark-mode .mn-vendor-logo { border-color: #151a24; background: linear-gradient(145deg, #1e2a44, #172036); }
body.dark-mode .mn-vendor-badge { border-color: #151a24; }
body.dark-mode .mn-vendor-initial,
body.dark-mode .mn-vendor-location i,
body.dark-mode .mn-vendor-name a:hover { color: #60a5fa; }
body.dark-mode .mn-vendor-name a,
body.dark-mode .mn-vendor-stats dd { color: #f1f5f9; }
body.dark-mode .mn-vendor-location,
body.dark-mode .mn-vendor-desc,
body.dark-mode .mn-vendor-stats dt { color: #98a4b6; }
body.dark-mode .mn-vendor-stats,
body.dark-mode .mn-vendor-stats > div + div { border-color: #303846; }
