:root {
  --z4-bg: #06142d;
  --z4-surface: rgba(18, 45, 86, 0.48);
  --z4-surface-strong: rgba(13, 32, 63, 0.74);
  --z4-border: rgba(145, 189, 255, 0.28);
  --z4-primary: #1e88ff;
  --z4-primary-strong: #0f6de1;
  --z4-accent: #57b9ff;
  --z4-text: #e9f4ff;
  --z4-text-soft: #b7cfe7;
  --z4-shadow: 0 16px 38px rgba(3, 15, 34, 0.35);
  --z4-radius-lg: 24px;
  --z4-radius-md: 16px;
    --navbar-height: 70px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  color: var(--z4-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(24, 96, 184, 0.35), transparent 36%),
    radial-gradient(circle at 88% 25%, rgba(47, 161, 255, 0.23), transparent 42%),
    linear-gradient(145deg, #06142d 0%, #08224a 44%, #071731 100%);
  min-height: 100vh;
}

a {
  color: #d8ecff;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #ffffff;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.55;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(32, 142, 255, 0.38);
  top: -70px;
  right: -60px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(71, 180, 255, 0.22);
  bottom: -90px;
  left: -110px;
  animation-duration: 16s;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.toast-container {
  position: fixed !important;
  top: 120px;
  right: 16px !important;
  left: auto !important;
  z-index: 9999  !important; /* أقل من site-header */
  pointer-events: none;
}

.toast-container .toast {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .toast-container {
     top: 150px;
    right: 12px !important;
    left: 12px !important;
    z-index: 9999  !important;
  }
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  padding-top: 0.8rem;
}

.site-header .container {
  max-width: 1160px;
}

.floating-navbar {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  background: rgba(8, 23, 47, 0.54);
  border: 1px solid rgba(176, 214, 255, 0.24);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(4, 16, 38, 0.22);
  padding: 0.7rem 1rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled .floating-navbar,
.site-header.scrolled .floating-navbar {
  background: rgba(8, 23, 47, 0.8);
  border-color: rgba(193, 226, 255, 0.32);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 34px rgba(2, 13, 31, 0.32);
}

.header-grid {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.header-actions {
  min-height: 46px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.header-link {
  position: relative;
  color: #d9edff;
  font-weight: 700;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-link::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  left: 0.9rem;
  bottom: 0.32rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(120, 199, 255, 0.95), rgba(42, 150, 248, 0.95));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.header-link:hover,
.header-link.active {
  color: #fff;
  background: rgba(125, 190, 255, 0.16);
}

.header-link:hover::after,
.header-link.active::after {
  transform: scaleX(1);
}

.header-mobile-menu {
  width: 100%;
}

.mobile-menu-wrap {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(182, 219, 255, 0.2);
  background: rgba(10, 27, 56, 0.82);
  box-shadow: inset 0 0 0 1px rgba(198, 229, 255, 0.08);
  display: grid;
  gap: 0.4rem;
}

.header-actions-mobile {
  margin-top: 0.6rem;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;

}

.brand-wrap.no-logo .brand-text {
  padding-inline: 0.25rem;
}

.brand-text {
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.3px;
}

.navbar-toggler {
  padding: 0.42rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.navbar-toggler-icon {
  filter: invert(1) brightness(100%);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-soft {
  color: #e7f3ff;
  border: 1px solid rgba(198, 228, 255, 0.34);
  background: rgba(164, 216, 255, 0.08);
}

.btn-soft:hover {
  color: #fff;
  border-color: rgba(224, 241, 255, 0.55);
  background: rgba(164, 216, 255, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--z4-primary), #39a6ff);
  border: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--z4-primary-strong), #1b90ef);
}

.btn-glow {
  box-shadow: 0 10px 24px rgba(26, 129, 241, 0.34);
}

.glass-card {
  background: linear-gradient(160deg, rgba(198, 224, 255, 0.15), rgba(80, 139, 209, 0.08));
  border: 1px solid var(--z4-border);
  border-radius: var(--z4-radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--z4-shadow);
}

section[id] {
  scroll-margin-top: 128px;
}

.hero-section {
  padding-top: 8.7rem;
  padding-bottom: 5rem;
}

.hero-card {
  padding: 2.4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d6ecff;
  background: rgba(115, 183, 255, 0.15);
  border: 1px solid rgba(199, 229, 255, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.1vw, 2.8rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-subtitle {
  margin: 0;
  max-width: 620px;
  color: var(--z4-text-soft);
  line-height: 1.95;
  font-size: 1.06rem;
}

.hero-panel {
  padding: 1.5rem;
  height: 100%;
  border-radius: var(--z4-radius-md);
  background: linear-gradient(180deg, rgba(16, 39, 76, 0.9), rgba(9, 26, 53, 0.8));
}

.hero-panel-tag {
  color: #afdaff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-trust span {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(177, 220, 255, 0.28);
  background: rgba(102, 175, 255, 0.12);
  color: #d6edff;
  font-size: 0.9rem;
}

.cta-primary {
  min-width: 180px;
}

.hero-animate {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--hero-delay, 0s);
}

.hero-points {
  display: grid;
  gap: 0.9rem;
  color: #dcf0ff;
}

.hero-points li {
  position: relative;
  padding-inline-start: 1.3rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8bd0ff, #2d9bff);
}

.section-space {
  padding: 5rem 0;
}

.section-head {
  max-width: 700px;
  margin-inline: auto;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
}

.section-subtitle {
  margin: 0.9rem 0 0;
  color: var(--z4-text-soft);
}

.feature-card {
  padding: 1.4rem;
  border-radius: var(--z4-radius-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #e8f5ff;
  border: 1px solid rgba(191, 226, 255, 0.28);
  background: linear-gradient(155deg, rgba(95, 175, 255, 0.26), rgba(36, 108, 184, 0.4));
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}

.feature-card p {
  color: #d3e7fb;
  line-height: 1.8;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(205, 232, 255, 0.45);
  box-shadow: 0 22px 42px rgba(5, 21, 45, 0.4);
}

.about-card {
  padding: 2rem;
  line-height: 1.92;
  color: #d3e7fb;
}

.about-lead {
  color: #d4eafd;
  font-size: 1.04rem;
}

.about-grid {
  display: grid;
  gap: 0.75rem;
}

.about-item {
  background: rgba(11, 32, 63, 0.65);
  border: 1px solid rgba(177, 216, 255, 0.22);
  border-radius: 14px;
  padding: 0.95rem;
}

.about-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #f2f9ff;
}

.about-item p {
  margin: 0;
  color: #cae3fb;
  line-height: 1.75;
  font-size: 0.95rem;
}

.custom-accordion {
  max-width: 900px;
  margin-inline: auto;
}

.custom-accordion .accordion-item {
  background: rgba(16, 39, 73, 0.6);
  border: 1px solid rgba(176, 214, 255, 0.23);
  border-radius: 14px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.custom-accordion .accordion-button {
  background: transparent;
  color: #f3f9ff;
  font-weight: 700;
  box-shadow: none;
  padding: 1.05rem 1.2rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: #fff;
  background: rgba(43, 116, 206, 0.2);
}

.custom-accordion .accordion-button::after {
  filter: invert(1) brightness(150%);
}

.custom-accordion .accordion-body {
  color: #d3e8fd;
  line-height: 2;
  background: rgba(7, 18, 39, 0.2);
}

.faq-item:hover {
  border-color: rgba(198, 229, 255, 0.38);
  transform: translateY(-2px);
}

.page-card {
  padding: 2rem;
}

.placeholder-block {
  background: rgba(15, 38, 72, 0.45);
  border: 1px solid rgba(189, 221, 255, 0.2);
  border-radius: 14px;
  padding: 1.1rem;
}

.placeholder-block p {
  color: #d5e9fc;
  line-height: 1.85;
}

.site-footer {
  border-top: 1px solid rgba(176, 214, 255, 0.2);
  background: rgba(7, 19, 39, 0.5);
  padding: 1.35rem 0;
  backdrop-filter: blur(12px);
}

.site-footer p {
  color: #d1e7fc;
}

.footer-links a,
.footer-links .btn-link {
  color: #d1e9ff;
  font-weight: 600;
}

.footer-links .btn-link:hover,
.footer-links a:hover {
  color: #ffffff;
}

.modal-content {
  border-radius: 22px;
  overflow: hidden;
}

.modal-header,
.modal-body {
  background: transparent;
}

/* Keep title and close button separated cleanly in RTL/LTR modal headers. */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal-header .modal-title {
  margin: 0;
}

.modal-header .btn-close {
  margin: 0;
  flex: 0 0 auto;
}

.modal-title {
  font-weight: 800;
}

.form-label {
  color: #e9f5ff;
  font-weight: 600;
}

.form-control {
  border-radius: 12px;
  border: 1px solid rgba(183, 219, 255, 0.28);
  background: rgba(4, 20, 46, 0.55);
  color: #f3f9ff;
  padding: 0.72rem 0.85rem;
}

.form-control:focus {
  color: #fff;
  border-color: #7fc6ff;
  background: rgba(7, 24, 52, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(78, 169, 255, 0.18);
}

.form-control::placeholder {
  color: #9eb8d2;
}

.form-hint {
  color: #b7d3ee;
  font-size: 0.92rem;
}

.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-enabled .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(8, 20, 39, 0.38);
}

.toast-success {
  background: linear-gradient(145deg, #1a9c6a, #1f835f);
  color: #fff;
}

.toast-error {
  background: linear-gradient(145deg, #d74a54, #b8303a);
  color: #fff;
}

.inner-page main {
  padding-top: 7.4rem;
}

@keyframes orbFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(22px) scale(1.06);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .site-header {
    padding-top: 0.55rem;
  }

  .floating-navbar {
    border-radius: 18px;
    padding: 0.58rem 0.72rem;
  }

  .header-grid {
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
  }

  .header-grid .brand-wrap {
    min-width: 0;
    margin: 0;
  }

  .header-mobile-menu .header-link {
    display: block;
    width: 100%;
  }

  .hero-section {
    padding-top: 7.9rem;
    padding-bottom: 4rem;
  }

  .hero-card,
  .about-card,
  .page-card {
    padding: 1.5rem;
  }

  .section-space {
    padding: 3.5rem 0;
  }

  .hero-trust {
    gap: 0.5rem;
  }

  .hero-trust span {
    font-size: 0.84rem;
  }
}

@media (min-width: 992px) {
  .header-grid {
    grid-template-columns: auto 1fr auto;
  }

  .header-grid .brand-wrap {
    justify-self: end;
    margin: 0;
  }

  .header-center {
    justify-content: center;
    gap: 0.3rem;
  }

  .header-actions {
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .floating-navbar {
    border-radius: 16px;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.2rem;
  }

  .header-actions-mobile .btn {
    min-height: 42px;
  }

  .site-footer {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
