/* منصة سعد AI — أخضر ملكي، كريمي، ذهبي + Hero فيديو + شبكة خدمات + بوابة دفع */

:root {
  /* متوافق مع شعار سعد: أخضر السدم، كريم دافئ، ذهب الجناح */
  --royal-green: #0f1f1a;
  --royal-green-mid: #1b4332;
  --royal-green-light: #2d6a52;
  --cream-royal: #f8f6f0;
  --gold-royal: #c4a574;
  --gold-royal-soft: rgba(196, 165, 116, 0.38);
}

.hero-platform {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 calc(50% - 50vw) 2.5rem;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-royal-soft);
}

.hero-platform__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-platform__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 20%, rgba(45, 106, 82, 0.48), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(196, 165, 116, 0.14), transparent 45%),
    linear-gradient(168deg, var(--royal-green-mid) 0%, var(--royal-green) 100%);
}

.hero-platform__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 12, 9, 0.92) 0%, rgba(4, 12, 9, 0.35) 45%, rgba(4, 12, 9, 0.5) 100%);
  pointer-events: none;
}

.hero-platform__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  animation: platform-hero-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes platform-hero-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-platform__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  font-weight: 800;
  color: var(--cream-royal);
  line-height: 1.2;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.85rem;
}

.hero-platform__lead {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: rgba(248, 246, 240, 0.9);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
}

.hero-platform__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero-platform .btn--primary {
  background: linear-gradient(165deg, var(--gold-royal) 0%, #a68f52 100%);
  color: var(--royal-green);
  border: none;
  font-weight: 700;
}

.hero-platform .btn--ghost {
  border-color: var(--gold-royal-soft);
  color: var(--cream-royal);
}

/* شبكة الخدمات الثلاث */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.service-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-royal-soft);
  background: linear-gradient(168deg, rgba(27, 67, 50, 0.58), rgba(15, 31, 26, 0.94));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 165, 116, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(196, 165, 116, 0.14);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-royal);
  margin-bottom: 0.65rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.service-card li::before {
  content: "✦ ";
  color: var(--gold-royal);
  font-size: 0.65rem;
  margin-inline-end: 0.35rem;
}

.service-card__preview {
  font-size: 0.78rem;
  color: rgba(196, 165, 116, 0.9);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(196, 165, 116, 0.38);
}

/* نافذة الدفع / القفل */
.pay-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.pay-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.pay-modal {
  width: 100%;
  max-width: 440px;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-royal-soft);
  background: linear-gradient(168deg, var(--royal-green-mid), var(--royal-green));
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.pay-modal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream-royal);
  margin-bottom: 0.5rem;
}

.pay-modal p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pay-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* تسعير */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.pricing-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(196, 165, 116, 0.38);
}

.pricing-card--featured {
  border-color: var(--gold-royal);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.22), var(--shadow-glow);
}

.pricing-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.38), 0 22px 56px rgba(61, 143, 114, 0.14);
}

.pricing-card__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-royal);
  margin: 0.5rem 0;
}

.pricing-card__sar {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* لوحة التحكم */
.dash-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.dash-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.35s ease, box-shadow 0.4s ease, transform 0.35s ease;
}

.dash-panel:hover {
  border-color: rgba(196, 165, 116, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.dash-auth {
  display: grid;
  gap: 0.75rem;
  max-width: 400px;
}

.dash-auth input {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(4, 10, 8, 0.65);
  color: var(--text);
}

/* شاشة العمليات الحية */
.ops-live {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(196, 165, 116, 0.28);
  min-height: 200px;
  max-height: 420px;
  overflow: auto;
  color: var(--cream-mist);
}

.ops-live .ops-line--ok {
  color: #5ee4a9;
}

.ops-live .ops-line--warn {
  color: #e6c82e;
}

@media (prefers-reduced-motion: reduce) {
  .hero-platform__inner {
    animation: none;
  }

  .service-card {
    transition: none;
  }

  .service-card:hover {
    transform: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .pricing-card,
  .pricing-card:hover {
    transition: none;
    transform: none;
  }

  .dash-panel,
  .dash-panel:hover {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
