/* الوضع الفاتح — الموقع العام (landing + marketing) */
html[data-public-theme="light"] body.landing-body.public-site,
html[data-public-theme="light"] body.landing-body.public-marketing-page {
  --ps-bg: #ffffff;
  --ps-bg-soft: #f8fafc;
  --ps-bg-warm: #f9fafb;
  --ps-surface: #ffffff;
  --ps-surface-2: #f3f4f6;
  --ps-hero-overlay: #eef2ff;
  --ps-border: #e5e7eb;
  --ps-border-strong: #d1d5db;
  --ps-text: #111827;
  --ps-text-secondary: #4b5563;
  --ps-text-muted: #6b7280;
  --ps-heading: #111827;
  --ps-product-name: #111827;
  --ps-price: #6366f1;
  --ps-royal: #6366f1;
  --ps-royal-mid: #4f46e5;
  --ps-royal-light: #818cf8;
  --ps-accent: #4b5563;
  --ps-accent-surface: #eef2ff;
  --ps-gold: #6366f1;
  --ps-gold-mid: #4f46e5;
  --ps-gold-soft: rgba(99, 102, 241, 0.1);
  --ps-btn-from: #6366f1;
  --ps-btn-to: #7c3aed;
  --ps-success: #10b981;
  --ps-glow-intensity: 6;
  --ps-glass-bg: rgba(255, 255, 255, 0.88);
  --ps-glass-blur: 16px;
  --ps-scrollbar-thumb: #c7d2fe;
  --ps-scrollbar-track: #f3f4f6;
  --ps-scrollbar-hover: #6366f1;
  --ps-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(99, 102, 241, 0.07);
  --ps-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 12px 28px rgba(99, 102, 241, 0.1);
  --ps-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(99, 102, 241, 0.1);
  --ps-card-3d-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
  --ps-card-3d-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 36px rgba(99, 102, 241, 0.12);
  color-scheme: light;
}

/* ——— الهيدر العائم ——— */
html[data-public-theme="light"] body.public-site .public-header-float-wrap .public-header-cluster,
html[data-public-theme="light"] body.public-marketing-page .public-header-float-wrap .public-header-cluster {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0 40px rgba(99, 102, 241, 0.08);
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-top-stage .public-header-float-wrap .public-header-cluster,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-top-stage .public-header-float-wrap .public-header-cluster {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.16);
}

/* إلغاء نص أبيض فوق كاروسيل الهيرو */
html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-brand,
html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-brand-text,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-brand,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-brand-text {
  color: var(--ps-text);
  text-shadow: none;
}

html[data-public-theme="light"] body.public-site .landing-brand-tagline,
html[data-public-theme="light"] body.public-marketing-page .landing-brand-tagline {
  color: var(--ps-text-muted) !important;
  text-shadow: none !important;
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-brand-tagline,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-brand-tagline {
  color: var(--ps-text-muted) !important;
  text-shadow: none !important;
}

html[data-public-theme="light"] body.public-site .public-nav-user-name,
html[data-public-theme="light"] body.public-marketing-page .public-nav-user-name,
html[data-public-theme="light"] body.public-site .landing-auth-username,
html[data-public-theme="light"] body.public-marketing-page .landing-auth-username {
  color: var(--ps-text) !important;
}

html[data-public-theme="light"] body.public-site .public-nav-user-role,
html[data-public-theme="light"] body.public-marketing-page .public-nav-user-role,
html[data-public-theme="light"] body.public-site .landing-auth-role,
html[data-public-theme="light"] body.public-marketing-page .landing-auth-role {
  color: var(--ps-royal-mid) !important;
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-auth-username,
html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .public-nav-user-name,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-auth-username,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .public-nav-user-name {
  color: var(--ps-text) !important;
  text-shadow: none !important;
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-auth-role,
html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .public-nav-user-role,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .landing-auth-role,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .landing-header .public-nav-user-role {
  color: var(--ps-royal-mid) !important;
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-mega-nav__link,
html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-mega-nav__trigger,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-mega-nav__link,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-mega-nav__trigger {
  color: var(--ps-text-secondary);
  text-shadow: none;
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-nav-search-btn,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-nav-search-btn,
html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .lang-switcher--public .lang-switcher-btn,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .lang-switcher--public .lang-switcher-btn {
  border-color: var(--ps-border-strong);
  color: var(--ps-text-secondary);
  background: #fff;
}

html[data-public-theme="light"] body.public-site .public-mega-panel__inner,
html[data-public-theme="light"] body.public-marketing-page .public-mega-panel__inner {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e5e7eb;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(99, 102, 241, 0.08);
}

html[data-public-theme="light"] body.public-site .public-mega-link__title,
html[data-public-theme="light"] body.public-marketing-page .public-mega-link__title {
  color: #111827;
}

html[data-public-theme="light"] body.public-site .public-mega-link__desc,
html[data-public-theme="light"] body.public-marketing-page .public-mega-link__desc {
  color: #6b7280;
}

html[data-public-theme="light"] body.public-site .public-mega-link:hover,
html[data-public-theme="light"] body.public-marketing-page .public-mega-link:hover {
  background: #eef2ff;
}

html[data-public-theme="light"] body.public-site .public-nav-user-dropdown__inner,
html[data-public-theme="light"] body.public-marketing-page .public-nav-user-dropdown__inner {
  background: #fff;
  border-color: #e5e7eb;
}

html[data-public-theme="light"] body.public-site .public-nav-cta,
html[data-public-theme="light"] body.public-marketing-page .public-nav-cta {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28) !important;
}

/* ——— Hero ——— */
html[data-public-theme="light"] body.public-site .landing-hero {
  --hero-primary: #6366f1;
  --hero-primary-hover: #4f46e5;
  --hero-primary-soft: #eef2ff;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #eef2ff 100%);
}

html[data-public-theme="light"] body.public-site .landing-hero-scene-aurora {
  background:
    radial-gradient(ellipse 55% 45% at 78% 8%, rgba(99, 102, 241, 0.14), transparent 62%),
    radial-gradient(ellipse 42% 38% at 12% 92%, rgba(129, 140, 248, 0.1), transparent 58%);
}

html[data-public-theme="light"] body.public-site .landing-hero-scene-light {
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 72%);
}

html[data-public-theme="light"] body.public-site .landing-hero-scene-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  opacity: 0.45;
}

html[data-public-theme="light"] body.public-site .landing-hero-badge {
  color: #4f46e5;
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.22);
}

html[data-public-theme="light"] body.public-site .landing-hero .landing-hero-btn--primary {
  background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.32) !important;
}

html[data-public-theme="light"] body.public-site .landing-hero .landing-hero-btn--primary:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9) !important;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.36) !important;
}

html[data-public-theme="light"] body.public-site .landing-hero .landing-hero-btn--secondary {
  background: #fff !important;
  color: #4b5563 !important;
  border-color: #d1d5db !important;
}

html[data-public-theme="light"] body.public-site .landing-hero .landing-hero-btn--secondary:hover {
  background: #eef2ff !important;
  border-color: #818cf8 !important;
  color: #4f46e5 !important;
}

html[data-public-theme="light"] body.public-site .landing-hero-app {
  background: #fff;
  border-color: #e5e7eb;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-chrome,
html[data-public-theme="light"] body.public-site .landing-hero-app-sidebar {
  background: #f9fafb;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-main {
  background: #ffffff;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-url {
  background: #f3f4f6;
  color: #6b7280;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-kpi {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-kpi-value {
  color: #111827;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-title-bar {
  background: rgba(17, 24, 39, 0.08);
}

html[data-public-theme="light"] body.public-site .landing-hero-showcase-glow {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(129, 140, 248, 0.06));
}

/* ——— أقسام وبطاقات ——— */
html[data-public-theme="light"] body.public-site .landing-section-alt,
html[data-public-theme="light"] body.public-marketing-page .landing-section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

html[data-public-theme="light"] body.public-site .landing-feature-card {
  background: #ffffff;
  box-shadow: var(--ps-card-3d-shadow-rest);
}

html[data-public-theme="light"] body.public-site .landing-card-emerald {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.08), #ffffff);
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-public-theme="light"] body.public-site .landing-card-sapphire {
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.08), #ffffff);
  border-color: rgba(59, 130, 246, 0.2);
}

html[data-public-theme="light"] body.public-site .landing-card-amethyst {
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.1), #ffffff);
  border-color: rgba(99, 102, 241, 0.22);
}

html[data-public-theme="light"] body.public-site .landing-card-gold {
  background: linear-gradient(155deg, rgba(245, 158, 11, 0.08), #ffffff);
  border-color: rgba(245, 158, 11, 0.2);
}

html[data-public-theme="light"] body.public-site .landing-stat-tile {
  background: #ffffff;
  box-shadow: var(--ps-shadow-sm);
}

html[data-public-theme="light"] body.public-site .landing-stat-num {
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-public-theme="light"] body.public-site .landing-plan-card {
  background: #ffffff;
  box-shadow: var(--ps-card-3d-shadow-rest);
}

html[data-public-theme="light"] body.public-site .landing-plan-card--featured {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--ps-shadow-md), 0 0 0 1px rgba(99, 102, 241, 0.08) inset;
}

html[data-public-theme="light"] body.public-site .landing-plan-limit {
  background: #f9fafb;
}

html[data-public-theme="light"] body.public-site .landing-plan-feature--highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.04)) !important;
  border-color: rgba(99, 102, 241, 0.22) !important;
}

html[data-public-theme="light"] body.public-site .landing-plan-feature--highlight::before {
  background: linear-gradient(145deg, #6366f1, #7c3aed) !important;
}

html[data-public-theme="light"] body.public-site .landing-billing-toggle {
  background: #f3f4f6;
  border-color: rgba(99, 102, 241, 0.18);
}

html[data-public-theme="light"] body.public-site .landing-billing-toggle__btn.is-active {
  background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28) !important;
}

/* ——— تذييل ——— */
html[data-public-theme="light"] body.public-site .landing-footer,
html[data-public-theme="light"] body.public-marketing-page .landing-footer {
  background: #f9fafb;
  border-top-color: #e5e7eb;
}

html[data-public-theme="light"] body.public-site .landing-footer-panel-title {
  color: #111827;
}

html[data-public-theme="light"] body.public-site .landing-footer-aside-card {
  background: #fff;
}

html[data-public-theme="light"] body.public-site .landing-seo-keywords .landing-seo-kw {
  background: #fff !important;
}

/* ——— دعم الزائر ——— */
html[data-public-theme="light"] body.public-site .landing-support-section,
html[data-public-theme="light"] body.public-marketing-page .landing-support-section {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  border-block-color: rgba(99, 102, 241, 0.12);
  --pvh-accent: #6366f1;
  --pvh-accent-soft: rgba(99, 102, 241, 0.1);
  --pvh-surface: rgba(255, 255, 255, 0.98);
  --pvh-border: #e5e7eb;
  --pvh-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* ——— درج الجوال ——— */
@media (max-width: 1199.98px) {
  html[data-public-theme="light"] body.public-nav-open .public-drawer-slide {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
    border-inline-start-color: rgba(99, 102, 241, 0.16);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.08);
  }

  html[data-public-theme="light"] .public-drawer-head {
    background: #fff;
    border-bottom-color: #e5e7eb;
  }

  html[data-public-theme="light"] .public-drawer-head__title {
    color: #111827;
  }

  html[data-public-theme="light"] .public-drawer-head__tagline {
    color: #6b7280;
  }

  html[data-public-theme="light"] .public-drawer-close {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
  }

  html[data-public-theme="light"] .public-drawer-close:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
  }

  /* بطاقة المستخدم */
  html[data-public-theme="light"] .pdh-user {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-color: rgba(99, 102, 241, 0.22);
    color: #111827 !important;
  }

  html[data-public-theme="light"] .pdh-user:hover {
    border-color: rgba(99, 102, 241, 0.38);
    color: #111827 !important;
  }

  html[data-public-theme="light"] .pdh-user__welcome {
    color: #111827;
  }

  html[data-public-theme="light"] .pdh-user__welcome-label {
    color: #6b7280;
  }

  html[data-public-theme="light"] .pdh-user__role {
    color: #4f46e5;
  }

  html[data-public-theme="light"] .pdh-user__chev,
  html[data-public-theme="light"] .pdh-row-link__chev,
  html[data-public-theme="light"] .pdh-action__go {
    border-color: #e5e7eb;
    background: #f9fafb;
  }

  html[data-public-theme="light"] .pdh-user__chev::before,
  html[data-public-theme="light"] .pdh-row-link__chev::before,
  html[data-public-theme="light"] .pdh-action__go::before {
    border-inline-end-color: #6b7280;
    border-block-start-color: #6b7280;
  }

  /* عناوين الأقسام */
  html[data-public-theme="light"] .pdh-section-head {
    color: #6b7280;
  }

  html[data-public-theme="light"] .pdh-section-head__icon {
    background: rgba(99, 102, 241, 0.12);
  }

  html[data-public-theme="light"] .pdh-section-head__icon--explore::before {
    border-color: #6366f1;
  }

  html[data-public-theme="light"] .pdh-section-head__icon--other::before {
    color: #6b7280;
  }

  /* بطاقات الاستكشاف */
  html[data-public-theme="light"] .pdh-card {
    background: #fff;
    border-color: #e5e7eb;
    color: #111827 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  html[data-public-theme="light"] .pdh-card:hover {
    border-color: rgba(99, 102, 241, 0.32);
    background: #eef2ff;
    color: #111827 !important;
  }

  html[data-public-theme="light"] .pdh-card__title {
    color: #111827;
  }

  html[data-public-theme="light"] .pdh-card__hint {
    color: #6b7280;
  }

  html[data-public-theme="light"] .pdh-card__icon--features { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
  html[data-public-theme="light"] .pdh-card__icon--plans { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
  html[data-public-theme="light"] .pdh-card__icon--docs { background: rgba(16, 185, 129, 0.12); color: #059669; }
  html[data-public-theme="light"] .pdh-card__icon--videos { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
  html[data-public-theme="light"] .pdh-card__icon--stats { background: rgba(245, 158, 11, 0.12); color: #d97706; }
  html[data-public-theme="light"] .pdh-card__icon--stores { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
  html[data-public-theme="light"] .pdh-card__icon--support { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
  html[data-public-theme="light"] .pdh-card__icon--blog,
  html[data-public-theme="light"] .pdh-card__icon--home { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
  html[data-public-theme="light"] .pdh-card__icon--about,
  html[data-public-theme="light"] .pdh-card__icon--privacy,
  html[data-public-theme="light"] .pdh-card__icon--terms { background: rgba(107, 114, 128, 0.12); color: #4b5563; }

  /* روابط صفية */
  html[data-public-theme="light"] .pdh-row-link {
    background: #fff;
    border-color: #e5e7eb;
    color: #111827 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  html[data-public-theme="light"] .pdh-row-link:hover {
    border-color: rgba(99, 102, 241, 0.28);
    background: #eef2ff;
    color: #111827 !important;
  }

  html[data-public-theme="light"] .pdh-row-link__icon {
    background: #f3f4f6;
  }

  html[data-public-theme="light"] .pdh-row-link__icon--about::before { color: #4b5563; }
  html[data-public-theme="light"] .pdh-row-link__icon--help::before { color: #2563eb; }
  html[data-public-theme="light"] .pdh-row-link__label {
    color: #111827;
  }

  html[data-public-theme="light"] .pdh-row-link--logout {
    color: #dc2626 !important;
  }

  html[data-public-theme="light"] .pdh-row-link--logout:hover {
    border-color: rgba(239, 68, 68, 0.28);
    background: #fef2f2;
    color: #b91c1c !important;
  }

  html[data-public-theme="light"] .pdh-row-link__icon--logout::before {
    color: #dc2626;
  }

  /* أزرار الإجراءات */
  html[data-public-theme="light"] .pdh-action {
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
  }

  html[data-public-theme="light"] .pdh-action--signup,
  html[data-public-theme="light"] .pdh-action--dashboard {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.28) !important;
  }

  html[data-public-theme="light"] .pdh-action--signup:hover,
  html[data-public-theme="light"] .pdh-action--dashboard:hover {
    color: #fff !important;
    filter: brightness(1.04);
  }

  html[data-public-theme="light"] .pdh-action--login {
    background: #fff !important;
    border: 1.5px solid #d1d5db !important;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  }

  html[data-public-theme="light"] .pdh-action--login:hover {
    background: #eef2ff !important;
    border-color: #818cf8 !important;
    color: #4f46e5 !important;
  }

  html[data-public-theme="light"] .pdh-action__icon {
    background: rgba(255, 255, 255, 0.2);
  }

  html[data-public-theme="light"] .pdh-action--login .pdh-action__icon {
    background: #eef2ff;
    color: #4f46e5;
  }

  html[data-public-theme="light"] .pdh-action__title {
    color: inherit;
  }

  html[data-public-theme="light"] .pdh-action--signup .pdh-action__sub,
  html[data-public-theme="light"] .pdh-action--dashboard .pdh-action__sub {
    color: rgba(255, 255, 255, 0.88);
  }

  html[data-public-theme="light"] .pdh-action--login .pdh-action__sub {
    color: #6b7280;
  }

  html[data-public-theme="light"] .pdh-action--login:hover .pdh-action__sub {
    color: #6366f1;
  }

  html[data-public-theme="light"] .pdh-action--login .pdh-action__go {
    border-color: #e5e7eb;
    background: #f9fafb;
  }

  html[data-public-theme="light"] .pdh-action--login .pdh-action__go::before {
    border-inline-end-color: #6b7280;
    border-block-start-color: #6b7280;
  }

  html[data-public-theme="light"] .pdh-action--login:hover .pdh-action__go {
    background: #fff;
    border-color: #c7d2fe;
  }

  html[data-public-theme="light"] .pdh-action--login:hover .pdh-action__go::before {
    border-inline-end-color: #6366f1;
    border-block-start-color: #6366f1;
  }
}

/* ——— زر تبديل الثيم ——— */
.public-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: var(--ps-nav-btn-h);
  height: var(--ps-nav-btn-h);
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--ps-border-strong);
  background: rgba(8, 8, 8, 0.45);
  color: var(--ps-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.public-theme-toggle:hover {
  border-color: var(--ps-royal-light);
  color: var(--ps-royal);
  background: rgba(193, 92, 246, 0.1);
}

html[data-public-theme="light"] .public-theme-toggle {
  background: #fff;
  border-color: #d1d5db;
  color: #4b5563;
}

html[data-public-theme="light"] .public-theme-toggle:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: #4f46e5;
}

.public-theme-toggle__icon {
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 1rem;
}

.public-theme-toggle__icon--moon {
  display: none;
}

html[data-public-theme="light"] .public-theme-toggle__icon--sun {
  display: none;
}

html[data-public-theme="light"] .public-theme-toggle__icon--moon {
  display: block;
}

.pdh-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(193, 92, 246, 0.16);
  background: rgba(193, 92, 246, 0.06);
}

html[data-public-theme="light"] .pdh-theme-toggle {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.2);
}

.pdh-theme-toggle__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ps-text);
}

.pdh-theme-toggle .public-theme-toggle {
  width: 40px;
  height: 40px;
}

@media (min-width: 1200px) {
  .pdh-theme-toggle {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .public-nav-utilities > .public-theme-toggle {
    display: none;
  }
}

/* صفحات المحتوى */
html[data-public-theme="light"] body.public-marketing-page .public-page-hero-card {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: var(--ps-shadow-sm);
}

/* ——— توحيد الأزرار (بنفسجي + ظلال متناسقة) ——— */
html[data-public-theme="light"] body.public-site .public-nav-btn--primary,
html[data-public-theme="light"] body.public-marketing-page .public-nav-btn--primary,
html[data-public-theme="light"] body.public-site .landing-btn-login,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-login,
html[data-public-theme="light"] body.public-site .landing-btn-primary,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-primary,
html[data-public-theme="light"] body.public-site .landing-btn-cta,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-cta {
  background: linear-gradient(135deg, var(--ps-btn-from), var(--ps-btn-to)) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.28) !important;
}

html[data-public-theme="light"] body.public-site .public-nav-btn--primary:hover,
html[data-public-theme="light"] body.public-marketing-page .public-nav-btn--primary:hover,
html[data-public-theme="light"] body.public-site .landing-btn-login:hover,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-login:hover,
html[data-public-theme="light"] body.public-site .landing-btn-primary:hover,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-primary:hover,
html[data-public-theme="light"] body.public-site .landing-btn-cta:hover,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.34) !important;
}

html[data-public-theme="light"] body.public-site .public-nav-btn--outline,
html[data-public-theme="light"] body.public-marketing-page .public-nav-btn--outline,
html[data-public-theme="light"] body.public-site .landing-btn-ghost,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-ghost {
  color: var(--ps-text-secondary) !important;
  background: #fff !important;
  border-color: var(--ps-border-strong) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-public-theme="light"] body.public-site .public-nav-btn--outline:hover,
html[data-public-theme="light"] body.public-marketing-page .public-nav-btn--outline:hover,
html[data-public-theme="light"] body.public-site .landing-btn-ghost:hover,
html[data-public-theme="light"] body.public-marketing-page .landing-btn-ghost:hover {
  color: var(--ps-royal-mid) !important;
  background: var(--ps-accent-surface) !important;
  border-color: var(--ps-royal-light) !important;
}

html[data-public-theme="light"] body.public-site .lang-switcher--public .lang-switcher-btn,
html[data-public-theme="light"] body.public-marketing-page .lang-switcher--public .lang-switcher-btn {
  background: #fff !important;
  color: var(--ps-text-secondary) !important;
  border-color: var(--ps-border-strong) !important;
}

html[data-public-theme="light"] body.public-site .lang-switcher--public .lang-switcher-btn:hover,
html[data-public-theme="light"] body.public-marketing-page .lang-switcher--public .lang-switcher-btn:hover {
  color: var(--ps-royal-mid) !important;
  background: var(--ps-accent-surface) !important;
  border-color: var(--ps-royal-light) !important;
}

html[data-public-theme="light"] body.public-site .public-nav-search-btn,
html[data-public-theme="light"] body.public-marketing-page .public-nav-search-btn {
  background: #fff;
  color: var(--ps-text-secondary);
  border-color: var(--ps-border-strong);
}

html[data-public-theme="light"] body.public-site .public-nav-search-btn:hover,
html[data-public-theme="light"] body.public-marketing-page .public-nav-search-btn:hover {
  color: var(--ps-royal-mid);
  background: var(--ps-accent-surface);
  border-color: var(--ps-royal-light);
}

/* ——— عناوين فرعية ونصوص ——— */
html[data-public-theme="light"] body.landing-body.public-site .landing-eyebrow,
html[data-public-theme="light"] body.landing-body.public-marketing-page .landing-eyebrow {
  color: #4f46e5 !important;
  letter-spacing: 0.08em;
  background: var(--ps-accent-surface);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

html[data-public-theme="light"] body.public-site .landing-feature-card .text-dark,
html[data-public-theme="light"] body.public-site .landing-feature-card .text-dark.opacity-75 {
  color: var(--ps-text-secondary) !important;
  opacity: 1 !important;
}

html[data-public-theme="light"] body.public-site .landing-feature-icon {
  color: var(--ps-royal-mid);
}

html[data-public-theme="light"] body.public-site .landing-plan-badge {
  color: #4f46e5;
  background: var(--ps-accent-surface);
  border-color: rgba(99, 102, 241, 0.22);
}

html[data-public-theme="light"] body.landing-body.public-site .landing-plan-card--featured {
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: var(--ps-shadow-md), 0 0 0 1px rgba(99, 102, 241, 0.08) inset !important;
}

html[data-public-theme="light"] body.public-site .landing-plan-feature::before {
  background: rgba(16, 185, 129, 0.12);
  color: var(--ps-success);
}

html[data-public-theme="light"] body.public-site .landing-billing-toggle__btn {
  color: var(--ps-text-muted);
}

html[data-public-theme="light"] body.public-site .landing-billing-toggle__btn.is-active {
  color: #fff !important;
}

/* ——— فيديوهات ووسوم ——— */
html[data-public-theme="light"] body.public-site .landing-video-card {
  background: #fff;
  box-shadow: var(--ps-card-3d-shadow-rest);
}

html[data-public-theme="light"] body.public-site .landing-video-play {
  background: rgba(17, 24, 39, 0.35);
  color: #fff;
}

html[data-public-theme="light"] body.public-site .landing-tag {
  background: var(--ps-accent-surface);
  color: #4f46e5;
}

html[data-public-theme="light"] body.public-site .landing-social-icon {
  background: #fff;
  color: var(--ps-text-secondary);
}

html[data-public-theme="light"] body.public-site .landing-social-icon:hover {
  background: var(--ps-accent-surface);
  color: var(--ps-royal-mid);
}

/* ——— CTA ——— */
html[data-public-theme="light"] body.landing-body.public-site .landing-cta {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%) !important;
  border-block: 1px solid rgba(99, 102, 241, 0.1);
}

html[data-public-theme="light"] body.landing-body.public-site .landing-cta h2.text-white {
  color: var(--ps-heading) !important;
}

/* ——— Hero mockup ——— */
html[data-public-theme="light"] body.public-site .landing-hero-app-table,
html[data-public-theme="light"] body.public-site .landing-hero-app-footer {
  background: #f9fafb;
  border-color: #e5e7eb;
}

html[data-public-theme="light"] body.public-site .landing-hero-app-table-row span {
  background: rgba(99, 102, 241, 0.1);
}

html[data-public-theme="light"] body.public-site .landing-hero-app-table-row--head span {
  background: rgba(17, 24, 39, 0.08);
}

html[data-public-theme="light"] body.public-site .landing-hero-app-foot-value {
  color: #111827;
}

html[data-public-theme="light"] body.public-site .landing-hero-headline-line--secondary {
  color: var(--ps-text-secondary);
}

/* ——— تذييل و SEO ——— */
html[data-public-theme="light"] body.public-site .landing-seo-keywords a.landing-seo-kw:hover,
html[data-public-theme="light"] body.public-site .landing-seo-keywords a.landing-seo-kw:focus-visible {
  color: var(--ps-royal-mid) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  background: var(--ps-accent-surface) !important;
}

html[data-public-theme="light"] body.public-marketing-page .public-prose code {
  background: #f3f4f6;
  color: #4f46e5;
}

/* ——— Mega nav تفاعلات ——— */
html[data-public-theme="light"] body.public-site .public-mega-nav__link:hover,
html[data-public-theme="light"] body.public-site .public-mega-nav__trigger:hover,
html[data-public-theme="light"] body.public-marketing-page .public-mega-nav__link:hover,
html[data-public-theme="light"] body.public-marketing-page .public-mega-nav__trigger:hover {
  color: var(--ps-royal-mid);
  background: var(--ps-accent-surface);
}

html[data-public-theme="light"] body.public-site .public-nav-user-trigger,
html[data-public-theme="light"] body.public-marketing-page .public-nav-user-trigger {
  background: #fff;
  color: var(--ps-text);
  border-color: var(--ps-border-strong);
}

html[data-public-theme="light"] body.public-site .public-nav-user-menu.is-open .public-nav-user-trigger,
html[data-public-theme="light"] body.public-site .public-nav-user-trigger:hover,
html[data-public-theme="light"] body.public-marketing-page .public-nav-user-menu.is-open .public-nav-user-trigger,
html[data-public-theme="light"] body.public-marketing-page .public-nav-user-trigger:hover {
  background: var(--ps-accent-surface);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--ps-royal-mid);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

html[data-public-theme="light"] body.public-site.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-nav-user-trigger,
html[data-public-theme="light"] body.public-marketing-page.public-has-hero-banner:not(.public-header-solid):not(.public-nav-open) .public-nav-user-trigger {
  background: #fff;
  border-color: var(--ps-border-strong);
  color: var(--ps-text);
}

/* ——— تجربة الزائر (مساعد + دعم) ——— */
html[data-public-theme="light"] {
  --pvh-accent: #6366f1;
  --pvh-accent-soft: rgba(99, 102, 241, 0.1);
  --pvh-surface: rgba(255, 255, 255, 0.98);
  --pvh-border: #e5e7eb;
  --pvh-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

html[data-public-theme="light"] .pvh-float-pill--ai {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.28);
  color: #111827;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.14);
}

html[data-public-theme="light"] .pvh-float-pill--ai .pvh-float-text strong {
  color: #111827;
}

html[data-public-theme="light"] .pvh-float-pill--ai .pvh-float-text span {
  color: #6b7280;
}

html[data-public-theme="light"] .pvh-ai-head {
  background: var(--ps-accent-surface);
  border-bottom-color: #e5e7eb;
}

html[data-public-theme="light"] .pvh-ai-head h2 {
  color: #111827;
}

html[data-public-theme="light"] .pvh-ai-close {
  color: #6b7280;
}

html[data-public-theme="light"] .pvh-ai-msg--bot {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}

html[data-public-theme="light"] .pvh-ai-msg--user {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
}

html[data-public-theme="light"] .pvh-ai-foot {
  background: #fff;
}

html[data-public-theme="light"] .pvh-ai-disclaimer {
  color: #9ca3af;
}

html[data-public-theme="light"] .pvh-ai-input {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

html[data-public-theme="light"] .pvh-ai-send {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
}

html[data-public-theme="light"] body.public-site .landing-support-section,
html[data-public-theme="light"] body.public-marketing-page .landing-support-section {
  --pvh-support-icon-bg: rgba(99, 102, 241, 0.1);
  --pvh-support-icon-color: #4f46e5;
  --pvh-support-email-bg: rgba(99, 102, 241, 0.08);
  --pvh-support-email-color: #4f46e5;
  --pvh-support-email-border: rgba(99, 102, 241, 0.22);
}
