/**
 * MLDP WOW Visual System — v9.1.0
 * Glass Pro Card · Enhanced Hover · CSS Stagger · Image Zoom
 * Depth Shadows · Gradient Borders · Micro-interactions
 *
 * الهدف: أن يرى المستخدم هذه البطاقات ويقرر الشراء
 *
 * @package MLDP
 * @since   9.1.0
 */


/* ═══════════════════════════════════════════════════════════════
   DEPTH SYSTEM — الظلال الاحترافية (يُطبَّق على الكل)
═══════════════════════════════════════════════════════════════ */
:root {
  --gp-blur:      24px;
  --gp-bg:        rgba(255, 255, 255, 0.07);
  --gp-border:    rgba(255, 255, 255, 0.18);
  --gp-shadow:    0 8px 32px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.18);
  --gp-glow-1:    rgba(99, 102, 241, 0.45);
  --gp-glow-2:    rgba(139, 92, 246, 0.35);

  /* Depth shadows — reusable */
  --depth-1: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --depth-2: 0 4px 12px rgba(0,0,0,.1),  0 2px 4px rgba(0,0,0,.06);
  --depth-3: 0 10px 28px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.07);
  --depth-4: 0 20px 48px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.09);
  --depth-hover: 0 28px 56px rgba(0,0,0,.18), 0 12px 24px rgba(0,0,0,.1);

  /* Accent glow */
  --glow-accent: 0 8px 24px rgba(99,102,241,.35), 0 2px 8px rgba(99,102,241,.2);
  --glow-accent-lg: 0 16px 48px rgba(99,102,241,.4), 0 8px 24px rgba(99,102,241,.25);
}


/* ═══════════════════════════════════════════════════════════════
   GLASS PRO CARD — البطاقة التي تبيع الإضافة
═══════════════════════════════════════════════════════════════ */

/* Dark scene wrapper — اختياري، يُضاف على الـ container */
.mldp-engine.style-glass-pro,
.mldp-courses-grid.style-glass-pro {
  background: linear-gradient(135deg, #0a0e1a 0%, #10172a 50%, #0d1320 100%);
  border-radius: 20px;
  padding: 32px;
}

.mldp-card--glass-pro {
  position: relative;
  border-radius: var(--r, 20px);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(var(--gp-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--gp-blur)) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--gp-shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform    .35s cubic-bezier(.34,1.56,.64,1),
    box-shadow   .35s ease,
    border-color .35s ease;
  cursor: pointer;
}

/* Hover: البطاقة ترتفع وتُضيء */
.mldp-card--glass-pro:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow:
    0 32px 64px rgba(0,0,0,.45),
    0 0 0 1px rgba(99,102,241,.5),
    var(--glow-accent-lg);
  border-color: rgba(99,102,241,0.5);
}

/* Gradient glow background orbs */
.gp-glow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.gp-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity .5s ease;
}
.gp-glow-orb--1 {
  width: 200px; height: 200px;
  background: var(--gp-glow-1);
  top: -60px; right: -40px;
}
.gp-glow-orb--2 {
  width: 160px; height: 160px;
  background: var(--gp-glow-2);
  bottom: 20px; left: -30px;
}
.mldp-card--glass-pro:hover .gp-glow-orb--1 { opacity: .7; }
.mldp-card--glass-pro:hover .gp-glow-orb--2 { opacity: .5; }

/* Animated gradient border ring */
.gp-border-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 30%, rgba(99,102,241,.4) 50%, rgba(139,92,246,.4) 65%, transparent 80%);
  background-size: 300% 300%;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  animation: gp-border-spin 4s linear infinite paused;
}
.mldp-card--glass-pro:hover .gp-border-ring {
  opacity: 1;
  animation-play-state: running;
}
@keyframes gp-border-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Thumbnail */
.gp-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
}
.gp-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.mldp-card--glass-pro:hover .gp-thumb img {
  transform: scale(1.08);
}
.gp-thumb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,26,.3) 0%, rgba(10,14,26,.1) 50%, rgba(10,14,26,.7) 100%);
  z-index: 1;
}

/* Top row: badges + actions */
.gp-thumb-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
}
.gp-thumb-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.gp-badge {
  padding: 3px 10px; border-radius: 9999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  backdrop-filter: blur(12px);
  background: rgba(10,14,26,.55);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15);
}
.gp-badge--free { background: rgba(16,185,129,.7); border-color: rgba(16,185,129,.4); }

.gp-thumb-actions {
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px);
  transition: all .28s ease;
}
.mldp-card--glass-pro:hover .gp-thumb-actions {
  opacity: 1; transform: translateX(0);
}

/* Quick view overlay */
.gp-qv-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,14,26,.5);
  opacity: 0; transition: opacity .3s ease;
}
.mldp-card--glass-pro:hover .gp-qv-overlay { opacity: 1; }

.gp-qv-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9999px;
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 22px; cursor: pointer;
  transform: translateY(10px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) .05s;
}
.mldp-card--glass-pro:hover .gp-qv-btn {
  transform: translateY(0); opacity: 1;
}
.gp-qv-btn:hover { background: rgba(99,102,241,.4); }

/* Glass body */
.gp-body {
  padding: 18px 18px 12px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1; direction: rtl;
  position: relative; z-index: 1;
}

.gp-cat {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(99,102,241,.9);
}
.gp-cat-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ac, #6366f1);
  box-shadow: 0 0 6px var(--ac, #6366f1);
}

.gp-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.3; margin: 0;
}
.gp-title a {
  color: rgba(255,255,255,.93); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.gp-title a:hover { color: var(--ac, #6366f1); }

.gp-excerpt {
  font-size: 12.5px; line-height: 1.5; margin: 0;
  color: rgba(255,255,255,.55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.gp-rating {
  display: flex; align-items: center; gap: 5px;
}
.gp-rating .mldp-stars { color: #f59e0b; }
.gp-rating-val { font-size: 12.5px; font-weight: 700; color: #f59e0b; }
.gp-rating-cnt { font-size: 11px; color: rgba(255,255,255,.4); }

.gp-instructor {
  display: flex; align-items: center; gap: 7px;
}
.gp-ins-av {
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
}
.gp-instructor span { font-size: 12px; color: rgba(255,255,255,.65); }

.gp-stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.gp-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,.55);
}
.gp-stat i { color: rgba(99,102,241,.8); font-size: 11px; }

/* Footer */
.gp-footer {
  padding: 12px 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  direction: rtl;
  position: relative; z-index: 1;
}
.gp-price .mldp-card__price-val {
  font-size: 16px; font-weight: 800; color: #fff;
}
.gp-price .mldp-card__price-free {
  color: rgba(16,185,129,.9);
}

.gp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--ac,#6366f1), #8b5cf6);
  color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
  transition: box-shadow .25s ease, transform .25s ease;
  white-space: nowrap;
}
.gp-btn:hover {
  box-shadow: 0 8px 28px rgba(99,102,241,.6);
  transform: translateY(-2px);
  color: #fff;
}
.gp-btn i { font-size: 11px; transition: transform .2s; }
.gp-btn:hover i { transform: translateX(-3px); }


/* ═══════════════════════════════════════════════════════════════
   ENHANCED CSS HOVER SYSTEM — يعمل بدون JS
   يُطبَّق على جميع البطاقات تلقائياً
═══════════════════════════════════════════════════════════════ */

/* ── Image zoom on hover (universal) ── */
.mldp-card .mldp-card__img img,
.mldp-card .mldp-mk-thumb img,
.mldp-card .mldp-apple-img img,
.mldp-card .gp-thumb img {
  transition: transform .55s cubic-bezier(.25,.46,.45,.94) !important;
}
.mldp-card:hover .mldp-card__img img,
.mldp-card:hover .mldp-mk-thumb img,
.mldp-card:hover .mldp-apple-img img {
  transform: scale(1.06) !important;
}

/* ── Lift effect (CSS-native, no JS needed) ── */
.hover-lift .mldp-card:not(.mldp-card--glass-pro):not(.mldp-card--hero) {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease !important;
  box-shadow: var(--depth-2);
}
.hover-lift .mldp-card:not(.mldp-card--glass-pro):not(.mldp-card--hero):hover {
  transform: translateY(-10px) scale(1.018) !important;
  box-shadow: var(--depth-hover) !important;
}

/* ── Scale ── */
.hover-scale .mldp-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.hover-scale .mldp-card:hover {
  transform: scale(1.03);
  box-shadow: var(--depth-4);
}

/* ── Glow (uses --ac color) ── */
.hover-glow .mldp-card {
  transition: box-shadow .3s ease, transform .3s ease;
}
.hover-glow .mldp-card:hover {
  box-shadow:
    0 0 0 2px var(--ac, #6366f1),
    0 12px 32px rgba(99,102,241,.25),
    0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-4px);
}


/* ═══════════════════════════════════════════════════════════════
   CSS STAGGER — nth-child delays (no JS needed)
═══════════════════════════════════════════════════════════════ */
[data-mldp-anim] .mldp-engine-item:nth-child(1)  { transition-delay: .00s; }
[data-mldp-anim] .mldp-engine-item:nth-child(2)  { transition-delay: .07s; }
[data-mldp-anim] .mldp-engine-item:nth-child(3)  { transition-delay: .14s; }
[data-mldp-anim] .mldp-engine-item:nth-child(4)  { transition-delay: .21s; }
[data-mldp-anim] .mldp-engine-item:nth-child(5)  { transition-delay: .28s; }
[data-mldp-anim] .mldp-engine-item:nth-child(6)  { transition-delay: .35s; }
[data-mldp-anim] .mldp-engine-item:nth-child(7)  { transition-delay: .42s; }
[data-mldp-anim] .mldp-engine-item:nth-child(8)  { transition-delay: .49s; }
[data-mldp-anim] .mldp-engine-item:nth-child(n+9){ transition-delay: .56s; }


/* ═══════════════════════════════════════════════════════════════
   MARKETPLACE CARD — Enhanced Visual
═══════════════════════════════════════════════════════════════ */

/* Deeper shadow + more visible lift */
.mldp-card--marketplace {
  box-shadow: var(--depth-2) !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease !important;
}
.mldp-card--marketplace:hover {
  transform: translateY(-10px) scale(1.015) !important;
  box-shadow: var(--depth-hover) !important;
}

/* Price = bigger, colored */
.mldp-mk-price .mldp-card__price-val {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--ac, #6366f1) !important;
}

/* Rating stars = gold */
.mldp-mk-rating .mldp-stars { color: #f59e0b; }

/* CTA button = gradient */
.mldp-mk-btn {
  background: linear-gradient(135deg, var(--ac,#6366f1), color-mix(in srgb, var(--ac,#6366f1) 70%, #8b5cf6)) !important;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.mldp-mk-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(99,102,241,.45) !important;
}

/* Footer bg: subtle gradient */
.mldp-mk-footer {
  background: linear-gradient(135deg, var(--mldp-g50,#f8fafc) 0%, rgba(99,102,241,.04) 100%) !important;
}

/* Category chip: stronger color */
.mldp-mk-cat {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--ac, #6366f1) !important;
  letter-spacing: 1px !important;
}


/* ═══════════════════════════════════════════════════════════════
   APPLE MINIMAL CARD — Enhanced Visual
═══════════════════════════════════════════════════════════════ */

.mldp-card--apple {
  box-shadow: var(--depth-2) !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease !important;
}
.mldp-card--apple:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--depth-hover) !important;
}

/* Title: bigger, bolder */
.mldp-apple-title { font-size: 16px !important; }

/* Chip: more visible */
.mldp-apple-chip {
  font-size: 10.5px !important;
  font-weight: 800 !important;
}

/* Button: more striking */
.mldp-apple-btn {
  background: var(--mldp-g900, #0f172a) !important;
  letter-spacing: .3px;
}
.mldp-apple-btn:hover {
  background: linear-gradient(135deg, var(--ac,#6366f1), #8b5cf6) !important;
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}


/* ═══════════════════════════════════════════════════════════════
   CLASSIC CARD — Enhanced Visual
═══════════════════════════════════════════════════════════════ */

/* Accent bar animation */
.mldp-card--classic .mldp-card__accent-bar {
  height: 3px !important;
  background: linear-gradient(90deg, var(--ac,#6366f1), #8b5cf6, var(--ac,#6366f1)) !important;
  background-size: 200% 100% !important;
  transition: background-position .4s ease !important;
}
.mldp-card--classic:hover .mldp-card__accent-bar {
  background-position: 100% 0 !important;
}

/* Button: gradient on hover */
.mldp-card--classic .mldp-card__btn {
  background: var(--ac, #6366f1);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease !important;
}
.mldp-card--classic:hover .mldp-card__btn {
  background: linear-gradient(135deg, var(--ac,#6366f1), #8b5cf6) !important;
  box-shadow: 0 6px 20px rgba(99,102,241,.35) !important;
  transform: translateY(-1px) !important;
}


/* ═══════════════════════════════════════════════════════════════
   FILTER TRANSITION — Smooth filtering
═══════════════════════════════════════════════════════════════ */
.mldp-engine-item {
  transition: opacity .3s ease, transform .3s ease !important;
}
.mldp-engine-item.mldp-filtering-out {
  opacity: 0 !important;
  transform: scale(.97) !important;
}
.mldp-engine-item.mldp-filtering-in {
  animation: mldp-fade-in .35s ease forwards;
}
@keyframes mldp-fade-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Loading skeleton pulse */
@keyframes mldp-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.mldp-skeleton { animation: mldp-skeleton-pulse 1.4s ease-in-out infinite; }


/* ═══════════════════════════════════════════════════════════════
   CARD 4.0 — Multi-layer depth + Edge highlight + Micro details
   يُطبَّق على كل البطاقات تلقائياً
═══════════════════════════════════════════════════════════════ */

/* Edge highlight — خط إضاءة علوي رفيع */
.mldp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.55) 30%,
    rgba(255,255,255,.8)  50%,
    rgba(255,255,255,.55) 70%,
    transparent 100%);
  opacity: 0;
  transition: opacity .3s var(--mldp-ease);
  z-index: 2;
  pointer-events: none;
}
.mldp-card:hover::before { opacity: 1; }

/* Ambient glow layer — ضوء خلفي عند Hover */
.mldp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(99,102,241,.07) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .4s var(--mldp-ease);
  pointer-events: none;
  z-index: 1;
}
.mldp-card:hover::after { opacity: 1; }

/* Multi-layer shadow system */
.mldp-card {
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 2px 6px rgba(0,0,0,.06),
    0 4px 16px rgba(0,0,0,.05);
  transition:
    transform     .32s cubic-bezier(.34,1.56,.64,1),
    box-shadow    .32s cubic-bezier(.25,.46,.45,.94),
    border-color  .28s ease;
}
.mldp-card:hover {
  box-shadow:
    0 2px 4px  rgba(0,0,0,.04),
    0 8px 20px rgba(0,0,0,.09),
    0 20px 48px rgba(0,0,0,.08),
    0 0 0 1px  rgba(99,102,241,.12);
  transform: translateY(-6px);
}


/* ═══════════════════════════════════════════════════════════════
   ANIMATED BADGES — Trending / Bestseller / New / Sale
═══════════════════════════════════════════════════════════════ */

/* Badge base */
.mldp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 4;
}

/* 🔥 Trending */
.mldp-badge--trending {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  box-shadow: 0 2px 12px rgba(239,68,68,.45);
  animation: mldp-badge-pulse 2.4s ease-in-out infinite;
}
.mldp-badge--trending::before { content: '🔥'; font-style: normal; }

/* ⭐ Bestseller */
.mldp-badge--bestseller {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 12px rgba(245,158,11,.4);
  animation: mldp-badge-shimmer 3s ease-in-out infinite;
}
.mldp-badge--bestseller::before { content: '⭐'; font-style: normal; }

/* 🆕 New */
.mldp-badge--new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16,185,129,.4);
}
.mldp-badge--new::before { content: '✨'; font-style: normal; }

/* 🏷️ Sale */
.mldp-badge--sale {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,.4);
  animation: mldp-badge-pulse 2.8s ease-in-out infinite;
}

/* @keyframes */
@keyframes mldp-badge-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(239,68,68,.45); transform: scale(1); }
  50%       { box-shadow: 0 4px 20px rgba(239,68,68,.7);  transform: scale(1.04); }
}
@keyframes mldp-badge-shimmer {
  0%, 100% { box-shadow: 0 2px 12px rgba(245,158,11,.4); }
  50%       { box-shadow: 0 4px 22px rgba(245,158,11,.7); }
}

/* Badge container — أعلى يمين البطاقة */
.mldp-badge-stack {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}


/* ═══════════════════════════════════════════════════════════════
   ELEMENTOR PRESETS — بصمة بصرية جاهزة
═══════════════════════════════════════════════════════════════ */

/* ── Preset: Dark Pro ── */
.mldp-preset-dark-pro {
  --mldp-primary: #6366f1;
  background: linear-gradient(135deg, #0a0e1a, #10172a) !important;
  padding: 24px !important;
  border-radius: 20px !important;
}
.mldp-preset-dark-pro .mldp-card--classic,
.mldp-preset-dark-pro .mldp-card--marketplace {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(12px) !important;
}
.mldp-preset-dark-pro .mldp-card__title a,
.mldp-preset-dark-pro .mldp-mk-title a { color: rgba(255,255,255,.9) !important; }
.mldp-preset-dark-pro .mldp-card__exc,
.mldp-preset-dark-pro .mldp-mk-excerpt { color: rgba(255,255,255,.5) !important; }
.mldp-preset-dark-pro .mldp-mk-footer  { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; }

/* ── Preset: Glass Light ── */
.mldp-preset-glass-light {
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #e0f2fe 100%) !important;
  padding: 24px !important;
  border-radius: 20px !important;
}
.mldp-preset-glass-light .mldp-card--classic,
.mldp-preset-glass-light .mldp-card--marketplace {
  background: rgba(255,255,255,.75) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
}

/* ── Preset: Warm Minimal ── */
.mldp-preset-warm-minimal { background: #faf9f7 !important; }
.mldp-preset-warm-minimal .mldp-card {
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
  border: 1px solid #f0ece6 !important;
}

/* ══════════════════════════════════════════════════════════════
   🎓 PRESET: DARK ACADEMY
   الهوية: عمق + علم + طموح — الأكاديميات والمنصات الكبرى
══════════════════════════════════════════════════════════════ */
.mldp-preset-dark-academy {
  --mldp-primary:   #7c3aed;
  --mldp-primary-d: #6d28d9;
  --mldp-primary-l: #a78bfa;
  --mldp-ac:        #7c3aed;
  --mldp-rgb:       124,58,237;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(99,102,241,.08) 0%, transparent 60%),
    linear-gradient(160deg, #0d1117 0%, #161b22 50%, #0d1220 100%) !important;
  padding: 32px !important;
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
}

/* نجوم خلفية خفية */
.mldp-preset-dark-academy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15%  20%, rgba(255,255,255,.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 40%  60%, rgba(255,255,255,.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 65%  30%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 80%  70%, rgba(255,255,255,.15) 0%, transparent 100%),
    radial-gradient(2px 2px at 25%  80%, rgba(167,139,250,.3)  0%, transparent 100%),
    radial-gradient(1px 1px at 90%  15%, rgba(255,255,255,.2)  0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.mldp-preset-dark-academy .mldp-card--glass-pro {
  background: rgba(13,17,23,.7) !important;
  border: 1px solid rgba(124,58,237,.2) !important;
  box-shadow:
    0 4px 20px rgba(0,0,0,.4),
    0 0 0 1px rgba(124,58,237,.1) !important;
}
.mldp-preset-dark-academy .mldp-card--glass-pro:hover {
  border-color: rgba(124,58,237,.5) !important;
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 0 0 1px rgba(124,58,237,.4),
    0 0 40px rgba(124,58,237,.15) !important;
  transform: translateY(-10px) scale(1.012) !important;
}

/* Edge highlight بلون purple */
.mldp-preset-dark-academy .mldp-card--glass-pro::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(124,58,237,.6) 30%,
    rgba(167,139,250,.9) 50%,
    rgba(124,58,237,.6) 70%,
    transparent) !important;
}

.mldp-preset-dark-academy .mldp-card__title a,
.mldp-preset-dark-academy .gp-title a { color: rgba(255,255,255,.95) !important; }
.mldp-preset-dark-academy .mldp-card__exc,
.mldp-preset-dark-academy .gp-excerpt  { color: rgba(167,139,250,.7) !important; }

/* Badge لون أكاديمي */
.mldp-preset-dark-academy .mldp-badge--trending {
  background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
  box-shadow: 0 2px 14px rgba(124,58,237,.5) !important;
}


/* ══════════════════════════════════════════════════════════════
   🧘 PRESET: MINIMAL COACH
   الهوية: صفاء + دفء + شخصية — المدربون والكورسات الفردية
══════════════════════════════════════════════════════════════ */
.mldp-preset-minimal-coach {
  --mldp-primary:   #d97706;
  --mldp-primary-d: #b45309;
  --mldp-primary-l: #fbbf24;
  --mldp-ac:        #d97706;
  --mldp-r:         16px;
  background: #fefdf8 !important;
  padding: 28px !important;
  border-radius: 20px !important;
}

.mldp-preset-minimal-coach .mldp-card--apple {
  background: #fff !important;
  border: 1px solid #fde68a !important;
  box-shadow:
    0 1px 3px rgba(217,119,6,.06),
    0 4px 16px rgba(217,119,6,.04) !important;
  border-radius: 16px !important;
}
.mldp-preset-minimal-coach .mldp-card--apple:hover {
  border-color: #fbbf24 !important;
  box-shadow:
    0 4px 12px rgba(217,119,6,.1),
    0 16px 40px rgba(217,119,6,.08),
    0 0 0 1px rgba(217,119,6,.12) !important;
  transform: translateY(-5px) !important;
}

/* Edge highlight ذهبي دافئ */
.mldp-preset-minimal-coach .mldp-card--apple::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(217,119,6,.35) 30%,
    rgba(251,191,36,.6) 50%,
    rgba(217,119,6,.35) 70%,
    transparent) !important;
}

.mldp-preset-minimal-coach .mldp-apple-title a {
  color: #1c1917 !important;
  font-weight: 600 !important;
}
.mldp-preset-minimal-coach .mldp-apple-excerpt { color: #78716c !important; }
.mldp-preset-minimal-coach .mldp-apple-meta    { color: #a8a29e !important; }

/* زر ذهبي دافئ */
.mldp-preset-minimal-coach .mldp-btn,
.mldp-preset-minimal-coach .mldp-apple-btn {
  background: #d97706 !important;
  color: #fff !important;
}
.mldp-preset-minimal-coach .mldp-btn:hover,
.mldp-preset-minimal-coach .mldp-apple-btn:hover {
  background: #b45309 !important;
}




/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .mldp-card--glass-pro:hover { transform: none !important; }
  .gp-thumb-actions           { opacity: 1 !important; transform: none !important; }
  .gp-qv-overlay              { display: none; }
  .hover-lift .mldp-card:hover { transform: translateY(-4px) !important; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .mldp-card,
  .mldp-card *,
  .gp-border-ring {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
